@g9tm/lynxcontrols-graph 0.0.0-stage → 2.9.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.
@@ -0,0 +1,981 @@
1
+ {
2
+ "catalogVersion": 1,
3
+ "package": "@g9tm/lynxcontrols-graph",
4
+ "version": "2.9.0",
5
+ "generatedBy": "node scripts/check-docs.mjs --write",
6
+ "components": [
7
+ {
8
+ "id": "graph.graph.G9GraphCanvas",
9
+ "export": "G9GraphCanvas",
10
+ "from": "@g9tm/lynxcontrols-graph",
11
+ "kind": "component",
12
+ "family": "graph",
13
+ "summary": "A node graph editor: app-drawn cards at app-given positions, edges between their ports, lanes behind them.",
14
+ "since": null,
15
+ "props": [
16
+ {
17
+ "name": "animateActive",
18
+ "type": {
19
+ "kind": "boolean"
20
+ },
21
+ "required": false,
22
+ "default": true,
23
+ "serializable": true,
24
+ "role": "behaviour",
25
+ "doc": "Active edges' dashes move (off with reduced motion). Default true."
26
+ },
27
+ {
28
+ "name": "className",
29
+ "type": {
30
+ "kind": "string"
31
+ },
32
+ "required": false,
33
+ "serializable": true,
34
+ "role": "appearance"
35
+ },
36
+ {
37
+ "name": "controls",
38
+ "type": {
39
+ "kind": "boolean"
40
+ },
41
+ "required": false,
42
+ "default": true,
43
+ "serializable": true,
44
+ "role": "behaviour",
45
+ "doc": "Zoom in / out / fit buttons at the bottom end. Default true."
46
+ },
47
+ {
48
+ "name": "cullMargin",
49
+ "type": {
50
+ "kind": "number"
51
+ },
52
+ "required": false,
53
+ "default": 0.5,
54
+ "serializable": true,
55
+ "role": "appearance",
56
+ "doc": "How much off screen is still drawn, as a share of the viewport on each side. Default 0.5."
57
+ },
58
+ {
59
+ "name": "curvature",
60
+ "type": {
61
+ "kind": "number"
62
+ },
63
+ "required": false,
64
+ "default": 0.5,
65
+ "serializable": true,
66
+ "role": "behaviour",
67
+ "doc": "Edge curvature 0..1. Default 0.5."
68
+ },
69
+ {
70
+ "name": "defaultSelection",
71
+ "type": {
72
+ "kind": "array",
73
+ "items": {
74
+ "kind": "string"
75
+ }
76
+ },
77
+ "required": false,
78
+ "serializable": true,
79
+ "role": "behaviour"
80
+ },
81
+ {
82
+ "name": "defaultView",
83
+ "type": {
84
+ "kind": "object",
85
+ "fields": [
86
+ {
87
+ "name": "zoom",
88
+ "required": true,
89
+ "type": {
90
+ "kind": "number"
91
+ },
92
+ "serializable": true
93
+ },
94
+ {
95
+ "name": "x",
96
+ "required": true,
97
+ "type": {
98
+ "kind": "number"
99
+ },
100
+ "serializable": true
101
+ },
102
+ {
103
+ "name": "y",
104
+ "required": true,
105
+ "type": {
106
+ "kind": "number"
107
+ },
108
+ "serializable": true
109
+ }
110
+ ]
111
+ },
112
+ "required": false,
113
+ "serializable": true,
114
+ "role": "behaviour"
115
+ },
116
+ {
117
+ "name": "edges",
118
+ "type": {
119
+ "kind": "array",
120
+ "items": {
121
+ "kind": "object",
122
+ "fields": [
123
+ {
124
+ "name": "id",
125
+ "required": true,
126
+ "type": {
127
+ "kind": "string"
128
+ },
129
+ "serializable": true
130
+ },
131
+ {
132
+ "name": "from",
133
+ "required": true,
134
+ "type": {
135
+ "kind": "unknown",
136
+ "text": "G9GraphEnd"
137
+ },
138
+ "serializable": false
139
+ },
140
+ {
141
+ "name": "to",
142
+ "required": true,
143
+ "type": {
144
+ "kind": "unknown",
145
+ "text": "G9GraphEnd"
146
+ },
147
+ "serializable": false
148
+ },
149
+ {
150
+ "name": "label",
151
+ "required": false,
152
+ "type": {
153
+ "kind": "string"
154
+ },
155
+ "serializable": true
156
+ },
157
+ {
158
+ "name": "style",
159
+ "required": false,
160
+ "type": {
161
+ "kind": "enum",
162
+ "values": [
163
+ "solid",
164
+ "active",
165
+ "dashed"
166
+ ]
167
+ },
168
+ "serializable": true
169
+ },
170
+ {
171
+ "name": "color",
172
+ "required": false,
173
+ "type": {
174
+ "kind": "color"
175
+ },
176
+ "serializable": true
177
+ },
178
+ {
179
+ "name": "width",
180
+ "required": false,
181
+ "type": {
182
+ "kind": "number"
183
+ },
184
+ "serializable": true
185
+ }
186
+ ]
187
+ }
188
+ },
189
+ "required": false,
190
+ "serializable": false,
191
+ "role": "behaviour"
192
+ },
193
+ {
194
+ "name": "groups",
195
+ "type": {
196
+ "kind": "array",
197
+ "items": {
198
+ "kind": "object",
199
+ "fields": [
200
+ {
201
+ "name": "id",
202
+ "required": true,
203
+ "type": {
204
+ "kind": "string"
205
+ },
206
+ "serializable": true
207
+ },
208
+ {
209
+ "name": "title",
210
+ "required": false,
211
+ "type": {
212
+ "kind": "string"
213
+ },
214
+ "serializable": true
215
+ },
216
+ {
217
+ "name": "x",
218
+ "required": true,
219
+ "type": {
220
+ "kind": "number"
221
+ },
222
+ "serializable": true
223
+ },
224
+ {
225
+ "name": "y",
226
+ "required": true,
227
+ "type": {
228
+ "kind": "number"
229
+ },
230
+ "serializable": true
231
+ },
232
+ {
233
+ "name": "width",
234
+ "required": true,
235
+ "type": {
236
+ "kind": "number"
237
+ },
238
+ "serializable": true
239
+ },
240
+ {
241
+ "name": "height",
242
+ "required": true,
243
+ "type": {
244
+ "kind": "number"
245
+ },
246
+ "serializable": true
247
+ },
248
+ {
249
+ "name": "color",
250
+ "required": false,
251
+ "type": {
252
+ "kind": "color"
253
+ },
254
+ "serializable": true
255
+ }
256
+ ]
257
+ }
258
+ },
259
+ "required": false,
260
+ "serializable": true,
261
+ "role": "behaviour"
262
+ },
263
+ {
264
+ "name": "handleRef",
265
+ "type": {
266
+ "kind": "object",
267
+ "fields": [
268
+ {
269
+ "name": "current",
270
+ "required": true,
271
+ "type": {
272
+ "kind": "object",
273
+ "fields": [
274
+ {
275
+ "name": "fit",
276
+ "required": true,
277
+ "type": {
278
+ "kind": "event",
279
+ "payload": null
280
+ },
281
+ "serializable": false
282
+ },
283
+ {
284
+ "name": "zoomIn",
285
+ "required": true,
286
+ "type": {
287
+ "kind": "event",
288
+ "payload": null
289
+ },
290
+ "serializable": false
291
+ },
292
+ {
293
+ "name": "zoomOut",
294
+ "required": true,
295
+ "type": {
296
+ "kind": "event",
297
+ "payload": null
298
+ },
299
+ "serializable": false
300
+ },
301
+ {
302
+ "name": "setView",
303
+ "required": true,
304
+ "type": {
305
+ "kind": "event",
306
+ "payload": "view: G9GraphView"
307
+ },
308
+ "serializable": false
309
+ },
310
+ {
311
+ "name": "centerOn",
312
+ "required": true,
313
+ "type": {
314
+ "kind": "event",
315
+ "payload": "id: string"
316
+ },
317
+ "serializable": false
318
+ },
319
+ {
320
+ "name": "getView",
321
+ "required": true,
322
+ "type": {
323
+ "kind": "event",
324
+ "payload": null,
325
+ "returns": "G9GraphView"
326
+ },
327
+ "serializable": false
328
+ }
329
+ ]
330
+ },
331
+ "serializable": false
332
+ }
333
+ ]
334
+ },
335
+ "required": false,
336
+ "serializable": false,
337
+ "role": "behaviour"
338
+ },
339
+ {
340
+ "name": "id",
341
+ "type": {
342
+ "kind": "string"
343
+ },
344
+ "required": false,
345
+ "serializable": true,
346
+ "role": "identity"
347
+ },
348
+ {
349
+ "name": "keyboard",
350
+ "type": {
351
+ "kind": "enum",
352
+ "values": [
353
+ "auto",
354
+ "always",
355
+ "off"
356
+ ]
357
+ },
358
+ "required": false,
359
+ "serializable": true,
360
+ "role": "behaviour",
361
+ "doc": "Keyboard: `'auto'` (default) after a press inside the canvas until Escape clears it; `'always'`; `'off'`."
362
+ },
363
+ {
364
+ "name": "labels",
365
+ "type": {
366
+ "kind": "object",
367
+ "fields": [
368
+ {
369
+ "name": "zoomIn",
370
+ "required": false,
371
+ "type": {
372
+ "kind": "string"
373
+ },
374
+ "serializable": true
375
+ },
376
+ {
377
+ "name": "zoomOut",
378
+ "required": false,
379
+ "type": {
380
+ "kind": "string"
381
+ },
382
+ "serializable": true
383
+ },
384
+ {
385
+ "name": "fit",
386
+ "required": false,
387
+ "type": {
388
+ "kind": "string"
389
+ },
390
+ "serializable": true
391
+ }
392
+ ]
393
+ },
394
+ "required": false,
395
+ "serializable": true,
396
+ "role": "behaviour"
397
+ },
398
+ {
399
+ "name": "maxZoom",
400
+ "type": {
401
+ "kind": "number"
402
+ },
403
+ "required": false,
404
+ "serializable": true,
405
+ "role": "behaviour"
406
+ },
407
+ {
408
+ "name": "minZoom",
409
+ "type": {
410
+ "kind": "number"
411
+ },
412
+ "required": false,
413
+ "default": 0.1,
414
+ "serializable": true,
415
+ "role": "behaviour",
416
+ "doc": "Default 0.1 and 2.5."
417
+ },
418
+ {
419
+ "name": "nodes",
420
+ "type": {
421
+ "kind": "array",
422
+ "items": {
423
+ "kind": "unknown",
424
+ "text": "G9GraphNode"
425
+ }
426
+ },
427
+ "required": true,
428
+ "serializable": false,
429
+ "role": "behaviour"
430
+ },
431
+ {
432
+ "name": "onActivate",
433
+ "type": {
434
+ "kind": "event",
435
+ "payload": "id: string"
436
+ },
437
+ "required": false,
438
+ "serializable": false,
439
+ "role": "event",
440
+ "doc": "Enter on the focused node, or a double click."
441
+ },
442
+ {
443
+ "name": "onContextMenu",
444
+ "type": {
445
+ "kind": "event",
446
+ "payload": "event: G9GraphContextMenuEvent"
447
+ },
448
+ "required": false,
449
+ "serializable": false,
450
+ "role": "event",
451
+ "doc": "Right click, long press, the context-menu key, Shift+F10."
452
+ },
453
+ {
454
+ "name": "onDelete",
455
+ "type": {
456
+ "kind": "event",
457
+ "payload": "ids: string[]"
458
+ },
459
+ "required": false,
460
+ "serializable": false,
461
+ "role": "event",
462
+ "doc": "Delete / Backspace with a selection."
463
+ },
464
+ {
465
+ "name": "onDrop",
466
+ "type": {
467
+ "kind": "event",
468
+ "payload": "event: G9GraphDropEvent"
469
+ },
470
+ "required": false,
471
+ "serializable": false,
472
+ "role": "event",
473
+ "doc": "An external drag (`G9DragSource`) dropped on a node whose `acceptsDrop` took it."
474
+ },
475
+ {
476
+ "name": "onEdgePress",
477
+ "type": {
478
+ "kind": "event",
479
+ "payload": "id: string"
480
+ },
481
+ "required": false,
482
+ "serializable": false,
483
+ "role": "event",
484
+ "doc": "A tap on an edge's label."
485
+ },
486
+ {
487
+ "name": "onMove",
488
+ "type": {
489
+ "kind": "event",
490
+ "payload": "id: string, x: number, y: number"
491
+ },
492
+ "required": false,
493
+ "serializable": false,
494
+ "role": "event",
495
+ "doc": "A node is being dragged (its primary node, live). Update positions in `onMoveEnd`."
496
+ },
497
+ {
498
+ "name": "onMoveEnd",
499
+ "type": {
500
+ "kind": "event",
501
+ "payload": "moves: readonly { readonly id: string; readonly x: number; readonly y: number; }[]"
502
+ },
503
+ "required": false,
504
+ "serializable": false,
505
+ "role": "event",
506
+ "doc": "Nodes were dropped where they now are (every moved node with its new top-left)."
507
+ },
508
+ {
509
+ "name": "onSelectionChange",
510
+ "type": {
511
+ "kind": "event",
512
+ "payload": "ids: string[]"
513
+ },
514
+ "required": false,
515
+ "serializable": false,
516
+ "role": "event"
517
+ },
518
+ {
519
+ "name": "onViewChange",
520
+ "type": {
521
+ "kind": "event",
522
+ "payload": "view: G9GraphView"
523
+ },
524
+ "required": false,
525
+ "serializable": false,
526
+ "role": "event"
527
+ },
528
+ {
529
+ "name": "renderNode",
530
+ "type": {
531
+ "kind": "render",
532
+ "receives": [
533
+ {
534
+ "name": "node",
535
+ "type": "N"
536
+ },
537
+ {
538
+ "name": "state",
539
+ "type": "G9GraphNodeState"
540
+ }
541
+ ],
542
+ "returns": "ReactNode"
543
+ },
544
+ "required": true,
545
+ "serializable": false,
546
+ "role": "slot",
547
+ "doc": "Draws a card (any content) inside the node's box. Pass a stable function (`useCallback`) for fast re-renders."
548
+ },
549
+ {
550
+ "name": "selection",
551
+ "type": {
552
+ "kind": "array",
553
+ "items": {
554
+ "kind": "string"
555
+ }
556
+ },
557
+ "required": false,
558
+ "serializable": true,
559
+ "role": "behaviour",
560
+ "doc": "The selection (controlled) and its start."
561
+ },
562
+ {
563
+ "name": "snap",
564
+ "type": {
565
+ "kind": "number"
566
+ },
567
+ "required": false,
568
+ "serializable": true,
569
+ "role": "behaviour",
570
+ "doc": "A dragged node snaps to this grid (world units)."
571
+ },
572
+ {
573
+ "name": "view",
574
+ "type": {
575
+ "kind": "object",
576
+ "fields": [
577
+ {
578
+ "name": "zoom",
579
+ "required": true,
580
+ "type": {
581
+ "kind": "number"
582
+ },
583
+ "serializable": true
584
+ },
585
+ {
586
+ "name": "x",
587
+ "required": true,
588
+ "type": {
589
+ "kind": "number"
590
+ },
591
+ "serializable": true
592
+ },
593
+ {
594
+ "name": "y",
595
+ "required": true,
596
+ "type": {
597
+ "kind": "number"
598
+ },
599
+ "serializable": true
600
+ }
601
+ ]
602
+ },
603
+ "required": false,
604
+ "serializable": true,
605
+ "role": "behaviour",
606
+ "doc": "The view (controlled) and its start (uncontrolled; default: fit to the content once it has a size)."
607
+ },
608
+ {
609
+ "name": "wheel",
610
+ "type": {
611
+ "kind": "enum",
612
+ "values": [
613
+ "auto",
614
+ "zoom",
615
+ "pan"
616
+ ]
617
+ },
618
+ "required": false,
619
+ "serializable": true,
620
+ "role": "behaviour",
621
+ "doc": "What the mouse wheel does: `'auto'` (default) zooms with a wheel and pans with a two-finger trackpad scroll (a horizontal delta or small steps), `'zoom'` always zooms, `'pan'` always pans."
622
+ }
623
+ ],
624
+ "anchor": null,
625
+ "accessibility": {
626
+ "labelFrom": [],
627
+ "labelRequired": false
628
+ },
629
+ "targets": {
630
+ "android": "pending",
631
+ "ios": "pending",
632
+ "windows": "pending",
633
+ "macos": "pending",
634
+ "web": "pending"
635
+ },
636
+ "evidence": {
637
+ "ledger": [
638
+ "N-175",
639
+ "N-178"
640
+ ]
641
+ },
642
+ "tokens": [
643
+ "OnSurfaceVariant",
644
+ "OutlineVariant",
645
+ "Primary",
646
+ "Surface",
647
+ "SurfaceContainer",
648
+ "SurfaceContainerHigh",
649
+ "SurfaceContainerLow",
650
+ "Tertiary",
651
+ "TertiaryContainer"
652
+ ],
653
+ "example": {
654
+ "line": "<G9GraphCanvas nodes={nodes} renderNode={renderNode} />",
655
+ "from": "generated"
656
+ }
657
+ }
658
+ ],
659
+ "exports": [
660
+ {
661
+ "id": "graph.core.bezierPoint",
662
+ "export": "bezierPoint",
663
+ "from": "@g9tm/lynxcontrols-graph/core",
664
+ "kind": "function",
665
+ "signature": "(a: G9GraphPoint, c1: G9GraphPoint, c2: G9GraphPoint, b: G9GraphPoint, t: number): G9GraphPoint",
666
+ "summary": "The bezier's point at t (the label sits at t = 0.5)."
667
+ },
668
+ {
669
+ "id": "graph.core.clampZoom",
670
+ "export": "clampZoom",
671
+ "from": "@g9tm/lynxcontrols-graph/core",
672
+ "kind": "function",
673
+ "signature": "(zoom: number, min: number, max: number): number",
674
+ "summary": "Keeps `zoom` within [min, max]."
675
+ },
676
+ {
677
+ "id": "graph.core.contentBounds",
678
+ "export": "contentBounds",
679
+ "from": "@g9tm/lynxcontrols-graph/core",
680
+ "kind": "function",
681
+ "signature": "(nodes: readonly G9GraphRect[], groups?: readonly G9GraphRect[]): G9GraphRect | null",
682
+ "summary": "The rect around every node and group; null when there is nothing."
683
+ },
684
+ {
685
+ "id": "graph.core.cullGraph",
686
+ "export": "cullGraph",
687
+ "from": "@g9tm/lynxcontrols-graph/core",
688
+ "kind": "function",
689
+ "signature": "(nodes: readonly G9GraphNode[], edges: readonly G9EdgeGeometry[], visible: G9GraphRect): { readonly nodes: ReadonlySet<string>; readonly edges: ReadonlySet<string>; }",
690
+ "summary": "What is drawn of the graph in the visible world: node ids and edges whose box meets it."
691
+ },
692
+ {
693
+ "id": "graph.core.edgeCurve",
694
+ "export": "edgeCurve",
695
+ "from": "@g9tm/lynxcontrols-graph/core",
696
+ "kind": "function",
697
+ "signature": "(a: G9GraphPoint, b: G9GraphPoint, aSide?: \"left\" | \"right\", bSide?: \"left\" | \"right\", curvature?: number): { readonly c1: G9GraphPoint; readonly c2: G9GraphPoint; }",
698
+ "summary": "The bezier of an edge leaving `a` to the right and entering `b` from the left (both sides honoured)."
699
+ },
700
+ {
701
+ "id": "graph.core.edgeGeometry",
702
+ "export": "edgeGeometry",
703
+ "from": "@g9tm/lynxcontrols-graph/core",
704
+ "kind": "function",
705
+ "signature": "(edge: G9GraphEdge, byId: ReadonlyMap<string, G9GraphNode>, curvature?: number): G9EdgeGeometry | null",
706
+ "summary": "Lays out an edge between its nodes."
707
+ },
708
+ {
709
+ "id": "graph.core.edgePathData",
710
+ "export": "edgePathData",
711
+ "from": "@g9tm/lynxcontrols-graph/core",
712
+ "kind": "function",
713
+ "signature": "(a: G9GraphPoint, b: G9GraphPoint, c1: G9GraphPoint, c2: G9GraphPoint): string",
714
+ "summary": "The SVG path data of an edge's bezier."
715
+ },
716
+ {
717
+ "id": "graph.core.fitView",
718
+ "export": "fitView",
719
+ "from": "@g9tm/lynxcontrols-graph/core",
720
+ "kind": "function",
721
+ "signature": "(bounds: G9GraphRect | null, width: number, height: number, options?: { readonly padding?: number; readonly minZoom?: number; readonly maxZoom?: number; }): G9GraphView",
722
+ "summary": "The view that shows `bounds` whole inside a viewport of `width` × `height`, centred, with `padding` (screen px)."
723
+ },
724
+ {
725
+ "id": "graph.core.G9_GRAPH_IDENTITY",
726
+ "export": "G9_GRAPH_IDENTITY",
727
+ "from": "@g9tm/lynxcontrols-graph/core",
728
+ "kind": "constant",
729
+ "signature": "G9GraphView",
730
+ "summary": "The identity view."
731
+ },
732
+ {
733
+ "id": "graph.core.G9EdgeGeometry",
734
+ "export": "G9EdgeGeometry",
735
+ "from": "@g9tm/lynxcontrols-graph/core",
736
+ "kind": "interface",
737
+ "signature": "G9EdgeGeometry",
738
+ "summary": "An edge laid out: its path, label point and bounding rect, or null when an end's node is missing."
739
+ },
740
+ {
741
+ "id": "graph.graph.G9GraphCanvasHandle",
742
+ "export": "G9GraphCanvasHandle",
743
+ "from": "@g9tm/lynxcontrols-graph",
744
+ "kind": "interface",
745
+ "signature": "G9GraphCanvasHandle",
746
+ "summary": "Driving the canvas from code (`handleRef`)."
747
+ },
748
+ {
749
+ "id": "graph.graph.G9GraphCanvasProps",
750
+ "export": "G9GraphCanvasProps",
751
+ "from": "@g9tm/lynxcontrols-graph",
752
+ "kind": "interface",
753
+ "signature": "G9GraphCanvasProps<N>",
754
+ "summary": "Props of `G9GraphCanvas`."
755
+ },
756
+ {
757
+ "id": "graph.graph.G9GraphContextMenuEvent",
758
+ "export": "G9GraphContextMenuEvent",
759
+ "from": "@g9tm/lynxcontrols-graph",
760
+ "kind": "interface",
761
+ "signature": "G9GraphContextMenuEvent",
762
+ "summary": "A context-menu request: the target, the pointer in the LynxView's space (for `G9Menu` `anchorPoint`) and in the world."
763
+ },
764
+ {
765
+ "id": "graph.core.G9GraphDirection",
766
+ "export": "G9GraphDirection",
767
+ "from": "@g9tm/lynxcontrols-graph/core",
768
+ "kind": "type",
769
+ "signature": "G9GraphDirection",
770
+ "summary": "An arrow key's direction."
771
+ },
772
+ {
773
+ "id": "graph.graph.G9GraphDropEvent",
774
+ "export": "G9GraphDropEvent",
775
+ "from": "@g9tm/lynxcontrols-graph",
776
+ "kind": "interface",
777
+ "signature": "G9GraphDropEvent",
778
+ "summary": "An external drop on a node."
779
+ },
780
+ {
781
+ "id": "graph.core.G9GraphEdge",
782
+ "export": "G9GraphEdge",
783
+ "from": "@g9tm/lynxcontrols-graph/core",
784
+ "kind": "interface",
785
+ "signature": "G9GraphEdge",
786
+ "summary": "An edge between two node ports."
787
+ },
788
+ {
789
+ "id": "graph.core.G9GraphEdgeStyle",
790
+ "export": "G9GraphEdgeStyle",
791
+ "from": "@g9tm/lynxcontrols-graph/core",
792
+ "kind": "type",
793
+ "signature": "G9GraphEdgeStyle",
794
+ "summary": "How an edge is drawn."
795
+ },
796
+ {
797
+ "id": "graph.core.G9GraphEnd",
798
+ "export": "G9GraphEnd",
799
+ "from": "@g9tm/lynxcontrols-graph/core",
800
+ "kind": "interface",
801
+ "signature": "G9GraphEnd",
802
+ "summary": "An end of an edge: a node, and one of its ports (default: the right side's middle for a source, left for a target)."
803
+ },
804
+ {
805
+ "id": "graph.core.G9GraphGroup",
806
+ "export": "G9GraphGroup",
807
+ "from": "@g9tm/lynxcontrols-graph/core",
808
+ "kind": "interface",
809
+ "signature": "G9GraphGroup",
810
+ "summary": "A titled background area (a lane, a pillar) at an app-given rect."
811
+ },
812
+ {
813
+ "id": "graph.graph.G9GraphLabels",
814
+ "export": "G9GraphLabels",
815
+ "from": "@g9tm/lynxcontrols-graph",
816
+ "kind": "interface",
817
+ "signature": "G9GraphLabels",
818
+ "summary": "What the zoom buttons say (and the screen reader reads)."
819
+ },
820
+ {
821
+ "id": "graph.core.G9GraphNode",
822
+ "export": "G9GraphNode",
823
+ "from": "@g9tm/lynxcontrols-graph/core",
824
+ "kind": "interface",
825
+ "signature": "G9GraphNode",
826
+ "summary": "A node as the canvas needs it: where, how big, its ports. The app draws its card."
827
+ },
828
+ {
829
+ "id": "graph.graph.G9GraphNodeState",
830
+ "export": "G9GraphNodeState",
831
+ "from": "@g9tm/lynxcontrols-graph",
832
+ "kind": "interface",
833
+ "signature": "G9GraphNodeState",
834
+ "summary": "What a card is told while it is drawn."
835
+ },
836
+ {
837
+ "id": "graph.core.G9GraphPoint",
838
+ "export": "G9GraphPoint",
839
+ "from": "@g9tm/lynxcontrols-graph/core",
840
+ "kind": "interface",
841
+ "signature": "G9GraphPoint",
842
+ "summary": "A point or a size in world units (the graph's own space, before the zoom)."
843
+ },
844
+ {
845
+ "id": "graph.core.G9GraphPort",
846
+ "export": "G9GraphPort",
847
+ "from": "@g9tm/lynxcontrols-graph/core",
848
+ "kind": "interface",
849
+ "signature": "G9GraphPort",
850
+ "summary": "A port on a node's side; `offset` 0..1 along the side (default spread evenly among that side's ports)."
851
+ },
852
+ {
853
+ "id": "graph.core.G9GraphRect",
854
+ "export": "G9GraphRect",
855
+ "from": "@g9tm/lynxcontrols-graph/core",
856
+ "kind": "interface",
857
+ "signature": "G9GraphRect",
858
+ "summary": "A rect in world units."
859
+ },
860
+ {
861
+ "id": "graph.graph.G9GraphTarget",
862
+ "export": "G9GraphTarget",
863
+ "from": "@g9tm/lynxcontrols-graph",
864
+ "kind": "type",
865
+ "signature": "G9GraphTarget",
866
+ "summary": "Where a context menu was asked for."
867
+ },
868
+ {
869
+ "id": "graph.core.G9GraphView",
870
+ "export": "G9GraphView",
871
+ "from": "@g9tm/lynxcontrols-graph/core",
872
+ "kind": "interface",
873
+ "signature": "G9GraphView",
874
+ "summary": "How the world is shown: screen = world × zoom + (x, y)."
875
+ },
876
+ {
877
+ "id": "graph.core.G9LayeredLayoutOptions",
878
+ "export": "G9LayeredLayoutOptions",
879
+ "from": "@g9tm/lynxcontrols-graph/core",
880
+ "kind": "interface",
881
+ "signature": "G9LayeredLayoutOptions",
882
+ "summary": "Options of `layeredLayout`."
883
+ },
884
+ {
885
+ "id": "graph.core.intersects",
886
+ "export": "intersects",
887
+ "from": "@g9tm/lynxcontrols-graph/core",
888
+ "kind": "function",
889
+ "signature": "(a: G9GraphRect, b: G9GraphRect): boolean",
890
+ "summary": "True when two rects overlap (touching counts)."
891
+ },
892
+ {
893
+ "id": "graph.core.layeredLayout",
894
+ "export": "layeredLayout",
895
+ "from": "@g9tm/lynxcontrols-graph/core",
896
+ "kind": "function",
897
+ "signature": "(nodes: readonly Pick<G9GraphNode, \"id\" | \"height\" | \"width\">[], edges: readonly Pick<G9GraphEdge, \"from\" | \"to\">[], options?: G9LayeredLayoutOptions): Map<string, G9GraphPoint>",
898
+ "summary": "A simple layered auto-layout (longest-path layers, barycentre ordering): sources first, each node one layer past its deepest predecessor; cycles are broken at the edge that closes them. Answers each node's top-left; the app applies it."
899
+ },
900
+ {
901
+ "id": "graph.core.nextSelection",
902
+ "export": "nextSelection",
903
+ "from": "@g9tm/lynxcontrols-graph/core",
904
+ "kind": "function",
905
+ "signature": "(selection: readonly string[], id: string | null, additive: boolean): string[]",
906
+ "summary": "The selection after a click on `id` (null: on empty space). `additive` (Shift / Ctrl / ⌘) toggles it."
907
+ },
908
+ {
909
+ "id": "graph.core.nodeAt",
910
+ "export": "nodeAt",
911
+ "from": "@g9tm/lynxcontrols-graph/core",
912
+ "kind": "function",
913
+ "signature": "(nodes: readonly G9GraphNode[], wx: number, wy: number): G9GraphNode | null",
914
+ "summary": "The topmost node (the last drawn) under a world point, or null."
915
+ },
916
+ {
917
+ "id": "graph.core.nodeInDirection",
918
+ "export": "nodeInDirection",
919
+ "from": "@g9tm/lynxcontrols-graph/core",
920
+ "kind": "function",
921
+ "signature": "(nodes: readonly G9GraphNode[], from: string | null, dir: G9GraphDirection): string | null",
922
+ "summary": "The node an arrow moves the focus to: the nearest centre in that direction, weighing the sideways distance double; null when there is none that way (or no node is focused and there are none)."
923
+ },
924
+ {
925
+ "id": "graph.core.panBy",
926
+ "export": "panBy",
927
+ "from": "@g9tm/lynxcontrols-graph/core",
928
+ "kind": "function",
929
+ "signature": "(view: G9GraphView, dx: number, dy: number): G9GraphView",
930
+ "summary": "Moves the view by a screen delta."
931
+ },
932
+ {
933
+ "id": "graph.core.portPoint",
934
+ "export": "portPoint",
935
+ "from": "@g9tm/lynxcontrols-graph/core",
936
+ "kind": "function",
937
+ "signature": "(node: G9GraphNode, end: G9GraphEnd | undefined, role: \"from\" | \"to\"): G9GraphPoint",
938
+ "summary": "Where an edge end sits: its port's point on the node's side, in world units."
939
+ },
940
+ {
941
+ "id": "graph.core.snapTo",
942
+ "export": "snapTo",
943
+ "from": "@g9tm/lynxcontrols-graph/core",
944
+ "kind": "function",
945
+ "signature": "(v: number, grid: number | undefined): number",
946
+ "summary": "Rounds to the grid (no grid: unchanged)."
947
+ },
948
+ {
949
+ "id": "graph.core.toScreen",
950
+ "export": "toScreen",
951
+ "from": "@g9tm/lynxcontrols-graph/core",
952
+ "kind": "function",
953
+ "signature": "(view: G9GraphView, wx: number, wy: number): G9GraphPoint",
954
+ "summary": "The screen point (relative to the canvas) of a world point."
955
+ },
956
+ {
957
+ "id": "graph.core.toWorld",
958
+ "export": "toWorld",
959
+ "from": "@g9tm/lynxcontrols-graph/core",
960
+ "kind": "function",
961
+ "signature": "(view: G9GraphView, sx: number, sy: number): G9GraphPoint",
962
+ "summary": "The world point under a screen point (relative to the canvas)."
963
+ },
964
+ {
965
+ "id": "graph.core.visibleWorld",
966
+ "export": "visibleWorld",
967
+ "from": "@g9tm/lynxcontrols-graph/core",
968
+ "kind": "function",
969
+ "signature": "(view: G9GraphView, width: number, height: number, margin?: number): G9GraphRect",
970
+ "summary": "The world rect the viewport shows, grown by `margin` (a share of the viewport on each side) for culling."
971
+ },
972
+ {
973
+ "id": "graph.core.zoomAt",
974
+ "export": "zoomAt",
975
+ "from": "@g9tm/lynxcontrols-graph/core",
976
+ "kind": "function",
977
+ "signature": "(view: G9GraphView, factor: number, sx: number, sy: number, min: number, max: number): G9GraphView",
978
+ "summary": "Zooms by `factor` keeping the world point under the screen point (sx, sy) still: wheel and pinch around the pointer."
979
+ }
980
+ ]
981
+ }