@inditextech/weave-sdk 0.20.3 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk.cjs +157 -11257
- package/dist/sdk.d.cts +141 -54
- package/dist/sdk.d.cts.map +1 -0
- package/dist/sdk.d.ts +304 -44
- package/dist/sdk.d.ts.map +1 -0
- package/dist/sdk.js +133 -72
- package/dist/sdk.js.map +1 -0
- package/package.json +2 -2
- package/dist/extensions.d-NOtVg64R.d.ts +0 -176
package/dist/sdk.d.ts
CHANGED
|
@@ -1,12 +1,173 @@
|
|
|
1
|
-
import { MappedTypeDescription, NodeSerializable, WeaveActionBase, WeaveConfig, WeaveElementAttributes, WeaveElementInstance, WeaveExportNodeOptions, WeaveFont, WeaveLoggerConfig, WeaveMousePointInfo, WeaveMousePointInfoSimple, WeaveNodeBase, WeaveNodeConfiguration, WeaveNodeFound, WeaveNodeTransformerProperties, WeavePluginBase, WeavePosition, WeaveSelection, WeaveSerializedGroup, WeaveState, WeaveStateElement, WeaveStatus, WeaveStoreBase, WeaveStoreOptions, WeaveUndoRedoChange, WeaveUser } from "./extensions.d-NOtVg64R.js";
|
|
2
1
|
import Konva from "konva";
|
|
3
2
|
import { Vector2d } from "konva/lib/types";
|
|
3
|
+
import * as Y from "yjs";
|
|
4
4
|
import { Doc } from "yjs";
|
|
5
5
|
import Emittery from "emittery";
|
|
6
6
|
import pino, { Logger } from "pino";
|
|
7
7
|
import { StageConfig } from "konva/lib/Stage";
|
|
8
8
|
import { KonvaEventObject } from "konva/lib/Node";
|
|
9
9
|
|
|
10
|
+
//#region ../types/dist/types.d.ts
|
|
11
|
+
//#region src/base/node.d.ts
|
|
12
|
+
interface WeaveNodeBase {
|
|
13
|
+
create(id: string, props: WeaveElementAttributes): WeaveStateElement;
|
|
14
|
+
onRender(props: WeaveElementAttributes): WeaveElementInstance;
|
|
15
|
+
onUpdate(instance: WeaveElementInstance, nextProps: WeaveElementAttributes): void;
|
|
16
|
+
onDestroy(instance: WeaveElementInstance): void;
|
|
17
|
+
serialize(instance: WeaveElementInstance): WeaveStateElement;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/base/action.d.ts
|
|
22
|
+
interface WeaveActionBase {
|
|
23
|
+
onInit?(): void;
|
|
24
|
+
trigger(cancelAction: () => void, params?: unknown): unknown;
|
|
25
|
+
internalUpdate?(): void;
|
|
26
|
+
cleanup?(): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/base/plugin.d.ts
|
|
31
|
+
interface WeavePluginBase {
|
|
32
|
+
onInit?(): void;
|
|
33
|
+
onRender?(): void;
|
|
34
|
+
enable(): void;
|
|
35
|
+
disable(): void;
|
|
36
|
+
isEnabled(): boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/base/store.d.ts
|
|
41
|
+
type WeaveStoreOptions = {
|
|
42
|
+
getUser: () => WeaveUser;
|
|
43
|
+
undoManagerOptions?: WeaveUndoManagerOptions;
|
|
44
|
+
};
|
|
45
|
+
interface WeaveStoreBase {
|
|
46
|
+
connect(): void;
|
|
47
|
+
disconnect(): void;
|
|
48
|
+
setAwarenessInfo(field: string, value: unknown): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/types.d.ts
|
|
53
|
+
type WeaveConfig = {
|
|
54
|
+
store: WeaveStoreBase;
|
|
55
|
+
nodes?: WeaveNodeBase[];
|
|
56
|
+
actions?: WeaveActionBase[];
|
|
57
|
+
plugins?: WeavePluginBase[];
|
|
58
|
+
fonts?: WeaveFont[];
|
|
59
|
+
logger?: WeaveLoggerConfig;
|
|
60
|
+
};
|
|
61
|
+
type WeaveStatusKeys = keyof typeof WEAVE_INSTANCE_STATUS;
|
|
62
|
+
type WeaveStatus = (typeof WEAVE_INSTANCE_STATUS)[WeaveStatusKeys];
|
|
63
|
+
type NodeSerializable = Konva.NodeConfig & {
|
|
64
|
+
id: string;
|
|
65
|
+
nodeType: string;
|
|
66
|
+
};
|
|
67
|
+
type WeaveElementAttributes = {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
id?: string;
|
|
70
|
+
nodeType?: string;
|
|
71
|
+
children?: WeaveStateElement[];
|
|
72
|
+
};
|
|
73
|
+
type WeaveStateElement = {
|
|
74
|
+
key: string;
|
|
75
|
+
type: string;
|
|
76
|
+
props: WeaveElementAttributes;
|
|
77
|
+
};
|
|
78
|
+
type WeaveState = {
|
|
79
|
+
weave: {
|
|
80
|
+
key: "stage";
|
|
81
|
+
type: "stage";
|
|
82
|
+
props: {
|
|
83
|
+
[key: string]: unknown;
|
|
84
|
+
id: "stage";
|
|
85
|
+
children: WeaveStateElement[];
|
|
86
|
+
};
|
|
87
|
+
} | Record<string, WeaveStateElement>;
|
|
88
|
+
};
|
|
89
|
+
type WeaveSelection = {
|
|
90
|
+
instance: Konva.Shape | Konva.Group;
|
|
91
|
+
node: WeaveStateElement;
|
|
92
|
+
};
|
|
93
|
+
type WeaveMousePointInfoSimple = {
|
|
94
|
+
mousePoint: Vector2d;
|
|
95
|
+
container: Konva.Layer | Konva.Group | undefined;
|
|
96
|
+
};
|
|
97
|
+
type WeaveMousePointInfo = WeaveMousePointInfoSimple & {
|
|
98
|
+
measureContainer: Konva.Layer | Konva.Group | undefined;
|
|
99
|
+
};
|
|
100
|
+
type WeaveSerializedGroup = {
|
|
101
|
+
serializedNodes: WeaveStateElement[];
|
|
102
|
+
minPoint: Vector2d;
|
|
103
|
+
} | undefined;
|
|
104
|
+
type WeaveNodeFound = {
|
|
105
|
+
node: WeaveStateElement | null;
|
|
106
|
+
parent: WeaveStateElement | null;
|
|
107
|
+
index: number;
|
|
108
|
+
};
|
|
109
|
+
type WeaveElementInstance = Konva.Layer | Konva.Group | Konva.Shape;
|
|
110
|
+
type WeaveLoggerConfig = {
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
level?: "debug" | "info" | "warn" | "error";
|
|
113
|
+
};
|
|
114
|
+
type WeavePositionKeys = keyof typeof WEAVE_NODE_POSITION;
|
|
115
|
+
type WeavePosition = (typeof WEAVE_NODE_POSITION)[WeavePositionKeys];
|
|
116
|
+
type WeaveExportNodeOptions = {
|
|
117
|
+
format?: typeof WEAVE_EXPORT_FORMATS.PNG;
|
|
118
|
+
padding?: number;
|
|
119
|
+
pixelRatio?: number;
|
|
120
|
+
backgroundColor?: string;
|
|
121
|
+
quality?: number;
|
|
122
|
+
};
|
|
123
|
+
type WeaveUser = {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
name: string;
|
|
126
|
+
email: string;
|
|
127
|
+
};
|
|
128
|
+
type WeaveFont = {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
};
|
|
132
|
+
type WeaveUndoManagerOptions = {
|
|
133
|
+
captureTimeout?: number;
|
|
134
|
+
trackedOrigins?: Set<any>;
|
|
135
|
+
};
|
|
136
|
+
type WeaveUndoRedoChange = {
|
|
137
|
+
canRedo: boolean;
|
|
138
|
+
canUndo: boolean;
|
|
139
|
+
redoStackLength: number;
|
|
140
|
+
undoStackLength: number;
|
|
141
|
+
};
|
|
142
|
+
declare type docElementTypeDescription = "xml" | "text" | Array<any> | object;
|
|
143
|
+
declare type DocTypeDescription = {
|
|
144
|
+
[key: string]: docElementTypeDescription;
|
|
145
|
+
};
|
|
146
|
+
declare type MappedTypeDescription<T extends DocTypeDescription> = { readonly [P in keyof T]: T[P] extends "xml" ? Y.XmlFragment : T[P] extends "text" ? Y.Text : T[P] extends Array<any> ? T[P] : T[P] extends object ? Partial<T[P]> : never };
|
|
147
|
+
type WeaveNodeTransformerProperties = Konva.TransformerConfig;
|
|
148
|
+
type WeaveNodeConfiguration = {
|
|
149
|
+
transform: Partial<WeaveNodeTransformerProperties>;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/constants.d.ts
|
|
154
|
+
|
|
155
|
+
declare const WEAVE_INSTANCE_STATUS: {
|
|
156
|
+
readonly "IDLE": "idle";
|
|
157
|
+
readonly "STARTING": "starting";
|
|
158
|
+
readonly "LOADING_FONTS": "loadingFonts";
|
|
159
|
+
readonly "RUNNING": "running";
|
|
160
|
+
};
|
|
161
|
+
declare const WEAVE_NODE_POSITION: {
|
|
162
|
+
readonly "UP": "up";
|
|
163
|
+
readonly "DOWN": "down";
|
|
164
|
+
readonly "FRONT": "front";
|
|
165
|
+
readonly "BACK": "back";
|
|
166
|
+
};
|
|
167
|
+
declare const WEAVE_EXPORT_FORMATS: {
|
|
168
|
+
readonly "PNG": "image/png";
|
|
169
|
+
readonly "JPEG": "image/jpeg";
|
|
170
|
+
}; //#endregion
|
|
10
171
|
//#region src/stores/store.d.ts
|
|
11
172
|
declare abstract class WeaveStore implements WeaveStoreBase {
|
|
12
173
|
protected instance: Weave;
|
|
@@ -38,8 +199,11 @@ declare abstract class WeaveStore implements WeaveStoreBase {
|
|
|
38
199
|
abstract connect(): void;
|
|
39
200
|
abstract disconnect(): void;
|
|
40
201
|
abstract setAwarenessInfo(field: string, value: unknown): void;
|
|
41
|
-
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
//#endregion
|
|
42
205
|
//#region src/plugins/plugin.d.ts
|
|
206
|
+
//# sourceMappingURL=store.d.ts.map
|
|
43
207
|
declare abstract class WeavePlugin implements WeavePluginBase {
|
|
44
208
|
protected instance: Weave;
|
|
45
209
|
protected name: string;
|
|
@@ -57,6 +221,7 @@ declare abstract class WeavePlugin implements WeavePluginBase {
|
|
|
57
221
|
|
|
58
222
|
//#endregion
|
|
59
223
|
//#region src/plugins/nodes-selection/types.d.ts
|
|
224
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
60
225
|
type WeaveNodesSelectionPluginOnSelectionStateEvent = boolean;
|
|
61
226
|
type WeaveNodesSelectionPluginOnNodesChangeEvent = WeaveSelection[];
|
|
62
227
|
type WeaveNodesSelectionPluginOnStageSelectionEvent = undefined;
|
|
@@ -79,6 +244,7 @@ type WeaveNodesSelectionPluginParams = {
|
|
|
79
244
|
|
|
80
245
|
//#endregion
|
|
81
246
|
//#region src/plugins/nodes-selection/nodes-selection.d.ts
|
|
247
|
+
//# sourceMappingURL=types.d.ts.map
|
|
82
248
|
declare class WeaveNodesSelectionPlugin extends WeavePlugin {
|
|
83
249
|
private tr;
|
|
84
250
|
private config;
|
|
@@ -113,6 +279,7 @@ declare class WeaveNodesSelectionPlugin extends WeavePlugin {
|
|
|
113
279
|
|
|
114
280
|
//#endregion
|
|
115
281
|
//#region src/nodes/node.d.ts
|
|
282
|
+
//# sourceMappingURL=nodes-selection.d.ts.map
|
|
116
283
|
declare abstract class WeaveNode implements WeaveNodeBase {
|
|
117
284
|
protected instance: Weave;
|
|
118
285
|
protected nodeType: string;
|
|
@@ -136,6 +303,7 @@ declare abstract class WeaveNode implements WeaveNodeBase {
|
|
|
136
303
|
|
|
137
304
|
//#endregion
|
|
138
305
|
//#region src/actions/action.d.ts
|
|
306
|
+
//# sourceMappingURL=node.d.ts.map
|
|
139
307
|
declare abstract class WeaveAction implements WeaveActionBase {
|
|
140
308
|
protected instance: Weave;
|
|
141
309
|
protected name: string;
|
|
@@ -155,6 +323,7 @@ declare abstract class WeaveAction implements WeaveActionBase {
|
|
|
155
323
|
|
|
156
324
|
//#endregion
|
|
157
325
|
//#region src/logger/logger.d.ts
|
|
326
|
+
//# sourceMappingURL=action.d.ts.map
|
|
158
327
|
declare class WeaveLogger {
|
|
159
328
|
private config;
|
|
160
329
|
private disabled;
|
|
@@ -169,6 +338,7 @@ declare class WeaveLogger {
|
|
|
169
338
|
|
|
170
339
|
//#endregion
|
|
171
340
|
//#region src/managers/register.d.ts
|
|
341
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
172
342
|
declare class WeaveRegisterManager {
|
|
173
343
|
private instance;
|
|
174
344
|
private nodesHandlers;
|
|
@@ -192,6 +362,7 @@ declare class WeaveRegisterManager {
|
|
|
192
362
|
|
|
193
363
|
//#endregion
|
|
194
364
|
//#region src/managers/stage.d.ts
|
|
365
|
+
//# sourceMappingURL=register.d.ts.map
|
|
195
366
|
declare class WeaveStageManager {
|
|
196
367
|
private instance;
|
|
197
368
|
private logger;
|
|
@@ -210,6 +381,7 @@ declare class WeaveStageManager {
|
|
|
210
381
|
|
|
211
382
|
//#endregion
|
|
212
383
|
//#region src/weave.d.ts
|
|
384
|
+
//# sourceMappingURL=stage.d.ts.map
|
|
213
385
|
declare class Weave extends Emittery {
|
|
214
386
|
private id;
|
|
215
387
|
private config;
|
|
@@ -287,6 +459,7 @@ declare class Weave extends Emittery {
|
|
|
287
459
|
};
|
|
288
460
|
addNode(node: WeaveStateElement, parentId?: string, index?: number | undefined, doRender?: boolean): void;
|
|
289
461
|
updateNode(node: WeaveStateElement, doRender?: boolean): void;
|
|
462
|
+
updateNodes(nodes: WeaveStateElement[], doRender?: boolean): void;
|
|
290
463
|
removeNode(node: WeaveStateElement, doRender?: boolean): void;
|
|
291
464
|
removeNodes(nodes: WeaveStateElement[], doRender?: boolean): void;
|
|
292
465
|
moveNode(node: WeaveStateElement, position: WeavePosition, doRender?: boolean): void;
|
|
@@ -312,6 +485,7 @@ declare class Weave extends Emittery {
|
|
|
312
485
|
|
|
313
486
|
//#endregion
|
|
314
487
|
//#region src/stores/types.d.ts
|
|
488
|
+
//# sourceMappingURL=weave.d.ts.map
|
|
315
489
|
type WeaveStoreOnStateChangeEvent = WeaveState;
|
|
316
490
|
type WeaveStoreOnRoomLoadedEvent = boolean;
|
|
317
491
|
type WeaveStoreOnUndoRedoChangeEvent = WeaveUndoRedoChange;
|
|
@@ -319,6 +493,7 @@ type WeaveStoreOnNodeChangeEvent = WeaveSelection;
|
|
|
319
493
|
|
|
320
494
|
//#endregion
|
|
321
495
|
//#region src/actions/types.d.ts
|
|
496
|
+
//# sourceMappingURL=types.d.ts.map
|
|
322
497
|
type WeaveActionPropsChangeEvent = {
|
|
323
498
|
instance: WeaveAction;
|
|
324
499
|
props: WeaveElementAttributes;
|
|
@@ -326,6 +501,7 @@ type WeaveActionPropsChangeEvent = {
|
|
|
326
501
|
|
|
327
502
|
//#endregion
|
|
328
503
|
//#region src/utils.d.ts
|
|
504
|
+
//# sourceMappingURL=types.d.ts.map
|
|
329
505
|
declare function resetScale(node: Konva.Node): void;
|
|
330
506
|
declare function clearContainerTargets(instance: Weave): void;
|
|
331
507
|
declare function checkIfOverContainer(instance: Weave, node: Konva.Node): Konva.Node | undefined;
|
|
@@ -333,6 +509,7 @@ declare function moveNodeToContainer(instance: Weave, node: Konva.Node): Konva.N
|
|
|
333
509
|
|
|
334
510
|
//#endregion
|
|
335
511
|
//#region src/nodes/stage/stage.d.ts
|
|
512
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
336
513
|
declare class WeaveStageNode extends WeaveNode {
|
|
337
514
|
protected nodeType: string;
|
|
338
515
|
onRender(props: WeaveElementAttributes): WeaveElementInstance;
|
|
@@ -341,6 +518,7 @@ declare class WeaveStageNode extends WeaveNode {
|
|
|
341
518
|
|
|
342
519
|
//#endregion
|
|
343
520
|
//#region src/nodes/layer/layer.d.ts
|
|
521
|
+
//# sourceMappingURL=stage.d.ts.map
|
|
344
522
|
declare class WeaveLayerNode extends WeaveNode {
|
|
345
523
|
protected nodeType: string;
|
|
346
524
|
onRender(props: WeaveElementAttributes): WeaveElementInstance;
|
|
@@ -350,6 +528,7 @@ declare class WeaveLayerNode extends WeaveNode {
|
|
|
350
528
|
|
|
351
529
|
//#endregion
|
|
352
530
|
//#region src/nodes/group/types.d.ts
|
|
531
|
+
//# sourceMappingURL=layer.d.ts.map
|
|
353
532
|
type WeaveGroupProperties = {
|
|
354
533
|
transform: WeaveNodeTransformerProperties;
|
|
355
534
|
};
|
|
@@ -359,6 +538,7 @@ type WeaveGroupNodeParams = {
|
|
|
359
538
|
|
|
360
539
|
//#endregion
|
|
361
540
|
//#region src/nodes/group/group.d.ts
|
|
541
|
+
//# sourceMappingURL=types.d.ts.map
|
|
362
542
|
declare class WeaveGroupNode extends WeaveNode {
|
|
363
543
|
private config;
|
|
364
544
|
protected nodeType: string;
|
|
@@ -370,6 +550,7 @@ declare class WeaveGroupNode extends WeaveNode {
|
|
|
370
550
|
|
|
371
551
|
//#endregion
|
|
372
552
|
//#region src/nodes/rectangle/types.d.ts
|
|
553
|
+
//# sourceMappingURL=group.d.ts.map
|
|
373
554
|
type WeaveRectangleProperties = {
|
|
374
555
|
transform: WeaveNodeTransformerProperties;
|
|
375
556
|
};
|
|
@@ -379,6 +560,7 @@ type WeaveRectangleNodeParams = {
|
|
|
379
560
|
|
|
380
561
|
//#endregion
|
|
381
562
|
//#region src/nodes/rectangle/rectangle.d.ts
|
|
563
|
+
//# sourceMappingURL=types.d.ts.map
|
|
382
564
|
declare class WeaveRectangleNode extends WeaveNode {
|
|
383
565
|
private config;
|
|
384
566
|
protected nodeType: string;
|
|
@@ -389,6 +571,7 @@ declare class WeaveRectangleNode extends WeaveNode {
|
|
|
389
571
|
|
|
390
572
|
//#endregion
|
|
391
573
|
//#region src/nodes/line/types.d.ts
|
|
574
|
+
//# sourceMappingURL=rectangle.d.ts.map
|
|
392
575
|
type WeaveLineProperties = {
|
|
393
576
|
transform: WeaveNodeTransformerProperties;
|
|
394
577
|
};
|
|
@@ -398,6 +581,7 @@ type WeaveLineNodeParams = {
|
|
|
398
581
|
|
|
399
582
|
//#endregion
|
|
400
583
|
//#region src/nodes/line/line.d.ts
|
|
584
|
+
//# sourceMappingURL=types.d.ts.map
|
|
401
585
|
declare class WeaveLineNode extends WeaveNode {
|
|
402
586
|
private config;
|
|
403
587
|
protected nodeType: string;
|
|
@@ -408,8 +592,9 @@ declare class WeaveLineNode extends WeaveNode {
|
|
|
408
592
|
|
|
409
593
|
//#endregion
|
|
410
594
|
//#region src/nodes/text/types.d.ts
|
|
595
|
+
//# sourceMappingURL=line.d.ts.map
|
|
411
596
|
type TextSerializable = Konva.TextConfig & NodeSerializable & {
|
|
412
|
-
type:
|
|
597
|
+
type: 'text';
|
|
413
598
|
id: string;
|
|
414
599
|
};
|
|
415
600
|
type WeaveTextProperties = {
|
|
@@ -421,6 +606,7 @@ type WeaveTextNodeParams = {
|
|
|
421
606
|
|
|
422
607
|
//#endregion
|
|
423
608
|
//#region src/nodes/text/text.d.ts
|
|
609
|
+
//# sourceMappingURL=types.d.ts.map
|
|
424
610
|
declare class WeaveTextNode extends WeaveNode {
|
|
425
611
|
private config;
|
|
426
612
|
protected nodeType: string;
|
|
@@ -449,6 +635,7 @@ declare class WeaveTextNode extends WeaveNode {
|
|
|
449
635
|
|
|
450
636
|
//#endregion
|
|
451
637
|
//#region src/nodes/image/types.d.ts
|
|
638
|
+
//# sourceMappingURL=text.d.ts.map
|
|
452
639
|
type ImageProps = WeaveElementAttributes & {
|
|
453
640
|
id: string;
|
|
454
641
|
width?: number;
|
|
@@ -468,6 +655,7 @@ type WeaveImageNodeParams = {
|
|
|
468
655
|
|
|
469
656
|
//#endregion
|
|
470
657
|
//#region src/nodes/image/image.d.ts
|
|
658
|
+
//# sourceMappingURL=types.d.ts.map
|
|
471
659
|
declare class WeaveImageNode extends WeaveNode {
|
|
472
660
|
private config;
|
|
473
661
|
protected nodeType: string;
|
|
@@ -483,6 +671,7 @@ declare class WeaveImageNode extends WeaveNode {
|
|
|
483
671
|
|
|
484
672
|
//#endregion
|
|
485
673
|
//#region src/nodes/frame/constants.d.ts
|
|
674
|
+
//# sourceMappingURL=image.d.ts.map
|
|
486
675
|
declare const WEAVE_FRAME_NODE_TYPE = "frame";
|
|
487
676
|
declare const WEAVE_FRAME_NODE_SIZES_MULTIPLIER = 5;
|
|
488
677
|
declare const WEAVE_FRAME_NODE_SIZES_ORIENTATION: {
|
|
@@ -529,6 +718,7 @@ declare const WEAVE_FRAME_NODE_DEFAULT_PROPS: {
|
|
|
529
718
|
|
|
530
719
|
//#endregion
|
|
531
720
|
//#region src/nodes/frame/types.d.ts
|
|
721
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
532
722
|
type WeaveFrameNodeSizesOrientationKeys = keyof typeof WEAVE_FRAME_NODE_SIZES_ORIENTATION;
|
|
533
723
|
type WeaveFrameNodeSizesOrientation = (typeof WEAVE_FRAME_NODE_SIZES_ORIENTATION)[WeaveFrameNodeSizesOrientationKeys];
|
|
534
724
|
type WeaveFrameNodeSizesKeys = keyof typeof WEAVE_FRAME_NODE_SIZES_TYPES;
|
|
@@ -566,6 +756,7 @@ type WeaveFrameNodeParams = {
|
|
|
566
756
|
|
|
567
757
|
//#endregion
|
|
568
758
|
//#region src/nodes/frame/frame.d.ts
|
|
759
|
+
//# sourceMappingURL=types.d.ts.map
|
|
569
760
|
declare class WeaveFrameNode extends WeaveNode {
|
|
570
761
|
private config;
|
|
571
762
|
protected nodeType: string;
|
|
@@ -578,12 +769,14 @@ declare class WeaveFrameNode extends WeaveNode {
|
|
|
578
769
|
|
|
579
770
|
//#endregion
|
|
580
771
|
//#region src/actions/zoom-out-tool/types.d.ts
|
|
772
|
+
//# sourceMappingURL=frame.d.ts.map
|
|
581
773
|
type WeaveZoomOutToolActionParams = {
|
|
582
774
|
previousAction: string;
|
|
583
775
|
};
|
|
584
776
|
|
|
585
777
|
//#endregion
|
|
586
778
|
//#region src/actions/zoom-out-tool/zoom-out-tool.d.ts
|
|
779
|
+
//# sourceMappingURL=types.d.ts.map
|
|
587
780
|
declare class WeaveZoomOutToolAction extends WeaveAction {
|
|
588
781
|
protected previousAction: string;
|
|
589
782
|
protected cancelAction: () => void;
|
|
@@ -597,12 +790,14 @@ declare class WeaveZoomOutToolAction extends WeaveAction {
|
|
|
597
790
|
|
|
598
791
|
//#endregion
|
|
599
792
|
//#region src/actions/zoom-in-tool/types.d.ts
|
|
793
|
+
//# sourceMappingURL=zoom-out-tool.d.ts.map
|
|
600
794
|
type WeaveZoomInToolActionParams = {
|
|
601
795
|
previousAction: string;
|
|
602
796
|
};
|
|
603
797
|
|
|
604
798
|
//#endregion
|
|
605
799
|
//#region src/actions/zoom-in-tool/zoom-in-tool.d.ts
|
|
800
|
+
//# sourceMappingURL=types.d.ts.map
|
|
606
801
|
declare class WeaveZoomInToolAction extends WeaveAction {
|
|
607
802
|
protected previousAction: string;
|
|
608
803
|
protected cancelAction: () => void;
|
|
@@ -616,12 +811,14 @@ declare class WeaveZoomInToolAction extends WeaveAction {
|
|
|
616
811
|
|
|
617
812
|
//#endregion
|
|
618
813
|
//#region src/actions/fit-to-screen-tool/types.d.ts
|
|
814
|
+
//# sourceMappingURL=zoom-in-tool.d.ts.map
|
|
619
815
|
type WeaveFitToScreenToolActionParams = {
|
|
620
816
|
previousAction: string;
|
|
621
817
|
};
|
|
622
818
|
|
|
623
819
|
//#endregion
|
|
624
820
|
//#region src/actions/fit-to-screen-tool/fit-to-screen-tool.d.ts
|
|
821
|
+
//# sourceMappingURL=types.d.ts.map
|
|
625
822
|
declare class WeaveFitToScreenToolAction extends WeaveAction {
|
|
626
823
|
protected previousAction: string;
|
|
627
824
|
protected cancelAction: () => void;
|
|
@@ -635,12 +832,14 @@ declare class WeaveFitToScreenToolAction extends WeaveAction {
|
|
|
635
832
|
|
|
636
833
|
//#endregion
|
|
637
834
|
//#region src/actions/fit-to-selection-tool/types.d.ts
|
|
835
|
+
//# sourceMappingURL=fit-to-screen-tool.d.ts.map
|
|
638
836
|
type WeaveFitToSelectionToolActionParams = {
|
|
639
837
|
previousAction: string;
|
|
640
838
|
};
|
|
641
839
|
|
|
642
840
|
//#endregion
|
|
643
841
|
//#region src/actions/fit-to-selection-tool/fit-to-selection-tool.d.ts
|
|
842
|
+
//# sourceMappingURL=types.d.ts.map
|
|
644
843
|
declare class WeaveFitToSelectionToolAction extends WeaveAction {
|
|
645
844
|
protected previousAction: string;
|
|
646
845
|
protected cancelAction: () => void;
|
|
@@ -655,19 +854,22 @@ declare class WeaveFitToSelectionToolAction extends WeaveAction {
|
|
|
655
854
|
|
|
656
855
|
//#endregion
|
|
657
856
|
//#region src/actions/move-tool/constants.d.ts
|
|
857
|
+
//# sourceMappingURL=fit-to-selection-tool.d.ts.map
|
|
658
858
|
declare const MOVE_TOOL_ACTION_NAME = "moveTool";
|
|
659
859
|
declare const MOVE_TOOL_STATE: {
|
|
660
|
-
readonly
|
|
661
|
-
readonly
|
|
860
|
+
readonly IDLE: "idle";
|
|
861
|
+
readonly MOVING: "moving";
|
|
662
862
|
};
|
|
663
863
|
|
|
664
864
|
//#endregion
|
|
665
865
|
//#region src/actions/move-tool/types.d.ts
|
|
866
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
666
867
|
type WeaveMoveToolActionStateKeys = keyof typeof MOVE_TOOL_STATE;
|
|
667
868
|
type WeaveMoveToolActionState = (typeof MOVE_TOOL_STATE)[WeaveMoveToolActionStateKeys];
|
|
668
869
|
|
|
669
870
|
//#endregion
|
|
670
871
|
//#region src/actions/move-tool/move-tool.d.ts
|
|
872
|
+
//# sourceMappingURL=types.d.ts.map
|
|
671
873
|
declare class WeaveMoveToolAction extends WeaveAction {
|
|
672
874
|
protected initialized: boolean;
|
|
673
875
|
protected state: WeaveMoveToolActionState;
|
|
@@ -685,19 +887,22 @@ declare class WeaveMoveToolAction extends WeaveAction {
|
|
|
685
887
|
|
|
686
888
|
//#endregion
|
|
687
889
|
//#region src/actions/selection-tool/constants.d.ts
|
|
890
|
+
//# sourceMappingURL=move-tool.d.ts.map
|
|
688
891
|
declare const SELECTION_TOOL_ACTION_NAME = "selectionTool";
|
|
689
892
|
declare const SELECTION_TOOL_STATE: {
|
|
690
|
-
readonly
|
|
691
|
-
readonly
|
|
893
|
+
readonly IDLE: "idle";
|
|
894
|
+
readonly SELECTING: "selection";
|
|
692
895
|
};
|
|
693
896
|
|
|
694
897
|
//#endregion
|
|
695
898
|
//#region src/actions/selection-tool/types.d.ts
|
|
899
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
696
900
|
type WeaveSelectionToolActionStateKeys = keyof typeof SELECTION_TOOL_STATE;
|
|
697
901
|
type WeaveSelectionToolActionState = (typeof SELECTION_TOOL_STATE)[WeaveSelectionToolActionStateKeys];
|
|
698
902
|
|
|
699
903
|
//#endregion
|
|
700
904
|
//#region src/actions/selection-tool/selection-tool.d.ts
|
|
905
|
+
//# sourceMappingURL=types.d.ts.map
|
|
701
906
|
declare class WeaveSelectionToolAction extends WeaveAction {
|
|
702
907
|
protected initialized: boolean;
|
|
703
908
|
protected state: WeaveSelectionToolActionState;
|
|
@@ -715,19 +920,22 @@ declare class WeaveSelectionToolAction extends WeaveAction {
|
|
|
715
920
|
|
|
716
921
|
//#endregion
|
|
717
922
|
//#region src/actions/eraser-tool/constants.d.ts
|
|
923
|
+
//# sourceMappingURL=selection-tool.d.ts.map
|
|
718
924
|
declare const ERASER_TOOL_ACTION_NAME = "eraserTool";
|
|
719
925
|
declare const ERASER_TOOL_STATE: {
|
|
720
|
-
readonly
|
|
721
|
-
readonly
|
|
926
|
+
readonly IDLE: "idle";
|
|
927
|
+
readonly ERASING: "erasing";
|
|
722
928
|
};
|
|
723
929
|
|
|
724
930
|
//#endregion
|
|
725
931
|
//#region src/actions/eraser-tool/types.d.ts
|
|
932
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
726
933
|
type WeaveEraserToolActionStateKeys = keyof typeof ERASER_TOOL_STATE;
|
|
727
934
|
type WeaveEraserToolActionState = (typeof ERASER_TOOL_STATE)[WeaveEraserToolActionStateKeys];
|
|
728
935
|
|
|
729
936
|
//#endregion
|
|
730
937
|
//#region src/actions/eraser-tool/eraser-tool.d.ts
|
|
938
|
+
//# sourceMappingURL=types.d.ts.map
|
|
731
939
|
declare class WeaveEraserToolAction extends WeaveAction {
|
|
732
940
|
protected initialized: boolean;
|
|
733
941
|
protected state: WeaveEraserToolActionState;
|
|
@@ -746,21 +954,24 @@ declare class WeaveEraserToolAction extends WeaveAction {
|
|
|
746
954
|
|
|
747
955
|
//#endregion
|
|
748
956
|
//#region src/actions/rectangle-tool/constants.d.ts
|
|
957
|
+
//# sourceMappingURL=eraser-tool.d.ts.map
|
|
749
958
|
declare const RECTANGLE_TOOL_ACTION_NAME = "rectangleTool";
|
|
750
959
|
declare const RECTANGLE_TOOL_STATE: {
|
|
751
|
-
readonly
|
|
752
|
-
readonly
|
|
753
|
-
readonly
|
|
754
|
-
readonly
|
|
960
|
+
readonly IDLE: "idle";
|
|
961
|
+
readonly ADDING: "adding";
|
|
962
|
+
readonly DEFINING_SIZE: "definingSize";
|
|
963
|
+
readonly ADDED: "added";
|
|
755
964
|
};
|
|
756
965
|
|
|
757
966
|
//#endregion
|
|
758
967
|
//#region src/actions/rectangle-tool/types.d.ts
|
|
968
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
759
969
|
type WeaveRectangleToolActionStateKeys = keyof typeof RECTANGLE_TOOL_STATE;
|
|
760
970
|
type WeaveRectangleToolActionState = (typeof RECTANGLE_TOOL_STATE)[WeaveRectangleToolActionStateKeys];
|
|
761
971
|
|
|
762
972
|
//#endregion
|
|
763
973
|
//#region src/actions/rectangle-tool/rectangle-tool.d.ts
|
|
974
|
+
//# sourceMappingURL=types.d.ts.map
|
|
764
975
|
declare class WeaveRectangleToolAction extends WeaveAction {
|
|
765
976
|
protected initialized: boolean;
|
|
766
977
|
protected state: WeaveRectangleToolActionState;
|
|
@@ -794,21 +1005,24 @@ declare class WeaveRectangleToolAction extends WeaveAction {
|
|
|
794
1005
|
|
|
795
1006
|
//#endregion
|
|
796
1007
|
//#region src/actions/pen-tool/constants.d.ts
|
|
1008
|
+
//# sourceMappingURL=rectangle-tool.d.ts.map
|
|
797
1009
|
declare const PEN_TOOL_ACTION_NAME = "penTool";
|
|
798
1010
|
declare const PEN_TOOL_STATE: {
|
|
799
|
-
readonly
|
|
800
|
-
readonly
|
|
801
|
-
readonly
|
|
802
|
-
readonly
|
|
1011
|
+
readonly IDLE: "idle";
|
|
1012
|
+
readonly ADDING: "adding";
|
|
1013
|
+
readonly DEFINING_SIZE: "definingSize";
|
|
1014
|
+
readonly ADDED: "added";
|
|
803
1015
|
};
|
|
804
1016
|
|
|
805
1017
|
//#endregion
|
|
806
1018
|
//#region src/actions/pen-tool/types.d.ts
|
|
1019
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
807
1020
|
type WeavePenToolActionStateKeys = keyof typeof PEN_TOOL_STATE;
|
|
808
1021
|
type WeavePenToolActionState = (typeof PEN_TOOL_STATE)[WeavePenToolActionStateKeys];
|
|
809
1022
|
|
|
810
1023
|
//#endregion
|
|
811
1024
|
//#region src/actions/pen-tool/pen-tool.d.ts
|
|
1025
|
+
//# sourceMappingURL=types.d.ts.map
|
|
812
1026
|
declare class WeavePenToolAction extends WeaveAction {
|
|
813
1027
|
protected initialized: boolean;
|
|
814
1028
|
protected initialCursor: string | null;
|
|
@@ -842,20 +1056,23 @@ declare class WeavePenToolAction extends WeaveAction {
|
|
|
842
1056
|
|
|
843
1057
|
//#endregion
|
|
844
1058
|
//#region src/actions/brush-tool/constants.d.ts
|
|
1059
|
+
//# sourceMappingURL=pen-tool.d.ts.map
|
|
845
1060
|
declare const BRUSH_TOOL_ACTION_NAME = "brushTool";
|
|
846
1061
|
declare const BRUSH_TOOL_STATE: {
|
|
847
|
-
readonly
|
|
848
|
-
readonly
|
|
849
|
-
readonly
|
|
1062
|
+
readonly INACTIVE: "inactive";
|
|
1063
|
+
readonly IDLE: "idle";
|
|
1064
|
+
readonly DEFINE_STROKE: "defineStroke";
|
|
850
1065
|
};
|
|
851
1066
|
|
|
852
1067
|
//#endregion
|
|
853
1068
|
//#region src/actions/brush-tool/types.d.ts
|
|
1069
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
854
1070
|
type WeaveBrushToolActionStateKeys = keyof typeof BRUSH_TOOL_STATE;
|
|
855
1071
|
type WeaveBrushToolActionState = (typeof BRUSH_TOOL_STATE)[WeaveBrushToolActionStateKeys];
|
|
856
1072
|
|
|
857
1073
|
//#endregion
|
|
858
1074
|
//#region src/actions/brush-tool/brush-tool.d.ts
|
|
1075
|
+
//# sourceMappingURL=types.d.ts.map
|
|
859
1076
|
declare class WeaveBrushToolAction extends WeaveAction {
|
|
860
1077
|
protected initialized: boolean;
|
|
861
1078
|
protected state: WeaveBrushToolActionState;
|
|
@@ -884,20 +1101,22 @@ declare class WeaveBrushToolAction extends WeaveAction {
|
|
|
884
1101
|
|
|
885
1102
|
//#endregion
|
|
886
1103
|
//#region src/actions/text-tool/constants.d.ts
|
|
1104
|
+
//# sourceMappingURL=brush-tool.d.ts.map
|
|
887
1105
|
declare const TEXT_TOOL_ACTION_NAME = "textTool";
|
|
888
1106
|
declare const TEXT_TOOL_STATE: {
|
|
889
|
-
readonly
|
|
890
|
-
readonly
|
|
891
|
-
readonly
|
|
1107
|
+
readonly IDLE: "idle";
|
|
1108
|
+
readonly ADDING: "adding";
|
|
1109
|
+
readonly FINISHED: "finished";
|
|
892
1110
|
};
|
|
893
1111
|
declare const TEXT_LAYOUT: {
|
|
894
|
-
readonly
|
|
895
|
-
readonly
|
|
896
|
-
readonly
|
|
1112
|
+
readonly AUTO_ALL: "auto-all";
|
|
1113
|
+
readonly AUTO_HEIGHT: "auto-height";
|
|
1114
|
+
readonly FIXED: "fixed";
|
|
897
1115
|
};
|
|
898
1116
|
|
|
899
1117
|
//#endregion
|
|
900
1118
|
//#region src/actions/text-tool/types.d.ts
|
|
1119
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
901
1120
|
type WeaveTextToolActionStateKeys = keyof typeof TEXT_TOOL_STATE;
|
|
902
1121
|
type WeaveTextToolActionState = (typeof TEXT_TOOL_STATE)[WeaveTextToolActionStateKeys];
|
|
903
1122
|
type WeaveTextLayoutKeys = keyof typeof TEXT_LAYOUT;
|
|
@@ -905,6 +1124,7 @@ type WeaveTextLayout = (typeof TEXT_LAYOUT)[WeaveTextLayoutKeys];
|
|
|
905
1124
|
|
|
906
1125
|
//#endregion
|
|
907
1126
|
//#region src/actions/text-tool/text-tool.d.ts
|
|
1127
|
+
//# sourceMappingURL=types.d.ts.map
|
|
908
1128
|
declare class WeaveTextToolAction extends WeaveAction {
|
|
909
1129
|
protected initialized: boolean;
|
|
910
1130
|
protected initialCursor: string | null;
|
|
@@ -927,16 +1147,18 @@ declare class WeaveTextToolAction extends WeaveAction {
|
|
|
927
1147
|
|
|
928
1148
|
//#endregion
|
|
929
1149
|
//#region src/actions/image-tool/constants.d.ts
|
|
1150
|
+
//# sourceMappingURL=text-tool.d.ts.map
|
|
930
1151
|
declare const IMAGE_TOOL_ACTION_NAME = "imageTool";
|
|
931
1152
|
declare const IMAGE_TOOL_STATE: {
|
|
932
|
-
readonly
|
|
933
|
-
readonly
|
|
934
|
-
readonly
|
|
935
|
-
readonly
|
|
1153
|
+
readonly IDLE: "idle";
|
|
1154
|
+
readonly UPLOADING: "uploading";
|
|
1155
|
+
readonly ADDING: "adding";
|
|
1156
|
+
readonly FINISHED: "finished";
|
|
936
1157
|
};
|
|
937
1158
|
|
|
938
1159
|
//#endregion
|
|
939
1160
|
//#region src/actions/image-tool/types.d.ts
|
|
1161
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
940
1162
|
type WeaveImageToolActionStateKeys = keyof typeof IMAGE_TOOL_STATE;
|
|
941
1163
|
type WeaveImageToolActionState = (typeof IMAGE_TOOL_STATE)[WeaveImageToolActionStateKeys];
|
|
942
1164
|
type WeaveImageToolActionOnStartLoadImageEvent = undefined;
|
|
@@ -950,6 +1172,7 @@ type WeaveImageToolActionTriggerReturn = {
|
|
|
950
1172
|
|
|
951
1173
|
//#endregion
|
|
952
1174
|
//#region src/actions/image-tool/image-tool.d.ts
|
|
1175
|
+
//# sourceMappingURL=types.d.ts.map
|
|
953
1176
|
declare class WeaveImageToolAction extends WeaveAction {
|
|
954
1177
|
protected initialized: boolean;
|
|
955
1178
|
protected initialCursor: string | null;
|
|
@@ -985,15 +1208,17 @@ declare class WeaveImageToolAction extends WeaveAction {
|
|
|
985
1208
|
|
|
986
1209
|
//#endregion
|
|
987
1210
|
//#region src/actions/frame-tool/constants.d.ts
|
|
1211
|
+
//# sourceMappingURL=image-tool.d.ts.map
|
|
988
1212
|
declare const FRAME_TOOL_ACTION_NAME = "frameTool";
|
|
989
1213
|
declare const FRAME_TOOL_STATE: {
|
|
990
|
-
readonly
|
|
991
|
-
readonly
|
|
992
|
-
readonly
|
|
1214
|
+
readonly IDLE: "idle";
|
|
1215
|
+
readonly ADDING: "adding";
|
|
1216
|
+
readonly ADDED: "added";
|
|
993
1217
|
};
|
|
994
1218
|
|
|
995
1219
|
//#endregion
|
|
996
1220
|
//#region src/actions/frame-tool/types.d.ts
|
|
1221
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
997
1222
|
type WeaveFrameToolActionStateKeys = keyof typeof FRAME_TOOL_STATE;
|
|
998
1223
|
type WeaveFrameToolActionState = (typeof FRAME_TOOL_STATE)[WeaveFrameToolActionStateKeys];
|
|
999
1224
|
type WeaveFrameToolActionTriggerParams = {
|
|
@@ -1011,6 +1236,7 @@ type WeaveFrameToolProps = {
|
|
|
1011
1236
|
|
|
1012
1237
|
//#endregion
|
|
1013
1238
|
//#region src/actions/frame-tool/frame-tool.d.ts
|
|
1239
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1014
1240
|
declare class WeaveFrameToolAction extends WeaveAction {
|
|
1015
1241
|
protected initialized: boolean;
|
|
1016
1242
|
protected state: WeaveFrameToolActionState;
|
|
@@ -1033,12 +1259,14 @@ declare class WeaveFrameToolAction extends WeaveAction {
|
|
|
1033
1259
|
|
|
1034
1260
|
//#endregion
|
|
1035
1261
|
//#region src/actions/export-stage-tool/types.d.ts
|
|
1262
|
+
//# sourceMappingURL=frame-tool.d.ts.map
|
|
1036
1263
|
type WeaveExportStageActionParams = {
|
|
1037
1264
|
options?: WeaveExportNodeOptions;
|
|
1038
1265
|
};
|
|
1039
1266
|
|
|
1040
1267
|
//#endregion
|
|
1041
1268
|
//#region src/actions/export-stage-tool/export-stage-tool.d.ts
|
|
1269
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1042
1270
|
declare class WeaveExportStageToolAction extends WeaveAction {
|
|
1043
1271
|
protected cancelAction: () => void;
|
|
1044
1272
|
private defaultFormatOptions;
|
|
@@ -1055,6 +1283,7 @@ declare class WeaveExportStageToolAction extends WeaveAction {
|
|
|
1055
1283
|
|
|
1056
1284
|
//#endregion
|
|
1057
1285
|
//#region src/actions/export-node-tool/types.d.ts
|
|
1286
|
+
//# sourceMappingURL=export-stage-tool.d.ts.map
|
|
1058
1287
|
type WeaveExportNodeActionParams = {
|
|
1059
1288
|
node: WeaveElementInstance;
|
|
1060
1289
|
options?: WeaveExportNodeOptions;
|
|
@@ -1062,6 +1291,7 @@ type WeaveExportNodeActionParams = {
|
|
|
1062
1291
|
|
|
1063
1292
|
//#endregion
|
|
1064
1293
|
//#region src/actions/export-node-tool/export-node-tool.d.ts
|
|
1294
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1065
1295
|
declare class WeaveExportNodeToolAction extends WeaveAction {
|
|
1066
1296
|
protected cancelAction: () => void;
|
|
1067
1297
|
private defaultFormatOptions;
|
|
@@ -1079,10 +1309,11 @@ declare class WeaveExportNodeToolAction extends WeaveAction {
|
|
|
1079
1309
|
|
|
1080
1310
|
//#endregion
|
|
1081
1311
|
//#region src/plugins/stage-grid/constants.d.ts
|
|
1312
|
+
//# sourceMappingURL=export-node-tool.d.ts.map
|
|
1082
1313
|
declare const WEAVE_STAGE_GRID_KEY = "stageGrid";
|
|
1083
1314
|
declare const WEAVE_GRID_TYPES: {
|
|
1084
|
-
readonly
|
|
1085
|
-
readonly
|
|
1315
|
+
readonly LINES: "lines";
|
|
1316
|
+
readonly DOTS: "dots";
|
|
1086
1317
|
};
|
|
1087
1318
|
declare const WEAVE_GRID_DEFAULT_SIZE = 50;
|
|
1088
1319
|
declare const WEAVE_GRID_DEFAULT_TYPE: string;
|
|
@@ -1092,6 +1323,7 @@ declare const WEAVE_GRID_LAYER_ID = "gridLayer";
|
|
|
1092
1323
|
|
|
1093
1324
|
//#endregion
|
|
1094
1325
|
//#region src/plugins/stage-grid/types.d.ts
|
|
1326
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1095
1327
|
type WeaveStageGridPluginConfig = {
|
|
1096
1328
|
type: WeaveStageGridType;
|
|
1097
1329
|
gridColor: string;
|
|
@@ -1106,6 +1338,7 @@ type WeaveStageGridType = (typeof WEAVE_GRID_TYPES)[WeaveStageGridTypeKeys];
|
|
|
1106
1338
|
|
|
1107
1339
|
//#endregion
|
|
1108
1340
|
//#region src/plugins/stage-grid/stage-grid.d.ts
|
|
1341
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1109
1342
|
declare class WeaveStageGridPlugin extends WeavePlugin {
|
|
1110
1343
|
private moveToolActive;
|
|
1111
1344
|
private isMouseMiddleButtonPressed;
|
|
@@ -1131,6 +1364,7 @@ declare class WeaveStageGridPlugin extends WeavePlugin {
|
|
|
1131
1364
|
|
|
1132
1365
|
//#endregion
|
|
1133
1366
|
//#region src/plugins/stage-panning/stage-panning.d.ts
|
|
1367
|
+
//# sourceMappingURL=stage-grid.d.ts.map
|
|
1134
1368
|
declare class WeaveStagePanningPlugin extends WeavePlugin {
|
|
1135
1369
|
private moveToolActive;
|
|
1136
1370
|
private isMouseMiddleButtonPressed;
|
|
@@ -1153,6 +1387,7 @@ declare class WeaveStagePanningPlugin extends WeavePlugin {
|
|
|
1153
1387
|
|
|
1154
1388
|
//#endregion
|
|
1155
1389
|
//#region src/plugins/stage-resize/stage-resize.d.ts
|
|
1390
|
+
//# sourceMappingURL=stage-panning.d.ts.map
|
|
1156
1391
|
declare class WeaveStageResizePlugin extends WeavePlugin {
|
|
1157
1392
|
getLayerName: undefined;
|
|
1158
1393
|
initLayer: undefined;
|
|
@@ -1166,6 +1401,7 @@ declare class WeaveStageResizePlugin extends WeavePlugin {
|
|
|
1166
1401
|
|
|
1167
1402
|
//#endregion
|
|
1168
1403
|
//#region src/plugins/stage-zoom/types.d.ts
|
|
1404
|
+
//# sourceMappingURL=stage-resize.d.ts.map
|
|
1169
1405
|
type WeaveStageZoomChanged = {
|
|
1170
1406
|
scale: number;
|
|
1171
1407
|
zoomSteps: number[];
|
|
@@ -1191,6 +1427,7 @@ type WeaveStageZoomPluginParams = {
|
|
|
1191
1427
|
|
|
1192
1428
|
//#endregion
|
|
1193
1429
|
//#region src/plugins/stage-zoom/stage-zoom.d.ts
|
|
1430
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1194
1431
|
declare class WeaveStageZoomPlugin extends WeavePlugin {
|
|
1195
1432
|
private isCtrlOrMetaPressed;
|
|
1196
1433
|
protected previousPointer: string | null;
|
|
@@ -1220,15 +1457,18 @@ declare class WeaveStageZoomPlugin extends WeavePlugin {
|
|
|
1220
1457
|
|
|
1221
1458
|
//#endregion
|
|
1222
1459
|
//#region src/plugins/nodes-selection/constants.d.ts
|
|
1460
|
+
//# sourceMappingURL=stage-zoom.d.ts.map
|
|
1223
1461
|
declare const WEAVE_NODES_SELECTION_KEY = "nodesSelection";
|
|
1224
1462
|
declare const WEAVE_NODES_SELECTION_LAYER_ID = "selectionLayer";
|
|
1225
1463
|
|
|
1226
1464
|
//#endregion
|
|
1227
1465
|
//#region src/plugins/connected-users/constants.d.ts
|
|
1466
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1228
1467
|
declare const WEAVE_CONNECTED_USER_INFO_KEY = "userInfo";
|
|
1229
1468
|
|
|
1230
1469
|
//#endregion
|
|
1231
1470
|
//#region src/plugins/connected-users/types.d.ts
|
|
1471
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1232
1472
|
type WeaveConnectedUsersPluginConfig = {
|
|
1233
1473
|
getUser: () => WeaveUser;
|
|
1234
1474
|
};
|
|
@@ -1243,6 +1483,7 @@ type WeaveConnectedUserInfoKey = typeof WEAVE_CONNECTED_USER_INFO_KEY;
|
|
|
1243
1483
|
|
|
1244
1484
|
//#endregion
|
|
1245
1485
|
//#region src/plugins/connected-users/connected-users.d.ts
|
|
1486
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1246
1487
|
declare class WeaveConnectedUsersPlugin extends WeavePlugin {
|
|
1247
1488
|
private config;
|
|
1248
1489
|
private connectedUsers;
|
|
@@ -1258,11 +1499,13 @@ declare class WeaveConnectedUsersPlugin extends WeavePlugin {
|
|
|
1258
1499
|
|
|
1259
1500
|
//#endregion
|
|
1260
1501
|
//#region src/plugins/users-selection/constants.d.ts
|
|
1502
|
+
//# sourceMappingURL=connected-users.d.ts.map
|
|
1261
1503
|
declare const WEAVE_USERS_SELECTION_KEY = "usersSelection";
|
|
1262
1504
|
declare const WEAVE_USER_SELECTION_KEY = "userSelection";
|
|
1263
1505
|
|
|
1264
1506
|
//#endregion
|
|
1265
1507
|
//#region src/plugins/users-selection/types.d.ts
|
|
1508
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1266
1509
|
type WeaveUsersSelectionPluginConfig = {
|
|
1267
1510
|
getUser: () => WeaveUser;
|
|
1268
1511
|
};
|
|
@@ -1277,6 +1520,7 @@ type WeaveUserSelectionKey = typeof WEAVE_USER_SELECTION_KEY;
|
|
|
1277
1520
|
|
|
1278
1521
|
//#endregion
|
|
1279
1522
|
//#region src/plugins/users-selection/users-selection.d.ts
|
|
1523
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1280
1524
|
declare class WeaveUsersSelectionPlugin extends WeavePlugin {
|
|
1281
1525
|
private padding;
|
|
1282
1526
|
private usersSelection;
|
|
@@ -1299,6 +1543,7 @@ declare class WeaveUsersSelectionPlugin extends WeavePlugin {
|
|
|
1299
1543
|
|
|
1300
1544
|
//#endregion
|
|
1301
1545
|
//#region src/plugins/users-pointers/constants.d.ts
|
|
1546
|
+
//# sourceMappingURL=users-selection.d.ts.map
|
|
1302
1547
|
declare const WEAVE_USERS_POINTERS_KEY = "usersPointers";
|
|
1303
1548
|
declare const WEAVE_USER_POINTER_KEY = "userPointer";
|
|
1304
1549
|
declare const WEAVE_DEFAULT_USER_INFO_FUNCTION: () => {
|
|
@@ -1322,6 +1567,7 @@ declare const WEAVE_USER_POINTERS_DEFAULT_PROPS: {
|
|
|
1322
1567
|
|
|
1323
1568
|
//#endregion
|
|
1324
1569
|
//#region src/plugins/users-pointers/types.d.ts
|
|
1570
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1325
1571
|
type WeaveUserPointersUIProperties = {
|
|
1326
1572
|
separation: number;
|
|
1327
1573
|
pointer: {
|
|
@@ -1352,6 +1598,7 @@ type WeaveUserPointerKey = typeof WEAVE_USER_POINTER_KEY;
|
|
|
1352
1598
|
|
|
1353
1599
|
//#endregion
|
|
1354
1600
|
//#region src/plugins/users-pointers/users-pointers.d.ts
|
|
1601
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1355
1602
|
declare class WeaveUsersPointersPlugin extends WeavePlugin {
|
|
1356
1603
|
private usersPointers;
|
|
1357
1604
|
private config;
|
|
@@ -1372,6 +1619,7 @@ declare class WeaveUsersPointersPlugin extends WeavePlugin {
|
|
|
1372
1619
|
|
|
1373
1620
|
//#endregion
|
|
1374
1621
|
//#region src/plugins/context-menu/types.d.ts
|
|
1622
|
+
//# sourceMappingURL=users-pointers.d.ts.map
|
|
1375
1623
|
type WeaveStageContextMenuPluginParams = {
|
|
1376
1624
|
config?: WeaveStageContextMenuPluginConfig;
|
|
1377
1625
|
};
|
|
@@ -1387,6 +1635,7 @@ type WeaveStageContextMenuPluginOnNodeContextMenuEvent = {
|
|
|
1387
1635
|
|
|
1388
1636
|
//#endregion
|
|
1389
1637
|
//#region src/plugins/context-menu/context-menu.d.ts
|
|
1638
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1390
1639
|
declare class WeaveContextMenuPlugin extends WeavePlugin {
|
|
1391
1640
|
private config;
|
|
1392
1641
|
private touchTimer;
|
|
@@ -1406,6 +1655,7 @@ declare class WeaveContextMenuPlugin extends WeavePlugin {
|
|
|
1406
1655
|
|
|
1407
1656
|
//#endregion
|
|
1408
1657
|
//#region src/plugins/stage-drop-area/stage-drop-area.d.ts
|
|
1658
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
1409
1659
|
declare class WeaveStageDropAreaPlugin extends WeavePlugin {
|
|
1410
1660
|
getLayerName: undefined;
|
|
1411
1661
|
initLayer: undefined;
|
|
@@ -1420,18 +1670,21 @@ declare class WeaveStageDropAreaPlugin extends WeavePlugin {
|
|
|
1420
1670
|
|
|
1421
1671
|
//#endregion
|
|
1422
1672
|
//#region src/plugins/stage-drop-area/types.d.ts
|
|
1673
|
+
//# sourceMappingURL=stage-drop-area.d.ts.map
|
|
1423
1674
|
type WeaveStageDropPluginOnStageDropEvent = DragEvent;
|
|
1424
1675
|
|
|
1425
1676
|
//#endregion
|
|
1426
1677
|
//#region src/plugins/copy-paste-nodes/constants.d.ts
|
|
1678
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1427
1679
|
declare const WEAVE_COPY_PASTE_NODES_KEY = "copyPasteNodes";
|
|
1428
1680
|
declare const COPY_PASTE_NODES_PLUGIN_STATE: {
|
|
1429
|
-
readonly
|
|
1430
|
-
readonly
|
|
1681
|
+
readonly IDLE: "idle";
|
|
1682
|
+
readonly PASTING: "pasting";
|
|
1431
1683
|
};
|
|
1432
1684
|
|
|
1433
1685
|
//#endregion
|
|
1434
1686
|
//#region src/plugins/copy-paste-nodes/types.d.ts
|
|
1687
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1435
1688
|
type WeaveCopyPasteNodesPluginStateKeys = keyof typeof COPY_PASTE_NODES_PLUGIN_STATE;
|
|
1436
1689
|
type WeaveCopyPasteNodesPluginState = (typeof COPY_PASTE_NODES_PLUGIN_STATE)[WeaveCopyPasteNodesPluginStateKeys];
|
|
1437
1690
|
type WeaveCopyPasteNodesPluginOnCopyEvent = Error | undefined;
|
|
@@ -1449,6 +1702,7 @@ type WeaveToPasteNode = {
|
|
|
1449
1702
|
|
|
1450
1703
|
//#endregion
|
|
1451
1704
|
//#region src/plugins/copy-paste-nodes/copy-paste-nodes.d.ts
|
|
1705
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1452
1706
|
declare class WeaveCopyPasteNodesPlugin extends WeavePlugin {
|
|
1453
1707
|
protected state: WeaveCopyPasteNodesPluginState;
|
|
1454
1708
|
private toPaste;
|
|
@@ -1479,23 +1733,25 @@ declare class WeaveCopyPasteNodesPlugin extends WeavePlugin {
|
|
|
1479
1733
|
|
|
1480
1734
|
//#endregion
|
|
1481
1735
|
//#region src/plugins/nodes-snapping/constants.d.ts
|
|
1736
|
+
//# sourceMappingURL=copy-paste-nodes.d.ts.map
|
|
1482
1737
|
declare const WEAVE_NODES_SNAPPING_KEY = "nodesSnapping";
|
|
1483
1738
|
declare const GUIDE_LINE_NAME = "guide-line";
|
|
1484
|
-
declare const GUIDE_LINE_DEFAULT_CONFIG: Required<Pick<Konva.LineConfig,
|
|
1739
|
+
declare const GUIDE_LINE_DEFAULT_CONFIG: Required<Pick<Konva.LineConfig, 'stroke' | 'strokeWidth' | 'dash'>>;
|
|
1485
1740
|
declare const GUIDE_LINE_DRAG_SNAPPING_THRESHOLD = 10;
|
|
1486
1741
|
declare const GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD = 10;
|
|
1487
1742
|
declare const GUIDE_ORIENTATION: {
|
|
1488
|
-
readonly
|
|
1489
|
-
readonly
|
|
1743
|
+
readonly HORIZONTAL: "H";
|
|
1744
|
+
readonly VERTICAL: "V";
|
|
1490
1745
|
};
|
|
1491
1746
|
declare const NODE_SNAP: {
|
|
1492
|
-
readonly
|
|
1493
|
-
readonly
|
|
1494
|
-
readonly
|
|
1747
|
+
readonly START: "start";
|
|
1748
|
+
readonly CENTER: "center";
|
|
1749
|
+
readonly END: "end";
|
|
1495
1750
|
};
|
|
1496
1751
|
|
|
1497
1752
|
//#endregion
|
|
1498
1753
|
//#region src/plugins/nodes-snapping/types.d.ts
|
|
1754
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
1499
1755
|
type NodeSnapKeys = keyof typeof NODE_SNAP;
|
|
1500
1756
|
type NodeSnap = (typeof NODE_SNAP)[NodeSnapKeys];
|
|
1501
1757
|
type NodeSnappingEdge = {
|
|
@@ -1536,6 +1792,7 @@ type WeaveNodesSnappingPluginParams = {
|
|
|
1536
1792
|
|
|
1537
1793
|
//#endregion
|
|
1538
1794
|
//#region src/plugins/nodes-snapping/nodes-snapping.d.ts
|
|
1795
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1539
1796
|
declare class WeaveNodesSnappingPlugin extends WeavePlugin {
|
|
1540
1797
|
private guideLineConfig;
|
|
1541
1798
|
private dragSnappingThreshold;
|
|
@@ -1563,4 +1820,7 @@ declare class WeaveNodesSnappingPlugin extends WeavePlugin {
|
|
|
1563
1820
|
}
|
|
1564
1821
|
|
|
1565
1822
|
//#endregion
|
|
1566
|
-
|
|
1823
|
+
//# sourceMappingURL=nodes-snapping.d.ts.map
|
|
1824
|
+
|
|
1825
|
+
export { BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, Guide, GuideOrientation, GuideOrientationKeys, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, ImageProps, LineGuide, LineGuideStop, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NodeSnap, NodeSnapKeys, NodeSnappingEdge, NodeSnappingEdges, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, TextSerializable, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_SIZES, WEAVE_FRAME_NODE_SIZES_MULTIPLIER, WEAVE_FRAME_NODE_SIZES_ORIENTATION, WEAVE_FRAME_NODE_SIZES_TYPES, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_COLOR, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_NODES_SNAPPING_KEY, WEAVE_STAGE_GRID_KEY, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTERS_DEFAULT_PROPS, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, Weave, WeaveAction, WeaveActionPropsChangeEvent, WeaveBrushToolAction, WeaveBrushToolActionState, WeaveBrushToolActionStateKeys, WeaveConnectedUserInfoKey, WeaveConnectedUsers, WeaveConnectedUsersChangeEvent, WeaveConnectedUsersPlugin, WeaveConnectedUsersPluginConfig, WeaveConnectedUsersPluginParams, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveCopyPasteNodesPluginOnCopyEvent, WeaveCopyPasteNodesPluginOnPasteEvent, WeaveCopyPasteNodesPluginOnPasteExternalEvent, WeaveCopyPasteNodesPluginState, WeaveCopyPasteNodesPluginStateKeys, WeaveEraserToolAction, WeaveEraserToolActionState, WeaveEraserToolActionStateKeys, WeaveExportNodeActionParams, WeaveExportNodeToolAction, WeaveExportStageActionParams, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToScreenToolActionParams, WeaveFitToSelectionToolAction, WeaveFitToSelectionToolActionParams, WeaveFrameAttributes, WeaveFrameNode, WeaveFrameNodeParams, WeaveFrameNodeSizes, WeaveFrameNodeSizesInfo, WeaveFrameNodeSizesKeys, WeaveFrameNodeSizesOrientation, WeaveFrameNodeSizesOrientationKeys, WeaveFrameProperties, WeaveFrameToolAction, WeaveFrameToolActionState, WeaveFrameToolActionStateKeys, WeaveFrameToolActionTriggerParams, WeaveFrameToolProps, WeaveGroupNode, WeaveImageNode, WeaveImageNodeParams, WeaveImageProperties, WeaveImageToolAction, WeaveImageToolActionOnEndLoadImageEvent, WeaveImageToolActionOnStartLoadImageEvent, WeaveImageToolActionState, WeaveImageToolActionStateKeys, WeaveImageToolActionTriggerParams, WeaveImageToolActionTriggerReturn, WeaveLayerNode, WeaveLineNode, WeaveMoveToolAction, WeaveMoveToolActionState, WeaveMoveToolActionStateKeys, WeaveNode, WeaveNodesSelectionConfig, WeaveNodesSelectionPlugin, WeaveNodesSelectionPluginConfig, WeaveNodesSelectionPluginOnNodesChangeEvent, WeaveNodesSelectionPluginOnSelectionStateEvent, WeaveNodesSelectionPluginOnStageSelectionEvent, WeaveNodesSelectionPluginParams, WeaveNodesSelectionTransformationsConfig, WeaveNodesSnappingPlugin, WeaveNodesSnappingPluginConfig, WeaveNodesSnappingPluginParams, WeavePasteModel, WeavePenToolAction, WeavePenToolActionState, WeavePenToolActionStateKeys, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRectangleToolActionState, WeaveRectangleToolActionStateKeys, WeaveSelectionToolAction, WeaveSelectionToolActionState, WeaveSelectionToolActionStateKeys, WeaveStageContextMenuPluginConfig, WeaveStageContextMenuPluginOnNodeContextMenuEvent, WeaveStageContextMenuPluginParams, WeaveStageDropAreaPlugin, WeaveStageDropPluginOnStageDropEvent, WeaveStageGridPlugin, WeaveStageGridPluginConfig, WeaveStageGridPluginParams, WeaveStageGridType, WeaveStageGridTypeKeys, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomChanged, WeaveStageZoomPlugin, WeaveStageZoomPluginConfig, WeaveStageZoomPluginOnZoomChangeEvent, WeaveStageZoomPluginParams, WeaveStore, WeaveStoreOnNodeChangeEvent, WeaveStoreOnRoomLoadedEvent, WeaveStoreOnStateChangeEvent, WeaveStoreOnUndoRedoChangeEvent, WeaveTextLayout, WeaveTextLayoutKeys, WeaveTextNode, WeaveTextNodeParams, WeaveTextProperties, WeaveTextToolAction, WeaveTextToolActionState, WeaveTextToolActionStateKeys, WeaveToPasteNode, WeaveUserPointer, WeaveUserPointerKey, WeaveUserPointersUIProperties, WeaveUserSelectionInfo, WeaveUserSelectionKey, WeaveUsersPointersPlugin, WeaveUsersPointersPluginConfig, WeaveUsersPointersPluginParams, WeaveUsersSelectionPlugin, WeaveUsersSelectionPluginConfig, WeaveUsersSelectionPluginParams, WeaveZoomInToolAction, WeaveZoomInToolActionParams, WeaveZoomOutToolAction, WeaveZoomOutToolActionParams, checkIfOverContainer, clearContainerTargets, moveNodeToContainer, resetScale };
|
|
1826
|
+
//# sourceMappingURL=sdk.d.ts.map
|