@woven-canvas/core 1.0.4 → 1.0.6

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.
@@ -75,10 +75,37 @@ declare const AabbSchema: {
75
75
 
76
76
  export { addComponent }
77
77
 
78
+ declare const AddFrameHighlight: CommandDef< {
79
+ frameId: EntityId;
80
+ }>;
81
+ export { AddFrameHighlight }
82
+ export { AddFrameHighlight as AddFrameHighlight_alias_1 }
83
+ export { AddFrameHighlight as AddFrameHighlight_alias_2 }
84
+
85
+ declare const AddHeld: CommandDef< {
86
+ entityId: EntityId;
87
+ }>;
88
+ export { AddHeld }
89
+ export { AddHeld as AddHeld_alias_1 }
90
+ export { AddHeld as AddHeld_alias_2 }
91
+
78
92
  declare function addPointerSample(pointer: ReturnType<typeof Pointer.write>, position: Vec2, time: number): void;
79
93
  export { addPointerSample }
80
94
  export { addPointerSample as addPointerSample_alias_1 }
81
95
 
96
+ declare const AddSelectionBox: CommandDef<void>;
97
+ export { AddSelectionBox }
98
+ export { AddSelectionBox as AddSelectionBox_alias_1 }
99
+ export { AddSelectionBox as AddSelectionBox_alias_2 }
100
+
101
+ declare const AddTransformBox: CommandDef< {
102
+ transformBoxId: EntityId;
103
+ skipHandles?: boolean;
104
+ }>;
105
+ export { AddTransformBox }
106
+ export { AddTransformBox as AddTransformBox_alias_1 }
107
+ export { AddTransformBox as AddTransformBox_alias_2 }
108
+
82
109
  export { AnyCanvasComponentDef }
83
110
 
84
111
  export { AnyCanvasSingletonDef }
@@ -91,6 +118,16 @@ export { Asset }
91
118
  export { Asset as Asset_alias_1 }
92
119
  export { Asset as Asset_alias_2 }
93
120
 
121
+ declare const AssignFrameChildren: CommandDef< {
122
+ assignments: Array<{
123
+ entityId: EntityId;
124
+ frameId: EntityId | null;
125
+ }>;
126
+ }>;
127
+ export { AssignFrameChildren }
128
+ export { AssignFrameChildren as AssignFrameChildren_alias_1 }
129
+ export { AssignFrameChildren as AssignFrameChildren_alias_2 }
130
+
94
131
  declare function attachKeyboardListeners(domElement: HTMLElement): void;
95
132
  export { attachKeyboardListeners }
96
133
  export { attachKeyboardListeners as attachKeyboardListeners_alias_1 }
@@ -133,6 +170,7 @@ declare const BlockDef: z.ZodObject<{
133
170
  canRotate: z.ZodDefault<z.ZodBoolean>;
134
171
  canScale: z.ZodDefault<z.ZodBoolean>;
135
172
  interactable: z.ZodDefault<z.ZodBoolean>;
173
+ excludeFromRankBounds: z.ZodDefault<z.ZodBoolean>;
136
174
  connectors: z.ZodDefault<z.ZodObject<{
137
175
  enabled: z.ZodDefault<z.ZodBoolean>;
138
176
  terminals: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
@@ -145,6 +183,8 @@ export { BlockDef as BlockDef_alias_1 }
145
183
 
146
184
  declare class BlockDef_2 extends CanvasComponentDef<typeof BlockSchema> {
147
185
  constructor();
186
+ getWorldPosition(ctx: Context, entityId: EntityId, out?: Vec2): Vec2;
187
+ setWorldPosition(ctx: Context, entityId: EntityId, worldPos: Vec2): void;
148
188
  getCenter(ctx: Context, entityId: EntityId, out?: Vec2): Vec2;
149
189
  setCenter(ctx: Context, entityId: EntityId, center: Vec2): void;
150
190
  getCorners(ctx: Context, entityId: EntityId, out?: [Vec2, Vec2, Vec2, Vec2]): [Vec2, Vec2, Vec2, Vec2];
@@ -174,8 +214,18 @@ declare const BlockSchema: {
174
214
  flip: TupleFieldBuilder<BooleanFieldBuilder, 2>;
175
215
  rank: StringFieldBuilder;
176
216
  resizeMode: EnumFieldBuilder<"default" | "scale" | "text" | "free" | "groupOnly">;
217
+ parentId: RefFieldBuilder;
177
218
  };
178
219
 
220
+ declare const blockSystem: EditorSystem;
221
+ export { blockSystem }
222
+ export { blockSystem as blockSystem_alias_1 }
223
+
224
+ declare const BringForwardSelected: CommandDef<void>;
225
+ export { BringForwardSelected }
226
+ export { BringForwardSelected as BringForwardSelected_alias_1 }
227
+ export { BringForwardSelected as BringForwardSelected_alias_2 }
228
+
179
229
  declare const Camera: CameraDef;
180
230
  export { Camera }
181
231
  export { Camera as Camera_alias_1 }
@@ -229,6 +279,15 @@ export { CanvasComponentDef }
229
279
 
230
280
  export { CanvasSingletonDef }
231
281
 
282
+ declare const captureFrameContainmentSystem: EditorSystem;
283
+ export { captureFrameContainmentSystem }
284
+ export { captureFrameContainmentSystem as captureFrameContainmentSystem_alias_1 }
285
+
286
+ declare function cascadeDelete(ctx: Context, entityId: EntityId): void;
287
+ export { cascadeDelete }
288
+ export { cascadeDelete as cascadeDelete_alias_1 }
289
+ export { cascadeDelete as cascadeDelete_alias_2 }
290
+
232
291
  export declare function cleanupCommands(ctx: Context): void;
233
292
 
234
293
  declare function clearBits(buffer: {
@@ -243,6 +302,15 @@ export { clearPointerTrackingState }
243
302
  export { clearPointerTrackingState as clearPointerTrackingState_alias_1 }
244
303
  export { clearPointerTrackingState as clearPointerTrackingState_alias_2 }
245
304
 
305
+ declare const CloneEntities: CommandDef< {
306
+ entityIds: EntityId[];
307
+ offset: Vec2;
308
+ seed: string;
309
+ }>;
310
+ export { CloneEntities }
311
+ export { CloneEntities as CloneEntities_alias_1 }
312
+ export { CloneEntities as CloneEntities_alias_2 }
313
+
246
314
  declare const codeToIndex: Record<string, number>;
247
315
  export { codeToIndex }
248
316
  export { codeToIndex as codeToIndex_alias_1 }
@@ -283,10 +351,21 @@ name: StringFieldBuilder;
283
351
  export { CommandMarker }
284
352
  export { CommandMarker as CommandMarker_alias_1 }
285
353
 
354
+ declare function compareBlockOrder(getBlock: (id: unknown) => SortableBlock | null, a: SortableBlock, b: SortableBlock): number;
355
+ export { compareBlockOrder }
356
+ export { compareBlockOrder as compareBlockOrder_alias_1 }
357
+ export { compareBlockOrder as compareBlockOrder_alias_2 }
358
+
286
359
  export { ComponentDef }
287
360
 
288
361
  export { ComponentSchema }
289
362
 
363
+ declare type ComponentSchema_2 = Record<string, {
364
+ def?: {
365
+ type?: string;
366
+ };
367
+ }>;
368
+
290
369
  declare function computeAabb(ctx: Context, entityId: EntityId, out: Aabb_2): void;
291
370
  export { computeAabb }
292
371
  export { computeAabb as computeAabb_alias_1 }
@@ -304,7 +383,6 @@ export { Connector as Connector_alias_1 }
304
383
  export { Connector as Connector_alias_2 }
305
384
 
306
385
  export { Context }
307
- export { Context as Context_alias_1 }
308
386
 
309
387
  declare const Controls: ControlsDef;
310
388
  export { Controls }
@@ -340,13 +418,38 @@ declare const ControlsSchema: {
340
418
  wheelTool: StringFieldBuilder;
341
419
  modWheelTool: StringFieldBuilder;
342
420
  heldSnapshot: StringFieldBuilder;
421
+ activeToolName: StringFieldBuilder;
343
422
  };
344
423
 
424
+ declare function convertRefsToUuids(ctx: Context, schema: ComponentSchema_2, data: Record<string, unknown>): Record<string, unknown>;
425
+ export { convertRefsToUuids }
426
+ export { convertRefsToUuids as convertRefsToUuids_alias_1 }
427
+ export { convertRefsToUuids as convertRefsToUuids_alias_2 }
428
+
345
429
  export declare const CORE_PLUGIN_NAME = "core";
346
430
 
347
- declare const CorePlugin: EditorPlugin;
348
- export { CorePlugin }
349
- export { CorePlugin as CorePlugin_alias_1 }
431
+ declare type CorePluginOptions = z.output<typeof CorePluginOptionsSchema>;
432
+ export { CorePluginOptions }
433
+ export { CorePluginOptions as CorePluginOptions_alias_1 }
434
+
435
+ declare type CorePluginOptionsInput = z.input<typeof CorePluginOptionsSchema>;
436
+ export { CorePluginOptionsInput }
437
+ export { CorePluginOptionsInput as CorePluginOptionsInput_alias_1 }
438
+
439
+ declare const CorePluginOptionsSchema: z.ZodObject<{
440
+ edgeScrolling: z.ZodDefault<z.ZodObject<{
441
+ enabled: z.ZodDefault<z.ZodBoolean>;
442
+ edgeSizePx: z.ZodDefault<z.ZodNumber>;
443
+ edgeScrollSpeedPxPerFrame: z.ZodDefault<z.ZodNumber>;
444
+ edgeScrollDelayMs: z.ZodDefault<z.ZodNumber>;
445
+ }, z.core.$strip>>;
446
+ }, z.core.$strip>;
447
+ export { CorePluginOptionsSchema }
448
+ export { CorePluginOptionsSchema as CorePluginOptionsSchema_alias_1 }
449
+
450
+ declare function createCorePlugin(options?: CorePluginOptionsInput): EditorPlugin<CorePluginOptions>;
451
+ export { createCorePlugin }
452
+ export { createCorePlugin as createCorePlugin_alias_1 }
350
453
 
351
454
  export { createEntity }
352
455
 
@@ -380,6 +483,24 @@ declare type CursorDefMap = Partial<Record<string, CursorDef>>;
380
483
  export { CursorDefMap }
381
484
  export { CursorDefMap as CursorDefMap_alias_1 }
382
485
 
486
+ declare enum CursorKind {
487
+ Drag = "drag",
488
+ NESW = "nesw",
489
+ NWSE = "nwse",
490
+ NS = "ns",
491
+ EW = "ew",
492
+ RotateNW = "rotateNW",
493
+ RotateNE = "rotateNE",
494
+ RotateSW = "rotateSW",
495
+ RotateSE = "rotateSE"
496
+ }
497
+ export { CursorKind }
498
+ export { CursorKind as CursorKind_alias_1 }
499
+
500
+ declare const CURSORS: Record<string, CursorDef>;
501
+ export { CURSORS }
502
+ export { CURSORS as CURSORS_alias_1 }
503
+
383
504
  declare const CursorSchema: {
384
505
  cursorKind: StringFieldBuilder;
385
506
  rotation: NumberFieldBuilder<"float64">;
@@ -413,6 +534,28 @@ export { defineQuery }
413
534
 
414
535
  export { defineSystem }
415
536
 
537
+ declare const DeselectAll: CommandDef<void>;
538
+ export { DeselectAll }
539
+ export { DeselectAll as DeselectAll_alias_1 }
540
+ export { DeselectAll as DeselectAll_alias_2 }
541
+
542
+ declare function deselectAll(ctx: Context): void;
543
+ export { deselectAll }
544
+ export { deselectAll as deselectAll_alias_1 }
545
+ export { deselectAll as deselectAll_alias_2 }
546
+
547
+ declare const DeselectBlock: CommandDef< {
548
+ entityId: EntityId;
549
+ }>;
550
+ export { DeselectBlock }
551
+ export { DeselectBlock as DeselectBlock_alias_1 }
552
+ export { DeselectBlock as DeselectBlock_alias_2 }
553
+
554
+ declare function deselectBlock(ctx: Context, entityId: EntityId): void;
555
+ export { deselectBlock }
556
+ export { deselectBlock as deselectBlock_alias_1 }
557
+ export { deselectBlock as deselectBlock_alias_2 }
558
+
416
559
  declare function detachKeyboardListeners(domElement: HTMLElement): void;
417
560
  export { detachKeyboardListeners }
418
561
  export { detachKeyboardListeners as detachKeyboardListeners_alias_1 }
@@ -434,6 +577,39 @@ export { detectEmbedProvider }
434
577
  export { detectEmbedProvider as detectEmbedProvider_alias_1 }
435
578
  export { detectEmbedProvider as detectEmbedProvider_alias_2 }
436
579
 
580
+ declare const DragBlock: CommandDef< {
581
+ entityId: EntityId;
582
+ position: Vec2;
583
+ }>;
584
+ export { DragBlock }
585
+ export { DragBlock as DragBlock_alias_1 }
586
+ export { DragBlock as DragBlock_alias_2 }
587
+
588
+ declare const dragHandlerSystem: EditorSystem;
589
+ export { dragHandlerSystem }
590
+ export { dragHandlerSystem as dragHandlerSystem_alias_1 }
591
+
592
+ declare const DragStart: CanvasComponentDef< {
593
+ position: TupleFieldBuilder<NumberFieldBuilder<"float64">, 2>;
594
+ size: TupleFieldBuilder<NumberFieldBuilder<"float64">, 2>;
595
+ rotateZ: NumberFieldBuilder<"float64">;
596
+ flip: TupleFieldBuilder<BooleanFieldBuilder, 2>;
597
+ fontSize: NumberFieldBuilder<"float64">;
598
+ }, "dragStart">;
599
+ export { DragStart }
600
+ export { DragStart as DragStart_alias_1 }
601
+ export { DragStart as DragStart_alias_2 }
602
+
603
+ declare const DuplicateSelected: CommandDef<void>;
604
+ export { DuplicateSelected }
605
+ export { DuplicateSelected as DuplicateSelected_alias_1 }
606
+ export { DuplicateSelected as DuplicateSelected_alias_2 }
607
+
608
+ declare const EditAfterPlacing: CanvasComponentDef< {}, "editAfterPlacing">;
609
+ export { EditAfterPlacing }
610
+ export { EditAfterPlacing as EditAfterPlacing_alias_1 }
611
+ export { EditAfterPlacing as EditAfterPlacing_alias_2 }
612
+
437
613
  declare const Edited: CanvasComponentDef< {}, "edited">;
438
614
  export { Edited }
439
615
  export { Edited as Edited_alias_1 }
@@ -459,6 +635,7 @@ declare class Editor {
459
635
  tick(): Promise<void>;
460
636
  nextTick(callback: (ctx: Context) => void): () => void;
461
637
  command<T>(def: CommandDef<T>, ...args: T extends void ? [] : [T]): void;
638
+ get readonly(): boolean;
462
639
  subscribe(query: QueryDef, callback: QueryCallback): () => void;
463
640
  _getContext(): Context;
464
641
  attachDom(domElement: HTMLElement): void;
@@ -476,6 +653,21 @@ export { EditorOptionsInput as EditorOptionsInput_alias_1 }
476
653
 
477
654
  export declare const EditorOptionsSchema: z.ZodObject<{
478
655
  plugins: z.ZodDefault<z.ZodArray<z.ZodCustom<EditorPluginInput, EditorPluginInput>>>;
656
+ corePlugin: z.ZodDefault<z.ZodCustom<{
657
+ edgeScrolling?: {
658
+ enabled?: boolean | undefined;
659
+ edgeSizePx?: number | undefined;
660
+ edgeScrollSpeedPxPerFrame?: number | undefined;
661
+ edgeScrollDelayMs?: number | undefined;
662
+ } | undefined;
663
+ }, {
664
+ edgeScrolling?: {
665
+ enabled?: boolean | undefined;
666
+ edgeSizePx?: number | undefined;
667
+ edgeScrollSpeedPxPerFrame?: number | undefined;
668
+ edgeScrollDelayMs?: number | undefined;
669
+ } | undefined;
670
+ }>>;
479
671
  maxEntities: z.ZodDefault<z.ZodNumber>;
480
672
  user: z.ZodDefault<z.ZodCustom<{
481
673
  userId?: string | undefined;
@@ -517,6 +709,7 @@ export declare const EditorOptionsSchema: z.ZodObject<{
517
709
  canRotate?: boolean | undefined;
518
710
  canScale?: boolean | undefined;
519
711
  interactable?: boolean | undefined;
712
+ excludeFromRankBounds?: boolean | undefined;
520
713
  connectors?: {
521
714
  enabled?: boolean | undefined;
522
715
  terminals?: [number, number][] | undefined;
@@ -533,6 +726,7 @@ export declare const EditorOptionsSchema: z.ZodObject<{
533
726
  canRotate?: boolean | undefined;
534
727
  canScale?: boolean | undefined;
535
728
  interactable?: boolean | undefined;
729
+ excludeFromRankBounds?: boolean | undefined;
536
730
  connectors?: {
537
731
  enabled?: boolean | undefined;
538
732
  terminals?: [number, number][] | undefined;
@@ -594,6 +788,7 @@ export declare const EditorOptionsSchema: z.ZodObject<{
594
788
  wheelTool?: string | undefined;
595
789
  modWheelTool?: string | undefined;
596
790
  }>>;
791
+ readonly: z.ZodDefault<z.ZodBoolean>;
597
792
  }, z.core.$strip>;
598
793
 
599
794
  declare interface EditorPlugin<TResources = unknown> {
@@ -631,6 +826,7 @@ declare interface EditorResources {
631
826
  singletonsByName: Map<string, AnyCanvasSingletonDef>;
632
827
  componentsById: Map<number, AnyCanvasComponentDef>;
633
828
  singletonsById: Map<number, AnyCanvasSingletonDef>;
829
+ readonly: boolean;
634
830
  }
635
831
  export { EditorResources }
636
832
  export { EditorResources as EditorResources_alias_1 }
@@ -694,6 +890,11 @@ export { EmbedProvider }
694
890
  export { EmbedProvider as EmbedProvider_alias_1 }
695
891
  export { EmbedProvider as EmbedProvider_alias_2 }
696
892
 
893
+ declare const EndTransformBoxEdit: CommandDef<void>;
894
+ export { EndTransformBoxEdit }
895
+ export { EndTransformBoxEdit as EndTransformBoxEdit_alias_1 }
896
+ export { EndTransformBoxEdit as EndTransformBoxEdit_alias_2 }
897
+
697
898
  export { EntityId }
698
899
  export { EntityId as EntityId_alias_1 }
699
900
 
@@ -701,6 +902,11 @@ export { EventType }
701
902
 
702
903
  export { field }
703
904
 
905
+ declare function findFrameAtPoint(ctx: Context, point: [number, number], exclude?: EntityId | null): EntityId | null;
906
+ export { findFrameAtPoint }
907
+ export { findFrameAtPoint as findFrameAtPoint_alias_1 }
908
+ export { findFrameAtPoint as findFrameAtPoint_alias_2 }
909
+
704
910
  declare const FontFamily: z.ZodObject<{
705
911
  name: z.ZodString;
706
912
  displayName: z.ZodString;
@@ -732,16 +938,39 @@ declare class FontLoader {
732
938
  export { FontLoader }
733
939
  export { FontLoader as FontLoader_alias_1 }
734
940
 
735
- declare const Frame: CanvasSingletonDef< {
736
- number: NumberFieldBuilder<"uint32">;
737
- delta: NumberFieldBuilder<"float64">;
738
- time: NumberFieldBuilder<"float64">;
739
- lastTime: NumberFieldBuilder<"float64">;
941
+ declare const Frame: CanvasComponentDef< {
942
+ label: StringFieldBuilder;
740
943
  }, "frame">;
741
944
  export { Frame }
742
945
  export { Frame as Frame_alias_1 }
743
946
  export { Frame as Frame_alias_2 }
744
947
 
948
+ export declare const FRAME_EDGE_THICKNESS = 12;
949
+
950
+ declare const FrameContainmentState: EditorStateDef< {
951
+ state: StringFieldBuilder;
952
+ highlightedFrame: RefFieldBuilder;
953
+ }>;
954
+ export { FrameContainmentState }
955
+ export { FrameContainmentState as FrameContainmentState_alias_1 }
956
+ export { FrameContainmentState as FrameContainmentState_alias_2 }
957
+
958
+ declare const FrameContainmentStateEnum: {
959
+ readonly Idle: "idle";
960
+ readonly Tracking: "tracking";
961
+ };
962
+ export { FrameContainmentStateEnum }
963
+ export { FrameContainmentStateEnum as FrameContainmentStateEnum_alias_1 }
964
+
965
+ declare type FrameContainmentStateValue = (typeof FrameContainmentStateEnum)[keyof typeof FrameContainmentStateEnum];
966
+ export { FrameContainmentStateValue }
967
+ export { FrameContainmentStateValue as FrameContainmentStateValue_alias_1 }
968
+
969
+ declare const FrameDropTarget: CanvasComponentDef< {}, "frameDropTarget">;
970
+ export { FrameDropTarget }
971
+ export { FrameDropTarget as FrameDropTarget_alias_1 }
972
+ export { FrameDropTarget as FrameDropTarget_alias_2 }
973
+
745
974
  declare interface FrameInput {
746
975
  type: 'frame';
747
976
  ctx: Context;
@@ -753,9 +982,10 @@ export { FrameInput }
753
982
  export { FrameInput as FrameInput_alias_1 }
754
983
  export { FrameInput as FrameInput_alias_2 }
755
984
 
756
- declare const frameSystem: EditorSystem;
757
- export { frameSystem }
758
- export { frameSystem as frameSystem_alias_1 }
985
+ declare function generateUuidBySeed(originalUuid: string, generatorSeed: string | number): string;
986
+ export { generateUuidBySeed }
987
+ export { generateUuidBySeed as generateUuidBySeed_alias_1 }
988
+ export { generateUuidBySeed as generateUuidBySeed_alias_2 }
759
989
 
760
990
  export { getBackrefs }
761
991
 
@@ -773,8 +1003,23 @@ export { getBlockResizeMode }
773
1003
  export { getBlockResizeMode as getBlockResizeMode_alias_1 }
774
1004
  export { getBlockResizeMode as getBlockResizeMode_alias_2 }
775
1005
 
1006
+ declare function getChildren(ctx: Context, parentId: EntityId): EntityId[];
1007
+ export { getChildren }
1008
+ export { getChildren as getChildren_alias_1 }
1009
+ export { getChildren as getChildren_alias_2 }
1010
+
776
1011
  export declare function getCursorSvg(cursors: Record<string, CursorDef>, kind: string, rotateZ: number): string;
777
1012
 
1013
+ declare function getDescendants(ctx: Context, parentId: EntityId): EntityId[];
1014
+ export { getDescendants }
1015
+ export { getDescendants as getDescendants_alias_1 }
1016
+ export { getDescendants as getDescendants_alias_2 }
1017
+
1018
+ declare function getEntityUuid(ctx: Context, entityId: EntityId | null | undefined): string | null;
1019
+ export { getEntityUuid }
1020
+ export { getEntityUuid as getEntityUuid_alias_1 }
1021
+ export { getEntityUuid as getEntityUuid_alias_2 }
1022
+
778
1023
  declare function getFrameInput(ctx: Context): FrameInput;
779
1024
  export { getFrameInput }
780
1025
  export { getFrameInput as getFrameInput_alias_1 }
@@ -803,6 +1048,11 @@ export { getPointerInput }
803
1048
  export { getPointerInput as getPointerInput_alias_1 }
804
1049
  export { getPointerInput as getPointerInput_alias_2 }
805
1050
 
1051
+ declare function getRefFieldNames(schema: ComponentSchema_2): string[];
1052
+ export { getRefFieldNames }
1053
+ export { getRefFieldNames as getRefFieldNames_alias_1 }
1054
+ export { getRefFieldNames as getRefFieldNames_alias_2 }
1055
+
806
1056
  export { getResources }
807
1057
 
808
1058
  declare function getTopmostBlockAtPoint(ctx: Context, point: Vec2): EntityId | undefined;
@@ -810,6 +1060,11 @@ export { getTopmostBlockAtPoint }
810
1060
  export { getTopmostBlockAtPoint as getTopmostBlockAtPoint_alias_1 }
811
1061
  export { getTopmostBlockAtPoint as getTopmostBlockAtPoint_alias_2 }
812
1062
 
1063
+ declare function getWorldPosition(ctx: Context, entityId: EntityId, out?: Vec2): Vec2;
1064
+ export { getWorldPosition }
1065
+ export { getWorldPosition as getWorldPosition_alias_1 }
1066
+ export { getWorldPosition as getWorldPosition_alias_2 }
1067
+
813
1068
  declare const Grid: GridDef;
814
1069
  export { Grid }
815
1070
  export { Grid as Grid_alias_1 }
@@ -858,6 +1113,13 @@ export { Held }
858
1113
  export { Held as Held_alias_1 }
859
1114
  export { Held as Held_alias_2 }
860
1115
 
1116
+ declare const HideTransformBox: CommandDef< {
1117
+ transformBoxId: EntityId;
1118
+ }>;
1119
+ export { HideTransformBox }
1120
+ export { HideTransformBox as HideTransformBox_alias_1 }
1121
+ export { HideTransformBox as HideTransformBox_alias_2 }
1122
+
861
1123
  declare const HitGeometry: HitGeometryDef;
862
1124
  export { HitGeometry }
863
1125
  export { HitGeometry as HitGeometry_alias_1 }
@@ -888,6 +1150,10 @@ declare const HitGeometrySchema: {
888
1150
  arcCount: NumberFieldBuilder<"uint16">;
889
1151
  };
890
1152
 
1153
+ declare const hoverCursorSystem: EditorSystem;
1154
+ export { hoverCursorSystem }
1155
+ export { hoverCursorSystem as hoverCursorSystem_alias_1 }
1156
+
891
1157
  declare const Hovered: CanvasComponentDef< {}, "hovered">;
892
1158
  export { Hovered }
893
1159
  export { Hovered as Hovered_alias_1 }
@@ -952,11 +1218,20 @@ export { intersectSystem as intersectSystem_alias_1 }
952
1218
 
953
1219
  export { isAlive }
954
1220
 
1221
+ declare function isAncestor(ctx: Context, entityId: EntityId, candidateAncestor: EntityId): boolean;
1222
+ export { isAncestor }
1223
+ export { isAncestor as isAncestor_alias_1 }
1224
+ export { isAncestor as isAncestor_alias_2 }
1225
+
955
1226
  declare function isHeldByRemote(ctx: Context, entityId: EntityId): boolean;
956
1227
  export { isHeldByRemote }
957
1228
  export { isHeldByRemote as isHeldByRemote_alias_1 }
958
1229
  export { isHeldByRemote as isHeldByRemote_alias_2 }
959
1230
 
1231
+ declare function isReadonly(ctx: Context): boolean;
1232
+ export { isReadonly }
1233
+ export { isReadonly as isReadonly_alias_1 }
1234
+
960
1235
  declare const Key: {
961
1236
  readonly A: number;
962
1237
  readonly B: number;
@@ -1272,7 +1547,7 @@ declare const PointerSchema: {
1272
1547
  position: TupleFieldBuilder<NumberFieldBuilder<"float32">, 2>;
1273
1548
  downPosition: TupleFieldBuilder<NumberFieldBuilder<"float32">, 2>;
1274
1549
  downFrame: NumberFieldBuilder<"uint32">;
1275
- button: EnumFieldBuilder<"left" | "none" | "middle" | "right" | "back" | "forward">;
1550
+ button: EnumFieldBuilder<"left" | "right" | "none" | "middle" | "back" | "forward">;
1276
1551
  pointerType: EnumFieldBuilder<"mouse" | "pen" | "touch">;
1277
1552
  pressure: NumberFieldBuilder<"float32">;
1278
1553
  obscured: BooleanFieldBuilder;
@@ -1337,10 +1612,48 @@ declare const Redo: CommandDef<void>;
1337
1612
  export { Redo }
1338
1613
  export { Redo as Redo_alias_1 }
1339
1614
 
1615
+ declare const RemoveBlock: CommandDef< {
1616
+ entityId: EntityId;
1617
+ }>;
1618
+ export { RemoveBlock }
1619
+ export { RemoveBlock as RemoveBlock_alias_1 }
1620
+ export { RemoveBlock as RemoveBlock_alias_2 }
1621
+
1340
1622
  export { removeComponent }
1341
1623
 
1342
1624
  export { removeEntity }
1343
1625
 
1626
+ declare const RemoveFrameHighlight: CommandDef< {
1627
+ frameId: EntityId;
1628
+ }>;
1629
+ export { RemoveFrameHighlight }
1630
+ export { RemoveFrameHighlight as RemoveFrameHighlight_alias_1 }
1631
+ export { RemoveFrameHighlight as RemoveFrameHighlight_alias_2 }
1632
+
1633
+ declare const RemoveHeld: CommandDef< {
1634
+ entityId: EntityId;
1635
+ }>;
1636
+ export { RemoveHeld }
1637
+ export { RemoveHeld as RemoveHeld_alias_1 }
1638
+ export { RemoveHeld as RemoveHeld_alias_2 }
1639
+
1640
+ declare const RemoveSelected: CommandDef<void>;
1641
+ export { RemoveSelected }
1642
+ export { RemoveSelected as RemoveSelected_alias_1 }
1643
+ export { RemoveSelected as RemoveSelected_alias_2 }
1644
+
1645
+ declare const RemoveSelectionBox: CommandDef<void>;
1646
+ export { RemoveSelectionBox }
1647
+ export { RemoveSelectionBox as RemoveSelectionBox_alias_1 }
1648
+ export { RemoveSelectionBox as RemoveSelectionBox_alias_2 }
1649
+
1650
+ declare const RemoveTransformBox: CommandDef< {
1651
+ transformBoxId: EntityId;
1652
+ }>;
1653
+ export { RemoveTransformBox }
1654
+ export { RemoveTransformBox as RemoveTransformBox_alias_1 }
1655
+ export { RemoveTransformBox as RemoveTransformBox_alias_2 }
1656
+
1344
1657
  declare const ResetKeyboard: CommandDef<void>;
1345
1658
  export { ResetKeyboard }
1346
1659
  export { ResetKeyboard as ResetKeyboard_alias_1 }
@@ -1362,6 +1675,14 @@ export { resolveEmbedUrl }
1362
1675
  export { resolveEmbedUrl as resolveEmbedUrl_alias_1 }
1363
1676
  export { resolveEmbedUrl as resolveEmbedUrl_alias_2 }
1364
1677
 
1678
+ declare function resolveRefFields(ctx: Context, entityId: EntityId, componentDef: {
1679
+ schema: ComponentSchema_2;
1680
+ write: (ctx: Context, entityId: EntityId) => Record<string, unknown>;
1681
+ }, componentData: Record<string, unknown>, uuidToEntityId: Map<string, EntityId>): void;
1682
+ export { resolveRefFields }
1683
+ export { resolveRefFields as resolveRefFields_alias_1 }
1684
+ export { resolveRefFields as resolveRefFields_alias_2 }
1685
+
1365
1686
  declare function runMachine<TState extends string, TContext extends object>(machine: AnyStateMachine, currentState: TState, context: TContext, events: Array<{
1366
1687
  type: string;
1367
1688
  [key: string]: unknown;
@@ -1413,6 +1734,100 @@ declare const screenSystem: EditorSystem;
1413
1734
  export { screenSystem }
1414
1735
  export { screenSystem as screenSystem_alias_1 }
1415
1736
 
1737
+ declare const ScrollEdgesState: {
1738
+ readonly Idle: "idle";
1739
+ readonly Waiting: "waiting";
1740
+ readonly Scrolling: "scrolling";
1741
+ };
1742
+
1743
+ declare type ScrollEdgesState = (typeof ScrollEdgesState)[keyof typeof ScrollEdgesState];
1744
+ export { ScrollEdgesState }
1745
+ export { ScrollEdgesState as ScrollEdgesState_alias_1 }
1746
+
1747
+ declare const ScrollEdgesStateSingleton: EditorStateDef< {
1748
+ state: EnumFieldBuilder<"idle" | "waiting" | "scrolling">;
1749
+ edgeEnterStartTime: NumberFieldBuilder<"float64">;
1750
+ }>;
1751
+ export { ScrollEdgesStateSingleton }
1752
+ export { ScrollEdgesStateSingleton as ScrollEdgesStateSingleton_alias_1 }
1753
+ export { ScrollEdgesStateSingleton as ScrollEdgesStateSingleton_alias_2 }
1754
+
1755
+ declare const scrollEdgesSystem: EditorSystem;
1756
+ export { scrollEdgesSystem }
1757
+ export { scrollEdgesSystem as scrollEdgesSystem_alias_1 }
1758
+
1759
+ declare const SelectAll: CommandDef<void>;
1760
+ export { SelectAll }
1761
+ export { SelectAll as SelectAll_alias_1 }
1762
+ export { SelectAll as SelectAll_alias_2 }
1763
+
1764
+ declare function selectAll(ctx: Context): void;
1765
+ export { selectAll }
1766
+ export { selectAll as selectAll_alias_1 }
1767
+ export { selectAll as selectAll_alias_2 }
1768
+
1769
+ declare const SelectBlock: CommandDef< {
1770
+ entityId: EntityId;
1771
+ deselectOthers?: boolean;
1772
+ }>;
1773
+ export { SelectBlock }
1774
+ export { SelectBlock as SelectBlock_alias_1 }
1775
+ export { SelectBlock as SelectBlock_alias_2 }
1776
+
1777
+ declare function selectBlock(ctx: Context, entityId: EntityId): void;
1778
+ export { selectBlock }
1779
+ export { selectBlock as selectBlock_alias_1 }
1780
+ export { selectBlock as selectBlock_alias_2 }
1781
+
1782
+ declare const Selected: CanvasComponentDef< {}, "selected">;
1783
+ export { Selected }
1784
+ export { Selected as Selected_alias_1 }
1785
+ export { Selected as Selected_alias_2 }
1786
+
1787
+ declare const SelectionBox: CanvasComponentDef< {}, "selectionBox">;
1788
+ export { SelectionBox }
1789
+ export { SelectionBox as SelectionBox_alias_1 }
1790
+ export { SelectionBox as SelectionBox_alias_2 }
1791
+
1792
+ declare const SelectionState: {
1793
+ readonly Idle: "idle";
1794
+ readonly Pointing: "pointing";
1795
+ readonly Dragging: "dragging";
1796
+ readonly SelectionBoxPointing: "selectionBoxPointing";
1797
+ readonly SelectionBoxDragging: "selectionBoxDragging";
1798
+ };
1799
+
1800
+ declare type SelectionState = (typeof SelectionState)[keyof typeof SelectionState];
1801
+ export { SelectionState }
1802
+ export { SelectionState as SelectionState_alias_1 }
1803
+
1804
+ declare const SelectionStateSingleton: EditorStateDef< {
1805
+ state: EnumFieldBuilder<"idle" | "pointing" | "dragging" | "selectionBoxPointing" | "selectionBoxDragging">;
1806
+ dragStart: TupleFieldBuilder<NumberFieldBuilder<"float64">, 2>;
1807
+ pointingStartClient: TupleFieldBuilder<NumberFieldBuilder<"float64">, 2>;
1808
+ pointingStartWorld: TupleFieldBuilder<NumberFieldBuilder<"float64">, 2>;
1809
+ draggedEntityStart: TupleFieldBuilder<NumberFieldBuilder<"float64">, 2>;
1810
+ draggedEntity: RefFieldBuilder;
1811
+ cloneGeneratorSeed: StringFieldBuilder;
1812
+ isCloning: BooleanFieldBuilder;
1813
+ }>;
1814
+ export { SelectionStateSingleton }
1815
+ export { SelectionStateSingleton as SelectionStateSingleton_alias_1 }
1816
+ export { SelectionStateSingleton as SelectionStateSingleton_alias_2 }
1817
+
1818
+ declare const selectSystem: EditorSystem;
1819
+ export { selectSystem }
1820
+ export { selectSystem as selectSystem_alias_1 }
1821
+
1822
+ declare const selectSystem_2: EditorSystem;
1823
+ export { selectSystem_2 as selectSystem_alias_2 }
1824
+ export { selectSystem_2 as selectSystem_alias_3 }
1825
+
1826
+ declare const SendBackwardSelected: CommandDef<void>;
1827
+ export { SendBackwardSelected }
1828
+ export { SendBackwardSelected as SendBackwardSelected_alias_1 }
1829
+ export { SendBackwardSelected as SendBackwardSelected_alias_2 }
1830
+
1416
1831
  declare function setBit(buffer: {
1417
1832
  [index: number]: number;
1418
1833
  length: number;
@@ -1420,6 +1835,16 @@ declare function setBit(buffer: {
1420
1835
  export { setBit }
1421
1836
  export { setBit as setBit_alias_1 }
1422
1837
 
1838
+ declare const SetCursor: CommandDef< {
1839
+ cursorKind?: string;
1840
+ rotation?: number;
1841
+ contextCursorKind?: string;
1842
+ contextRotation?: number;
1843
+ }>;
1844
+ export { SetCursor }
1845
+ export { SetCursor as SetCursor_alias_1 }
1846
+ export { SetCursor as SetCursor_alias_2 }
1847
+
1423
1848
  declare const Shape: CanvasComponentDef< {
1424
1849
  kind: StringFieldBuilder;
1425
1850
  strokeKind: EnumFieldBuilder<"none" | "solid" | "dashed">;
@@ -1437,12 +1862,35 @@ export { Shape }
1437
1862
  export { Shape as Shape_alias_1 }
1438
1863
  export { Shape as Shape_alias_2 }
1439
1864
 
1865
+ declare const ShowTransformBox: CommandDef< {
1866
+ transformBoxId: EntityId;
1867
+ }>;
1868
+ export { ShowTransformBox }
1869
+ export { ShowTransformBox as ShowTransformBox_alias_1 }
1870
+ export { ShowTransformBox as ShowTransformBox_alias_2 }
1871
+
1440
1872
  export { SINGLETON_ENTITY_ID }
1441
1873
 
1442
1874
  export { SingletonSyncBehavior }
1443
1875
 
1876
+ declare interface SortableBlock {
1877
+ rank: string;
1878
+ stratum: Stratum;
1879
+ parentId: unknown;
1880
+ }
1881
+ export { SortableBlock }
1882
+ export { SortableBlock as SortableBlock_alias_1 }
1883
+ export { SortableBlock as SortableBlock_alias_2 }
1884
+
1444
1885
  export declare function sortPluginsByDependencies(plugins: EditorPlugin[]): EditorPlugin[];
1445
1886
 
1887
+ declare const StartTransformBoxEdit: CommandDef< {
1888
+ transformBoxId: EntityId;
1889
+ }>;
1890
+ export { StartTransformBoxEdit }
1891
+ export { StartTransformBoxEdit as StartTransformBoxEdit_alias_1 }
1892
+ export { StartTransformBoxEdit as StartTransformBoxEdit_alias_2 }
1893
+
1446
1894
  declare interface StateSchema extends ComponentSchema {
1447
1895
  state: {
1448
1896
  def: StringFieldDef | EnumFieldDef<any>;
@@ -1512,10 +1960,115 @@ declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
1512
1960
  export { TextAlignment }
1513
1961
  export { TextAlignment as TextAlignment_alias_1 }
1514
1962
 
1963
+ declare const Tick: CanvasSingletonDef< {
1964
+ number: NumberFieldBuilder<"uint32">;
1965
+ delta: NumberFieldBuilder<"float64">;
1966
+ time: NumberFieldBuilder<"float64">;
1967
+ lastTime: NumberFieldBuilder<"float64">;
1968
+ }, "tick">;
1969
+ export { Tick }
1970
+ export { Tick as Tick_alias_1 }
1971
+ export { Tick as Tick_alias_2 }
1972
+
1973
+ declare const tickSystem: EditorSystem;
1974
+ export { tickSystem }
1975
+ export { tickSystem as tickSystem_alias_1 }
1976
+
1977
+ declare const ToggleSelect: CommandDef< {
1978
+ entityId: EntityId;
1979
+ }>;
1980
+ export { ToggleSelect }
1981
+ export { ToggleSelect as ToggleSelect_alias_1 }
1982
+ export { ToggleSelect as ToggleSelect_alias_2 }
1983
+
1984
+ declare const TransformBox: CanvasComponentDef< {}, "transformBox">;
1985
+ export { TransformBox }
1986
+ export { TransformBox as TransformBox_alias_1 }
1987
+ export { TransformBox as TransformBox_alias_2 }
1988
+
1989
+ declare const TransformBoxState: {
1990
+ readonly None: "none";
1991
+ readonly Idle: "idle";
1992
+ readonly Editing: "editing";
1993
+ };
1994
+
1995
+ declare type TransformBoxState = (typeof TransformBoxState)[keyof typeof TransformBoxState];
1996
+ export { TransformBoxState }
1997
+ export { TransformBoxState as TransformBoxState_alias_1 }
1998
+
1999
+ declare const TransformBoxStateSingleton: EditorStateDef< {
2000
+ state: StringFieldBuilder;
2001
+ transformBoxId: RefFieldBuilder;
2002
+ }>;
2003
+ export { TransformBoxStateSingleton }
2004
+ export { TransformBoxStateSingleton as TransformBoxStateSingleton_alias_1 }
2005
+ export { TransformBoxStateSingleton as TransformBoxStateSingleton_alias_2 }
2006
+
2007
+ declare const transformBoxSystem: EditorSystem;
2008
+ export { transformBoxSystem }
2009
+ export { transformBoxSystem as transformBoxSystem_alias_1 }
2010
+
2011
+ declare const transformBoxSystem_2: EditorSystem;
2012
+ export { transformBoxSystem_2 as transformBoxSystem_alias_2 }
2013
+ export { transformBoxSystem_2 as transformBoxSystem_alias_3 }
2014
+
2015
+ declare const TransformHandle: CanvasComponentDef< {
2016
+ kind: StringFieldBuilder;
2017
+ vectorX: NumberFieldBuilder<"int8">;
2018
+ vectorY: NumberFieldBuilder<"int8">;
2019
+ transformBox: RefFieldBuilder;
2020
+ cursorKind: StringFieldBuilder;
2021
+ }, "transformHandle">;
2022
+ export { TransformHandle }
2023
+ export { TransformHandle as TransformHandle_alias_1 }
2024
+ export { TransformHandle as TransformHandle_alias_2 }
2025
+
2026
+ declare const TransformHandleKind: {
2027
+ readonly Scale: "scale";
2028
+ readonly Stretch: "stretch";
2029
+ readonly Rotate: "rotate";
2030
+ readonly RotateScale: "rotateScale";
2031
+ };
2032
+
2033
+ declare type TransformHandleKind = (typeof TransformHandleKind)[keyof typeof TransformHandleKind];
2034
+ export { TransformHandleKind }
2035
+ export { TransformHandleKind as TransformHandleKind_alias_1 }
2036
+
2037
+ declare const UncloneEntities: CommandDef< {
2038
+ entityIds: EntityId[];
2039
+ seed: string;
2040
+ }>;
2041
+ export { UncloneEntities }
2042
+ export { UncloneEntities as UncloneEntities_alias_1 }
2043
+ export { UncloneEntities as UncloneEntities_alias_2 }
2044
+
1515
2045
  declare const Undo: CommandDef<void>;
1516
2046
  export { Undo }
1517
2047
  export { Undo as Undo_alias_1 }
1518
2048
 
2049
+ declare const updateFrameContainmentSystem: EditorSystem;
2050
+ export { updateFrameContainmentSystem }
2051
+ export { updateFrameContainmentSystem as updateFrameContainmentSystem_alias_1 }
2052
+
2053
+ declare const updateFrameSetupSystem: EditorSystem;
2054
+ export { updateFrameSetupSystem }
2055
+ export { updateFrameSetupSystem as updateFrameSetupSystem_alias_1 }
2056
+
2057
+ declare const UpdateSelectionBox: CommandDef< {
2058
+ bounds: Aabb_2;
2059
+ deselectOthers?: boolean;
2060
+ }>;
2061
+ export { UpdateSelectionBox }
2062
+ export { UpdateSelectionBox as UpdateSelectionBox_alias_1 }
2063
+ export { UpdateSelectionBox as UpdateSelectionBox_alias_2 }
2064
+
2065
+ declare const UpdateTransformBox: CommandDef< {
2066
+ transformBoxId: EntityId;
2067
+ }>;
2068
+ export { UpdateTransformBox }
2069
+ export { UpdateTransformBox as UpdateTransformBox_alias_1 }
2070
+ export { UpdateTransformBox as UpdateTransformBox_alias_2 }
2071
+
1519
2072
  declare const UploadState: {
1520
2073
  readonly Pending: "pending";
1521
2074
  readonly Uploading: "uploading";
@@ -1576,4 +2129,9 @@ declare const VerticalAlignment: {
1576
2129
  export { VerticalAlignment }
1577
2130
  export { VerticalAlignment as VerticalAlignment_alias_1 }
1578
2131
 
2132
+ declare function worldToLocal(ctx: Context, entityId: EntityId, worldPos: Vec2, out?: Vec2): Vec2;
2133
+ export { worldToLocal }
2134
+ export { worldToLocal as worldToLocal_alias_1 }
2135
+ export { worldToLocal as worldToLocal_alias_2 }
2136
+
1579
2137
  export { }