@g9tm/lynxcontrols-canvas 0.0.0-stage → 2.5.8

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 (60) hide show
  1. package/README.md +39 -2
  2. package/catalog/cards/G9Canvas.md +17 -0
  3. package/catalog/cards/G9CanvasStylePanel.md +13 -0
  4. package/catalog/catalog.json +2334 -0
  5. package/catalog/index.md +6 -0
  6. package/dist/.tsbuildinfo +1 -0
  7. package/dist/board-controller.d.ts +161 -0
  8. package/dist/board-controller.d.ts.map +1 -0
  9. package/dist/board-controller.jsx +812 -0
  10. package/dist/board-model.d.ts +42 -0
  11. package/dist/board-model.d.ts.map +1 -0
  12. package/dist/board-model.jsx +66 -0
  13. package/dist/canvas.css +81 -0
  14. package/dist/canvas.css.map +1 -0
  15. package/dist/canvas.d.ts +144 -0
  16. package/dist/canvas.d.ts.map +1 -0
  17. package/dist/canvas.jsx +481 -0
  18. package/dist/element-core.d.ts +155 -0
  19. package/dist/element-core.d.ts.map +1 -0
  20. package/dist/element-core.jsx +1104 -0
  21. package/dist/export.d.ts +7 -0
  22. package/dist/export.d.ts.map +1 -0
  23. package/dist/export.jsx +75 -0
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.jsx +7 -0
  27. package/dist/observable.d.ts +5 -0
  28. package/dist/observable.d.ts.map +1 -0
  29. package/dist/observable.jsx +14 -0
  30. package/dist/protocol.d.ts +258 -0
  31. package/dist/protocol.d.ts.map +1 -0
  32. package/dist/protocol.jsx +2 -0
  33. package/dist/scene/edit.d.ts +59 -0
  34. package/dist/scene/edit.d.ts.map +1 -0
  35. package/dist/scene/edit.jsx +895 -0
  36. package/dist/scene/elements.d.ts +160 -0
  37. package/dist/scene/elements.d.ts.map +1 -0
  38. package/dist/scene/elements.jsx +392 -0
  39. package/dist/scene/geometry.d.ts +36 -0
  40. package/dist/scene/geometry.d.ts.map +1 -0
  41. package/dist/scene/geometry.jsx +367 -0
  42. package/dist/scene/index.d.ts +8 -0
  43. package/dist/scene/index.d.ts.map +1 -0
  44. package/dist/scene/index.jsx +6 -0
  45. package/dist/scene/path-data-parser.d.ts +17 -0
  46. package/dist/scene/path-data-parser.d.ts.map +1 -0
  47. package/dist/scene/path-data-parser.jsx +128 -0
  48. package/dist/scene/scene.d.ts +58 -0
  49. package/dist/scene/scene.d.ts.map +1 -0
  50. package/dist/scene/scene.jsx +169 -0
  51. package/dist/scene/shapes.d.ts +24 -0
  52. package/dist/scene/shapes.d.ts.map +1 -0
  53. package/dist/scene/shapes.jsx +807 -0
  54. package/dist/scene/types.d.ts +118 -0
  55. package/dist/scene/types.d.ts.map +1 -0
  56. package/dist/scene/types.jsx +1 -0
  57. package/dist/words.d.ts +100 -0
  58. package/dist/words.d.ts.map +1 -0
  59. package/dist/words.jsx +186 -0
  60. package/package.json +50 -4
