docs(examples): helper lines (#1915)

feat: add optional chaining to prevent types errors and add an example of helper lines (#1904)

* docs: code errors in "Updating Node Data" (#1900)

fix(docs): Example of fixing code errors in "Updating Node Data"

* fix: add optional chaining to prevent errors in link filtering

* feat: add an example of helper lines

* refactor: In the HelperLines example, replace the observer with dimensions

---------

Co-authored-by: Charles Lee <114982593+rookie-orange@users.noreply.github.com>
Co-authored-by: J <gongjie0422@163.com>
This commit is contained in:
Braks
2025-08-07 15:46:48 +02:00
committed by GitHub
co-authored by Charles Lee J
parent 4bc9acc1e8
commit 5dc276af52
9 changed files with 359 additions and 1 deletions
+14
View File
@@ -24,6 +24,13 @@ import { LoopbackApp, LoopbackCSS, LoopbackEdge } from './loopback'
import { MathApp, MathCSS, MathElements, MathIcon, MathOperatorNode, MathResultNode, MathValueNode } from './math'
import { ConfirmApp, ConfirmDialog, useDialog } from './confirm-delete'
import { EdgeMarkersApp, EdgeMarkersCSS, EdgeMarkersEdge, EdgeMarkersMarker } from './edge-markers'
import {
HelperLinesApp,
HelperLinesComponent,
HelperLinesInitialElements,
HelperLinesStyle,
HelperLinesUtils,
} from './helper-lines'
export const exampleImports = {
basic: {
@@ -176,4 +183,11 @@ export const exampleImports = {
'CustomMarker.vue': EdgeMarkersMarker,
'style.css': EdgeMarkersCSS,
},
helperLines: {
'App.vue': HelperLinesApp,
'HelperLines.vue': HelperLinesComponent,
'utils.ts': HelperLinesUtils,
'initialElements.ts': HelperLinesInitialElements,
'style.css': HelperLinesStyle,
},
}