@inditextech/weave-sdk 5.0.0-SNAPSHOT.345.1 → 5.0.0-SNAPSHOT.366.1
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.js +1563 -1407
- package/dist/sdk.node.js +1563 -1407
- package/dist/sdk.node.stats.html +1 -1
- package/dist/sdk.stats.html +1 -1
- package/dist/types.d.ts +382 -188
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1563 -1407
- package/dist/types.js.map +1 -1
- package/dist/types.stats.html +1 -1
- package/package.json +7 -6
package/dist/types.d.ts
CHANGED
|
@@ -7,16 +7,16 @@ import * as Y from "yjs";
|
|
|
7
7
|
import { Doc } from "yjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import * as konva_lib_types8 from "konva/lib/types";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
10
|
+
import * as konva_lib_types22 from "konva/lib/types";
|
|
11
|
+
import * as konva_lib_types23 from "konva/lib/types";
|
|
12
12
|
import { Vector2d } from "konva/lib/types";
|
|
13
13
|
import { Stage, StageConfig } from "konva/lib/Stage";
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
14
|
+
import * as konva_lib_Node24 from "konva/lib/Node";
|
|
15
|
+
import * as konva_lib_Node25 from "konva/lib/Node";
|
|
16
|
+
import * as konva_lib_Node26 from "konva/lib/Node";
|
|
17
|
+
import * as konva_lib_Node27 from "konva/lib/Node";
|
|
18
|
+
import * as konva_lib_Node28 from "konva/lib/Node";
|
|
19
|
+
import * as konva_lib_Node29 from "konva/lib/Node";
|
|
20
20
|
import * as konva_lib_Node0 from "konva/lib/Node";
|
|
21
21
|
import * as konva_lib_Node1 from "konva/lib/Node";
|
|
22
22
|
import * as konva_lib_Node2 from "konva/lib/Node";
|
|
@@ -25,16 +25,16 @@ import * as konva_lib_Node5 from "konva/lib/Node";
|
|
|
25
25
|
import * as konva_lib_Node6 from "konva/lib/Node";
|
|
26
26
|
import { KonvaEventObject } from "konva/lib/Node";
|
|
27
27
|
import { Hookable } from "hookable";
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
28
|
+
import * as konva_lib_Shape12 from "konva/lib/Shape";
|
|
29
|
+
import * as konva_lib_Shape13 from "konva/lib/Shape";
|
|
30
|
+
import * as konva_lib_Group14 from "konva/lib/Group";
|
|
31
31
|
import * as konva_lib_Group7 from "konva/lib/Group";
|
|
32
32
|
import * as konva_lib_shapes_Transformer4 from "konva/lib/shapes/Transformer";
|
|
33
33
|
import { TransformerConfig } from "konva/lib/shapes/Transformer";
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
34
|
+
import * as konva_lib_shapes_Rect10 from "konva/lib/shapes/Rect";
|
|
35
|
+
import * as konva_lib_shapes_Line20 from "konva/lib/shapes/Line";
|
|
36
|
+
import * as konva_lib_shapes_Line21 from "konva/lib/shapes/Line";
|
|
37
|
+
import * as konva_lib_Layer9 from "konva/lib/Layer";
|
|
38
38
|
|
|
39
39
|
//#region src/stores/store.d.ts
|
|
40
40
|
declare abstract class WeaveStore implements WeaveStoreBase {
|
|
@@ -79,8 +79,19 @@ declare abstract class WeaveStore implements WeaveStoreBase {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
|
-
//#region src/
|
|
82
|
+
//#region src/internal-utils/mapping.d.ts
|
|
83
83
|
//# sourceMappingURL=store.d.ts.map
|
|
84
|
+
declare const isArray: (val: any) => boolean;
|
|
85
|
+
declare const isObject: (val: any) => boolean;
|
|
86
|
+
declare const mapJsonToYjsMap: (jsonData: any) => Y$1.Map<unknown>;
|
|
87
|
+
declare const mapJsonToYjsArray: (jsonData: any) => Y$1.Array<unknown>;
|
|
88
|
+
declare const mapJsonToYjsElements: (jsonData: any) => Y$1.Map<unknown> | Y$1.Array<unknown> | undefined;
|
|
89
|
+
declare const weavejsToYjsBinary: (weavejsData: WeaveState) => Uint8Array<ArrayBufferLike>;
|
|
90
|
+
declare function getJSONFromYjsBinary(actualState: Uint8Array<ArrayBufferLike>): any;
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/plugins/plugin.d.ts
|
|
94
|
+
//# sourceMappingURL=mapping.d.ts.map
|
|
84
95
|
declare abstract class WeavePlugin implements WeavePluginBase {
|
|
85
96
|
protected instance: Weave;
|
|
86
97
|
protected name: string;
|
|
@@ -139,8 +150,129 @@ type WeaveNodesSelectionPluginParams = {
|
|
|
139
150
|
};
|
|
140
151
|
|
|
141
152
|
//#endregion
|
|
142
|
-
//#region src/plugins/
|
|
153
|
+
//#region src/plugins/nodes-selection/gesture-detector.d.ts
|
|
143
154
|
//# sourceMappingURL=types.d.ts.map
|
|
155
|
+
/**
|
|
156
|
+
* Tracks single-tap, double-tap, and drag-move gesture state for the
|
|
157
|
+
* nodes-selection plugin. Has no dependency on Weave or Konva internals.
|
|
158
|
+
*/
|
|
159
|
+
declare class GestureDetector {
|
|
160
|
+
private taps;
|
|
161
|
+
private tapStart;
|
|
162
|
+
private previousTap;
|
|
163
|
+
private tapTimeoutId;
|
|
164
|
+
isDoubleTap: boolean;
|
|
165
|
+
/** Call on every pointerdown to record the tap origin. */
|
|
166
|
+
setTapStart(clientX: number, clientY: number): void;
|
|
167
|
+
/** Returns true if the pointer moved more than the move threshold since tap start. */
|
|
168
|
+
checkMoved(clientX: number, clientY: number): boolean;
|
|
169
|
+
/** Returns true if a drag moved further than the move threshold between two stage positions. */
|
|
170
|
+
checkMovedDrag(init: {
|
|
171
|
+
x: number;
|
|
172
|
+
y: number;
|
|
173
|
+
}, actual: {
|
|
174
|
+
x: number;
|
|
175
|
+
y: number;
|
|
176
|
+
}): boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Call on pointerup after setTapStart to detect a double-tap.
|
|
179
|
+
* Sets isDoubleTap = true when two taps occur close in time and space.
|
|
180
|
+
*/
|
|
181
|
+
checkDoubleTap(clientX: number, clientY: number): void;
|
|
182
|
+
/** Call after checkDoubleTap on pointerup to advance the tap history. */
|
|
183
|
+
commitTap(): void;
|
|
184
|
+
resetDoubleTap(): void;
|
|
185
|
+
reset(): void;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/plugins/nodes-selection/edge-panning.d.ts
|
|
190
|
+
//# sourceMappingURL=gesture-detector.d.ts.map
|
|
191
|
+
type EdgePanningCallbacks = {
|
|
192
|
+
getStage: () => Stage;
|
|
193
|
+
isSelecting: () => boolean;
|
|
194
|
+
/** Called on each animation frame where panning actually moves the stage. */
|
|
195
|
+
onTick: (dx: number, dy: number) => void;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Handles the rAF-driven auto-pan loop that scrolls the canvas when the
|
|
199
|
+
* pointer is held near an edge during area selection.
|
|
200
|
+
*/
|
|
201
|
+
declare class EdgePanning {
|
|
202
|
+
private readonly config;
|
|
203
|
+
private readonly callbacks;
|
|
204
|
+
private panLoopId;
|
|
205
|
+
readonly direction: {
|
|
206
|
+
x: number;
|
|
207
|
+
y: number;
|
|
208
|
+
};
|
|
209
|
+
private speed;
|
|
210
|
+
constructor(config: WeaveNodesSelectionPanningOnSelectionConfig, callbacks: EdgePanningCallbacks);
|
|
211
|
+
/** Start the panning rAF loop. */
|
|
212
|
+
start(): void;
|
|
213
|
+
/** Stop the panning rAF loop. */
|
|
214
|
+
stop(): void;
|
|
215
|
+
/** Reset direction and speed vectors to zero. */
|
|
216
|
+
reset(): void;
|
|
217
|
+
/**
|
|
218
|
+
* Recalculate pan direction and speed based on current pointer position.
|
|
219
|
+
* Should be called on every pointermove during area selection.
|
|
220
|
+
*/
|
|
221
|
+
updateDirection(): void;
|
|
222
|
+
private getSpeedFromEdge;
|
|
223
|
+
private loop;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/plugins/nodes-selection/area-selection.d.ts
|
|
228
|
+
//# sourceMappingURL=edge-panning.d.ts.map
|
|
229
|
+
/**
|
|
230
|
+
* Manages the visual selection-rectangle drawn while the user drags an area
|
|
231
|
+
* selection, plus the coordinate state (x1/y1/x2/y2) that tracks its bounds.
|
|
232
|
+
*/
|
|
233
|
+
declare class AreaSelector {
|
|
234
|
+
private rect;
|
|
235
|
+
private x1;
|
|
236
|
+
private y1;
|
|
237
|
+
private x2;
|
|
238
|
+
private y2;
|
|
239
|
+
/** The stage-space anchor point when area selection started (updated by edge panning). */
|
|
240
|
+
selectionStart: {
|
|
241
|
+
x: number;
|
|
242
|
+
y: number;
|
|
243
|
+
} | null;
|
|
244
|
+
/**
|
|
245
|
+
* Create and add the selection Konva.Rect to the given layer.
|
|
246
|
+
* Must be called once during plugin initialisation.
|
|
247
|
+
*/
|
|
248
|
+
init(layer: Konva.Layer, config: WeaveNodesSelectionConfig['selectionArea'], scaleX: number): void;
|
|
249
|
+
getRect(): Konva.Rect;
|
|
250
|
+
/** Returns the screen-space bounding box of the selection rectangle. */
|
|
251
|
+
getBox(): {
|
|
252
|
+
width: number;
|
|
253
|
+
height: number;
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
};
|
|
257
|
+
/** Set the anchor corner when area selection begins. */
|
|
258
|
+
setStart(x: number, y: number): void;
|
|
259
|
+
/**
|
|
260
|
+
* Adjust stroke and dash to compensate for stage scale, reset dimensions.
|
|
261
|
+
* Call when area selection starts so the rect looks pixel-perfect at any zoom.
|
|
262
|
+
*/
|
|
263
|
+
resetForScale(scaleX: number, config: WeaveNodesSelectionConfig['selectionArea']): void;
|
|
264
|
+
/**
|
|
265
|
+
* Recalculate x2/y2 from the current pointer position and repaint the rect.
|
|
266
|
+
* @param selectNone — Callback that clears the transformer selection; called
|
|
267
|
+
* before updating the rect so previously selected nodes are deselected.
|
|
268
|
+
*/
|
|
269
|
+
update(stage: Stage, selectNone: () => void): void;
|
|
270
|
+
hide(): void;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/plugins/context-menu/types.d.ts
|
|
275
|
+
//# sourceMappingURL=area-selection.d.ts.map
|
|
144
276
|
type WeaveStageContextMenuPluginParams = {
|
|
145
277
|
config?: WeaveStageContextMenuPluginConfig;
|
|
146
278
|
};
|
|
@@ -193,8 +325,57 @@ declare class WeaveContextMenuPlugin extends WeavePlugin {
|
|
|
193
325
|
}
|
|
194
326
|
|
|
195
327
|
//#endregion
|
|
196
|
-
//#region src/plugins/stage-
|
|
328
|
+
//#region src/plugins/stage-zoom/constants.d.ts
|
|
197
329
|
//# sourceMappingURL=context-menu.d.ts.map
|
|
330
|
+
declare const WEAVE_STAGE_ZOOM_TYPE: {
|
|
331
|
+
readonly MOUSE_WHEEL: "mouseWheel";
|
|
332
|
+
readonly PINCH_ZOOM: "pinchZoom";
|
|
333
|
+
};
|
|
334
|
+
declare const WEAVE_STAGE_ZOOM_KEY = "stageZoom";
|
|
335
|
+
declare const WEAVE_STAGE_ZOOM_DEFAULT_CONFIG: WeaveStageZoomPluginConfig;
|
|
336
|
+
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/plugins/stage-zoom/types.d.ts
|
|
339
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
340
|
+
type WeaveStageZoomTypeKeys = keyof typeof WEAVE_STAGE_ZOOM_TYPE;
|
|
341
|
+
type WeaveStageZoomType = (typeof WEAVE_STAGE_ZOOM_TYPE)[WeaveStageZoomTypeKeys];
|
|
342
|
+
type WeaveStageZoomChanged = {
|
|
343
|
+
scale: number;
|
|
344
|
+
zoomSteps: number[];
|
|
345
|
+
actualStep: number;
|
|
346
|
+
onDefaultStep: boolean;
|
|
347
|
+
canZoomIn: boolean;
|
|
348
|
+
canZoomOut: boolean;
|
|
349
|
+
};
|
|
350
|
+
type WeaveArea = {
|
|
351
|
+
x: number;
|
|
352
|
+
y: number;
|
|
353
|
+
width: number;
|
|
354
|
+
height: number;
|
|
355
|
+
};
|
|
356
|
+
type WeaveStageZoomPluginOnZoomChangeEvent = WeaveStageZoomChanged;
|
|
357
|
+
type WeaveStageZoomPluginConfig = {
|
|
358
|
+
zoomSteps: number[];
|
|
359
|
+
defaultZoom: number;
|
|
360
|
+
fitToScreen: {
|
|
361
|
+
padding: number;
|
|
362
|
+
};
|
|
363
|
+
fitToSelection: {
|
|
364
|
+
padding: number;
|
|
365
|
+
};
|
|
366
|
+
zoomInertia: {
|
|
367
|
+
friction: number;
|
|
368
|
+
mouseWheelStep: number;
|
|
369
|
+
trackpadStep: number;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
type WeaveStageZoomPluginParams = {
|
|
373
|
+
config?: DeepPartial<WeaveStageZoomPluginConfig>;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/plugins/stage-grid/constants.d.ts
|
|
378
|
+
//# sourceMappingURL=types.d.ts.map
|
|
198
379
|
declare const WEAVE_STAGE_GRID_PLUGIN_KEY = "stageGrid";
|
|
199
380
|
declare const WEAVE_GRID_TYPES: {
|
|
200
381
|
readonly LINES: "lines";
|
|
@@ -267,58 +448,9 @@ declare class WeaveStageGridPlugin extends WeavePlugin {
|
|
|
267
448
|
setDotsType(type: WeaveStageGridDotType): void;
|
|
268
449
|
}
|
|
269
450
|
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region src/plugins/stage-zoom/constants.d.ts
|
|
272
|
-
//# sourceMappingURL=stage-grid.d.ts.map
|
|
273
|
-
declare const WEAVE_STAGE_ZOOM_TYPE: {
|
|
274
|
-
readonly MOUSE_WHEEL: "mouseWheel";
|
|
275
|
-
readonly PINCH_ZOOM: "pinchZoom";
|
|
276
|
-
};
|
|
277
|
-
declare const WEAVE_STAGE_ZOOM_KEY = "stageZoom";
|
|
278
|
-
declare const WEAVE_STAGE_ZOOM_DEFAULT_CONFIG: WeaveStageZoomPluginConfig;
|
|
279
|
-
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region src/plugins/stage-zoom/types.d.ts
|
|
282
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
283
|
-
type WeaveStageZoomTypeKeys = keyof typeof WEAVE_STAGE_ZOOM_TYPE;
|
|
284
|
-
type WeaveStageZoomType = (typeof WEAVE_STAGE_ZOOM_TYPE)[WeaveStageZoomTypeKeys];
|
|
285
|
-
type WeaveStageZoomChanged = {
|
|
286
|
-
scale: number;
|
|
287
|
-
zoomSteps: number[];
|
|
288
|
-
actualStep: number;
|
|
289
|
-
onDefaultStep: boolean;
|
|
290
|
-
canZoomIn: boolean;
|
|
291
|
-
canZoomOut: boolean;
|
|
292
|
-
};
|
|
293
|
-
type WeaveArea = {
|
|
294
|
-
x: number;
|
|
295
|
-
y: number;
|
|
296
|
-
width: number;
|
|
297
|
-
height: number;
|
|
298
|
-
};
|
|
299
|
-
type WeaveStageZoomPluginOnZoomChangeEvent = WeaveStageZoomChanged;
|
|
300
|
-
type WeaveStageZoomPluginConfig = {
|
|
301
|
-
zoomSteps: number[];
|
|
302
|
-
defaultZoom: number;
|
|
303
|
-
fitToScreen: {
|
|
304
|
-
padding: number;
|
|
305
|
-
};
|
|
306
|
-
fitToSelection: {
|
|
307
|
-
padding: number;
|
|
308
|
-
};
|
|
309
|
-
zoomInertia: {
|
|
310
|
-
friction: number;
|
|
311
|
-
mouseWheelStep: number;
|
|
312
|
-
trackpadStep: number;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
type WeaveStageZoomPluginParams = {
|
|
316
|
-
config?: DeepPartial<WeaveStageZoomPluginConfig>;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
451
|
//#endregion
|
|
320
452
|
//#region src/plugins/stage-zoom/stage-zoom.d.ts
|
|
321
|
-
//# sourceMappingURL=
|
|
453
|
+
//# sourceMappingURL=stage-grid.d.ts.map
|
|
322
454
|
declare class WeaveStageZoomPlugin extends WeavePlugin {
|
|
323
455
|
protected previousPointer: string | null;
|
|
324
456
|
getLayerName: undefined;
|
|
@@ -437,8 +569,53 @@ declare class WeaveStagePanningPlugin extends WeavePlugin {
|
|
|
437
569
|
}
|
|
438
570
|
|
|
439
571
|
//#endregion
|
|
440
|
-
//#region src/plugins/
|
|
572
|
+
//#region src/plugins/users-presence/constants.d.ts
|
|
441
573
|
//# sourceMappingURL=stage-panning.d.ts.map
|
|
574
|
+
declare const WEAVE_USER_PRESENCE_KEY = "userPresence";
|
|
575
|
+
declare const WEAVE_USERS_PRESENCE_PLUGIN_KEY = "usersPresence";
|
|
576
|
+
declare const WEAVE_USERS_PRESENCE_CONFIG_DEFAULT_PROPS: {
|
|
577
|
+
awarenessThrottleMs: number;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/plugins/users-presence/types.d.ts
|
|
582
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
583
|
+
type WeaveUsersPresencePluginConfig = {
|
|
584
|
+
getUser: () => WeaveUser;
|
|
585
|
+
};
|
|
586
|
+
type WeaveUsersPresencePluginParams = {
|
|
587
|
+
config: Pick<WeaveUsersPresencePluginConfig, 'getUser'> & Partial<Omit<WeaveUsersPresencePluginConfig, 'getUser'>>;
|
|
588
|
+
};
|
|
589
|
+
type WeaveUserPresenceInformation = Record<string, WeaveUserPresence<unknown>>;
|
|
590
|
+
type WeaveUserPresence<T> = {
|
|
591
|
+
userId: string;
|
|
592
|
+
parentId: string;
|
|
593
|
+
nodeId: string;
|
|
594
|
+
attrs: T;
|
|
595
|
+
};
|
|
596
|
+
type WeaveUserPresenceKey = typeof WEAVE_USER_PRESENCE_KEY;
|
|
597
|
+
|
|
598
|
+
//#endregion
|
|
599
|
+
//#region src/plugins/users-presence/users-presence.d.ts
|
|
600
|
+
//# sourceMappingURL=types.d.ts.map
|
|
601
|
+
declare class WeaveUsersPresencePlugin extends WeavePlugin {
|
|
602
|
+
private readonly config;
|
|
603
|
+
private userPresence;
|
|
604
|
+
onRender: undefined;
|
|
605
|
+
constructor(params: WeaveUsersPresencePluginParams);
|
|
606
|
+
initialize(): void;
|
|
607
|
+
getName(): string;
|
|
608
|
+
onInit(): void;
|
|
609
|
+
sendPresence(): void;
|
|
610
|
+
setPresence<T>(nodeId: string, parentId: string, attrs: T, forceUpdate?: boolean): void;
|
|
611
|
+
forceSendPresence(): void;
|
|
612
|
+
enable(): void;
|
|
613
|
+
disable(): void;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region src/plugins/nodes-multi-selection-feedback/types.d.ts
|
|
618
|
+
//# sourceMappingURL=users-presence.d.ts.map
|
|
442
619
|
type WeaveNodesMultiSelectionFeedbackStyle = {
|
|
443
620
|
stroke: string;
|
|
444
621
|
strokeWidth: number;
|
|
@@ -465,7 +642,7 @@ declare class WeaveNodesMultiSelectionFeedbackPlugin extends WeavePlugin {
|
|
|
465
642
|
getName(): string;
|
|
466
643
|
getLayerName(): string;
|
|
467
644
|
initLayer(): void;
|
|
468
|
-
getSelectedHalos(): Record<string,
|
|
645
|
+
getSelectedHalos(): Record<string, konva_lib_shapes_Rect10.Rect>;
|
|
469
646
|
cleanupSelectedHalos(): void;
|
|
470
647
|
private getNodeRectInfo;
|
|
471
648
|
private getNodeInfo;
|
|
@@ -480,133 +657,161 @@ declare class WeaveNodesMultiSelectionFeedbackPlugin extends WeavePlugin {
|
|
|
480
657
|
}
|
|
481
658
|
|
|
482
659
|
//#endregion
|
|
483
|
-
//#region src/plugins/
|
|
660
|
+
//#region src/plugins/nodes-selection/transformer-controller.d.ts
|
|
484
661
|
//# sourceMappingURL=nodes-multi-selection-feedback.d.ts.map
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
662
|
+
interface TransformerCallbacks {
|
|
663
|
+
isSelecting(): boolean;
|
|
664
|
+
setSelectedNodes(nodes: Konva.Node[]): void;
|
|
665
|
+
triggerSelectedNodesEvent(): void;
|
|
666
|
+
saveDragSelectedNodes(): void;
|
|
667
|
+
setNodesOpacityOnDrag(): void;
|
|
668
|
+
/** Called when the plugin layer should be temporarily hidden (during hover hit-test). */
|
|
669
|
+
disablePlugin(): void;
|
|
670
|
+
/** Called to restore plugin layer after a temporary hide. */
|
|
671
|
+
enablePlugin(): void;
|
|
672
|
+
getContextMenuPlugin(): WeaveContextMenuPlugin | undefined;
|
|
673
|
+
getUsersPresencePlugin(): WeaveUsersPresencePlugin | undefined;
|
|
674
|
+
getStagePanningPlugin(): WeaveStagePanningPlugin | undefined;
|
|
675
|
+
getNodesSelectionFeedbackPlugin(): WeaveNodesMultiSelectionFeedbackPlugin | undefined;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Creates and owns both Konva.Transformer instances (selection + hover) and
|
|
679
|
+
* registers all transformer-level event handlers. Business-logic callbacks are
|
|
680
|
+
* injected to keep this class decoupled from WeaveNodesSelectionPlugin internals.
|
|
681
|
+
*/
|
|
682
|
+
declare class TransformerController {
|
|
683
|
+
private readonly instance;
|
|
684
|
+
private readonly config;
|
|
685
|
+
private readonly gesture;
|
|
686
|
+
private readonly callbacks;
|
|
687
|
+
private tr;
|
|
688
|
+
private trHover;
|
|
689
|
+
private dragInProcess;
|
|
690
|
+
private transformInProcess;
|
|
691
|
+
private didMove;
|
|
692
|
+
private initialPos;
|
|
693
|
+
private originalNodes;
|
|
694
|
+
private originalContainers;
|
|
695
|
+
private currentDragSelectedNodes;
|
|
696
|
+
/** Mirrors the previous transformer node list for undo/redo handling. */
|
|
697
|
+
private prevSelectedNodes;
|
|
698
|
+
constructor(instance: Weave, config: WeaveNodesSelectionConfig, gesture: GestureDetector, callbacks: TransformerCallbacks);
|
|
699
|
+
/** Create transformers, add to layer, and register all events. Must be called once during onInit. */
|
|
700
|
+
setup(layer: Konva.Layer): void;
|
|
701
|
+
getTransformer(): Konva.Transformer;
|
|
702
|
+
getHoverTransformer(): Konva.Transformer;
|
|
703
|
+
isDragging(): boolean;
|
|
704
|
+
isTransforming(): boolean;
|
|
705
|
+
private getStage;
|
|
706
|
+
private registerStagePointerMove;
|
|
707
|
+
private registerTransformerEvents;
|
|
708
|
+
private registerInstanceEvents;
|
|
709
|
+
private handleUndoRedoSelectionChange;
|
|
710
|
+
}
|
|
508
711
|
|
|
509
712
|
//#endregion
|
|
510
|
-
//#region src/plugins/
|
|
511
|
-
//# sourceMappingURL=
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
713
|
+
//#region src/plugins/nodes-selection/selection-context.d.ts
|
|
714
|
+
//# sourceMappingURL=transformer-controller.d.ts.map
|
|
715
|
+
/**
|
|
716
|
+
* The minimal surface of WeaveNodesSelectionPlugin that event-handler
|
|
717
|
+
* modules depend on. Keeping it separate prevents circular imports and
|
|
718
|
+
* makes individual handlers independently testable via a mock context.
|
|
719
|
+
*/
|
|
720
|
+
interface SelectionContext {
|
|
721
|
+
getWeaveInstance(): Weave;
|
|
722
|
+
getGesture(): GestureDetector;
|
|
723
|
+
getAreaSelector(): AreaSelector;
|
|
724
|
+
getEdgePanning(): EdgePanning;
|
|
725
|
+
getTransformerController(): TransformerController;
|
|
726
|
+
getConfiguration(): WeaveNodesSelectionConfig;
|
|
727
|
+
getDefaultEnabledAnchors(): string[];
|
|
728
|
+
isAreaSelecting(): boolean;
|
|
729
|
+
isSelecting(): boolean;
|
|
730
|
+
isInitialized(): boolean;
|
|
731
|
+
isActive(): boolean;
|
|
732
|
+
isEnabled(): boolean;
|
|
733
|
+
getSpaceKeyPressedState(): boolean;
|
|
734
|
+
getPointerCount(): number;
|
|
735
|
+
wasClickOrTapHandled(): boolean;
|
|
736
|
+
setAreaSelecting(val: boolean): void;
|
|
737
|
+
setSpaceKeyPressed(val: boolean): void;
|
|
738
|
+
registerPointer(id: number, evt: PointerEvent): void;
|
|
739
|
+
unregisterPointer(id: number): void;
|
|
740
|
+
setClickOrTapHandled(val: boolean): void;
|
|
741
|
+
selectNone(): void;
|
|
742
|
+
setSelectedNodes(nodes: Konva.Node[]): void;
|
|
743
|
+
getSelectedNodes(): (Konva.Group | Konva.Shape)[];
|
|
744
|
+
removeSelectedNodes(): void;
|
|
745
|
+
hideHoverState(): void;
|
|
746
|
+
handleBehaviors(): void;
|
|
747
|
+
handleMultipleSelectionBehavior(): void;
|
|
748
|
+
triggerSelectedNodesEvent(): void;
|
|
749
|
+
syncSelection(): void;
|
|
750
|
+
getContextMenuPlugin(): WeaveContextMenuPlugin | undefined;
|
|
751
|
+
getStagePanningPlugin(): WeaveStagePanningPlugin | undefined;
|
|
752
|
+
getStageGridPlugin(): WeaveStageGridPlugin | undefined;
|
|
753
|
+
getNodesSelectionFeedbackPlugin(): WeaveNodesMultiSelectionFeedbackPlugin | undefined;
|
|
525
754
|
}
|
|
526
755
|
|
|
527
756
|
//#endregion
|
|
528
757
|
//#region src/plugins/nodes-selection/nodes-selection.d.ts
|
|
529
|
-
//# sourceMappingURL=
|
|
530
|
-
declare class WeaveNodesSelectionPlugin extends WeavePlugin {
|
|
531
|
-
|
|
532
|
-
private
|
|
758
|
+
//# sourceMappingURL=selection-context.d.ts.map
|
|
759
|
+
declare class WeaveNodesSelectionPlugin extends WeavePlugin implements SelectionContext {
|
|
760
|
+
readonly gesture: GestureDetector;
|
|
761
|
+
private edgePanning;
|
|
762
|
+
private areaSelector;
|
|
763
|
+
private transformerCtrl;
|
|
533
764
|
private config;
|
|
534
|
-
private selectionRectangle;
|
|
535
765
|
private active;
|
|
536
|
-
private
|
|
766
|
+
private _defaultEnabledAnchors;
|
|
537
767
|
private selecting;
|
|
538
|
-
private didMove;
|
|
539
768
|
private initialized;
|
|
540
|
-
private
|
|
541
|
-
protected taps: number;
|
|
542
|
-
protected isDoubleTap: boolean;
|
|
543
|
-
protected previousTap: {
|
|
544
|
-
x: number;
|
|
545
|
-
y: number;
|
|
546
|
-
time: number;
|
|
547
|
-
} | null;
|
|
548
|
-
protected tapStart: {
|
|
549
|
-
x: number;
|
|
550
|
-
y: number;
|
|
551
|
-
time: number;
|
|
552
|
-
} | null;
|
|
553
|
-
protected tapTimeoutId: NodeJS.Timeout | null;
|
|
554
|
-
private x1;
|
|
555
|
-
private y1;
|
|
556
|
-
private x2;
|
|
557
|
-
private y2;
|
|
558
|
-
private selectionStart;
|
|
559
|
-
private panSpeed;
|
|
560
|
-
private readonly panDirection;
|
|
769
|
+
private _isSpaceKeyPressed;
|
|
561
770
|
private pointers;
|
|
562
|
-
private
|
|
563
|
-
private prevSelectedNodes;
|
|
564
|
-
private handledClickOrTap;
|
|
565
|
-
private dragInProcess;
|
|
771
|
+
private _handledClickOrTap;
|
|
566
772
|
private dragSelectedNodes;
|
|
567
|
-
private transformInProcess;
|
|
568
|
-
private serializedSelectedNodes;
|
|
569
773
|
onRender: undefined;
|
|
570
774
|
constructor(params?: WeaveNodesSelectionPluginParams);
|
|
571
775
|
initialize(): void;
|
|
572
776
|
getName(): string;
|
|
573
777
|
getLayerName(): string;
|
|
574
778
|
getConfiguration(): WeaveNodesSelectionConfig;
|
|
779
|
+
getWeaveInstance(): Weave;
|
|
780
|
+
getGesture(): GestureDetector;
|
|
781
|
+
getAreaSelector(): AreaSelector;
|
|
782
|
+
getEdgePanning(): EdgePanning;
|
|
783
|
+
getTransformerController(): TransformerController;
|
|
784
|
+
getDefaultEnabledAnchors(): string[];
|
|
785
|
+
isInitialized(): boolean;
|
|
786
|
+
isActive(): boolean;
|
|
787
|
+
getSpaceKeyPressedState(): boolean;
|
|
788
|
+
setSpaceKeyPressed(val: boolean): void;
|
|
789
|
+
getPointerCount(): number;
|
|
790
|
+
registerPointer(id: number, evt: PointerEvent): void;
|
|
791
|
+
unregisterPointer(id: number): void;
|
|
792
|
+
wasClickOrTapHandled(): boolean;
|
|
793
|
+
setClickOrTapHandled(val: boolean): void;
|
|
794
|
+
setAreaSelecting(val: boolean): void;
|
|
575
795
|
initLayer(): void;
|
|
576
796
|
isPasting(): boolean;
|
|
577
797
|
isAreaSelecting(): boolean;
|
|
578
798
|
isSelecting(): boolean;
|
|
579
799
|
isNodeSelected(ele: Konva.Node): boolean;
|
|
580
800
|
onInit(): void;
|
|
581
|
-
private handleUndoRedoSelectionChange;
|
|
582
801
|
private getLayer;
|
|
583
802
|
triggerSelectedNodesEvent(): void;
|
|
584
|
-
serializeSelectedNodes(): void;
|
|
585
|
-
triggerSelectionAwarenessEvent(): void;
|
|
586
|
-
triggerOnNodesChangeEvent(): void;
|
|
587
803
|
removeElement(element: WeaveStateElement): void;
|
|
588
804
|
removeSelectedNodes(): void;
|
|
589
|
-
private updateSelectionRect;
|
|
590
|
-
private getSpeedFromEdge;
|
|
591
|
-
private updatePanDirection;
|
|
592
|
-
private stopPanLoop;
|
|
593
|
-
private panLoop;
|
|
594
|
-
private setTapStart;
|
|
595
|
-
private checkMovedDrag;
|
|
596
|
-
private checkMoved;
|
|
597
|
-
private checkDoubleTap;
|
|
598
|
-
private hideSelectorArea;
|
|
599
805
|
private initEvents;
|
|
600
|
-
|
|
601
|
-
|
|
806
|
+
handleMultipleSelectionBehavior(): void;
|
|
807
|
+
syncSelection(): void;
|
|
602
808
|
protected getSelectionPlugin(): WeaveNodesSelectionPlugin | undefined;
|
|
603
|
-
|
|
604
|
-
handleClickOrTap(e: KonvaEventObject<PointerEvent, Stage>): void;
|
|
809
|
+
hideHoverState(): void;
|
|
605
810
|
getTransformer(): Konva.Transformer;
|
|
606
811
|
getHoverTransformer(): Konva.Transformer;
|
|
607
812
|
handleBehaviors(): void;
|
|
608
813
|
setSelectedNodes(nodes: Konva.Node[]): void;
|
|
609
|
-
getSelectedNodes(): (
|
|
814
|
+
getSelectedNodes(): (konva_lib_Shape13.Shape<konva_lib_Shape12.ShapeConfig> | konva_lib_Group14.Group)[];
|
|
610
815
|
getSelectedNodesExtended(): WeaveSelection[];
|
|
611
816
|
selectAll(): void;
|
|
612
817
|
selectNone(): void;
|
|
@@ -755,7 +960,7 @@ declare class WeaveTargetingManager {
|
|
|
755
960
|
nodeIntersectsContainerElement(node: Konva.Node | Konva.Transformer, actualLayer?: Konva.Layer | Konva.Group): Konva.Node | undefined;
|
|
756
961
|
getMousePointer(point?: Konva.Vector2d): WeaveMousePointInfo;
|
|
757
962
|
getMousePointerRelativeToContainer(container: Konva.Node | Konva.Layer): WeaveMousePointInfoSimple;
|
|
758
|
-
getRealSelectedNode: (nodeTarget: Konva.Node) =>
|
|
963
|
+
getRealSelectedNode: (nodeTarget: Konva.Node) => konva_lib_Node25.Node<konva_lib_Node24.NodeConfig>;
|
|
759
964
|
}
|
|
760
965
|
|
|
761
966
|
//#endregion
|
|
@@ -774,8 +979,8 @@ declare class WeaveCloningManager {
|
|
|
774
979
|
cloneNode(targetNode: Konva.Node): Konva.Node | undefined;
|
|
775
980
|
addClone(node: Konva.Node): void;
|
|
776
981
|
removeClone(node: Konva.Node): void;
|
|
777
|
-
getClones():
|
|
778
|
-
isClone(node: Konva.Node):
|
|
982
|
+
getClones(): konva_lib_Node27.Node<konva_lib_Node26.NodeConfig>[];
|
|
983
|
+
isClone(node: Konva.Node): konva_lib_Node29.Node<konva_lib_Node28.NodeConfig> | undefined;
|
|
779
984
|
cleanupClones(): void;
|
|
780
985
|
}
|
|
781
986
|
|
|
@@ -1121,7 +1326,7 @@ declare class Weave {
|
|
|
1121
1326
|
endDrag(id: string): void;
|
|
1122
1327
|
setDragProperties<T>(properties: T): void;
|
|
1123
1328
|
getDragProperties<T>(): T | null;
|
|
1124
|
-
getEventsController(): AbortController
|
|
1329
|
+
getEventsController(): AbortController;
|
|
1125
1330
|
getHooks(): Hookable;
|
|
1126
1331
|
getMetadata<T extends AllowedObject>(): T;
|
|
1127
1332
|
saveMetadata<T extends AllowedObject>(metadata: T): void;
|
|
@@ -1228,18 +1433,18 @@ declare class WeaveStateManipulation {
|
|
|
1228
1433
|
* - plain object → Y.Map (values mapped recursively)
|
|
1229
1434
|
*/
|
|
1230
1435
|
static mapValueToYjs(value: any): any;
|
|
1231
|
-
static mapPropsToYjs(props: Record<string, any>): Y
|
|
1436
|
+
static mapPropsToYjs(props: Record<string, any>): Y.Map<any>;
|
|
1232
1437
|
static mapNodeToYjs(node: WeaveStateElement): {
|
|
1233
1438
|
nodeId: string;
|
|
1234
|
-
element: Y
|
|
1439
|
+
element: Y.Map<WeaveStateElement>;
|
|
1235
1440
|
};
|
|
1236
|
-
static addElements(layerYjsElement: Y
|
|
1237
|
-
static updateElements(layerYjsElement: Y
|
|
1441
|
+
static addElements(layerYjsElement: Y.Map<any>, yjsElements: Y.Map<any>[]): void;
|
|
1442
|
+
static updateElements(layerYjsElement: Y.Map<any>, yjsElements: {
|
|
1238
1443
|
nodeId: string;
|
|
1239
|
-
element: Y
|
|
1444
|
+
element: Y.Map<any>;
|
|
1240
1445
|
}[]): void;
|
|
1241
|
-
static deleteElements(layerYjsElement: Y
|
|
1242
|
-
static getYjsElement(doc: Y
|
|
1446
|
+
static deleteElements(layerYjsElement: Y.Map<any>, yjsElementsIds: string[]): void;
|
|
1447
|
+
static getYjsElement(doc: Y.Doc, nodeId: string): Y.Map<any> | null;
|
|
1243
1448
|
static getNodesBoundingBox(nodes: WeaveStateElement[]): BoundingBox;
|
|
1244
1449
|
}
|
|
1245
1450
|
|
|
@@ -2127,10 +2332,10 @@ declare class WeaveBaseLineTipManager {
|
|
|
2127
2332
|
render(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): void;
|
|
2128
2333
|
update(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): void;
|
|
2129
2334
|
protected getTip(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): Konva.Node | undefined;
|
|
2130
|
-
protected getInternalLine(instance: Konva.Group):
|
|
2335
|
+
protected getInternalLine(instance: Konva.Group): konva_lib_shapes_Line21.Line<konva_lib_shapes_Line20.LineConfig> | undefined;
|
|
2131
2336
|
protected getLinePoints(instance: Konva.Group): {
|
|
2132
|
-
lineStartPoint:
|
|
2133
|
-
lineEndPoint:
|
|
2337
|
+
lineStartPoint: konva_lib_types22.Vector2d;
|
|
2338
|
+
lineEndPoint: konva_lib_types23.Vector2d;
|
|
2134
2339
|
};
|
|
2135
2340
|
}
|
|
2136
2341
|
|
|
@@ -5247,7 +5452,7 @@ declare class WeaveCommentsRendererPlugin<T> extends WeavePlugin {
|
|
|
5247
5452
|
private initCommentsLayer;
|
|
5248
5453
|
deleteComments(): void;
|
|
5249
5454
|
render(): void;
|
|
5250
|
-
getCommentsLayer():
|
|
5455
|
+
getCommentsLayer(): konva_lib_Layer9.Layer;
|
|
5251
5456
|
enable(): void;
|
|
5252
5457
|
disable(): void;
|
|
5253
5458
|
}
|
|
@@ -5507,18 +5712,7 @@ declare class WeaveNodesSnappingPlugin extends WeavePlugin {
|
|
|
5507
5712
|
}
|
|
5508
5713
|
|
|
5509
5714
|
//#endregion
|
|
5510
|
-
//#region src/internal-utils/mapping.d.ts
|
|
5511
5715
|
//# sourceMappingURL=nodes-snapping.d.ts.map
|
|
5512
|
-
declare const isArray: (val: any) => boolean;
|
|
5513
|
-
declare const isObject: (val: any) => boolean;
|
|
5514
|
-
declare const mapJsonToYjsMap: (jsonData: any) => Y.Map<unknown>;
|
|
5515
|
-
declare const mapJsonToYjsArray: (jsonData: any) => Y.Array<unknown>;
|
|
5516
|
-
declare const mapJsonToYjsElements: (jsonData: any) => Y.Map<unknown> | Y.Array<unknown> | undefined;
|
|
5517
|
-
declare const weavejsToYjsBinary: (weavejsData: WeaveState) => Uint8Array<ArrayBufferLike>;
|
|
5518
|
-
declare function getJSONFromYjsBinary(actualState: Uint8Array<ArrayBufferLike>): any;
|
|
5519
|
-
|
|
5520
|
-
//#endregion
|
|
5521
|
-
//# sourceMappingURL=mapping.d.ts.map
|
|
5522
5716
|
|
|
5523
5717
|
export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, BoundingBoxWithId, CONNECTOR_TOOL_ACTION_NAME, CONNECTOR_TOOL_DEFAULT_CONFIG, CONNECTOR_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, DEFAULT_GUIDE_TOOL_ACTION_CONFIG, DEFAULT_SNAPPING_MANAGER_CONFIG, DOMElement, DistanceInfoH, DistanceInfoV, DistanceOrigin, DistanceOriginKeys, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_NAME, GUIDE_DISTANCE_ORIGIN, GUIDE_KIND, GUIDE_NAME, GUIDE_ORIENTATION, GUIDE_STATE, GUIDE_TOOL_ACTION_NAME, GUIDE_TOOL_STATE, Guide, GuideDistanceToTargetInfoConfig, GuideDistanceToTargetInfoParams, GuideDistanceToTargetInfoStyle, GuideKind, GuideKindKeys, GuideKindOnlyCustomOrStatic, GuideOrientation, GuideOrientationKeys, GuideToolActionConfig, GuideToolActionParams, GuideToolActionState, GuideToolActionStateKeys, GuideToolActionStyle, GuideToolActionTriggerParams, HIntersection, ImageInfo, ImageOptions, ImageProps, ImageToolActionData, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MEASURE_TOOL_ACTION_NAME, MEASURE_TOOL_STATE, MOVE_ORIENTATION, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, MoveOrientation, MoveOrientationKeys, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, PaddingOnPaste, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, SnapMatch, SnapOptions, SnapPoint, SnapResult, SnappingManagerKindStyle, SnappingManagerMovementConfig, SnappingManagerPersistenceConfig, SnappingManagerStyle, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, TextSerializable, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, VIntersection, VideoBackgroundStyle, VideoIconBackgroundStyle, VideoIconStyle, VideoProps, VideoStyle, VideoTrackStyle, VisibleWorldRect, WEAVE_ARROW_NODE_TYPE, WEAVE_ARROW_TOOL_ACTION_NAME, WEAVE_ARROW_TOOL_STATE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_CONNECTOR_NODE_ANCHOR_ORIGIN, WEAVE_CONNECTOR_NODE_DECORATOR_TYPE, WEAVE_CONNECTOR_NODE_DEFAULT_CONFIG, WEAVE_CONNECTOR_NODE_LINE_ORIGIN, WEAVE_CONNECTOR_NODE_LINE_TYPE, WEAVE_CONNECTOR_NODE_TYPE, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_CONFIG, WEAVE_GRID_DOT_TYPES, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGES_TOOL_ACTION_NAME, WEAVE_IMAGES_TOOL_DEFAULT_CONFIG, WEAVE_IMAGES_TOOL_STATE, WEAVE_IMAGES_TOOL_UPLOAD_TYPE, WEAVE_IMAGE_CROP_ANCHOR_POSITION, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_IMAGE_TOOL_ACTION_NAME, WEAVE_IMAGE_TOOL_CONFIG_DEFAULT, WEAVE_IMAGE_TOOL_STATE, WEAVE_IMAGE_TOOL_UPLOAD_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_MEASURE_NODE_DEFAULT_CONFIG, WEAVE_MEASURE_NODE_TYPE, WEAVE_MEASURE_TOOL_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_NODES_SNAPPING_PLUGIN_KEY, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_DROP_AREA_KEY, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_IMAGE_CROPPING_MODE, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_KEYBOARD_MOVE_ORIENTATION, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAGE_PANNING_THROTTLE_MS, WEAVE_STAGE_TEXT_EDITION_MODE, WEAVE_STAGE_ZOOM_DEFAULT_CONFIG, WEAVE_STAGE_ZOOM_KEY, WEAVE_STAGE_ZOOM_TYPE, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_STROKE_SINGLE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_SINGLE_NODE_TIP_SIDE, WEAVE_STROKE_SINGLE_NODE_TIP_TYPE, WEAVE_STROKE_SINGLE_NODE_TYPE, WEAVE_STROKE_TOOL_ACTION_NAME, WEAVE_STROKE_TOOL_ACTION_NAME_ALIASES, WEAVE_STROKE_TOOL_DEFAULT_CONFIG, WEAVE_STROKE_TOOL_STATE, WEAVE_TEXT_NODE_DEFAULT_CONFIG, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_PRESENCE_CONFIG_DEFAULT_PROPS, WEAVE_USERS_PRESENCE_PLUGIN_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_PRESENCE_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveActionPropsChangeEvent, WeaveAlignNodesToolAction, WeaveAlignNodesToolActionAlignTo, WeaveAlignNodesToolActionAlignToKeys, WeaveAlignNodesToolActionState, WeaveAlignNodesToolActionStateKeys, WeaveAlignNodesToolActionTriggerParams, WeaveAnchorSnap, WeaveArea, WeaveArrowNode, WeaveArrowNodeParams, WeaveArrowProperties, WeaveArrowToolAction, WeaveArrowToolActionParams, WeaveArrowToolActionProperties, WeaveArrowToolActionState, WeaveArrowToolActionStateKeys, WeaveBrushToolAction, WeaveBrushToolActionOnAddedEvent, WeaveBrushToolActionOnAddingEvent, WeaveBrushToolActionParams, WeaveBrushToolActionProperties, WeaveBrushToolActionState, WeaveBrushToolActionStateKeys, WeaveCanPasteOntoFunction, WeaveCommentNode, WeaveCommentNodeAction, WeaveCommentNodeActionKeys, WeaveCommentNodeConfig, WeaveCommentNodeCreateAction, WeaveCommentNodeCreateActionKeys, WeaveCommentNodeModel, WeaveCommentNodeOnCreateCommentEvent, WeaveCommentNodeOnDragEndEvent, WeaveCommentNodeOnFinishCreateEvent, WeaveCommentNodeOnViewEvent, WeaveCommentNodeParams, WeaveCommentNodeStyle, WeaveCommentNodeViewAction, WeaveCommentNodeViewActionKeys, WeaveCommentStatus, WeaveCommentStatusKeys, WeaveCommentToolAction, WeaveCommentToolActionConfig, WeaveCommentToolActionParams, WeaveCommentToolActionState, WeaveCommentToolActionStateKeys, WeaveCommentToolModel, WeaveCommentToolStyle, WeaveCommentsRendererModel, WeaveCommentsRendererPlugin, WeaveCommentsRendererPluginConfig, WeaveCommentsRendererPluginParams, WeaveConfig, WeaveConnectedUserInfoKey, WeaveConnectedUsers, WeaveConnectedUsersChangeEvent, WeaveConnectedUsersPlugin, WeaveConnectedUsersPluginConfig, WeaveConnectedUsersPluginParams, WeaveConnectorNode, WeaveConnectorNodeAnchor, WeaveConnectorNodeAnchorPosition, WeaveConnectorNodeDecoratorType, WeaveConnectorNodeDecoratorTypeKeys, WeaveConnectorNodeInfo, WeaveConnectorNodeLineOrigin, WeaveConnectorNodeLineOriginKeys, WeaveConnectorNodeLineType, WeaveConnectorNodeLineTypeKeys, WeaveConnectorNodeParams, WeaveConnectorNodeProperties, WeaveConnectorToolAction, WeaveConnectorToolActionParams, WeaveConnectorToolActionProperties, WeaveConnectorToolActionState, WeaveConnectorToolActionStateKeys, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveCopyPasteNodesPluginConfig, WeaveCopyPasteNodesPluginOnCopyEvent, WeaveCopyPasteNodesPluginOnPasteEvent, WeaveCopyPasteNodesPluginOnPasteExternalEvent, WeaveCopyPasteNodesPluginParams, WeaveCopyPasteNodesPluginState, WeaveCopyPasteNodesPluginStateKeys, WeaveCopyPastePasteMode, WeaveCopyPastePasteModeKeys, WeaveEllipseNode, WeaveEllipseNodeParams, WeaveEllipseProperties, WeaveEllipseToolAction, WeaveEllipseToolActionOnAddedEvent, WeaveEllipseToolActionOnAddingEvent, WeaveEllipseToolActionState, WeaveEllipseToolActionStateKeys, WeaveEraserToolAction, WeaveEraserToolActionState, WeaveEraserToolActionStateKeys, WeaveExportNodesActionParams, WeaveExportNodesToolAction, WeaveExportStageActionParams, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToScreenToolActionParams, WeaveFitToSelectionToolAction, WeaveFitToSelectionToolActionParams, WeaveFontsPreloadFunction, WeaveFrameAttributes, WeaveFrameNode, WeaveFrameNodeParams, WeaveFrameProperties, WeaveFrameToolAction, WeaveFrameToolActionOnAddedEvent, WeaveFrameToolActionOnAddingEvent, WeaveFrameToolActionState, WeaveFrameToolActionStateKeys, WeaveFrameToolActionTriggerParams, WeaveFrameToolProps, WeaveGetStaticGuidesFunction, WeaveGroupNode, WeaveGroupNodeParams, WeaveGroupProperties, WeaveGuideToolAction, WeaveImageCache, WeaveImageCropAnchorPosition, WeaveImageCropAnchorPositionKeys, WeaveImageCropEndType, WeaveImageCropEndTypeKeys, WeaveImageCursors, WeaveImageFile, WeaveImageNode, WeaveImageNodeParams, WeaveImageOnCropEndEvent, WeaveImageOnCropStartEvent, WeaveImageProperties, WeaveImageState, WeaveImageToolAction, WeaveImageToolActionConfig, WeaveImageToolActionOnAddedEvent, WeaveImageToolActionOnImageUploadedErrorEvent, WeaveImageToolActionOnImageUploadedEvent, WeaveImageToolActionParams, WeaveImageToolActionState, WeaveImageToolActionStateKeys, WeaveImageToolActionTriggerCommonParams, WeaveImageToolActionTriggerParams, WeaveImageToolActionTriggerReturn, WeaveImageToolActionUploadFunction, WeaveImageToolActionUploadType, WeaveImageToolActionUploadTypeKeys, WeaveImageToolDragAndDropProperties, WeaveImageTriggerCropOptions, WeaveImageURL, WeaveImagesFile, WeaveImagesToolAction, WeaveImagesToolActionInternalUploadFunction, WeaveImagesToolActionOnAddedEvent, WeaveImagesToolActionOnFinishedUploadingFunction, WeaveImagesToolActionOnStartUploadingFunction, WeaveImagesToolActionParams, WeaveImagesToolActionState, WeaveImagesToolActionStateKeys, WeaveImagesToolActionTriggerCommonParams, WeaveImagesToolActionTriggerParams, WeaveImagesToolActionUploadFunction, WeaveImagesToolActionUploadType, WeaveImagesToolActionUploadTypeKeys, WeaveImagesToolDragAndDropProperties, WeaveImagesURL, WeaveInstanceStatusEvent, WeaveLayerNode, WeaveLineNode, WeaveLineNodeParams, WeaveLineProperties, WeaveLineToolAction, WeaveLineToolActionParams, WeaveLineToolActionProperties, WeaveLineToolActionState, WeaveLineToolActionStateKeys, WeaveMeasureNode, WeaveMeasureToolAction, WeaveMeasureToolActionState, WeaveMeasureToolActionStateKeys, WeaveMeasureToolParams, WeaveMeasureToolProperties, WeaveMoveToolAction, WeaveMoveToolActionParams, WeaveMoveToolActionState, WeaveMoveToolActionStateKeys, WeaveMutexLockChangeEvent, WeaveNode, WeaveNodeChangedContainerEvent, WeaveNodesMultiSelectionFeedbackConfig, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesMultiSelectionFeedbackPluginConfig, WeaveNodesMultiSelectionFeedbackPluginParams, WeaveNodesMultiSelectionFeedbackStyle, WeaveNodesSelectionBehaviorsConfig, WeaveNodesSelectionConfig, WeaveNodesSelectionOnSelectionParams, WeaveNodesSelectionPanningOnSelectionConfig, WeaveNodesSelectionPlugin, WeaveNodesSelectionPluginConfig, WeaveNodesSelectionPluginOnNodesChangeEvent, WeaveNodesSelectionPluginOnSelectionStateEvent, WeaveNodesSelectionPluginOnStageSelectionEvent, WeaveNodesSelectionPluginParams, WeaveNodesSelectionStyleConfig, WeaveNodesSnappingCustomGuidesConfig, WeaveNodesSnappingPlugin, WeaveNodesSnappingPluginConfig, WeaveNodesSnappingPluginParams, WeavePasteModel, WeavePenToolAction, WeavePenToolActionOnAddedEvent, WeavePenToolActionOnAddingEvent, WeavePenToolActionState, WeavePenToolActionStateKeys, WeavePerformanceConfig, WeavePlugin, WeaveRectangleNode, WeaveRectangleNodeParams, WeaveRectangleProperties, WeaveRectangleToolAction, WeaveRectangleToolActionOnAddedEvent, WeaveRectangleToolActionOnAddingEvent, WeaveRectangleToolActionState, WeaveRectangleToolActionStateKeys, WeaveRegularPolygonNode, WeaveRegularPolygonNodeParams, WeaveRegularPolygonProperties, WeaveRegularPolygonToolAction, WeaveRegularPolygonToolActionOnAddedEvent, WeaveRegularPolygonToolActionOnAddingEvent, WeaveRegularPolygonToolActionState, WeaveRegularPolygonToolActionStateKeys, WeaveRenderer, WeaveSelectionToolAction, WeaveSelectionToolActionState, WeaveSelectionToolActionStateKeys, WeaveStageContextMenuPluginConfig, WeaveStageContextMenuPluginOnNodeContextMenuEvent, WeaveStageContextMenuPluginParams, WeaveStageDropAreaPlugin, WeaveStageDropPluginOnStageDropEvent, WeaveStageGridDotType, WeaveStageGridDotTypeKeys, WeaveStageGridPlugin, WeaveStageGridPluginConfig, WeaveStageGridPluginParams, WeaveStageGridType, WeaveStageGridTypeKeys, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageMinimapPluginConfig, WeaveStageMinimapPluginParams, WeaveStageMinimapPluginStyle, WeaveStageNode, WeaveStagePanningPlugin, WeaveStagePanningPluginConfig, WeaveStagePanningPluginParams, WeaveStageResizePlugin, WeaveStageZoomChanged, WeaveStageZoomPlugin, WeaveStageZoomPluginConfig, WeaveStageZoomPluginOnZoomChangeEvent, WeaveStageZoomPluginParams, WeaveStageZoomType, WeaveStageZoomTypeKeys, WeaveStarNode, WeaveStarNodeParams, WeaveStarProperties, WeaveStarToolAction, WeaveStarToolActionOnAddedEvent, WeaveStarToolActionOnAddingEvent, WeaveStarToolActionState, WeaveStarToolActionStateKeys, WeaveStateManipulation, WeaveStore, WeaveStoreOnNodeChangeEvent, WeaveStoreOnRedoChangeEvent, WeaveStoreOnRoomChangedEvent, WeaveStoreOnRoomLoadedEvent, WeaveStoreOnRoomSwitchingEndEvent, WeaveStoreOnRoomSwitchingStartEvent, WeaveStoreOnStateChangeEvent, WeaveStoreOnStateMetadataChangeEvent, WeaveStoreOnUndoChangeEvent, WeaveStoreOnUndoRedoChangeEvent, WeaveStrokeNode, WeaveStrokeNodeParams, WeaveStrokePoint, WeaveStrokeProperties, WeaveStrokeSingleNode, WeaveStrokeSingleNodeParams, WeaveStrokeSingleNodeTipSide, WeaveStrokeSingleNodeTipSideKeys, WeaveStrokeSingleProperties, WeaveStrokeToolAction, WeaveStrokeToolActionOnAddedEvent, WeaveStrokeToolActionOnAddingEvent, WeaveStrokeToolActionParams, WeaveStrokeToolActionProperties, WeaveStrokeToolActionState, WeaveStrokeToolActionStateKeys, WeaveTextCursorProperties, WeaveTextLayout, WeaveTextLayoutKeys, WeaveTextNode, WeaveTextNodeOnEnterTextNodeEditMode, WeaveTextNodeOnExitTextNodeEditMode, WeaveTextNodeParams, WeaveTextOutlineProperties, WeaveTextProperties$1 as WeaveTextProperties, WeaveTextToolAction, WeaveTextToolActionState, WeaveTextToolActionStateKeys, WeaveToPasteNode, WeaveUpscaleConfig, WeaveUserPointer, WeaveUserPointerKey, WeaveUserPointersUIProperties, WeaveUserPresence, WeaveUserPresenceInformation, WeaveUserPresenceKey, WeaveUserSelectionInfo, WeaveUserSelectionKey, WeaveUsersPointersPlugin, WeaveUsersPointersPluginConfig, WeaveUsersPointersPluginParams, WeaveUsersPresencePlugin, WeaveUsersPresencePluginConfig, WeaveUsersPresencePluginParams, WeaveUsersSelectionPlugin, WeaveUsersSelectionPluginConfig, WeaveUsersSelectionPluginParams, WeaveVideoNode, WeaveVideoNodeParams, WeaveVideoOnVideoPauseEvent, WeaveVideoOnVideoPlayEvent, WeaveVideoOnVideoStopEvent, WeaveVideoProperties, WeaveVideoState, WeaveVideoToolAction, WeaveVideoToolActionOnAddedEvent, WeaveVideoToolActionOnAddingEvent, WeaveVideoToolActionState, WeaveVideoToolActionStateKeys, WeaveVideoToolActionTriggerParams, WeaveVideoToolActionTriggerReturn, WeaveVideoToolDragAndDropProperties, WeaveVideoToolDragParams, WeaveZoomInToolAction, WeaveZoomInToolActionParams, WeaveZoomOutToolAction, WeaveZoomOutToolActionParams, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, downscaleImageFile, downscaleImageFromURL, getBoundingBox, getDownscaleRatio, getExportBoundingBox, getImageSizeFromFile, getJSONFromYjsBinary, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isNumber, isObject, isServer, loadImageSource, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, moveNodeToContainerNT, resetScale, setupCanvasBackend, setupSkiaBackend, weavejsToYjsBinary };
|
|
5524
5718
|
//# sourceMappingURL=types.d.ts.map
|