Repository Analysis

didi/LogicFlow

A flow chart editing framework focus on business customization. 专注于业务自定义的流程图编辑框架,支持实现脑图、ER图、UML、工作流等各种图编辑场景。

0.8 Likely human-written View on GitHub
0.8
Adjusted Score
0.8
Raw Score
100%
Time Factor
2026-05-28
Last Push
11,380
Stars
TypeScript
Language
149,448
Lines of Code
1121
Files
95
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 3HIGH 0MEDIUM 0LOW 92

Pattern Findings

95 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block71 hits · 71 pts
SeverityFileLineSnippet
LOWsites/docs/.dumirc.ts261 companyGallery: {
LOWsites/docs/.dumirc.ts281 // img: 'https://cdn.jsdelivr.net/gh/Logic-Flow/static@latest/docs/homepage/MTLogo.svg',
LOWsites/docs/.dumirc.ts301 // img: 'https://cdn.jsdelivr.net/gh/Logic-Flow/static@latest/docs/homepage/HXLogo.svg',
LOWsites/docs/docs/api/type/MainTypes.zh.md361// x: 100,
LOW…s/docs/examples/extension/native/demo/dynamicGroup.tsx41 icon: 'https://cdn.jsdelivr.net/gh/Logic-Flow/static@latest/docs/examples/extension/group/circle.png',
LOWsites/docs/examples/graph/basic/demo/graph.tsx501 // isSilentMode: true,
LOWsites/docs/examples/graph/basic/demo/graph.tsx521 // callback: () => {
LOWsites/docs/examples/graph/basic/demo/graph.tsx541 // size: 1,
LOWsites/docs/examples/showcase/bussiness/demo/approve.tsx541// .node-panel {
LOWsites/docs/examples/showcase/bussiness/demo/approve.tsx561// .node-jugement .node-label {
LOWsites/docs/examples/showcase/bussiness/demo/approve.tsx581// .property-panel-footer .property-panel-footer-hide {
LOW…mples/src/components/nodes/freeAnchor-circle/index.tsx61 // canvasOverlayPosition: { x, y },
LOW…feature-examples/src/pages/nodes/custom/rect/index.tsx21 },
LOW…s/feature-examples/src/pages/nodes/custom/pool/data.ts1// const data = {
LOW…s/feature-examples/src/pages/nodes/custom/pool/data.ts21// width: 300,
LOWexamples/feature-examples/src/pages/graph/index.tsx61 // },
LOWexamples/feature-examples/src/pages/graph/index.tsx81 // },
LOWexamples/feature-examples/src/pages/graph/index.tsx101// lineHeight: 1.5,
LOWexamples/feature-examples/src/pages/graph/index.tsx621 container: containerRef.current as HTMLElement,
LOW…/feature-examples/src/pages/extensions/group/index.tsx101 y: 400,
LOWexamples/feature-examples/src/pages/theme/config.ts41 },
LOWexamples/feature-examples/src/pages/theme/config.ts61 // radius: 20,
LOWexamples/feature-examples/src/pages/theme/config.ts101 startArrowType: 'hollow',
LOWexamples/feature-examples/src/pages/theme/config.ts121 // type: 'polyline',
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx181 // },
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx201 // x: 580,
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx221 // ],
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx241 // y: 197,
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx261 // ],
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx281 // // y: 458,
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx301 // // ],
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx321 // // y: 114,
LOW…ure-examples/src/pages/edges/custom/polyline/index.tsx341 // // {
LOWexamples/feature-examples/src/pages/grid/index.tsx21 // circle: {
LOWexamples/material-ui-demo/src/serviceWorker.js1// This optional code is used to register a service worker.
LOW…ples/vue3-app/src/components/chart/nodes/FirstGroup.ts1import { GroupNode, GroupNodeModel } from '@logicflow/extension'
LOW…les/vue3-app/src/components/chart/nodes/MiddleGroup.ts1import { GroupNode, GroupNodeModel } from '@logicflow/extension'
LOW…es/vue3-app/src/components/chart/nodes/LandingGroup.ts1import { GroupNode, GroupNodeModel } from '@logicflow/extension'
LOWexamples/vue3-app/src/views/LogicFlowView.vue121 const lf = new LogicFlow({
LOWexamples/vue3-app/src/views/LogicFlowView.vue141 allowResize: false,
LOWexamples/vue3-app/src/views/PerformanceNode.vue161// const timer = setInterval(() => {
LOWexamples/vue3-app/src/views/LFChartView.vue61 properties: {
LOWexamples/vue3-app/src/views/LFChartView.vue81 // x: 0,
LOWexamples/vue3-app/src/views/LFChartView.vue101 // x: 0,
LOWexamples/vue3-app/src/views/LFChartView.vue121 // type: 'defaultNode',
LOWexamples/next-app/src/app/page.tsx141 // isSilentMode: true,
LOWexamples/next-app/src/app/page.tsx161 // const r = window.confirm("确定要删除吗?");
LOW…r-examples/src/pages/extension/dynamic-group/index.tsx301 // 'properties': {},
LOW…r-examples/src/pages/extension/dynamic-group/index.tsx321 // 'text': {
LOW…r-examples/src/pages/extension/dynamic-group/index.tsx341 // '37869799-e2ee-45b8-9150-b38ccc8e65d3',
LOW…r-examples/src/pages/extension/dynamic-group/index.tsx361 // 'x': 552,
LOW…ples/engine-browser-examples/src/pages/graph/index.tsx161 container: containerRef.current as HTMLElement,
LOW…ples/engine-browser-examples/src/pages/graph/index.tsx181 keyboard: {
LOW…/engine-browser-examples/src/pages/engine/Recorder.tsx41 // 获取执行记录
LOW…/engine-browser-examples/src/pages/engine/Recorder.tsx61 // expect(executionIds.length).toBe(1);
LOWpackages/react-node-registry/src/view.ts161
LOWpackages/react-node-registry/src/view.ts181 // }
LOWpackages/core/src/history/index.ts81 this.undos.push(model.modelToGraphData())
LOW…es/extension/__test__/bpmn-elements/definition.test.ts21
LOWpackages/extension/src/tools/snapshot/index.ts361 let dpr = window.devicePixelRatio || 1
11 more matches not shown…
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippet
CRITICAL…kages/extension/src/bpmn-elements/presets/Pool/Lane.ts60 const groupId = this.props.graphModel.group.nodeGroupMap.get(id)
CRITICAL…kages/extension/src/bpmn-elements/presets/Pool/Lane.ts107 const groupId = this.props.graphModel.group.nodeGroupMap.get(id)
CRITICAL…kages/extension/src/bpmn-elements/presets/Pool/Lane.ts154 const groupId = this.props.graphModel.group.nodeGroupMap.get(id)
Hyper-Verbose Identifiers14 hits · 14 pts
SeverityFileLineSnippet
LOW…ocs/src/tutorial/extension/proximity-connect/index.tsx88export default function ProximityConnectExtension() {
LOW…mples/src/pages/extensions/proximity-connect/index.tsx110export default function ProximityConnectExtension() {
LOW…ples/src/pages/edges/custom/animate-polyline/index.tsx15export default function customAnimatePolylineEdge() {
LOWpackages/core/src/algorithm/rotate.ts25export function calculatePointAfterRotateAngle(
LOWpackages/extension/__test__/pool/fixtures.ts25export function createHorizontalPoolGraph() {
LOWpackages/extension/__test__/pool/fixtures.ts127export function createPoolGraphWithNodeInLane() {
LOWpackages/extension/src/tools/label/mediumEditor.ts42export function createColorPickerButtonClass(MediumEditor?: any) {
LOWpackages/extension/src/NodeResize/control/Util.ts130export function getEllipseResizeEdgePoint({ point, beforeNode, afterNode }) {
LOWpackages/extension/src/NodeResize/control/Util.ts168export function getDiamondResizeEdgePoint({ point, beforeNode, afterNode }) {
LOWpackages/extension/src/turbo-adapter/index.ts39function convertNodeToTurboElement(node) {
LOWpackages/extension/src/turbo-adapter/index.ts58function convertEdgeToTurboElement(edge) {
LOW…ages/extension/src/bpmn-elements/presets/Task/index.ts70 function isBoundaryEventCloseToTask(task: any, event: any) {
LOW…/bpmn-elements/presets/Event/IntermediateThrowEvent.ts12export function IntermediateThrowEventFactory(lf: any): {
LOW…/bpmn-elements/presets/Event/IntermediateCatchEvent.ts12export function IntermediateCatchEventFactory(lf: any): {
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippet
LOW…amples/material-ui-demo/src/views/layout/Typography.js56 subtitle1. Lorem ipsum dolor sit connecter adieu siccing eliot. Quos blanditiis tenetur
LOW…amples/material-ui-demo/src/views/layout/Typography.js61 subtitle2. Lorem ipsum dolor sit connecter adieu siccing eliot. Quos blanditiis tenetur
LOW…amples/material-ui-demo/src/views/layout/Typography.js72 body1. Lorem ipsum dolor sit connecter adieu siccing eliot. Quos blanditiis tenetur unde suscipit, quam
LOW…amples/material-ui-demo/src/views/layout/Typography.js78 body2. Lorem ipsum dolor sit connecter adieu siccing eliot. Quos blanditiis tenetur unde suscipit, quam
LOWexamples/material-ui-demo/src/views/edges/index.js12 Lorem ipsum dolor sit amen, consenter nipissing eli, sed do elusion tempos incident ut laborers et doolie magna al
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOW…/extension/src/bpmn-elements/presets/Flow/manhattan.ts506 // Step 1: Convert perpendicular segments to straight lines
LOW…/extension/src/bpmn-elements/presets/Flow/manhattan.ts525 // Step 2: Douglas-Peucker algorithm to remove redundant points