w-flow-vue 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.js +55 -0
  4. package/.jsdoc +25 -0
  5. package/AGENT.md +223 -0
  6. package/LICENSE +21 -0
  7. package/README.md +37 -0
  8. package/SECURITY.md +5 -0
  9. package/babel.config.js +16 -0
  10. package/dist/w-flow-vue.umd.js +15 -0
  11. package/dist/w-flow-vue.umd.js.map +1 -0
  12. package/docs/components_WFlowVue.vue.html +1214 -0
  13. package/docs/examples/app.html +62 -0
  14. package/docs/examples/app.umd.js +20 -0
  15. package/docs/examples/app.umd.js.map +1 -0
  16. package/docs/examples/ex-AppBasic.html +440 -0
  17. package/docs/examples/ex-AppConnectivity.html +131 -0
  18. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  19. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  20. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  21. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  22. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  23. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  24. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  25. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  28. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  29. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  30. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  31. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  32. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  33. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  34. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  35. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  36. package/docs/global.html +1919 -0
  37. package/docs/index.html +84 -0
  38. package/docs/js_defaults.mjs.html +105 -0
  39. package/docs/js_edge-path.mjs.html +237 -0
  40. package/docs/js_geometry.mjs.html +298 -0
  41. package/docs/js_graph.mjs.html +103 -0
  42. package/docs/js_step-routing.mjs.html +346 -0
  43. package/docs/module-WFlowVue.html +2790 -0
  44. package/docs/scripts/collapse.js +39 -0
  45. package/docs/scripts/commonNav.js +28 -0
  46. package/docs/scripts/linenumber.js +25 -0
  47. package/docs/scripts/nav.js +12 -0
  48. package/docs/scripts/polyfill.js +4 -0
  49. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  50. package/docs/scripts/prettify/lang-css.js +2 -0
  51. package/docs/scripts/prettify/prettify.js +28 -0
  52. package/docs/scripts/search.js +99 -0
  53. package/docs/styles/jsdoc.css +776 -0
  54. package/docs/styles/prettify.css +80 -0
  55. package/jest.config.js +20 -0
  56. package/package.json +80 -0
  57. package/public/index.html +38 -0
  58. package/script.txt +22 -0
  59. package/src/App.vue +326 -0
  60. package/src/AppBasic.vue +125 -0
  61. package/src/AppConnectivity.vue +186 -0
  62. package/src/components/WFlowVue.vue +1142 -0
  63. package/src/components/canvas/BackgroundLayer.vue +78 -0
  64. package/src/components/canvas/FlowCanvas.vue +64 -0
  65. package/src/components/canvas/SelectionBox.vue +36 -0
  66. package/src/components/canvas/ViewportTransform.vue +35 -0
  67. package/src/components/edges/ConnectionLine.vue +65 -0
  68. package/src/components/edges/EdgeMarkerDefs.vue +76 -0
  69. package/src/components/edges/EdgeRenderer.vue +120 -0
  70. package/src/components/edges/EdgeWrapper.vue +379 -0
  71. package/src/components/nodes/DefaultNode.vue +276 -0
  72. package/src/components/nodes/Handle.vue +101 -0
  73. package/src/components/nodes/InputNode.vue +47 -0
  74. package/src/components/nodes/NodeBody.vue +103 -0
  75. package/src/components/nodes/NodeFace.vue +128 -0
  76. package/src/components/nodes/NodeRenderer.vue +95 -0
  77. package/src/components/nodes/NodeWrapper.vue +475 -0
  78. package/src/components/nodes/OutputNode.vue +47 -0
  79. package/src/components/ui/ConnSettingsForm.vue +158 -0
  80. package/src/components/ui/Controls.vue +83 -0
  81. package/src/components/ui/NodeSettingsForm.vue +185 -0
  82. package/src/js/defaults.mjs +33 -0
  83. package/src/js/edge-path.mjs +165 -0
  84. package/src/js/geometry.mjs +226 -0
  85. package/src/js/graph.mjs +31 -0
  86. package/src/js/step-routing.mjs +274 -0
  87. package/src/main.js +22 -0
  88. package/test/WFlowVue-features.test.mjs +760 -0
  89. package/test/WFlowVue.test.mjs +421 -0
  90. package/test/components-canvas.test.mjs +102 -0
  91. package/test/components-edge.test.mjs +147 -0
  92. package/test/components-node.test.mjs +174 -0
  93. package/test/components-ui.test.mjs +69 -0
  94. package/test/defaults.test.mjs +86 -0
  95. package/test/edge-path.test.mjs +102 -0
  96. package/test/generate-routing-snapshots.mjs +77 -0
  97. package/test/generate-visual-baselines.mjs +206 -0
  98. package/test/geometry.test.mjs +236 -0
  99. package/test/graph.test.mjs +72 -0
  100. package/test/jsons/routing-snapshots.json +24994 -0
  101. package/test/pics/_check2.png +0 -0
  102. package/test/pics/_check3.png +0 -0
  103. package/test/pics/_check4.png +0 -0
  104. package/test/pics/_check5.png +0 -0
  105. package/test/pics/_v1.png +0 -0
  106. package/test/pics/_v2.png +0 -0
  107. package/test/pics/_v3.png +0 -0
  108. package/test/pics/_v4.png +0 -0
  109. package/test/pics/_v5.png +0 -0
  110. package/test/pics/_v6.png +0 -0
  111. package/test/pics/_v7.png +0 -0
  112. package/test/pics/vb-edge-hovered.png +0 -0
  113. package/test/pics/vb-edges-normal.png +0 -0
  114. package/test/pics/vb-locked-edge-hovered.png +0 -0
  115. package/test/pics/vb-locked-node-hovered.png +0 -0
  116. package/test/pics/vb-locked-node-selected.png +0 -0
  117. package/test/pics/vb-locked-overview.png +0 -0
  118. package/test/pics/vb-node-1.png +0 -0
  119. package/test/pics/vb-node-10.png +0 -0
  120. package/test/pics/vb-node-11.png +0 -0
  121. package/test/pics/vb-node-12.png +0 -0
  122. package/test/pics/vb-node-2.png +0 -0
  123. package/test/pics/vb-node-3.png +0 -0
  124. package/test/pics/vb-node-4.png +0 -0
  125. package/test/pics/vb-node-5.png +0 -0
  126. package/test/pics/vb-node-6.png +0 -0
  127. package/test/pics/vb-node-7.png +0 -0
  128. package/test/pics/vb-node-8.png +0 -0
  129. package/test/pics/vb-node-9.png +0 -0
  130. package/test/pics/vb-node-hovered.png +0 -0
  131. package/test/pics/vb-node-selected.png +0 -0
  132. package/test/pics/vb-overview.png +0 -0
  133. package/test/step-routing-connectivity.test.mjs +78 -0
  134. package/test/step-routing.test.mjs +88 -0
  135. package/test/visual-regression.test.mjs +274 -0
  136. package/toolg/addVersion.mjs +4 -0
  137. package/toolg/cleanFolder.mjs +4 -0
  138. package/toolg/gDistApp.mjs +34 -0
  139. package/toolg/gDistRollupComps.mjs +22 -0
  140. package/toolg/gDocExams.mjs +47 -0
  141. package/toolg/gExtractHtml.mjs +179 -0
  142. package/toolg/modifyReadme.mjs +4 -0
  143. package/vue.config.js +9 -0
  144. package/vue2/344/271/213foreignObject/345/205/247/346/270/262/346/237/223/345/225/217/351/241/214/350/210/207/344/277/256/346/255/243.md +151 -0