@@ -0,0 +1,2334 @@
1
+ {
2
+ "catalogVersion": 1,
3
+ "package": "@g9tm/lynxcontrols-canvas",
4
+ "version": "2.5.8",
5
+ "generatedBy": "node scripts/check-docs.mjs --write",
6
+ "components": [
7
+ {
8
+ "id": "canvas.canvas.G9Canvas",
9
+ "export": "G9Canvas",
10
+ "from": "@g9tm/lynxcontrols-canvas",
11
+ "kind": "component",
12
+ "family": "canvas",
13
+ "summary": "A whiteboard on the host's `<g9-canvas>` (or the desktop's page).",
14
+ "since": null,
15
+ "props": [
16
+ {
17
+ "name": "accent",
18
+ "type": {
19
+ "kind": "string"
20
+ },
21
+ "required": false,
22
+ "serializable": true,
23
+ "role": "behaviour",
24
+ "doc": "Selection handles. Default Excalidraw's violet."
25
+ },
26
+ {
27
+ "name": "background",
28
+ "type": {
29
+ "kind": "color"
30
+ },
31
+ "required": false,
32
+ "serializable": true,
33
+ "role": "behaviour",
34
+ "doc": "The board's colour (light; the dark look is the element's filter). Default white."
35
+ },
36
+ {
37
+ "name": "className",
38
+ "type": {
39
+ "kind": "string"
40
+ },
41
+ "required": false,
42
+ "serializable": true,
43
+ "role": "appearance"
44
+ },
45
+ {
46
+ "name": "controller",
47
+ "type": {
48
+ "kind": "object",
49
+ "name": "BoardController"
50
+ },
51
+ "required": true,
52
+ "serializable": false,
53
+ "role": "behaviour"
54
+ },
55
+ {
56
+ "name": "dark",
57
+ "type": {
58
+ "kind": "boolean"
59
+ },
60
+ "required": false,
61
+ "serializable": true,
62
+ "role": "behaviour"
63
+ },
64
+ {
65
+ "name": "desktop",
66
+ "type": {
67
+ "kind": "object",
68
+ "fields": [
69
+ {
70
+ "name": "prepare",
71
+ "required": true,
72
+ "type": {
73
+ "kind": "event",
74
+ "payload": null,
75
+ "returns": "Promise<boolean>"
76
+ },
77
+ "serializable": false
78
+ },
79
+ {
80
+ "name": "pageUrl",
81
+ "required": true,
82
+ "type": {
83
+ "kind": "event",
84
+ "payload": "id: string",
85
+ "returns": "string | null"
86
+ },
87
+ "serializable": false
88
+ },
89
+ {
90
+ "name": "send",
91
+ "required": true,
92
+ "type": {
93
+ "kind": "event",
94
+ "payload": "id: string, message: { type: \"apply\"; json: string; } | { type: \"attrs\"; attrs: Record<string, string>; } | { type: \"export\"; params: Record<string, unknown>; }"
95
+ },
96
+ "serializable": false
97
+ },
98
+ {
99
+ "name": "onEvent",
100
+ "required": true,
101
+ "type": {
102
+ "kind": "event",
103
+ "payload": "listener: (event: { id: string; name: string; detail: unknown; }) => void",
104
+ "returns": "() => void"
105
+ },
106
+ "serializable": false
107
+ }
108
+ ]
109
+ },
110
+ "required": false,
111
+ "serializable": false,
112
+ "role": "behaviour",
113
+ "doc": "A host without the element (Lynxtron)."
114
+ },
115
+ {
116
+ "name": "editable",
117
+ "type": {
118
+ "kind": "boolean"
119
+ },
120
+ "required": true,
121
+ "serializable": true,
122
+ "role": "behaviour"
123
+ },
124
+ {
125
+ "name": "id",
126
+ "type": {
127
+ "kind": "string"
128
+ },
129
+ "required": false,
130
+ "serializable": true,
131
+ "role": "identity"
132
+ },
133
+ {
134
+ "name": "port",
135
+ "type": {
136
+ "kind": "object",
137
+ "fields": [
138
+ {
139
+ "name": "target",
140
+ "required": true,
141
+ "type": {
142
+ "kind": "object",
143
+ "fields": [
144
+ {
145
+ "name": "invoke",
146
+ "required": true,
147
+ "type": {
148
+ "kind": "event",
149
+ "payload": "options: uiMethodOptions",
150
+ "returns": "SelectorQuery"
151
+ },
152
+ "serializable": false
153
+ },
154
+ {
155
+ "name": "path",
156
+ "required": true,
157
+ "type": {
158
+ "kind": "event",
159
+ "payload": "callback: PathCallback",
160
+ "returns": "SelectorQuery"
161
+ },
162
+ "serializable": false
163
+ },
164
+ {
165
+ "name": "fields",
166
+ "required": true,
167
+ "type": {
168
+ "kind": "event",
169
+ "payload": "fields: Required<FieldsParams> extends Record<keyof T, boolean> ? T : FieldsParams, callback: (data: { [K in keyof Required<FieldsParams> as T[K] extends true ? K : never]: FieldsData[K]; } | null, status: { data: string; code: number; }) => void",
170
+ "returns": "SelectorQuery"
171
+ },
172
+ "serializable": false
173
+ },
174
+ {
175
+ "name": "animate",
176
+ "required": true,
177
+ "type": {
178
+ "kind": "event",
179
+ "payload": "animations: AnimationV2 | AnimationV2[]",
180
+ "returns": "SelectorQuery"
181
+ },
182
+ "serializable": false
183
+ },
184
+ {
185
+ "name": "playAnimation",
186
+ "required": true,
187
+ "type": {
188
+ "kind": "event",
189
+ "payload": "ids: string | string[]",
190
+ "returns": "SelectorQuery"
191
+ },
192
+ "serializable": false
193
+ },
194
+ {
195
+ "name": "pauseAnimation",
196
+ "required": true,
197
+ "type": {
198
+ "kind": "event",
199
+ "payload": "ids: string | string[]",
200
+ "returns": "SelectorQuery"
201
+ },
202
+ "serializable": false
203
+ },
204
+ {
205
+ "name": "cancelAnimation",
206
+ "required": true,
207
+ "type": {
208
+ "kind": "event",
209
+ "payload": "ids: string | string[]",
210
+ "returns": "SelectorQuery"
211
+ },
212
+ "serializable": false
213
+ },
214
+ {
215
+ "name": "setNativeProps",
216
+ "required": true,
217
+ "type": {
218
+ "kind": "event",
219
+ "payload": "nativeProps: Record<string, any>",
220
+ "returns": "SelectorQuery"
221
+ },
222
+ "serializable": false
223
+ }
224
+ ]
225
+ },
226
+ "serializable": false
227
+ },
228
+ {
229
+ "name": "desktop",
230
+ "required": true,
231
+ "type": {
232
+ "kind": "object",
233
+ "fields": [
234
+ {
235
+ "name": "id",
236
+ "required": true,
237
+ "type": {
238
+ "kind": "string"
239
+ },
240
+ "serializable": true
241
+ },
242
+ {
243
+ "name": "host",
244
+ "required": true,
245
+ "type": {
246
+ "kind": "unknown",
247
+ "text": "G9CanvasDesktopHost"
248
+ },
249
+ "serializable": false
250
+ }
251
+ ]
252
+ },
253
+ "serializable": false
254
+ },
255
+ {
256
+ "name": "exports",
257
+ "required": true,
258
+ "type": {
259
+ "kind": "object",
260
+ "name": "Map"
261
+ },
262
+ "serializable": false
263
+ },
264
+ {
265
+ "name": "send",
266
+ "required": true,
267
+ "type": {
268
+ "kind": "event",
269
+ "payload": "message: CvMessage"
270
+ },
271
+ "serializable": false
272
+ },
273
+ {
274
+ "name": "attach",
275
+ "required": true,
276
+ "type": {
277
+ "kind": "event",
278
+ "payload": "target: NodesRef | null"
279
+ },
280
+ "serializable": false
281
+ },
282
+ {
283
+ "name": "attachDesktop",
284
+ "required": true,
285
+ "type": {
286
+ "kind": "event",
287
+ "payload": "desktop: { id: string; host: G9CanvasDesktopHost; } | null"
288
+ },
289
+ "serializable": false
290
+ },
291
+ {
292
+ "name": "attached",
293
+ "required": true,
294
+ "type": {
295
+ "kind": "boolean"
296
+ },
297
+ "serializable": true
298
+ },
299
+ {
300
+ "name": "exportImage",
301
+ "required": true,
302
+ "type": {
303
+ "kind": "event",
304
+ "payload": "options: { scale?: number; padding?: number; background?: boolean; name: string; }",
305
+ "returns": "Promise<CvExportEvent>"
306
+ },
307
+ "serializable": false
308
+ },
309
+ {
310
+ "name": "exported",
311
+ "required": true,
312
+ "type": {
313
+ "kind": "event",
314
+ "payload": "event: CvExportEvent"
315
+ },
316
+ "serializable": false
317
+ }
318
+ ]
319
+ },
320
+ "required": true,
321
+ "serializable": false,
322
+ "role": "behaviour"
323
+ },
324
+ {
325
+ "name": "stroke",
326
+ "type": {
327
+ "kind": "object",
328
+ "fields": [
329
+ {
330
+ "name": "color",
331
+ "required": true,
332
+ "type": {
333
+ "kind": "color"
334
+ },
335
+ "serializable": true
336
+ },
337
+ {
338
+ "name": "width",
339
+ "required": true,
340
+ "type": {
341
+ "kind": "number"
342
+ },
343
+ "serializable": true
344
+ },
345
+ {
346
+ "name": "fill",
347
+ "required": false,
348
+ "type": {
349
+ "kind": "color"
350
+ },
351
+ "serializable": true
352
+ },
353
+ {
354
+ "name": "pressure",
355
+ "required": false,
356
+ "type": {
357
+ "kind": "boolean"
358
+ },
359
+ "serializable": true
360
+ }
361
+ ]
362
+ },
363
+ "required": true,
364
+ "serializable": true,
365
+ "role": "behaviour"
366
+ },
367
+ {
368
+ "name": "tool",
369
+ "type": {
370
+ "kind": "enum",
371
+ "values": [
372
+ "text",
373
+ "image",
374
+ "line",
375
+ "selection",
376
+ "arrow",
377
+ "diamond",
378
+ "rectangle",
379
+ "ellipse",
380
+ "frame",
381
+ "hand",
382
+ "freedraw",
383
+ "eraser",
384
+ "laser"
385
+ ]
386
+ },
387
+ "required": true,
388
+ "serializable": true,
389
+ "role": "behaviour"
390
+ }
391
+ ],
392
+ "anchor": null,
393
+ "accessibility": {
394
+ "labelFrom": [],
395
+ "labelRequired": false
396
+ },
397
+ "targets": {
398
+ "android": "unmeasured",
399
+ "ios": "unmeasured",
400
+ "windows": "unmeasured",
401
+ "macos": "unmeasured",
402
+ "web": "unmeasured"
403
+ },
404
+ "evidence": {
405
+ "ledger": []
406
+ },
407
+ "tokens": [
408
+ "OutlineVariant",
409
+ "SurfaceContainer",
410
+ "TextPrimary",
411
+ "TextSecondary"
412
+ ],
413
+ "example": {
414
+ "line": "<G9Canvas controller={controller} editable port={port} stroke={stroke} tool=\"text\" />",
415
+ "from": "generated"
416
+ }
417
+ },
418
+ {
419
+ "id": "canvas.canvas.G9CanvasStylePanel",
420
+ "export": "G9CanvasStylePanel",
421
+ "from": "@g9tm/lynxcontrols-canvas",
422
+ "kind": "component",
423
+ "family": "canvas",
424
+ "summary": "The style of the tool in hand or the selection: colours, fill, stroke, sloppiness, edges, text, arrows, layers.",
425
+ "since": null,
426
+ "props": [
427
+ {
428
+ "name": "controller",
429
+ "type": {
430
+ "kind": "object",
431
+ "name": "BoardController"
432
+ },
433
+ "required": true,
434
+ "serializable": false,
435
+ "role": "behaviour"
436
+ },
437
+ {
438
+ "name": "id",
439
+ "type": {
440
+ "kind": "string"
441
+ },
442
+ "required": false,
443
+ "serializable": true,
444
+ "role": "identity"
445
+ },
446
+ {
447
+ "name": "selected",
448
+ "type": {
449
+ "kind": "array",
450
+ "items": {
451
+ "kind": "object",
452
+ "name": "ExElement"
453
+ }
454
+ },
455
+ "required": true,
456
+ "serializable": false,
457
+ "role": "state"
458
+ },
459
+ {
460
+ "name": "style",
461
+ "type": {
462
+ "kind": "object",
463
+ "fields": [
464
+ {
465
+ "name": "strokeColor",
466
+ "required": true,
467
+ "type": {
468
+ "kind": "color"
469
+ },
470
+ "serializable": true
471
+ },
472
+ {
473
+ "name": "backgroundColor",
474
+ "required": true,
475
+ "type": {
476
+ "kind": "color"
477
+ },
478
+ "serializable": true
479
+ },
480
+ {
481
+ "name": "fillStyle",
482
+ "required": true,
483
+ "type": {
484
+ "kind": "enum",
485
+ "values": [
486
+ "solid",
487
+ "hachure",
488
+ "cross-hatch",
489
+ "zigzag"
490
+ ]
491
+ },
492
+ "serializable": true
493
+ },
494
+ {
495
+ "name": "strokeWidth",
496
+ "required": true,
497
+ "type": {
498
+ "kind": "number"
499
+ },
500
+ "serializable": true
501
+ },
502
+ {
503
+ "name": "strokeStyle",
504
+ "required": true,
505
+ "type": {
506
+ "kind": "enum",
507
+ "values": [
508
+ "solid",
509
+ "dashed",
510
+ "dotted"
511
+ ]
512
+ },
513
+ "serializable": true
514
+ },
515
+ {
516
+ "name": "roughness",
517
+ "required": true,
518
+ "type": {
519
+ "kind": "number"
520
+ },
521
+ "serializable": true
522
+ },
523
+ {
524
+ "name": "opacity",
525
+ "required": true,
526
+ "type": {
527
+ "kind": "number"
528
+ },
529
+ "serializable": true
530
+ },
531
+ {
532
+ "name": "roundness",
533
+ "required": true,
534
+ "type": {
535
+ "kind": "enum",
536
+ "values": [
537
+ "round",
538
+ "sharp"
539
+ ]
540
+ },
541
+ "serializable": true
542
+ },
543
+ {
544
+ "name": "fontSize",
545
+ "required": true,
546
+ "type": {
547
+ "kind": "number"
548
+ },
549
+ "serializable": true
550
+ },
551
+ {
552
+ "name": "fontFamily",
553
+ "required": true,
554
+ "type": {
555
+ "kind": "number"
556
+ },
557
+ "serializable": true
558
+ },
559
+ {
560
+ "name": "textAlign",
561
+ "required": true,
562
+ "type": {
563
+ "kind": "enum",
564
+ "values": [
565
+ "center",
566
+ "left",
567
+ "right"
568
+ ]
569
+ },
570
+ "serializable": true
571
+ },
572
+ {
573
+ "name": "startArrowhead",
574
+ "required": true,
575
+ "type": {
576
+ "kind": "enum",
577
+ "values": [
578
+ "arrow",
579
+ "bar",
580
+ "dot",
581
+ "circle",
582
+ "circle_outline",
583
+ "triangle",
584
+ "triangle_outline",
585
+ "diamond",
586
+ "diamond_outline",
587
+ "crowfoot_one",
588
+ "crowfoot_many",
589
+ "crowfoot_one_or_many"
590
+ ]
591
+ },
592
+ "serializable": true
593
+ },
594
+ {
595
+ "name": "endArrowhead",
596
+ "required": true,
597
+ "type": {
598
+ "kind": "enum",
599
+ "values": [
600
+ "arrow",
601
+ "bar",
602
+ "dot",
603
+ "circle",
604
+ "circle_outline",
605
+ "triangle",
606
+ "triangle_outline",
607
+ "diamond",
608
+ "diamond_outline",
609
+ "crowfoot_one",
610
+ "crowfoot_many",
611
+ "crowfoot_one_or_many"
612
+ ]
613
+ },
614
+ "serializable": true
615
+ }
616
+ ]
617
+ },
618
+ "required": true,
619
+ "serializable": true,
620
+ "role": "appearance"
621
+ },
622
+ {
623
+ "name": "tool",
624
+ "type": {
625
+ "kind": "string"
626
+ },
627
+ "required": true,
628
+ "serializable": true,
629
+ "role": "behaviour"
630
+ },
631
+ {
632
+ "name": "words",
633
+ "type": {
634
+ "kind": "object",
635
+ "fields": [
636
+ {
637
+ "name": "tools",
638
+ "required": true,
639
+ "type": {
640
+ "kind": "object",
641
+ "fields": [
642
+ {
643
+ "name": "selection",
644
+ "required": true,
645
+ "type": {
646
+ "kind": "string"
647
+ },
648
+ "serializable": true
649
+ },
650
+ {
651
+ "name": "hand",
652
+ "required": true,
653
+ "type": {
654
+ "kind": "string"
655
+ },
656
+ "serializable": true
657
+ },
658
+ {
659
+ "name": "rectangle",
660
+ "required": true,
661
+ "type": {
662
+ "kind": "string"
663
+ },
664
+ "serializable": true
665
+ },
666
+ {
667
+ "name": "diamond",
668
+ "required": true,
669
+ "type": {
670
+ "kind": "string"
671
+ },
672
+ "serializable": true
673
+ },
674
+ {
675
+ "name": "ellipse",
676
+ "required": true,
677
+ "type": {
678
+ "kind": "string"
679
+ },
680
+ "serializable": true
681
+ },
682
+ {
683
+ "name": "arrow",
684
+ "required": true,
685
+ "type": {
686
+ "kind": "string"
687
+ },
688
+ "serializable": true
689
+ },
690
+ {
691
+ "name": "line",
692
+ "required": true,
693
+ "type": {
694
+ "kind": "string"
695
+ },
696
+ "serializable": true
697
+ },
698
+ {
699
+ "name": "freedraw",
700
+ "required": true,
701
+ "type": {
702
+ "kind": "string"
703
+ },
704
+ "serializable": true
705
+ },
706
+ {
707
+ "name": "text",
708
+ "required": true,
709
+ "type": {
710
+ "kind": "string"
711
+ },
712
+ "serializable": true
713
+ },
714
+ {
715
+ "name": "eraser",
716
+ "required": true,
717
+ "type": {
718
+ "kind": "string"
719
+ },
720
+ "serializable": true
721
+ },
722
+ {
723
+ "name": "image",
724
+ "required": true,
725
+ "type": {
726
+ "kind": "string"
727
+ },
728
+ "serializable": true
729
+ },
730
+ {
731
+ "name": "frame",
732
+ "required": true,
733
+ "type": {
734
+ "kind": "string"
735
+ },
736
+ "serializable": true
737
+ },
738
+ {
739
+ "name": "laser",
740
+ "required": true,
741
+ "type": {
742
+ "kind": "string"
743
+ },
744
+ "serializable": true
745
+ },
746
+ {
747
+ "name": "more",
748
+ "required": true,
749
+ "type": {
750
+ "kind": "string"
751
+ },
752
+ "serializable": true
753
+ }
754
+ ]
755
+ },
756
+ "serializable": true
757
+ },
758
+ {
759
+ "name": "style",
760
+ "required": true,
761
+ "type": {
762
+ "kind": "object",
763
+ "name": "__object"
764
+ },
765
+ "serializable": false
766
+ },
767
+ {
768
+ "name": "actions",
769
+ "required": true,
770
+ "type": {
771
+ "kind": "object",
772
+ "fields": [
773
+ {
774
+ "name": "undo",
775
+ "required": true,
776
+ "type": {
777
+ "kind": "string"
778
+ },
779
+ "serializable": true
780
+ },
781
+ {
782
+ "name": "redo",
783
+ "required": true,
784
+ "type": {
785
+ "kind": "string"
786
+ },
787
+ "serializable": true
788
+ },
789
+ {
790
+ "name": "zoomIn",
791
+ "required": true,
792
+ "type": {
793
+ "kind": "string"
794
+ },
795
+ "serializable": true
796
+ },
797
+ {
798
+ "name": "zoomOut",
799
+ "required": true,
800
+ "type": {
801
+ "kind": "string"
802
+ },
803
+ "serializable": true
804
+ },
805
+ {
806
+ "name": "resetZoom",
807
+ "required": true,
808
+ "type": {
809
+ "kind": "string"
810
+ },
811
+ "serializable": true
812
+ },
813
+ {
814
+ "name": "fit",
815
+ "required": true,
816
+ "type": {
817
+ "kind": "string"
818
+ },
819
+ "serializable": true
820
+ },
821
+ {
822
+ "name": "delete",
823
+ "required": true,
824
+ "type": {
825
+ "kind": "string"
826
+ },
827
+ "serializable": true
828
+ },
829
+ {
830
+ "name": "duplicate",
831
+ "required": true,
832
+ "type": {
833
+ "kind": "string"
834
+ },
835
+ "serializable": true
836
+ },
837
+ {
838
+ "name": "selectAll",
839
+ "required": true,
840
+ "type": {
841
+ "kind": "string"
842
+ },
843
+ "serializable": true
844
+ },
845
+ {
846
+ "name": "group",
847
+ "required": true,
848
+ "type": {
849
+ "kind": "string"
850
+ },
851
+ "serializable": true
852
+ },
853
+ {
854
+ "name": "ungroup",
855
+ "required": true,
856
+ "type": {
857
+ "kind": "string"
858
+ },
859
+ "serializable": true
860
+ },
861
+ {
862
+ "name": "lock",
863
+ "required": true,
864
+ "type": {
865
+ "kind": "string"
866
+ },
867
+ "serializable": true
868
+ },
869
+ {
870
+ "name": "unlock",
871
+ "required": true,
872
+ "type": {
873
+ "kind": "string"
874
+ },
875
+ "serializable": true
876
+ },
877
+ {
878
+ "name": "clear",
879
+ "required": true,
880
+ "type": {
881
+ "kind": "string"
882
+ },
883
+ "serializable": true
884
+ },
885
+ {
886
+ "name": "clearConfirm",
887
+ "required": true,
888
+ "type": {
889
+ "kind": "string"
890
+ },
891
+ "serializable": true
892
+ },
893
+ {
894
+ "name": "clearHint",
895
+ "required": true,
896
+ "type": {
897
+ "kind": "string"
898
+ },
899
+ "serializable": true
900
+ },
901
+ {
902
+ "name": "editText",
903
+ "required": true,
904
+ "type": {
905
+ "kind": "string"
906
+ },
907
+ "serializable": true
908
+ },
909
+ {
910
+ "name": "textPlaceholder",
911
+ "required": true,
912
+ "type": {
913
+ "kind": "string"
914
+ },
915
+ "serializable": true
916
+ },
917
+ {
918
+ "name": "done",
919
+ "required": true,
920
+ "type": {
921
+ "kind": "string"
922
+ },
923
+ "serializable": true
924
+ },
925
+ {
926
+ "name": "imageTooLarge",
927
+ "required": true,
928
+ "type": {
929
+ "kind": "string"
930
+ },
931
+ "serializable": true
932
+ },
933
+ {
934
+ "name": "uploading",
935
+ "required": true,
936
+ "type": {
937
+ "kind": "string"
938
+ },
939
+ "serializable": true
940
+ },
941
+ {
942
+ "name": "desktopViewOnly",
943
+ "required": true,
944
+ "type": {
945
+ "kind": "string"
946
+ },
947
+ "serializable": true
948
+ },
949
+ {
950
+ "name": "openInBrowser",
951
+ "required": true,
952
+ "type": {
953
+ "kind": "string"
954
+ },
955
+ "serializable": true
956
+ }
957
+ ]
958
+ },
959
+ "serializable": true
960
+ }
961
+ ]
962
+ },
963
+ "required": false,
964
+ "serializable": false,
965
+ "role": "behaviour",
966
+ "doc": "The panel's words (default English: `g9CanvasWordsEn`)."
967
+ }
968
+ ],
969
+ "anchor": null,
970
+ "accessibility": {
971
+ "labelFrom": [],
972
+ "labelRequired": false
973
+ },
974
+ "targets": {
975
+ "android": "unmeasured",
976
+ "ios": "unmeasured",
977
+ "windows": "unmeasured",
978
+ "macos": "unmeasured",
979
+ "web": "unmeasured"
980
+ },
981
+ "evidence": {
982
+ "ledger": []
983
+ },
984
+ "tokens": [
985
+ "OutlineVariant",
986
+ "SurfaceContainer",
987
+ "TextPrimary",
988
+ "TextSecondary"
989
+ ],
990
+ "example": {
991
+ "line": "<G9CanvasStylePanel controller={controller} selected={selected} style={style} tool=\"tool\" />",
992
+ "from": "generated"
993
+ }
994
+ }
995
+ ],
996
+ "exports": [
997
+ {
998
+ "id": "canvas.scene.absoluteCoords",
999
+ "export": "absoluteCoords",
1000
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1001
+ "kind": "function",
1002
+ "signature": "(element: ExElement): [number, number, number, number, number, number]",
1003
+ "summary": "[x1, y1, x2, y2, cx, cy] of the unrotated element (linear and freehand: their points' box)."
1004
+ },
1005
+ {
1006
+ "id": "canvas.element-core.applyMatrix",
1007
+ "export": "applyMatrix",
1008
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
1009
+ "kind": "function",
1010
+ "signature": "(m: Matrix, [x, y]: [number, number]): [number, number]",
1011
+ "summary": "A point through a matrix."
1012
+ },
1013
+ {
1014
+ "id": "canvas.scene.Arrowhead",
1015
+ "export": "Arrowhead",
1016
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1017
+ "kind": "type",
1018
+ "signature": "Arrowhead",
1019
+ "summary": "An arrow's head at one end."
1020
+ },
1021
+ {
1022
+ "id": "canvas.scene.BACKGROUND_COLORS",
1023
+ "export": "BACKGROUND_COLORS",
1024
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1025
+ "kind": "constant",
1026
+ "signature": "string[]",
1027
+ "summary": "Excalidraw's quick background picks (light open-color shades)."
1028
+ },
1029
+ {
1030
+ "id": "canvas.canvas.BoardElement",
1031
+ "export": "BoardElement",
1032
+ "from": "@g9tm/lynxcontrols-canvas",
1033
+ "kind": "interface",
1034
+ "signature": "BoardElement",
1035
+ "summary": "Whiteboard element bookkeeping (Plan-V3 §5.3), free of Excalidraw imports so it is testable (board-model.test.ts): which elements changed since they were last synced, the reconciliation rule the server applies, batching of pushes under the hub's message size, and restoring a version as ordinary edits."
1036
+ },
1037
+ {
1038
+ "id": "canvas.canvas.boardSvg",
1039
+ "export": "boardSvg",
1040
+ "from": "@g9tm/lynxcontrols-canvas",
1041
+ "kind": "function",
1042
+ "signature": "(items: readonly CvItem[], files: Record<string, string>, options?: { padding?: number; background?: string | null; }): string",
1043
+ "summary": "The board as an SVG document (every item, the fonts named, the background unless left out)."
1044
+ },
1045
+ {
1046
+ "id": "canvas.canvas.boardText",
1047
+ "export": "boardText",
1048
+ "from": "@g9tm/lynxcontrols-canvas",
1049
+ "kind": "function",
1050
+ "signature": "(elements: readonly BoardElement[]): string",
1051
+ "summary": "The words on a board (text elements), for search."
1052
+ },
1053
+ {
1054
+ "id": "canvas.scene.BOUND_TEXT_PADDING",
1055
+ "export": "BOUND_TEXT_PADDING",
1056
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1057
+ "kind": "constant",
1058
+ "signature": "5",
1059
+ "summary": "The space around a label inside its container."
1060
+ },
1061
+ {
1062
+ "id": "canvas.scene.BoundElement",
1063
+ "export": "BoundElement",
1064
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1065
+ "kind": "interface",
1066
+ "signature": "BoundElement",
1067
+ "summary": "An element bound to this one (a label, an arrow)."
1068
+ },
1069
+ {
1070
+ "id": "canvas.scene.Bounds",
1071
+ "export": "Bounds",
1072
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1073
+ "kind": "type",
1074
+ "signature": "Bounds",
1075
+ "summary": "An axis-aligned box in scene coordinates: [x1, y1, x2, y2]."
1076
+ },
1077
+ {
1078
+ "id": "canvas.scene.boundsContain",
1079
+ "export": "boundsContain",
1080
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1081
+ "kind": "function",
1082
+ "signature": "(outer: Bounds, inner: Bounds): boolean",
1083
+ "summary": "Whether `outer` holds `inner` whole."
1084
+ },
1085
+ {
1086
+ "id": "canvas.scene.boundsIntersect",
1087
+ "export": "boundsIntersect",
1088
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1089
+ "kind": "function",
1090
+ "signature": "(a: Bounds, b: Bounds): boolean",
1091
+ "summary": "Whether two boxes overlap."
1092
+ },
1093
+ {
1094
+ "id": "canvas.scene.bump",
1095
+ "export": "bump",
1096
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1097
+ "kind": "function",
1098
+ "signature": "<T extends ExElement>(element: T, changes?: Partial<ExElement>): T",
1099
+ "summary": "`mutateElement`: the change plus a new version, nonce and timestamp (what makes it win the reconciliation)."
1100
+ },
1101
+ {
1102
+ "id": "canvas.canvas.byIndex",
1103
+ "export": "byIndex",
1104
+ "from": "@g9tm/lynxcontrols-canvas",
1105
+ "kind": "function",
1106
+ "signature": "<T extends BoardElement>(elements: readonly T[]): T[]",
1107
+ "summary": "Fractional-index order (Excalidraw's z-order); elements without an index keep their place at the end."
1108
+ },
1109
+ {
1110
+ "id": "canvas.element-core.CanvasCore",
1111
+ "export": "CanvasCore",
1112
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
1113
+ "kind": "class",
1114
+ "signature": "typeof CanvasCore",
1115
+ "summary": "The gestures of `<g9-canvas>` shared by every host: pointers in, `cv*` events and what to draw out."
1116
+ },
1117
+ {
1118
+ "id": "canvas.canvas.changedSince",
1119
+ "export": "changedSince",
1120
+ "from": "@g9tm/lynxcontrols-canvas",
1121
+ "kind": "function",
1122
+ "signature": "<T extends BoardElement>(elements: readonly T[], synced: ReadonlyMap<string, { version: number; versionNonce: number; }>): T[]",
1123
+ "summary": "Elements whose version moved past what the server confirmed (or that it never saw)."
1124
+ },
1125
+ {
1126
+ "id": "canvas.canvas.chunkElements",
1127
+ "export": "chunkElements",
1128
+ "from": "@g9tm/lynxcontrols-canvas",
1129
+ "kind": "function",
1130
+ "signature": "(elements: readonly BoardElement[], maxChars?: number): string[]",
1131
+ "summary": "JSON arrays of elements, each under <paramref name=\"maxChars\"/> characters (a hub message is at most 1 MiB, and the array travels as a string inside JSON). An element larger than the limit goes alone (the server refuses it if it is over its own per-element limit)."
1132
+ },
1133
+ {
1134
+ "id": "canvas.scene.commonBounds",
1135
+ "export": "commonBounds",
1136
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1137
+ "kind": "function",
1138
+ "signature": "(elements: readonly ExElement[]): Bounds | null",
1139
+ "summary": "The box around every element, or null for none."
1140
+ },
1141
+ {
1142
+ "id": "canvas.scene.compareOrder",
1143
+ "export": "compareOrder",
1144
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1145
+ "kind": "function",
1146
+ "signature": "(a: Pick<ExElement, \"id\" | \"index\">, b: Pick<ExElement, \"id\" | \"index\">): number",
1147
+ "summary": "Excalidraw's order: by fractional index, ties by id; elements without an index last."
1148
+ },
1149
+ {
1150
+ "id": "canvas.element-core.CoreHost",
1151
+ "export": "CoreHost",
1152
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
1153
+ "kind": "interface",
1154
+ "signature": "CoreHost",
1155
+ "summary": "What the element's core needs of its host: emit an event, ask for a frame, the clock."
1156
+ },
1157
+ {
1158
+ "id": "canvas.scene.cornerRadius",
1159
+ "export": "cornerRadius",
1160
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1161
+ "kind": "function",
1162
+ "signature": "(size: number, element: Pick<ExElement, \"roundness\">): number",
1163
+ "summary": "A shape's corner for its size and roundness."
1164
+ },
1165
+ {
1166
+ "id": "canvas.scene.createFreeDraw",
1167
+ "export": "createFreeDraw",
1168
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1169
+ "kind": "function",
1170
+ "signature": "(scene: Scene, flat: readonly number[], pressures: readonly number[] | null, style: ItemStyle): ExElement",
1171
+ "summary": "A new free stroke from flat points (pressures, or simulated without them)."
1172
+ },
1173
+ {
1174
+ "id": "canvas.scene.createImage",
1175
+ "export": "createImage",
1176
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1177
+ "kind": "function",
1178
+ "signature": "(scene: Scene, fileId: string, x: number, y: number, width: number, height: number, style: ItemStyle): ExElement",
1179
+ "summary": "A new picture of a file at a place and size."
1180
+ },
1181
+ {
1182
+ "id": "canvas.scene.createLinear",
1183
+ "export": "createLinear",
1184
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1185
+ "kind": "function",
1186
+ "signature": "(scene: Scene, type: \"line\" | \"arrow\", absolute: Point[], style: ItemStyle, zoom?: number): ExElement[]",
1187
+ "summary": "A new arrow/line from absolute points, bound to the shapes its ends lie on (arrows only)."
1188
+ },
1189
+ {
1190
+ "id": "canvas.scene.createShape",
1191
+ "export": "createShape",
1192
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1193
+ "kind": "function",
1194
+ "signature": "(scene: Scene, type: \"diamond\" | \"rectangle\" | \"ellipse\" | \"frame\", box: Bounds, style: ItemStyle): ExElement",
1195
+ "summary": "A new rectangle, ellipse, diamond or frame in a box, inside the frame under it."
1196
+ },
1197
+ {
1198
+ "id": "canvas.scene.createText",
1199
+ "export": "createText",
1200
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1201
+ "kind": "function",
1202
+ "signature": "(scene: Scene, x: number, y: number, text: string, style: ItemStyle, container?: ExElement | undefined): ExElement[]",
1203
+ "summary": "A new text at a point, or a label inside a container (re-centred in it)."
1204
+ },
1205
+ {
1206
+ "id": "canvas.protocol.CvBox",
1207
+ "export": "CvBox",
1208
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1209
+ "kind": "type",
1210
+ "signature": "CvBox",
1211
+ "summary": "[x1, y1, x2, y2] in scene units."
1212
+ },
1213
+ {
1214
+ "id": "canvas.protocol.CvBoxEvent",
1215
+ "export": "CvBoxEvent",
1216
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1217
+ "kind": "interface",
1218
+ "signature": "CvBoxEvent",
1219
+ "summary": "`cvbox`: a marquee was drawn (shift adds to the selection)."
1220
+ },
1221
+ {
1222
+ "id": "canvas.protocol.CvCursorEvent",
1223
+ "export": "CvCursorEvent",
1224
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1225
+ "kind": "interface",
1226
+ "signature": "CvCursorEvent",
1227
+ "summary": "`cvcursor`: the pointer moved (for collaborators); `gone` when it left."
1228
+ },
1229
+ {
1230
+ "id": "canvas.protocol.CvDownEvent",
1231
+ "export": "CvDownEvent",
1232
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1233
+ "kind": "interface",
1234
+ "signature": "CvDownEvent",
1235
+ "summary": "Selection tool: a pointer went down outside the selection's frame. The app answers with `gesture`."
1236
+ },
1237
+ {
1238
+ "id": "canvas.protocol.CvEraseEvent",
1239
+ "export": "CvEraseEvent",
1240
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1241
+ "kind": "interface",
1242
+ "signature": "CvEraseEvent",
1243
+ "summary": "`cverase`: the eraser passed over points."
1244
+ },
1245
+ {
1246
+ "id": "canvas.protocol.CvExportEvent",
1247
+ "export": "CvExportEvent",
1248
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1249
+ "kind": "interface",
1250
+ "signature": "CvExportEvent",
1251
+ "summary": "`cvexport`: the answer to `exportImage` — the picture registered as a file, or an error."
1252
+ },
1253
+ {
1254
+ "id": "canvas.protocol.CvFileRef",
1255
+ "export": "CvFileRef",
1256
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1257
+ "kind": "interface",
1258
+ "signature": "CvFileRef",
1259
+ "summary": "A picture the element wrote (an export): the host's file handle; the app releases it when done."
1260
+ },
1261
+ {
1262
+ "id": "canvas.protocol.CvHandle",
1263
+ "export": "CvHandle",
1264
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1265
+ "kind": "type",
1266
+ "signature": "CvHandle",
1267
+ "summary": "A selection handle: a side, a corner or the rotation knob."
1268
+ },
1269
+ {
1270
+ "id": "canvas.protocol.CvImageOp",
1271
+ "export": "CvImageOp",
1272
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1273
+ "kind": "interface",
1274
+ "signature": "CvImageOp",
1275
+ "summary": "A picture (`files[file]` is its URL); `crop` in the picture's natural pixels."
1276
+ },
1277
+ {
1278
+ "id": "canvas.protocol.CvItem",
1279
+ "export": "CvItem",
1280
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1281
+ "kind": "interface",
1282
+ "signature": "CvItem",
1283
+ "summary": "One element as drawn: ops relative to (x, y), rotated by `a` (radians) about (cx, cy)."
1284
+ },
1285
+ {
1286
+ "id": "canvas.protocol.CvLineEvent",
1287
+ "export": "CvLineEvent",
1288
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1289
+ "kind": "interface",
1290
+ "signature": "CvLineEvent",
1291
+ "summary": "`cvline`: a line or an arrow was drawn through points."
1292
+ },
1293
+ {
1294
+ "id": "canvas.protocol.CvMessage",
1295
+ "export": "CvMessage",
1296
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1297
+ "kind": "interface",
1298
+ "signature": "CvMessage",
1299
+ "summary": "app → element (`apply`). Fields absent = unchanged."
1300
+ },
1301
+ {
1302
+ "id": "canvas.protocol.CvMoveEvent",
1303
+ "export": "CvMoveEvent",
1304
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1305
+ "kind": "interface",
1306
+ "signature": "CvMoveEvent",
1307
+ "summary": "`cvmove`: the selection was dragged by (`dx`, `dy`); `alt` duplicates it."
1308
+ },
1309
+ {
1310
+ "id": "canvas.protocol.CvOp",
1311
+ "export": "CvOp",
1312
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1313
+ "kind": "type",
1314
+ "signature": "CvOp",
1315
+ "summary": "One drawing operation of an item: a path, a text or a picture."
1316
+ },
1317
+ {
1318
+ "id": "canvas.protocol.CvPathOp",
1319
+ "export": "CvPathOp",
1320
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1321
+ "kind": "interface",
1322
+ "signature": "CvPathOp",
1323
+ "summary": "A path in SVG path syntax (M L C Q Z, absolute), stroked (`s`, `w`, `dash`) and/or filled (`f`)."
1324
+ },
1325
+ {
1326
+ "id": "canvas.protocol.CvPeer",
1327
+ "export": "CvPeer",
1328
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1329
+ "kind": "interface",
1330
+ "signature": "CvPeer",
1331
+ "summary": "A collaborator: name, colour, pointer (null when away) and what they have selected."
1332
+ },
1333
+ {
1334
+ "id": "canvas.protocol.CvPointEvent",
1335
+ "export": "CvPointEvent",
1336
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1337
+ "kind": "interface",
1338
+ "signature": "CvPointEvent",
1339
+ "summary": "A selected line's point dragged to a new place."
1340
+ },
1341
+ {
1342
+ "id": "canvas.protocol.CvRotatedBox",
1343
+ "export": "CvRotatedBox",
1344
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1345
+ "kind": "interface",
1346
+ "signature": "CvRotatedBox",
1347
+ "summary": "A box with its rotation about its centre."
1348
+ },
1349
+ {
1350
+ "id": "canvas.protocol.CvSelection",
1351
+ "export": "CvSelection",
1352
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1353
+ "kind": "interface",
1354
+ "signature": "CvSelection",
1355
+ "summary": "The selection the app sends: the ids that move together, their outlines, the frame with its handles and a line's points."
1356
+ },
1357
+ {
1358
+ "id": "canvas.protocol.CvShapeEvent",
1359
+ "export": "CvShapeEvent",
1360
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1361
+ "kind": "interface",
1362
+ "signature": "CvShapeEvent",
1363
+ "summary": "`cvshape`: a rectangle, ellipse, diamond or frame was drawn in a box."
1364
+ },
1365
+ {
1366
+ "id": "canvas.protocol.CvStrokeEvent",
1367
+ "export": "CvStrokeEvent",
1368
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1369
+ "kind": "interface",
1370
+ "signature": "CvStrokeEvent",
1371
+ "summary": "`cvstroke`: a free stroke was drawn (flat points, pressures when a pen gave them)."
1372
+ },
1373
+ {
1374
+ "id": "canvas.protocol.CvStrokeStyle",
1375
+ "export": "CvStrokeStyle",
1376
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1377
+ "kind": "interface",
1378
+ "signature": "CvStrokeStyle",
1379
+ "summary": "Style of the live previews (attribute `stroke`, JSON)."
1380
+ },
1381
+ {
1382
+ "id": "canvas.protocol.CvTapEvent",
1383
+ "export": "CvTapEvent",
1384
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1385
+ "kind": "interface",
1386
+ "signature": "CvTapEvent",
1387
+ "summary": "A tap (no drag): any tool. `count` 2 = double tap."
1388
+ },
1389
+ {
1390
+ "id": "canvas.protocol.CvTextOp",
1391
+ "export": "CvTextOp",
1392
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1393
+ "kind": "interface",
1394
+ "signature": "CvTextOp",
1395
+ "summary": "Lines of text; `y` is the first baseline, `lh` the line height (px), `al` the alignment inside width `w`."
1396
+ },
1397
+ {
1398
+ "id": "canvas.protocol.CvTool",
1399
+ "export": "CvTool",
1400
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1401
+ "kind": "type",
1402
+ "signature": "CvTool",
1403
+ "summary": "The tool in hand."
1404
+ },
1405
+ {
1406
+ "id": "canvas.protocol.CvTransformEvent",
1407
+ "export": "CvTransformEvent",
1408
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1409
+ "kind": "interface",
1410
+ "signature": "CvTransformEvent",
1411
+ "summary": "`cvtransform`: a handle resized or rotated the selection from one box to another."
1412
+ },
1413
+ {
1414
+ "id": "canvas.protocol.CvView",
1415
+ "export": "CvView",
1416
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1417
+ "kind": "interface",
1418
+ "signature": "CvView",
1419
+ "summary": "The camera: scroll (scene units) and zoom."
1420
+ },
1421
+ {
1422
+ "id": "canvas.protocol.CvViewEvent",
1423
+ "export": "CvViewEvent",
1424
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1425
+ "kind": "interface",
1426
+ "signature": "CvViewEvent",
1427
+ "summary": "`cvview`: the camera moved (with the element's size); `settled` once the gesture ended."
1428
+ },
1429
+ {
1430
+ "id": "canvas.protocol.DARK_FILTER",
1431
+ "export": "DARK_FILTER",
1432
+ "from": "@g9tm/lynxcontrols-canvas/protocol",
1433
+ "kind": "constant",
1434
+ "signature": "\"invert(93%) hue-rotate(180deg)\"",
1435
+ "summary": "Excalidraw's dark mode: the canvas is shown through `invert(93%) hue-rotate(180deg)`."
1436
+ },
1437
+ {
1438
+ "id": "canvas.scene.DEFAULT_ADAPTIVE_RADIUS",
1439
+ "export": "DEFAULT_ADAPTIVE_RADIUS",
1440
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1441
+ "kind": "constant",
1442
+ "signature": "32",
1443
+ "summary": "The corner of an adaptive roundness (dp)."
1444
+ },
1445
+ {
1446
+ "id": "canvas.scene.DEFAULT_FONT_FAMILY",
1447
+ "export": "DEFAULT_FONT_FAMILY",
1448
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1449
+ "kind": "constant",
1450
+ "signature": "5",
1451
+ "summary": "A new text's font."
1452
+ },
1453
+ {
1454
+ "id": "canvas.scene.DEFAULT_FONT_SIZE",
1455
+ "export": "DEFAULT_FONT_SIZE",
1456
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1457
+ "kind": "constant",
1458
+ "signature": "20",
1459
+ "summary": "A new text's size."
1460
+ },
1461
+ {
1462
+ "id": "canvas.scene.DEFAULT_PROPORTIONAL_RADIUS",
1463
+ "export": "DEFAULT_PROPORTIONAL_RADIUS",
1464
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1465
+ "kind": "constant",
1466
+ "signature": "0.25",
1467
+ "summary": "The corner of a proportional roundness, as a part of the shorter side."
1468
+ },
1469
+ {
1470
+ "id": "canvas.scene.DEFAULT_STYLE",
1471
+ "export": "DEFAULT_STYLE",
1472
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1473
+ "kind": "constant",
1474
+ "signature": "ItemStyle",
1475
+ "summary": "Excalidraw's default item style (appState `currentItem*`)."
1476
+ },
1477
+ {
1478
+ "id": "canvas.scene.defaultRoundness",
1479
+ "export": "defaultRoundness",
1480
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1481
+ "kind": "function",
1482
+ "signature": "(type: string, style: Pick<ItemStyle, \"roundness\">): Roundness | null",
1483
+ "summary": "Rectangles and pictures round adaptively, diamonds and lines proportionally (`getDefaultRoundnessTypeForElement`)."
1484
+ },
1485
+ {
1486
+ "id": "canvas.scene.deleteElements",
1487
+ "export": "deleteElements",
1488
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1489
+ "kind": "function",
1490
+ "signature": "(scene: Scene, ids: readonly string[]): ExElement[]",
1491
+ "summary": "The elements deleted with their labels; arrows bound to them let go."
1492
+ },
1493
+ {
1494
+ "id": "canvas.scene.diamondPoints",
1495
+ "export": "diamondPoints",
1496
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1497
+ "kind": "function",
1498
+ "signature": "(element: Pick<ExElement, \"height\" | \"width\">): number[]",
1499
+ "summary": "A diamond's four corners (flat)."
1500
+ },
1501
+ {
1502
+ "id": "canvas.canvas.dispatchG9CanvasEvent",
1503
+ "export": "dispatchG9CanvasEvent",
1504
+ "from": "@g9tm/lynxcontrols-canvas",
1505
+ "kind": "function",
1506
+ "signature": "(controller: BoardController, port: G9CanvasPort, name: string, detail: unknown): void",
1507
+ "summary": "An element event into the controller (the same names on every host)."
1508
+ },
1509
+ {
1510
+ "id": "canvas.scene.distanceToPolyline",
1511
+ "export": "distanceToPolyline",
1512
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1513
+ "kind": "function",
1514
+ "signature": "(p: Point, points: readonly Point[], closed?: boolean): number",
1515
+ "summary": "The distance from a point to a polyline (closed: back to its start)."
1516
+ },
1517
+ {
1518
+ "id": "canvas.scene.duplicate",
1519
+ "export": "duplicate",
1520
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1521
+ "kind": "function",
1522
+ "signature": "(scene: Scene, ids: readonly string[], offset?: number): { elements: ExElement[]; selected: string[]; }",
1523
+ "summary": "Copies of the selection 10 px down-right, above everything, with fresh ids (bindings to copied shapes kept)."
1524
+ },
1525
+ {
1526
+ "id": "canvas.scene.editText",
1527
+ "export": "editText",
1528
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1529
+ "kind": "function",
1530
+ "signature": "(scene: Scene, id: string, value: string): ExElement[]",
1531
+ "summary": "New text for a text element (deleted when empty)."
1532
+ },
1533
+ {
1534
+ "id": "canvas.scene.elementBounds",
1535
+ "export": "elementBounds",
1536
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1537
+ "kind": "function",
1538
+ "signature": "(element: ExElement): Bounds",
1539
+ "summary": "The box around the element as drawn (rotation included)."
1540
+ },
1541
+ {
1542
+ "id": "canvas.scene.elementOps",
1543
+ "export": "elementOps",
1544
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1545
+ "kind": "function",
1546
+ "signature": "(element: ExElement, context: ShapeContext): CvOp[]",
1547
+ "summary": "The ops of one element, relative to its (x, y)."
1548
+ },
1549
+ {
1550
+ "id": "canvas.scene.ElementType",
1551
+ "export": "ElementType",
1552
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1553
+ "kind": "type",
1554
+ "signature": "ElementType",
1555
+ "summary": "An element's kind (Excalidraw's)."
1556
+ },
1557
+ {
1558
+ "id": "canvas.scene.erasedBy",
1559
+ "export": "erasedBy",
1560
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1561
+ "kind": "function",
1562
+ "signature": "(scene: Scene, flat: readonly number[], threshold: number): string[]",
1563
+ "summary": "Elements the eraser path touches (labels erase their containers and vice versa)."
1564
+ },
1565
+ {
1566
+ "id": "canvas.scene.ExElement",
1567
+ "export": "ExElement",
1568
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1569
+ "kind": "interface",
1570
+ "signature": "ExElement",
1571
+ "summary": "A board element (Excalidraw's element model)."
1572
+ },
1573
+ {
1574
+ "id": "canvas.scene.expandSelection",
1575
+ "export": "expandSelection",
1576
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1577
+ "kind": "function",
1578
+ "signature": "(scene: Scene, ids: Iterable<string>): string[]",
1579
+ "summary": "Elements to treat as one with `ids`: groups (outermost), labels of containers, children of frames."
1580
+ },
1581
+ {
1582
+ "id": "canvas.scene.FillStyle",
1583
+ "export": "FillStyle",
1584
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1585
+ "kind": "type",
1586
+ "signature": "FillStyle",
1587
+ "summary": "How a shape is filled."
1588
+ },
1589
+ {
1590
+ "id": "canvas.scene.followBindings",
1591
+ "export": "followBindings",
1592
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1593
+ "kind": "function",
1594
+ "signature": "(arrow: ExElement, lookup: (id: string) => ExElement | undefined): ExElement",
1595
+ "summary": "Puts a bound arrow's ends on the outlines of its shapes (aimed at their centres: focus 0), `gap` away."
1596
+ },
1597
+ {
1598
+ "id": "canvas.scene.FONT_FAMILY",
1599
+ "export": "FONT_FAMILY",
1600
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1601
+ "kind": "constant",
1602
+ "signature": "{ readonly Virgil: 1; readonly Helvetica: 2; readonly Cascadia: 3; readonly Excalifont: 5; readonly Nunito: 6; readonly 'Lilita One': 7; readonly 'Comic Shanns': 8; readonly 'Liberation Sans': 9; }",
1603
+ "summary": "Excalidraw's font family ids."
1604
+ },
1605
+ {
1606
+ "id": "canvas.scene.FONT_METRICS",
1607
+ "export": "FONT_METRICS",
1608
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1609
+ "kind": "constant",
1610
+ "signature": "Record<number, { unitsPerEm: number; ascender: number; descender: number; lineHeight: number; }>",
1611
+ "summary": "Font metrics Excalidraw positions text with (FONT_METADATA): units per em, ascender, descender, line height."
1612
+ },
1613
+ {
1614
+ "id": "canvas.scene.FRAME_STYLE",
1615
+ "export": "FRAME_STYLE",
1616
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1617
+ "kind": "constant",
1618
+ "signature": "{ readonly strokeColor: \"#bbb\"; readonly strokeWidth: 2; readonly strokeStyle: \"solid\"; readonly fillStyle: \"solid\"; readonly roughness: 0; readonly roundness: null; readonly backgroundColor: \"transparent\"; readonly radius: 8; readonly nameOffsetY: 3; readonly nameColorLightTheme: \"#999999\"; readonly nameColorDarkTheme: \"#7a7a7a\"; readonly nameFontSize: 14; readonly nameLineHeight: 1.25; }",
1619
+ "summary": "How frames are drawn (stroke, radius, name)."
1620
+ },
1621
+ {
1622
+ "id": "canvas.scene.freeDrawPath",
1623
+ "export": "freeDrawPath",
1624
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1625
+ "kind": "function",
1626
+ "signature": "(element: Pick<ExElement, \"strokeWidth\" | \"points\" | \"pressures\" | \"simulatePressure\" | \"lastCommittedPoint\">): string",
1627
+ "summary": "A free stroke as SVG path data (perfect-freehand's outline)."
1628
+ },
1629
+ {
1630
+ "id": "canvas.canvas.G9BoardController",
1631
+ "export": "G9BoardController",
1632
+ "from": "@g9tm/lynxcontrols-canvas",
1633
+ "kind": "class",
1634
+ "signature": "typeof BoardController",
1635
+ "summary": "Drives a board: the scene, the element's events, styles, history, collaborators and the order."
1636
+ },
1637
+ {
1638
+ "id": "canvas.canvas.G9BoardPeerState",
1639
+ "export": "G9BoardPeerState",
1640
+ "from": "@g9tm/lynxcontrols-canvas",
1641
+ "kind": "interface",
1642
+ "signature": "BoardPeerState",
1643
+ "summary": "A collaborator's pointer and selection (by connection)."
1644
+ },
1645
+ {
1646
+ "id": "canvas.canvas.G9BoardState",
1647
+ "export": "G9BoardState",
1648
+ "from": "@g9tm/lynxcontrols-canvas",
1649
+ "kind": "interface",
1650
+ "signature": "BoardState",
1651
+ "summary": "What a board UI shows: the tool, the selection, its style, the text being edited, the status."
1652
+ },
1653
+ {
1654
+ "id": "canvas.canvas.G9BoardStatus",
1655
+ "export": "G9BoardStatus",
1656
+ "from": "@g9tm/lynxcontrols-canvas",
1657
+ "kind": "type",
1658
+ "signature": "BoardStatus",
1659
+ "summary": "A board's connection as the app's sync reports it."
1660
+ },
1661
+ {
1662
+ "id": "canvas.canvas.G9CanvasDesktopHost",
1663
+ "export": "G9CanvasDesktopHost",
1664
+ "from": "@g9tm/lynxcontrols-canvas",
1665
+ "kind": "interface",
1666
+ "signature": "G9CanvasDesktopHost",
1667
+ "summary": "A host that shows the web element in a page of its own (Lynxtron): the app wires it."
1668
+ },
1669
+ {
1670
+ "id": "canvas.canvas.G9CanvasElementProps",
1671
+ "export": "G9CanvasElementProps",
1672
+ "from": "@g9tm/lynxcontrols-canvas",
1673
+ "kind": "interface",
1674
+ "signature": "G9CanvasElementProps",
1675
+ "summary": "The attributes and events of `<g9-canvas>`."
1676
+ },
1677
+ {
1678
+ "id": "canvas.canvas.G9CanvasPort",
1679
+ "export": "G9CanvasPort",
1680
+ "from": "@g9tm/lynxcontrols-canvas",
1681
+ "kind": "class",
1682
+ "signature": "typeof G9CanvasPort",
1683
+ "summary": "The controller's way to the element (create it, give it to the controller and to `G9Canvas`)."
1684
+ },
1685
+ {
1686
+ "id": "canvas.canvas.G9CanvasProps",
1687
+ "export": "G9CanvasProps",
1688
+ "from": "@g9tm/lynxcontrols-canvas",
1689
+ "kind": "interface",
1690
+ "signature": "G9CanvasProps",
1691
+ "summary": "Props of `G9Canvas`."
1692
+ },
1693
+ {
1694
+ "id": "canvas.canvas.G9CanvasStylePanelProps",
1695
+ "export": "G9CanvasStylePanelProps",
1696
+ "from": "@g9tm/lynxcontrols-canvas",
1697
+ "kind": "interface",
1698
+ "signature": "G9CanvasStylePanelProps",
1699
+ "summary": "Props of `G9CanvasStylePanel`."
1700
+ },
1701
+ {
1702
+ "id": "canvas.canvas.g9CanvasWords",
1703
+ "export": "g9CanvasWords",
1704
+ "from": "@g9tm/lynxcontrols-canvas",
1705
+ "kind": "function",
1706
+ "signature": "(language: string): { tools: { selection: string; hand: string; rectangle: string; diamond: string; ellipse: string; arrow: string; line: string; freedraw: string; text: string; eraser: string; image: string; frame: string; laser: string; more: string; }; style: { title: string; stroke: string; background: string; fill: string; hachure: string; crossHatch: string; solid: string; strokeWidth: strin",
1707
+ "summary": "The words for a language (Persian for `fa`, else English)."
1708
+ },
1709
+ {
1710
+ "id": "canvas.canvas.G9CanvasWords",
1711
+ "export": "G9CanvasWords",
1712
+ "from": "@g9tm/lynxcontrols-canvas",
1713
+ "kind": "type",
1714
+ "signature": "{ tools: { selection: string; hand: string; rectangle: string; diamond: string; ellipse: string; arrow: string; line: string; freedraw: string; text: string; eraser: string; image: string; frame: string; laser: string; more: string; }; style: { title: string; stroke: string; background: string; fill: string; hachure: string; crossHatch: string; solid: string; strokeWidth: string; thin: string; bol",
1715
+ "summary": "The shape of the whiteboard's words."
1716
+ },
1717
+ {
1718
+ "id": "canvas.canvas.g9CanvasWordsEn",
1719
+ "export": "g9CanvasWordsEn",
1720
+ "from": "@g9tm/lynxcontrols-canvas",
1721
+ "kind": "constant",
1722
+ "signature": "{ tools: { selection: string; hand: string; rectangle: string; diamond: string; ellipse: string; arrow: string; line: string; freedraw: string; text: string; eraser: string; image: string; frame: string; laser: string; more: string; }; style: { title: string; stroke: string; background: string; fill: string; hachure: string; crossHatch: string; solid: string; strokeWidth: string; thin: string; bol",
1723
+ "summary": "The whiteboard's English words."
1724
+ },
1725
+ {
1726
+ "id": "canvas.canvas.g9CanvasWordsFa",
1727
+ "export": "g9CanvasWordsFa",
1728
+ "from": "@g9tm/lynxcontrols-canvas",
1729
+ "kind": "constant",
1730
+ "signature": "{ tools: { selection: string; hand: string; rectangle: string; diamond: string; ellipse: string; arrow: string; line: string; freedraw: string; text: string; eraser: string; image: string; frame: string; laser: string; more: string; }; style: { title: string; stroke: string; background: string; fill: string; hachure: string; crossHatch: string; solid: string; strokeWidth: string; thin: string; bol",
1731
+ "summary": "The whiteboard's Persian words."
1732
+ },
1733
+ {
1734
+ "id": "canvas.scene.group",
1735
+ "export": "group",
1736
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1737
+ "kind": "function",
1738
+ "signature": "(scene: Scene, ids: readonly string[]): ExElement[]",
1739
+ "summary": "Groups the selection (a new outermost group id)."
1740
+ },
1741
+ {
1742
+ "id": "canvas.scene.hitElement",
1743
+ "export": "hitElement",
1744
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1745
+ "kind": "function",
1746
+ "signature": "(element: ExElement, point: Point, threshold: number): boolean",
1747
+ "summary": "Whether `point` (scene) hits the element: within `threshold` of its outline, or inside it when it is filled, a text, a picture or a frame's name. Excalidraw's rule: transparent shapes are picked by their stroke only."
1748
+ },
1749
+ {
1750
+ "id": "canvas.scene.hitTest",
1751
+ "export": "hitTest",
1752
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1753
+ "kind": "function",
1754
+ "signature": "(scene: Scene, point: Point, threshold: number, selected?: ReadonlySet<string>): ExElement | null",
1755
+ "summary": "The topmost element under the point (a label hits its container)."
1756
+ },
1757
+ {
1758
+ "id": "canvas.scene.inBox",
1759
+ "export": "inBox",
1760
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1761
+ "kind": "function",
1762
+ "signature": "(scene: Scene, box: Bounds): string[]",
1763
+ "summary": "Elements entirely inside the box (frames' children count only when the frame is not selected)."
1764
+ },
1765
+ {
1766
+ "id": "canvas.scene.indexAfter",
1767
+ "export": "indexAfter",
1768
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1769
+ "kind": "function",
1770
+ "signature": "(last: string | null | undefined): string",
1771
+ "summary": "Fractional index after `last` (or the first index)."
1772
+ },
1773
+ {
1774
+ "id": "canvas.scene.indicesBetween",
1775
+ "export": "indicesBetween",
1776
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1777
+ "kind": "function",
1778
+ "signature": "(lower: string | null | undefined, upper: string | null | undefined, count: number): string[]",
1779
+ "summary": "Fractional indices between two (for an order)."
1780
+ },
1781
+ {
1782
+ "id": "canvas.scene.insidePolygon",
1783
+ "export": "insidePolygon",
1784
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1785
+ "kind": "function",
1786
+ "signature": "(p: Point, points: readonly Point[]): boolean",
1787
+ "summary": "Whether a point is inside a polygon (even-odd)."
1788
+ },
1789
+ {
1790
+ "id": "canvas.scene.intersectOutline",
1791
+ "export": "intersectOutline",
1792
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1793
+ "kind": "function",
1794
+ "signature": "(outline: readonly Point[], from: Point, to: Point): Point | null",
1795
+ "summary": "Where the segment from `from` towards `to` first crosses the closed outline (null when it does not)."
1796
+ },
1797
+ {
1798
+ "id": "canvas.scene.isBindable",
1799
+ "export": "isBindable",
1800
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1801
+ "kind": "function",
1802
+ "signature": "(element: ExElement): boolean",
1803
+ "summary": "Whether an arrow can bind to the element."
1804
+ },
1805
+ {
1806
+ "id": "canvas.scene.isFrame",
1807
+ "export": "isFrame",
1808
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1809
+ "kind": "function",
1810
+ "signature": "(element: Pick<ExElement, \"type\">): boolean",
1811
+ "summary": "A frame (or a magic frame)."
1812
+ },
1813
+ {
1814
+ "id": "canvas.scene.isLinear",
1815
+ "export": "isLinear",
1816
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1817
+ "kind": "function",
1818
+ "signature": "(element: Pick<ExElement, \"type\">): boolean",
1819
+ "summary": "A line or an arrow."
1820
+ },
1821
+ {
1822
+ "id": "canvas.canvas.isNewer",
1823
+ "export": "isNewer",
1824
+ "from": "@g9tm/lynxcontrols-canvas",
1825
+ "kind": "function",
1826
+ "signature": "(candidate: Pick<BoardElement, \"version\" | \"versionNonce\">, current: Pick<BoardElement, \"version\" | \"versionNonce\"> | undefined): boolean",
1827
+ "summary": "Excalidraw's (and the server's) rule: a higher version wins; on a tie the lower versionNonce wins."
1828
+ },
1829
+ {
1830
+ "id": "canvas.scene.isPathALoop",
1831
+ "export": "isPathALoop",
1832
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1833
+ "kind": "function",
1834
+ "signature": "(points: readonly Point[], zoom?: number): boolean",
1835
+ "summary": "Whether a line's points close on themselves (filled as a shape)."
1836
+ },
1837
+ {
1838
+ "id": "canvas.scene.isPointsElement",
1839
+ "export": "isPointsElement",
1840
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1841
+ "kind": "function",
1842
+ "signature": "(element: Pick<ExElement, \"type\">): boolean",
1843
+ "summary": "An element drawn through points (a line, an arrow, a free stroke)."
1844
+ },
1845
+ {
1846
+ "id": "canvas.scene.isRtl",
1847
+ "export": "isRtl",
1848
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1849
+ "kind": "function",
1850
+ "signature": "(text: string): boolean",
1851
+ "summary": "Whether a text starts in a right-to-left script."
1852
+ },
1853
+ {
1854
+ "id": "canvas.scene.isTransparent",
1855
+ "export": "isTransparent",
1856
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1857
+ "kind": "function",
1858
+ "signature": "(color: string | null | undefined): boolean",
1859
+ "summary": "A colour that draws nothing (empty, `transparent`, zero alpha)."
1860
+ },
1861
+ {
1862
+ "id": "canvas.scene.ItemStyle",
1863
+ "export": "ItemStyle",
1864
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1865
+ "kind": "interface",
1866
+ "signature": "ItemStyle",
1867
+ "summary": "The style new elements get (Excalidraw's `currentItem*`)."
1868
+ },
1869
+ {
1870
+ "id": "canvas.scene.LINE_CONFIRM_THRESHOLD",
1871
+ "export": "LINE_CONFIRM_THRESHOLD",
1872
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1873
+ "kind": "constant",
1874
+ "signature": "8",
1875
+ "summary": "How close (dp) a line's end must come to its start to close it."
1876
+ },
1877
+ {
1878
+ "id": "canvas.scene.lineHeightOf",
1879
+ "export": "lineHeightOf",
1880
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1881
+ "kind": "function",
1882
+ "signature": "(fontFamily: number): number",
1883
+ "summary": "The line height of a font family (Excalidraw's table)."
1884
+ },
1885
+ {
1886
+ "id": "canvas.scene.lockElements",
1887
+ "export": "lockElements",
1888
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1889
+ "kind": "function",
1890
+ "signature": "(scene: Scene, ids: readonly string[], locked: boolean): ExElement[]",
1891
+ "summary": "The elements locked or unlocked."
1892
+ },
1893
+ {
1894
+ "id": "canvas.element-core.Matrix",
1895
+ "export": "Matrix",
1896
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
1897
+ "kind": "type",
1898
+ "signature": "Matrix",
1899
+ "summary": "2D affine matrix [a, b, c, d, e, f] (x' = a·x + c·y + e, y' = b·x + d·y + f), in scene units."
1900
+ },
1901
+ {
1902
+ "id": "canvas.scene.measureText",
1903
+ "export": "measureText",
1904
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1905
+ "kind": "function",
1906
+ "signature": "(text: string, fontSize: number, fontFamily: number, lineHeight: number): { width: number; height: number; }",
1907
+ "summary": "A text's size in a font (estimated per script; no DOM)."
1908
+ },
1909
+ {
1910
+ "id": "canvas.scene.moveElements",
1911
+ "export": "moveElements",
1912
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1913
+ "kind": "function",
1914
+ "signature": "(scene: Scene, ids: readonly string[], dx: number, dy: number): ExElement[]",
1915
+ "summary": "The elements moved by (`dx`, `dy`) with their labels and bound arrows; frames take and drop what moves in and out."
1916
+ },
1917
+ {
1918
+ "id": "canvas.scene.movePoint",
1919
+ "export": "movePoint",
1920
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1921
+ "kind": "function",
1922
+ "signature": "(scene: Scene, id: string, index: number, x: number, y: number, zoom?: number): ExElement[]",
1923
+ "summary": "Moves one point of a line/arrow (index in its points) to an absolute position; arrows re-bind at their ends."
1924
+ },
1925
+ {
1926
+ "id": "canvas.scene.movingSet",
1927
+ "export": "movingSet",
1928
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1929
+ "kind": "function",
1930
+ "signature": "(scene: Scene, ids: readonly string[]): string[]",
1931
+ "summary": "The ids that move with a selection: plus labels inside containers and frame children."
1932
+ },
1933
+ {
1934
+ "id": "canvas.element-core.multiply",
1935
+ "export": "multiply",
1936
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
1937
+ "kind": "function",
1938
+ "signature": "(m: Matrix, n: Matrix): Matrix",
1939
+ "summary": "The matrix `m` after `n`."
1940
+ },
1941
+ {
1942
+ "id": "canvas.scene.newFrame",
1943
+ "export": "newFrame",
1944
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1945
+ "kind": "function",
1946
+ "signature": "(options: Omit<BaseOptions, \"style\"> & { name?: string | null; }): ExElement",
1947
+ "summary": "A new frame element (named or not)."
1948
+ },
1949
+ {
1950
+ "id": "canvas.scene.newFreeDraw",
1951
+ "export": "newFreeDraw",
1952
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1953
+ "kind": "function",
1954
+ "signature": "(options: BaseOptions & { points: Point[]; pressures: number[]; simulatePressure: boolean; }): ExElement",
1955
+ "summary": "A new free-drawing element."
1956
+ },
1957
+ {
1958
+ "id": "canvas.scene.newImage",
1959
+ "export": "newImage",
1960
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1961
+ "kind": "function",
1962
+ "signature": "(options: BaseOptions & { fileId: string; }): ExElement",
1963
+ "summary": "A new picture element of a file."
1964
+ },
1965
+ {
1966
+ "id": "canvas.scene.newLinear",
1967
+ "export": "newLinear",
1968
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1969
+ "kind": "function",
1970
+ "signature": "(type: \"line\" | \"arrow\", options: BaseOptions & { points: Point[]; startArrowhead?: Arrowhead | null; endArrowhead?: Arrowhead | null; }): ExElement",
1971
+ "summary": "A new line or arrow element through points."
1972
+ },
1973
+ {
1974
+ "id": "canvas.scene.newShape",
1975
+ "export": "newShape",
1976
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1977
+ "kind": "function",
1978
+ "signature": "(type: \"diamond\" | \"rectangle\" | \"ellipse\", options: BaseOptions): ExElement",
1979
+ "summary": "A new rectangle, ellipse or diamond element."
1980
+ },
1981
+ {
1982
+ "id": "canvas.scene.newText",
1983
+ "export": "newText",
1984
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1985
+ "kind": "function",
1986
+ "signature": "(options: BaseOptions & { text: string; containerId?: string | null; verticalAlign?: \"top\" | \"middle\"; autoResize?: boolean; width?: number; }): ExElement",
1987
+ "summary": "A new text element (measured; a fixed width when `autoResize` is false)."
1988
+ },
1989
+ {
1990
+ "id": "canvas.scene.normalizeBox",
1991
+ "export": "normalizeBox",
1992
+ "from": "@g9tm/lynxcontrols-canvas/scene",
1993
+ "kind": "function",
1994
+ "signature": "(x1: number, y1: number, x2: number, y2: number): Bounds",
1995
+ "summary": "A box from two corners in any order."
1996
+ },
1997
+ {
1998
+ "id": "canvas.scene.normalizeText",
1999
+ "export": "normalizeText",
2000
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2001
+ "kind": "function",
2002
+ "signature": "(text: string): string",
2003
+ "summary": "Text with tabs as spaces and line breaks unified."
2004
+ },
2005
+ {
2006
+ "id": "canvas.scene.OrderMove",
2007
+ "export": "OrderMove",
2008
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2009
+ "kind": "type",
2010
+ "signature": "OrderMove",
2011
+ "summary": "A move in the stacking order."
2012
+ },
2013
+ {
2014
+ "id": "canvas.scene.outlineOf",
2015
+ "export": "outlineOf",
2016
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2017
+ "kind": "function",
2018
+ "signature": "(element: ExElement): Point[]",
2019
+ "summary": "The outline of a shape as points in scene coordinates (bindings aim arrows at it)."
2020
+ },
2021
+ {
2022
+ "id": "canvas.scene.parsePath",
2023
+ "export": "parsePath",
2024
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2025
+ "kind": "function",
2026
+ "signature": "(d: string): Segment[]",
2027
+ "summary": "SVG path data as absolute segments (repeated numbers repeat the command)."
2028
+ },
2029
+ {
2030
+ "id": "canvas.scene.placeLabel",
2031
+ "export": "placeLabel",
2032
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2033
+ "kind": "function",
2034
+ "signature": "(label: ExElement, container: ExElement): ExElement",
2035
+ "summary": "A container's label centred inside it (Excalidraw's bound text position for a middle-aligned label)."
2036
+ },
2037
+ {
2038
+ "id": "canvas.scene.Point",
2039
+ "export": "Point",
2040
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2041
+ "kind": "type",
2042
+ "signature": "Point",
2043
+ "summary": "The whiteboard's scene format: Excalidraw 0.18 elements, exactly as the web app (Excalidraw) and the server (`BoardElements`, reconciled per element) store them. The Lynx app reads and writes the same JSON — a board edited here and in the web app at the same time converges and looks the same on both. Only the fields this app uses are typed; unknown fields of elements made elsewhere are kept untouched (`[key: string]: unknown`)."
2044
+ },
2045
+ {
2046
+ "id": "canvas.scene.PointBinding",
2047
+ "export": "PointBinding",
2048
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2049
+ "kind": "interface",
2050
+ "signature": "PointBinding",
2051
+ "summary": "Where an arrow's end is bound (the element, focus and gap)."
2052
+ },
2053
+ {
2054
+ "id": "canvas.element-core.PointerInput",
2055
+ "export": "PointerInput",
2056
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2057
+ "kind": "interface",
2058
+ "signature": "PointerInput",
2059
+ "summary": "The element side of `<g9-canvas>` without any drawing API: the items the app sent, the camera, and the gesture rules (what a finger or mouse does with each tool, previews, when to report what). The web host's element (client/web `src/canvas.ts`) runs this class and paints its state with Canvas 2D; the Android element (`whiteboard/G9CanvasCore.kt`) is a line-by-line Kotlin copy. Tests drive it with synthetic pointers."
2060
+ },
2061
+ {
2062
+ "id": "canvas.element-core.Preview",
2063
+ "export": "Preview",
2064
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2065
+ "kind": "type",
2066
+ "signature": "Preview",
2067
+ "summary": "What the overlay draws for a gesture in progress (a stroke, a shape, a line, a point being moved)."
2068
+ },
2069
+ {
2070
+ "id": "canvas.scene.randomFileId",
2071
+ "export": "randomFileId",
2072
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2073
+ "kind": "function",
2074
+ "signature": "(): string",
2075
+ "summary": "A file id for a picture (Excalidraw uses a SHA-1 of the data; any unique 40-character hex string works)."
2076
+ },
2077
+ {
2078
+ "id": "canvas.scene.randomId",
2079
+ "export": "randomId",
2080
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2081
+ "kind": "function",
2082
+ "signature": "(): string",
2083
+ "summary": "A 21-character id like Excalidraw's `nanoid()`."
2084
+ },
2085
+ {
2086
+ "id": "canvas.scene.randomInteger",
2087
+ "export": "randomInteger",
2088
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2089
+ "kind": "function",
2090
+ "signature": "(): number",
2091
+ "summary": "Excalidraw's `randomInteger()` (seeds and nonces)."
2092
+ },
2093
+ {
2094
+ "id": "canvas.canvas.randomNonce",
2095
+ "export": "randomNonce",
2096
+ "from": "@g9tm/lynxcontrols-canvas",
2097
+ "kind": "function",
2098
+ "signature": "(): number",
2099
+ "summary": "A 32-bit random nonce, like Excalidraw's `randomInteger`."
2100
+ },
2101
+ {
2102
+ "id": "canvas.scene.reorder",
2103
+ "export": "reorder",
2104
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2105
+ "kind": "function",
2106
+ "signature": "(scene: Scene, ids: readonly string[], move: OrderMove): ExElement[]",
2107
+ "summary": "New fractional indices for the selection (Excalidraw's z-index actions)."
2108
+ },
2109
+ {
2110
+ "id": "canvas.element-core.resizeBox",
2111
+ "export": "resizeBox",
2112
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2113
+ "kind": "function",
2114
+ "signature": "(from: CvBox, angle: number, handle: CvHandle, point: [number, number], keepAspect: boolean): CvBox",
2115
+ "summary": "The frame after dragging `handle` to `point` (the frame's own unrotated space; the opposite side stays)."
2116
+ },
2117
+ {
2118
+ "id": "canvas.scene.resizeElements",
2119
+ "export": "resizeElements",
2120
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2121
+ "kind": "function",
2122
+ "signature": "(scene: Scene, ids: readonly string[], from: Bounds, to: Bounds, angle?: number): ExElement[]",
2123
+ "summary": "Resizes the selection from the frame `from` to `to` (both in the frame's own unrotated space; `angle` is the frame's rotation — a single rotated element)."
2124
+ },
2125
+ {
2126
+ "id": "canvas.element-core.resizeMatrix",
2127
+ "export": "resizeMatrix",
2128
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2129
+ "kind": "function",
2130
+ "signature": "(from: CvBox, to: CvBox, angle: number): Matrix",
2131
+ "summary": "Maps the frame `from` onto `to` (both in the frame's space rotated by `angle` about from's centre)."
2132
+ },
2133
+ {
2134
+ "id": "canvas.canvas.restoreAsEdits",
2135
+ "export": "restoreAsEdits",
2136
+ "from": "@g9tm/lynxcontrols-canvas",
2137
+ "kind": "function",
2138
+ "signature": "(saved: readonly BoardElement[], current: readonly BoardElement[], nonce?: () => number): BoardElement[]",
2139
+ "summary": "Restoring a saved version as edits everybody receives: the version's elements come back with versions above anything seen now, and elements added since are deleted (tombstones), so the reconciliation on every client and the server converges on the old scene."
2140
+ },
2141
+ {
2142
+ "id": "canvas.scene.rotate",
2143
+ "export": "rotate",
2144
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2145
+ "kind": "function",
2146
+ "signature": "(point: Point, center: Point, angle: number): Point",
2147
+ "summary": "A point turned about a centre."
2148
+ },
2149
+ {
2150
+ "id": "canvas.scene.rotateElements",
2151
+ "export": "rotateElements",
2152
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2153
+ "kind": "function",
2154
+ "signature": "(scene: Scene, ids: readonly string[], delta: number, pivot: Point): ExElement[]",
2155
+ "summary": "The elements turned by `delta` (radians) about a pivot."
2156
+ },
2157
+ {
2158
+ "id": "canvas.element-core.rotateMatrix",
2159
+ "export": "rotateMatrix",
2160
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2161
+ "kind": "function",
2162
+ "signature": "(angle: number, [cx, cy]: [number, number]): Matrix",
2163
+ "summary": "A matrix that turns by `angle` (radians) about a centre."
2164
+ },
2165
+ {
2166
+ "id": "canvas.element-core.rotatePoint",
2167
+ "export": "rotatePoint",
2168
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2169
+ "kind": "function",
2170
+ "signature": "(point: [number, number], centre: [number, number], angle: number): [number, number]",
2171
+ "summary": "`point` turned by `angle` (radians) about `centre`."
2172
+ },
2173
+ {
2174
+ "id": "canvas.scene.ROUGHNESS",
2175
+ "export": "ROUGHNESS",
2176
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2177
+ "kind": "constant",
2178
+ "signature": "{ readonly architect: 0; readonly artist: 1; readonly cartoonist: 2; }",
2179
+ "summary": "New elements and edits, exactly the way Excalidraw 0.18 makes them (`newElement`, `newTextElement`, `newLinearElement`, `newArrowElement`, `newFreeDrawElement`, `newImageElement`, `newFrameElement`, `mutateElement`): the same fields and defaults, so an element drawn here is a normal Excalidraw element in the web app."
2180
+ },
2181
+ {
2182
+ "id": "canvas.scene.Roundness",
2183
+ "export": "Roundness",
2184
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2185
+ "kind": "interface",
2186
+ "signature": "Roundness",
2187
+ "summary": "A shape's corners (a kind and an optional radius)."
2188
+ },
2189
+ {
2190
+ "id": "canvas.scene.ROUNDNESS",
2191
+ "export": "ROUNDNESS",
2192
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2193
+ "kind": "constant",
2194
+ "signature": "{ readonly LEGACY: 1; readonly PROPORTIONAL_RADIUS: 2; readonly ADAPTIVE_RADIUS: 3; }",
2195
+ "summary": "Excalidraw's roundness kinds."
2196
+ },
2197
+ {
2198
+ "id": "canvas.scene.Scene",
2199
+ "export": "Scene",
2200
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2201
+ "kind": "class",
2202
+ "signature": "typeof Scene",
2203
+ "summary": "The board's elements by id with their order, history (undo / redo) and remote changes."
2204
+ },
2205
+ {
2206
+ "id": "canvas.scene.SceneChange",
2207
+ "export": "SceneChange",
2208
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2209
+ "kind": "interface",
2210
+ "signature": "SceneChange",
2211
+ "summary": "The scene of one board (Excalidraw's `Scene` + `reconcileElements` + per-user history): every element including tombstones, in Excalidraw's z-order. Local edits come in as already bumped elements (`commit`), remote ones are reconciled per element exactly like the server and the web app (a higher version wins, a tie goes to the lower versionNonce), so all copies converge. Undo/redo only touch my own changes and are themselves ordinary edits."
2212
+ },
2213
+ {
2214
+ "id": "canvas.scene.serialize",
2215
+ "export": "serialize",
2216
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2217
+ "kind": "function",
2218
+ "signature": "(segments: Segment[]): string",
2219
+ "summary": "Segments back to SVG path data."
2220
+ },
2221
+ {
2222
+ "id": "canvas.scene.ShapeContext",
2223
+ "export": "ShapeContext",
2224
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2225
+ "kind": "interface",
2226
+ "signature": "ShapeContext",
2227
+ "summary": "What drawing needs besides the element: the background and the scheme."
2228
+ },
2229
+ {
2230
+ "id": "canvas.scene.sizeOfPoints",
2231
+ "export": "sizeOfPoints",
2232
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2233
+ "kind": "function",
2234
+ "signature": "(points: readonly Point[]): { width: number; height: number; }",
2235
+ "summary": "The width and height the points span."
2236
+ },
2237
+ {
2238
+ "id": "canvas.scene.STROKE_COLORS",
2239
+ "export": "STROKE_COLORS",
2240
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2241
+ "kind": "constant",
2242
+ "signature": "string[]",
2243
+ "summary": "Excalidraw's quick colour picks (open-color shades it shows first)."
2244
+ },
2245
+ {
2246
+ "id": "canvas.scene.StrokeStyle",
2247
+ "export": "StrokeStyle",
2248
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2249
+ "kind": "type",
2250
+ "signature": "StrokeStyle",
2251
+ "summary": "How a stroke is drawn."
2252
+ },
2253
+ {
2254
+ "id": "canvas.scene.styleElements",
2255
+ "export": "styleElements",
2256
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2257
+ "kind": "function",
2258
+ "signature": "(scene: Scene, ids: readonly string[], patch: Partial<ExElement>): ExElement[]",
2259
+ "summary": "Style changes for the selection (`text*`/`font*` only reach texts, arrowheads only arrows…)."
2260
+ },
2261
+ {
2262
+ "id": "canvas.scene.TextAlign",
2263
+ "export": "TextAlign",
2264
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2265
+ "kind": "type",
2266
+ "signature": "TextAlign",
2267
+ "summary": "A text's alignment."
2268
+ },
2269
+ {
2270
+ "id": "canvas.scene.textWidth",
2271
+ "export": "textWidth",
2272
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2273
+ "kind": "function",
2274
+ "signature": "(line: string, fontSize: number, fontFamily: number): number",
2275
+ "summary": "Text size without a canvas (the app has none on the native engines): an estimate per character class. The element draws with its host's fonts; Excalidraw measures again with its own when it shows the text."
2276
+ },
2277
+ {
2278
+ "id": "canvas.scene.toItem",
2279
+ "export": "toItem",
2280
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2281
+ "kind": "function",
2282
+ "signature": "(element: ExElement, context: ShapeContext): CvItem",
2283
+ "summary": "The element as a `<g9-canvas>` item."
2284
+ },
2285
+ {
2286
+ "id": "canvas.scene.Tool",
2287
+ "export": "Tool",
2288
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2289
+ "kind": "type",
2290
+ "signature": "Tool",
2291
+ "summary": "The drawing tools of the toolbar (Excalidraw's names where they exist)."
2292
+ },
2293
+ {
2294
+ "id": "canvas.element-core.translate",
2295
+ "export": "translate",
2296
+ "from": "@g9tm/lynxcontrols-canvas/element-core",
2297
+ "kind": "function",
2298
+ "signature": "(dx: number, dy: number): Matrix",
2299
+ "summary": "A matrix that moves by (`dx`, `dy`)."
2300
+ },
2301
+ {
2302
+ "id": "canvas.scene.ungroup",
2303
+ "export": "ungroup",
2304
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2305
+ "kind": "function",
2306
+ "signature": "(scene: Scene, ids: readonly string[]): ExElement[]",
2307
+ "summary": "The elements out of their outermost group."
2308
+ },
2309
+ {
2310
+ "id": "canvas.canvas.useG9CanvasState",
2311
+ "export": "useG9CanvasState",
2312
+ "from": "@g9tm/lynxcontrols-canvas",
2313
+ "kind": "hook",
2314
+ "signature": "(controller: BoardController): BoardState",
2315
+ "summary": "The controller's state, re-rendering on every change."
2316
+ },
2317
+ {
2318
+ "id": "canvas.scene.VerticalAlign",
2319
+ "export": "VerticalAlign",
2320
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2321
+ "kind": "type",
2322
+ "signature": "VerticalAlign",
2323
+ "summary": "A label's place inside its container."
2324
+ },
2325
+ {
2326
+ "id": "canvas.scene.verticalOffset",
2327
+ "export": "verticalOffset",
2328
+ "from": "@g9tm/lynxcontrols-canvas/scene",
2329
+ "kind": "function",
2330
+ "signature": "(fontFamily: number, fontSize: number, lineHeightPx: number): number",
2331
+ "summary": "Excalidraw's `getVerticalOffset`: where the first baseline sits below the text's top."
2332
+ }
2333
+ ]
2334
+ }