@@ -0,0 +1,1919 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Global - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-WFlowVue.html">WFlowVue</a></li></ul><h3>Global</h3><ul><li><a href="global.html#NODE_DEFAULTS">NODE_DEFAULTS</a></li><li><a href="global.html#clampPosition">clampPosition</a></li><li><a href="global.html#generateId">generateId</a></li><li><a href="global.html#getBezierPath">getBezierPath</a></li><li><a href="global.html#getControlOffset">getControlOffset</a></li><li><a href="global.html#getDiamondEdgePoint">getDiamondEdgePoint</a></li><li><a href="global.html#getEllipseEdgePoint">getEllipseEdgePoint</a></li><li><a href="global.html#getHandlePosition">getHandlePosition</a></li><li><a href="global.html#getOverlappingNodes">getOverlappingNodes</a></li><li><a href="global.html#getSmoothStepPath">getSmoothStepPath</a></li><li><a href="global.html#getStepPath">getStepPath</a></li><li><a href="global.html#getStraightPath">getStraightPath</a></li><li><a href="global.html#getTriangleEdgePoint">getTriangleEdgePoint</a></li><li><a href="global.html#isValidConnection">isValidConnection</a></li><li><a href="global.html#labelAtHalfLength">labelAtHalfLength</a></li><li><a href="global.html#lookupRoute">lookupRoute</a></li><li><a href="global.html#rectsOverlap">rectsOverlap</a></li><li><a href="global.html#segmentFallback">segmentFallback</a></li><li><a href="global.html#snapPosition">snapPosition</a></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">Global</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+
53
+
54
+ </h2>
55
+
56
+
57
+ </header>
58
+
59
+ <article>
60
+
61
+ <div class="container-overview">
62
+
63
+
64
+
65
+ <dl class="details">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ </dl>
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ </div>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ <h3 class="subsection-title">Members</h3>
125
+
126
+
127
+
128
+ <h4 class="name" id="NODE_DEFAULTS"><span class="type-signature type-signature-constant">(constant) </span>NODE_DEFAULTS<span class="type-signature"></span></h4>
129
+
130
+
131
+
132
+
133
+
134
+ <dl class="details">
135
+
136
+ <dt class="tag-description">Description:</dt>
137
+ <dd class="tag-description"><ul class="dummy"><li><p>Default values for node and connection properties.</p></li></ul></dd>
138
+
139
+
140
+
141
+ <dt class="tag-source">Source:</dt>
142
+ <dd class="tag-source"><ul class="dummy"><li>
143
+ <a href="js_defaults.mjs.html">js/defaults.mjs</a>, <a href="js_defaults.mjs.html#line5">line 5</a>
144
+ </li></ul></dd>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ </dl>
177
+
178
+
179
+
180
+
181
+
182
+ <div class="description usertext">
183
+ <p>Default values for node and connection properties.</p>
184
+ </div>
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <h3 class="subsection-title">Methods</h3>
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <h4 class="name" id="clampPosition"><span class="type-signature"></span>clampPosition<span class="signature">()</span><span class="type-signature"></span></h4>
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <dl class="details">
212
+
213
+ <dt class="tag-description">Description:</dt>
214
+ <dd class="tag-description"><ul class="dummy"><li><p>Clamp a position within a coordinate extent.</p></li></ul></dd>
215
+
216
+
217
+
218
+ <dt class="tag-source">Source:</dt>
219
+ <dd class="tag-source"><ul class="dummy"><li>
220
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line207">line 207</a>
221
+ </li></ul></dd>
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ </dl>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <h4 class="name" id="generateId"><span class="type-signature"></span>generateId<span class="signature">()</span><span class="type-signature"></span></h4>
290
+
291
+
292
+
293
+
294
+
295
+
296
+ <dl class="details">
297
+
298
+ <dt class="tag-description">Description:</dt>
299
+ <dd class="tag-description"><ul class="dummy"><li><p>Generate a unique ID.</p></li></ul></dd>
300
+
301
+
302
+
303
+ <dt class="tag-source">Source:</dt>
304
+ <dd class="tag-source"><ul class="dummy"><li>
305
+ <a href="js_graph.mjs.html">js/graph.mjs</a>, <a href="js_graph.mjs.html#line27">line 27</a>
306
+ </li></ul></dd>
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+ </dl>
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+ <h4 class="name" id="getBezierPath"><span class="type-signature"></span>getBezierPath<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
375
+
376
+
377
+
378
+
379
+
380
+
381
+ <dl class="details">
382
+
383
+ <dt class="tag-description">Description:</dt>
384
+ <dd class="tag-description"><ul class="dummy"><li><p>Get bezier curve path.</p></li></ul></dd>
385
+
386
+
387
+
388
+ <dt class="tag-source">Source:</dt>
389
+ <dd class="tag-source"><ul class="dummy"><li>
390
+ <a href="js_edge-path.mjs.html">js/edge-path.mjs</a>, <a href="js_edge-path.mjs.html#line26">line 26</a>
391
+ </li></ul></dd>
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+ </dl>
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+ <h5 class="h5-returns">Returns:</h5>
452
+
453
+
454
+
455
+
456
+ <dl class="param-type">
457
+ <dt>
458
+ Type
459
+ </dt>
460
+ <dd>
461
+
462
+ <span class="param-type">Object</span>
463
+
464
+
465
+
466
+ </dd>
467
+ </dl>
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+ <h4 class="name" id="getControlOffset"><span class="type-signature"></span>getControlOffset<span class="signature">()</span><span class="type-signature"></span></h4>
479
+
480
+
481
+
482
+
483
+
484
+
485
+ <dl class="details">
486
+
487
+ <dt class="tag-description">Description:</dt>
488
+ <dd class="tag-description"><ul class="dummy"><li><p>Calculate the control point offset for bezier curves based on handle position.</p></li></ul></dd>
489
+
490
+
491
+
492
+ <dt class="tag-source">Source:</dt>
493
+ <dd class="tag-source"><ul class="dummy"><li>
494
+ <a href="js_edge-path.mjs.html">js/edge-path.mjs</a>, <a href="js_edge-path.mjs.html#line12">line 12</a>
495
+ </li></ul></dd>
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+ </dl>
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <h4 class="name" id="getDiamondEdgePoint"><span class="type-signature"></span>getDiamondEdgePoint<span class="signature">()</span><span class="type-signature"></span></h4>
564
+
565
+
566
+
567
+
568
+
569
+
570
+ <dl class="details">
571
+
572
+ <dt class="tag-description">Description:</dt>
573
+ <dd class="tag-description"><ul class="dummy"><li><p>Get a point on the diamond edge for same-side handles.
574
+ Each &quot;side&quot; of the diamond is split into two edges meeting at the vertex.
575
+ ratio &lt; 0.5: on the first edge, ratio &gt;= 0.5: on the second edge.</p></li></ul></dd>
576
+
577
+
578
+
579
+ <dt class="tag-source">Source:</dt>
580
+ <dd class="tag-source"><ul class="dummy"><li>
581
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line51">line 51</a>
582
+ </li></ul></dd>
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+ </dl>
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+ <h4 class="name" id="getEllipseEdgePoint"><span class="type-signature"></span>getEllipseEdgePoint<span class="signature">()</span><span class="type-signature"></span></h4>
651
+
652
+
653
+
654
+
655
+
656
+
657
+ <dl class="details">
658
+
659
+ <dt class="tag-description">Description:</dt>
660
+ <dd class="tag-description"><ul class="dummy"><li><p>Get a point on the ellipse edge for handle positioning.
661
+ Maps ratio (0..1) to a parametric angle based on the side.</p></li></ul></dd>
662
+
663
+
664
+
665
+ <dt class="tag-source">Source:</dt>
666
+ <dd class="tag-source"><ul class="dummy"><li>
667
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line101">line 101</a>
668
+ </li></ul></dd>
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+ </dl>
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+ <h4 class="name" id="getHandlePosition"><span class="type-signature"></span>getHandlePosition<span class="signature">()</span><span class="type-signature"></span></h4>
737
+
738
+
739
+
740
+
741
+
742
+
743
+ <dl class="details">
744
+
745
+ <dt class="tag-description">Description:</dt>
746
+ <dd class="tag-description"><ul class="dummy"><li><p>Calculate the absolute position of a handle on the canvas.</p></li></ul></dd>
747
+
748
+
749
+
750
+ <dt class="tag-source">Source:</dt>
751
+ <dd class="tag-source"><ul class="dummy"><li>
752
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line4">line 4</a>
753
+ </li></ul></dd>
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+ </dl>
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+ <h4 class="name" id="getOverlappingNodes"><span class="type-signature"></span>getOverlappingNodes<span class="signature">()</span><span class="type-signature"></span></h4>
822
+
823
+
824
+
825
+
826
+
827
+
828
+ <dl class="details">
829
+
830
+ <dt class="tag-description">Description:</dt>
831
+ <dd class="tag-description"><ul class="dummy"><li><p>Get all nodes that overlap with a given rectangle.</p></li></ul></dd>
832
+
833
+
834
+
835
+ <dt class="tag-source">Source:</dt>
836
+ <dd class="tag-source"><ul class="dummy"><li>
837
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line177">line 177</a>
838
+ </li></ul></dd>
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+ </dl>
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+ <h4 class="name" id="getSmoothStepPath"><span class="type-signature"></span>getSmoothStepPath<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
907
+
908
+
909
+
910
+
911
+
912
+
913
+ <dl class="details">
914
+
915
+ <dt class="tag-description">Description:</dt>
916
+ <dd class="tag-description"><ul class="dummy"><li><p>Get smooth step (rounded right-angle) path.</p></li></ul></dd>
917
+
918
+
919
+
920
+ <dt class="tag-source">Source:</dt>
921
+ <dd class="tag-source"><ul class="dummy"><li>
922
+ <a href="js_edge-path.mjs.html">js/edge-path.mjs</a>, <a href="js_edge-path.mjs.html#line85">line 85</a>
923
+ </li></ul></dd>
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+ </dl>
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+
981
+
982
+
983
+ <h5 class="h5-returns">Returns:</h5>
984
+
985
+
986
+
987
+
988
+ <dl class="param-type">
989
+ <dt>
990
+ Type
991
+ </dt>
992
+ <dd>
993
+
994
+ <span class="param-type">Object</span>
995
+
996
+
997
+
998
+ </dd>
999
+ </dl>
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+ <h4 class="name" id="getStepPath"><span class="type-signature"></span>getStepPath<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+ <dl class="details">
1018
+
1019
+ <dt class="tag-description">Description:</dt>
1020
+ <dd class="tag-description"><ul class="dummy"><li><p>Get step (right-angle) path.</p></li></ul></dd>
1021
+
1022
+
1023
+
1024
+ <dt class="tag-source">Source:</dt>
1025
+ <dd class="tag-source"><ul class="dummy"><li>
1026
+ <a href="js_edge-path.mjs.html">js/edge-path.mjs</a>, <a href="js_edge-path.mjs.html#line65">line 65</a>
1027
+ </li></ul></dd>
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+ </dl>
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+ <h5 class="h5-returns">Returns:</h5>
1088
+
1089
+
1090
+
1091
+
1092
+ <dl class="param-type">
1093
+ <dt>
1094
+ Type
1095
+ </dt>
1096
+ <dd>
1097
+
1098
+ <span class="param-type">Object</span>
1099
+
1100
+
1101
+
1102
+ </dd>
1103
+ </dl>
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+ <h4 class="name" id="getStraightPath"><span class="type-signature"></span>getStraightPath<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+ <dl class="details">
1122
+
1123
+ <dt class="tag-description">Description:</dt>
1124
+ <dd class="tag-description"><ul class="dummy"><li><p>Get straight line path.</p></li></ul></dd>
1125
+
1126
+
1127
+
1128
+ <dt class="tag-source">Source:</dt>
1129
+ <dd class="tag-source"><ul class="dummy"><li>
1130
+ <a href="js_edge-path.mjs.html">js/edge-path.mjs</a>, <a href="js_edge-path.mjs.html#line54">line 54</a>
1131
+ </li></ul></dd>
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+ </dl>
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+ <h5 class="h5-returns">Returns:</h5>
1192
+
1193
+
1194
+
1195
+
1196
+ <dl class="param-type">
1197
+ <dt>
1198
+ Type
1199
+ </dt>
1200
+ <dd>
1201
+
1202
+ <span class="param-type">Object</span>
1203
+
1204
+
1205
+
1206
+ </dd>
1207
+ </dl>
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+ <h4 class="name" id="getTriangleEdgePoint"><span class="type-signature"></span>getTriangleEdgePoint<span class="signature">()</span><span class="type-signature"></span></h4>
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+ <dl class="details">
1226
+
1227
+ <dt class="tag-description">Description:</dt>
1228
+ <dd class="tag-description"><ul class="dummy"><li><p>Get a point on the triangle edge for handle positioning.
1229
+ Supports 4 directions: triangle (up), triangle-right, triangle-down, triangle-left.</p></li></ul></dd>
1230
+
1231
+
1232
+
1233
+ <dt class="tag-source">Source:</dt>
1234
+ <dd class="tag-source"><ul class="dummy"><li>
1235
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line131">line 131</a>
1236
+ </li></ul></dd>
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+ </dl>
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+ <h4 class="name" id="isValidConnection"><span class="type-signature"></span>isValidConnection<span class="signature">()</span><span class="type-signature"></span></h4>
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+ <dl class="details">
1312
+
1313
+ <dt class="tag-description">Description:</dt>
1314
+ <dd class="tag-description"><ul class="dummy"><li><p>Validate a potential connection.</p></li></ul></dd>
1315
+
1316
+
1317
+
1318
+ <dt class="tag-source">Source:</dt>
1319
+ <dd class="tag-source"><ul class="dummy"><li>
1320
+ <a href="js_graph.mjs.html">js/graph.mjs</a>, <a href="js_graph.mjs.html#line4">line 4</a>
1321
+ </li></ul></dd>
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+ </dl>
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+ <h4 class="name" id="labelAtHalfLength"><span class="type-signature"></span>labelAtHalfLength<span class="signature">()</span><span class="type-signature"></span></h4>
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+ <dl class="details">
1397
+
1398
+ <dt class="tag-description">Description:</dt>
1399
+ <dd class="tag-description"><ul class="dummy"><li><p>Find the point at exactly half the total Manhattan path length.</p></li></ul></dd>
1400
+
1401
+
1402
+
1403
+ <dt class="tag-source">Source:</dt>
1404
+ <dd class="tag-source"><ul class="dummy"><li>
1405
+ <a href="js_edge-path.mjs.html">js/edge-path.mjs</a>, <a href="js_edge-path.mjs.html#line145">line 145</a>
1406
+ </li></ul></dd>
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+ </dl>
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+ <h4 class="name" id="lookupRoute"><span class="type-signature"></span>lookupRoute<span class="signature">()</span><span class="type-signature"></span></h4>
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+ <dl class="details">
1482
+
1483
+ <dt class="tag-description">Description:</dt>
1484
+ <dd class="tag-description"><ul class="dummy"><li><p>draw.io OrthConnector route generation.
1485
+ Uses bit-encoded route patterns + quad rotation + limits clamping.
1486
+ Returns waypoint array or null (fallback needed).</p></li></ul></dd>
1487
+
1488
+
1489
+
1490
+ <dt class="tag-source">Source:</dt>
1491
+ <dd class="tag-source"><ul class="dummy"><li>
1492
+ <a href="js_step-routing.mjs.html">js/step-routing.mjs</a>, <a href="js_step-routing.mjs.html#line96">line 96</a>
1493
+ </li></ul></dd>
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+ </dl>
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+ <h4 class="name" id="rectsOverlap"><span class="type-signature"></span>rectsOverlap<span class="signature">()</span><span class="type-signature"></span></h4>
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+ <dl class="details">
1569
+
1570
+ <dt class="tag-description">Description:</dt>
1571
+ <dd class="tag-description"><ul class="dummy"><li><p>Check if two rectangles overlap.</p></li></ul></dd>
1572
+
1573
+
1574
+
1575
+ <dt class="tag-source">Source:</dt>
1576
+ <dd class="tag-source"><ul class="dummy"><li>
1577
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line195">line 195</a>
1578
+ </li></ul></dd>
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+ </dl>
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+ <h4 class="name" id="segmentFallback"><span class="type-signature"></span>segmentFallback<span class="signature">()</span><span class="type-signature"></span></h4>
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+ <dl class="details">
1654
+
1655
+ <dt class="tag-description">Description:</dt>
1656
+ <dd class="tag-description"><ul class="dummy"><li><p>SegmentConnector fallback (draw.io style).
1657
+ Used when nodes are too close for OrthConnector (tooShort).</p></li></ul></dd>
1658
+
1659
+
1660
+
1661
+ <dt class="tag-source">Source:</dt>
1662
+ <dd class="tag-source"><ul class="dummy"><li>
1663
+ <a href="js_step-routing.mjs.html">js/step-routing.mjs</a>, <a href="js_step-routing.mjs.html#line262">line 262</a>
1664
+ </li></ul></dd>
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+ </dl>
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+ <h4 class="name" id="snapPosition"><span class="type-signature"></span>snapPosition<span class="signature">(position, gridSize)</span><span class="type-signature"></span></h4>
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+ <dl class="details">
1740
+
1741
+ <dt class="tag-description">Description:</dt>
1742
+ <dd class="tag-description"><ul class="dummy"><li><p>Snap a position to the nearest grid point.</p></li></ul></dd>
1743
+
1744
+
1745
+
1746
+ <dt class="tag-source">Source:</dt>
1747
+ <dd class="tag-source"><ul class="dummy"><li>
1748
+ <a href="js_geometry.mjs.html">js/geometry.mjs</a>, <a href="js_geometry.mjs.html#line220">line 220</a>
1749
+ </li></ul></dd>
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+ </dl>
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+ <h5 class="h5-parameters">Parameters:</h5>
1796
+
1797
+
1798
+ <table class="params">
1799
+ <thead>
1800
+ <tr>
1801
+
1802
+ <th>Name</th>
1803
+
1804
+
1805
+ <th>Type</th>
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+ <th class="last">Description</th>
1812
+ </tr>
1813
+ </thead>
1814
+
1815
+ <tbody>
1816
+
1817
+
1818
+ <tr>
1819
+
1820
+ <td class="name"><code>position</code></td>
1821
+
1822
+
1823
+ <td class="type">
1824
+
1825
+
1826
+ <span class="param-type">Object</span>
1827
+
1828
+
1829
+
1830
+
1831
+ </td>
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+ <td class="description last"></td>
1838
+ </tr>
1839
+
1840
+
1841
+
1842
+ <tr>
1843
+
1844
+ <td class="name"><code>gridSize</code></td>
1845
+
1846
+
1847
+ <td class="type">
1848
+
1849
+
1850
+ <span class="param-type">number</span>
1851
+ |
1852
+
1853
+ <span class="param-type">null</span>
1854
+
1855
+
1856
+
1857
+
1858
+ </td>
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+ <td class="description last"><p>Grid cell size (single number for both axes)</p></td>
1865
+ </tr>
1866
+
1867
+
1868
+ </tbody>
1869
+ </table>
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+ </article>
1896
+
1897
+ </section>
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+ </div>
1905
+
1906
+ <br class="clear">
1907
+
1908
+ <footer>
1909
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Apr 12 2026 22:18:33 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1910
+ </footer>
1911
+
1912
+ <script>prettyPrint();</script>
1913
+ <script src="scripts/polyfill.js"></script>
1914
+ <script src="scripts/linenumber.js"></script>
1915
+
1916
+
1917
+
1918
+ </body>
1919
+ </html>