@inditextech/weave-sdk 2.2.0 → 2.3.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.node.js CHANGED
@@ -15008,7 +15008,6 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
15008
15008
  } else root$8._ = _;
15009
15009
  }).call(exports);
15010
15010
  } });
15011
- var import_lodash$1 = __toESM(require_lodash());
15012
15011
  var import_lodash = __toESM(require_lodash(), 1);
15013
15012
 
15014
15013
  //#endregion
@@ -15153,13 +15152,13 @@ var WeaveStore = class {
15153
15152
  node: JSON.parse(JSON.stringify(nodeInfo.node))
15154
15153
  });
15155
15154
  }
15156
- if (!this.isRoomLoaded && !(0, import_lodash$1.isEmpty)(this.state.weave)) {
15155
+ if (!this.isRoomLoaded && !(0, import_lodash.isEmpty)(this.state.weave)) {
15157
15156
  this.instance.setupRenderer();
15158
15157
  this.isRoomLoaded = true;
15159
15158
  this.emitOnRoomLoadedEvent();
15160
15159
  return;
15161
15160
  }
15162
- if (this.isRoomLoaded && !(0, import_lodash$1.isEmpty)(this.state.weave)) this.instance.render();
15161
+ if (this.isRoomLoaded && !(0, import_lodash.isEmpty)(this.state.weave)) this.instance.render();
15163
15162
  });
15164
15163
  }
15165
15164
  canUndoStateStep() {
@@ -17602,7 +17601,7 @@ var require_mergeWith = __commonJS({ "../../node_modules/lodash/mergeWith.js"(ex
17602
17601
  });
17603
17602
  module.exports = mergeWith;
17604
17603
  } });
17605
- var import_mergeWith = __toESM(require_mergeWith());
17604
+ var import_mergeWith = __toESM(require_mergeWith(), 1);
17606
17605
 
17607
17606
  //#endregion
17608
17607
  //#region src/utils.ts
@@ -17617,7 +17616,7 @@ function resetScale(node) {
17617
17616
  }
17618
17617
  function clearContainerTargets(instance) {
17619
17618
  const containers = instance.getContainerNodes();
17620
- for (const container of containers) container.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { bubbles: true });
17619
+ for (const container of containers) container.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { node: void 0 });
17621
17620
  }
17622
17621
  function containerOverCursor(instance, ignoreNodes, definedCursorPosition) {
17623
17622
  Konva.hitOnDragEnabled = true;
@@ -17643,6 +17642,8 @@ function moveNodeToContainer(instance, node, containerToMove, invalidOriginsType
17643
17642
  const stage = instance.getStage();
17644
17643
  const isLocked = instance.allNodesLocked([node]);
17645
17644
  if (isLocked) return false;
17645
+ const canMoveToLayer = containerToMove.canMoveToContainer(node);
17646
+ if (!canMoveToLayer) return false;
17646
17647
  let nodeActualContainer = node.getParent();
17647
17648
  if (nodeActualContainer.getAttrs().nodeId) {
17648
17649
  const realParent = stage.findOne(`#${nodeActualContainer.getAttrs().nodeId}`);
@@ -17662,6 +17663,10 @@ function moveNodeToContainer(instance, node, containerToMove, invalidOriginsType
17662
17663
  node.x(node.x() - (layerToMoveAttrs.containerOffsetX ?? 0));
17663
17664
  node.y(node.y() - (layerToMoveAttrs.containerOffsetY ?? 0));
17664
17665
  node.movedToContainer(layerToMove);
17666
+ instance.emitEvent("onNodeMovedToContainer", {
17667
+ node: node.clone(),
17668
+ container: layerToMove
17669
+ });
17665
17670
  const nodeHandler = instance.getNodeHandler(node.getAttrs().nodeType);
17666
17671
  if (nodeHandler) {
17667
17672
  const actualNode = nodeHandler.serialize(node);
@@ -17903,6 +17908,16 @@ function mergeExceptArrays(object, source) {
17903
17908
  return void 0;
17904
17909
  });
17905
17910
  }
17911
+ function getStageClickPoint(instance, pointerPos) {
17912
+ const stage = instance.getStage();
17913
+ const scale = stage.scale();
17914
+ const position = stage.position();
17915
+ const stageClickPoint = {
17916
+ x: (pointerPos.x - position.x) / scale.x,
17917
+ y: (pointerPos.y - position.y) / scale.y
17918
+ };
17919
+ return stageClickPoint;
17920
+ }
17906
17921
 
17907
17922
  //#endregion
17908
17923
  //#region src/actions/selection-tool/constants.ts
@@ -18452,7 +18467,7 @@ var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(expo
18452
18467
  }
18453
18468
  module.exports = throttle;
18454
18469
  } });
18455
- var import_throttle = __toESM(require_throttle());
18470
+ var import_throttle = __toESM(require_throttle(), 1);
18456
18471
 
18457
18472
  //#endregion
18458
18473
  //#region src/nodes/stage/constants.ts
@@ -18720,6 +18735,8 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18720
18735
  this.triggerSelectedNodesEvent();
18721
18736
  });
18722
18737
  let initialPos = null;
18738
+ const originalNodeOpacity = {};
18739
+ const DRAG_OPACITY = .75;
18723
18740
  tr.on("dragstart", (e) => {
18724
18741
  initialPos = {
18725
18742
  x: e.target.x(),
@@ -18732,6 +18749,11 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18732
18749
  e.target.stopDrag();
18733
18750
  return;
18734
18751
  }
18752
+ const nodes = tr.nodes();
18753
+ if (nodes.length > 1) for (const node of nodes) {
18754
+ originalNodeOpacity[node.getAttrs().id ?? ""] = node.opacity();
18755
+ node.opacity(DRAG_OPACITY);
18756
+ }
18735
18757
  e.cancelBubble = true;
18736
18758
  tr.forceUpdate();
18737
18759
  });
@@ -18762,7 +18784,7 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18762
18784
  if (this.isSelecting() && selectedNodes.length > 1) {
18763
18785
  clearContainerTargets(this.instance);
18764
18786
  const layerToMove = containerOverCursor(this.instance, selectedNodes);
18765
- if (layerToMove && !selectionContainsFrames) layerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetEnter, { bubbles: true });
18787
+ if (layerToMove && !selectionContainsFrames) layerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetEnter, { node: void 0 });
18766
18788
  }
18767
18789
  tr.forceUpdate();
18768
18790
  };
@@ -18779,6 +18801,11 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18779
18801
  selectionContainsFrames = selectionContainsFrames || hasFrames(node);
18780
18802
  node.updatePosition(node.getAbsolutePosition());
18781
18803
  }
18804
+ const nodes = tr.nodes();
18805
+ if (nodes.length > 1) for (const node of nodes) {
18806
+ node.opacity(originalNodeOpacity[node.getAttrs().id ?? ""]);
18807
+ delete originalNodeOpacity[node.getAttrs().id ?? ""];
18808
+ }
18782
18809
  if (this.isSelecting() && tr.nodes().length > 1) {
18783
18810
  const actualCursor = stage.container().style.cursor;
18784
18811
  stage.container().style.cursor = "wait";
@@ -18789,6 +18816,7 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18789
18816
  const nodeUpdatePromise = (node) => {
18790
18817
  return new Promise((resolve) => {
18791
18818
  setTimeout(() => {
18819
+ if (node.getAttrs().lockToContainer === void 0 || !node.getAttrs().lockToContainer) return resolve();
18792
18820
  clearContainerTargets(this.instance);
18793
18821
  const nodeHandler = this.instance.getNodeHandler(node.getAttrs().nodeType);
18794
18822
  if (nodeHandler) this.instance.updateNode(nodeHandler.serialize(node));
@@ -18796,7 +18824,7 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18796
18824
  if (layerToMove) containerToMove = layerToMove;
18797
18825
  let moved = false;
18798
18826
  if (containerToMove && !selectionContainsFrames) moved = moveNodeToContainer(this.instance, node, containerToMove);
18799
- if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { bubbles: true });
18827
+ if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { node: void 0 });
18800
18828
  if (!nodeHandler) return resolve();
18801
18829
  toSelect.push(node.getAttrs().id ?? "");
18802
18830
  if (!moved) toUpdate.push(nodeHandler.serialize(node));
@@ -19924,6 +19952,9 @@ var WeaveNode = class {
19924
19952
  node.handleMouseout = function() {};
19925
19953
  node.handleSelectNode = function() {};
19926
19954
  node.handleDeselectNode = function() {};
19955
+ node.canMoveToContainer = function() {
19956
+ return true;
19957
+ };
19927
19958
  }
19928
19959
  isNodeSelected(ele) {
19929
19960
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
@@ -19942,7 +19973,7 @@ var WeaveNode = class {
19942
19973
  setHoverState(node) {
19943
19974
  const selectionPlugin = this.getSelectionPlugin();
19944
19975
  if (!selectionPlugin) return;
19945
- if (selectionPlugin.isAreaSelecting()) {
19976
+ if (selectionPlugin.getSelectedNodes().length === 1 && node === selectionPlugin.getSelectedNodes()[0] || selectionPlugin.isAreaSelecting()) {
19946
19977
  this.hideHoverState();
19947
19978
  return;
19948
19979
  }
@@ -19986,7 +20017,7 @@ var WeaveNode = class {
19986
20017
  if (nodesSelectionPlugin && this.isSelecting() && this.isNodeSelected(node$1)) nodesSelectionPlugin.getTransformer().forceUpdate();
19987
20018
  if (nodesEdgeSnappingPlugin && transforming && this.isSelecting() && this.isNodeSelected(node$1)) nodesEdgeSnappingPlugin.evaluateGuidelines(e);
19988
20019
  };
19989
- node.on("transform", (0, import_lodash$1.throttle)(handleTransform, 100));
20020
+ node.on("transform", (0, import_lodash.throttle)(handleTransform, 100));
19990
20021
  node.on("transformend", (e) => {
19991
20022
  const node$1 = e.target;
19992
20023
  this.instance.emitEvent("onTransform", null);
@@ -20012,6 +20043,8 @@ var WeaveNode = class {
20012
20043
  const nodeTarget = e.target;
20013
20044
  originalPosition = nodeTarget.getAbsolutePosition();
20014
20045
  });
20046
+ let originalOpacity = void 0;
20047
+ const DRAG_OPACITY = .75;
20015
20048
  node.on("dragstart", (e) => {
20016
20049
  const nodeTarget = e.target;
20017
20050
  this.getNodesSelectionFeedbackPlugin()?.hideSelectionHalo(nodeTarget);
@@ -20032,6 +20065,8 @@ var WeaveNode = class {
20032
20065
  }
20033
20066
  const realNodeTarget = this.getRealSelectedNode(nodeTarget);
20034
20067
  if (realNodeTarget.getAttrs().isCloned) return;
20068
+ originalOpacity = realNodeTarget.opacity();
20069
+ realNodeTarget.opacity(DRAG_OPACITY);
20035
20070
  if (e.evt?.altKey) {
20036
20071
  nodeTarget.setAttrs({ isCloneOrigin: true });
20037
20072
  nodeTarget.setAttrs({ isCloned: false });
@@ -20075,10 +20110,10 @@ var WeaveNode = class {
20075
20110
  if (this.isSelecting() && this.getSelectionPlugin()?.getSelectedNodes().length === 1) {
20076
20111
  clearContainerTargets(this.instance);
20077
20112
  const layerToMove = containerOverCursor(this.instance, [realNodeTarget]);
20078
- if (layerToMove && !hasFrames(realNodeTarget) && realNodeTarget.isDragging()) layerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetEnter, { bubbles: true });
20113
+ if (layerToMove && !hasFrames(realNodeTarget) && realNodeTarget.isDragging() && !realNodeTarget.getAttrs().lockToContainer) layerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetEnter, { node: realNodeTarget });
20079
20114
  }
20080
20115
  };
20081
- node.on("dragmove", (0, import_lodash$1.throttle)(handleDragMove, 100));
20116
+ node.on("dragmove", (0, import_lodash.throttle)(handleDragMove, 100));
20082
20117
  node.on("dragend", (e) => {
20083
20118
  const nodeTarget = e.target;
20084
20119
  this.getNodesSelectionFeedbackPlugin()?.hideSelectionHalo(nodeTarget);
@@ -20098,7 +20133,9 @@ var WeaveNode = class {
20098
20133
  }
20099
20134
  this.instance.emitEvent("onDrag", null);
20100
20135
  const realNodeTarget = this.getRealSelectedNode(nodeTarget);
20101
- if (this.isSelecting() && this.getSelectionPlugin()?.getSelectedNodes().length === 1) {
20136
+ realNodeTarget.setAttrs({ opacity: originalOpacity });
20137
+ originalOpacity = void 0;
20138
+ if (this.isSelecting() && this.getSelectionPlugin()?.getSelectedNodes().length === 1 && (realNodeTarget.getAttrs().lockToContainer === void 0 || !realNodeTarget.getAttrs().lockToContainer)) {
20102
20139
  clearContainerTargets(this.instance);
20103
20140
  const nodesEdgeSnappingPlugin = this.getNodesEdgeSnappingPlugin();
20104
20141
  const nodesDistanceSnappingPlugin = this.getNodesDistanceSnappingPlugin();
@@ -20110,9 +20147,17 @@ var WeaveNode = class {
20110
20147
  let moved = false;
20111
20148
  if (containerToMove && !hasFrames(node)) moved = moveNodeToContainer(this.instance, realNodeTarget, containerToMove);
20112
20149
  if (realNodeTarget.getAttrs().isCloned) this.instance.getCloningManager().removeClone(realNodeTarget);
20113
- if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { bubbles: true });
20150
+ if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { node: realNodeTarget });
20114
20151
  if (!moved) this.instance.updateNode(this.serialize(realNodeTarget));
20115
20152
  }
20153
+ if (this.isSelecting() && this.getSelectionPlugin()?.getSelectedNodes().length === 1 && realNodeTarget.getAttrs().lockToContainer) {
20154
+ clearContainerTargets(this.instance);
20155
+ const nodesEdgeSnappingPlugin = this.getNodesEdgeSnappingPlugin();
20156
+ const nodesDistanceSnappingPlugin = this.getNodesDistanceSnappingPlugin();
20157
+ if (nodesEdgeSnappingPlugin) nodesEdgeSnappingPlugin.cleanupGuidelines();
20158
+ if (nodesDistanceSnappingPlugin) nodesDistanceSnappingPlugin.cleanupGuidelines();
20159
+ this.instance.updateNode(this.serialize(realNodeTarget));
20160
+ }
20116
20161
  nodeTarget.setAttrs({ isCloned: void 0 });
20117
20162
  nodeTarget.setAttrs({ isCloneOrigin: void 0 });
20118
20163
  realNodeTarget.setAttrs({ isCloned: void 0 });
@@ -21758,7 +21803,7 @@ var WeaveRegisterManager = class {
21758
21803
 
21759
21804
  //#endregion
21760
21805
  //#region package.json
21761
- var version = "2.2.0";
21806
+ var version = "2.3.0";
21762
21807
 
21763
21808
  //#endregion
21764
21809
  //#region src/managers/setup.ts
@@ -22909,6 +22954,9 @@ var WeaveLayerNode = class extends WeaveNode {
22909
22954
  nodeType = WEAVE_LAYER_NODE_TYPE;
22910
22955
  onRender(props) {
22911
22956
  const layer = new Konva.Layer({ ...props });
22957
+ layer.canMoveToContainer = function() {
22958
+ return true;
22959
+ };
22912
22960
  return layer;
22913
22961
  }
22914
22962
  onUpdate(nodeInstance, nextProps) {
@@ -23304,7 +23352,7 @@ var WeaveTextNode = class extends WeaveNode {
23304
23352
  text.on("transformstart", (e) => {
23305
23353
  this.instance.emitEvent("onTransform", e.target);
23306
23354
  });
23307
- text.on("transform", (0, import_lodash$1.throttle)(handleTextTransform, 50));
23355
+ text.on("transform", (0, import_lodash.throttle)(handleTextTransform, 50));
23308
23356
  text.on("transformend", () => {
23309
23357
  this.instance.emitEvent("onTransform", null);
23310
23358
  });
@@ -24992,6 +25040,9 @@ var WeaveFrameNode = class extends WeaveNode {
24992
25040
  fill: onTargetEnterFill
24993
25041
  });
24994
25042
  });
25043
+ frame.canMoveToContainer = function() {
25044
+ return true;
25045
+ };
24995
25046
  return frame;
24996
25047
  }
24997
25048
  onUpdate(nodeInstance, nextProps) {
@@ -26599,7 +26650,7 @@ var WeaveStageZoomPlugin = class extends WeavePlugin {
26599
26650
  this.config.zoomSteps = [minimumZoom, ...this.config.zoomSteps];
26600
26651
  }
26601
26652
  };
26602
- mainLayer?.on("draw", (0, import_lodash$1.throttle)(handleDraw, 50));
26653
+ mainLayer?.on("draw", (0, import_lodash.throttle)(handleDraw, 50));
26603
26654
  this.setZoom(this.config.zoomSteps[this.actualStep]);
26604
26655
  }
26605
26656
  setZoom(scale, centered = true, pointer) {
@@ -29366,6 +29417,7 @@ const FRAME_TOOL_STATE = {
29366
29417
  //#region src/actions/frame-tool/frame-tool.ts
29367
29418
  var WeaveFrameToolAction = class extends WeaveAction {
29368
29419
  initialized = false;
29420
+ templateId = null;
29369
29421
  onPropsChange = void 0;
29370
29422
  onInit = void 0;
29371
29423
  constructor() {
@@ -29387,6 +29439,9 @@ var WeaveFrameToolAction = class extends WeaveAction {
29387
29439
  opacity: 1
29388
29440
  };
29389
29441
  }
29442
+ setTemplateToUse(templateId) {
29443
+ this.templateId = templateId;
29444
+ }
29390
29445
  setupEvents() {
29391
29446
  const stage = this.instance.getStage();
29392
29447
  window.addEventListener("keydown", (e) => {
@@ -29401,7 +29456,7 @@ var WeaveFrameToolAction = class extends WeaveAction {
29401
29456
  });
29402
29457
  stage.on("pointerclick", () => {
29403
29458
  if (this.state === FRAME_TOOL_STATE.IDLE) return;
29404
- if (this.state === FRAME_TOOL_STATE.ADDING) {
29459
+ if (this.state === FRAME_TOOL_STATE.ADDING && this.templateId === null) {
29405
29460
  this.handleAdding();
29406
29461
  return;
29407
29462
  }
@@ -29415,6 +29470,7 @@ var WeaveFrameToolAction = class extends WeaveAction {
29415
29470
  this.setCursor();
29416
29471
  this.setFocusStage();
29417
29472
  this.instance.emitEvent("onAddingFrame");
29473
+ this.templateId = null;
29418
29474
  this.frameId = null;
29419
29475
  this.clickPoint = null;
29420
29476
  this.setState(FRAME_TOOL_STATE.ADDING);
@@ -29464,6 +29520,7 @@ var WeaveFrameToolAction = class extends WeaveAction {
29464
29520
  this.frameId = null;
29465
29521
  this.container = void 0;
29466
29522
  this.clickPoint = null;
29523
+ this.templateId = null;
29467
29524
  this.setState(FRAME_TOOL_STATE.IDLE);
29468
29525
  }
29469
29526
  setCursor() {
@@ -30317,7 +30374,7 @@ var WeaveStageGridPlugin = class extends WeavePlugin {
30317
30374
  if (!this.enabled || !(this.isSpaceKeyPressed || this.isMouseMiddleButtonPressed || this.moveToolActive)) return;
30318
30375
  this.onRender();
30319
30376
  };
30320
- stage.on("pointermove", (0, import_lodash$1.throttle)(handleMouseMove, 50));
30377
+ stage.on("pointermove", (0, import_lodash.throttle)(handleMouseMove, 50));
30321
30378
  stage.on("pointermove", () => {
30322
30379
  if (this.enabled) this.onRender();
30323
30380
  });
@@ -30626,7 +30683,7 @@ var WeaveStagePanningPlugin = class extends WeavePlugin {
30626
30683
  lastPos = pos;
30627
30684
  this.instance.emitEvent("onStageMove");
30628
30685
  };
30629
- stage.on("pointermove", (0, import_lodash$1.throttle)(handleMouseMove, 50));
30686
+ stage.on("pointermove", (0, import_lodash.throttle)(handleMouseMove, 50));
30630
30687
  stage.on("pointerup", (e) => {
30631
30688
  this.pointers.delete(e.evt.pointerId);
30632
30689
  this.isMouseLeftButtonPressed = false;
@@ -30890,7 +30947,7 @@ var WeaveStageMinimapPlugin = class extends WeavePlugin {
30890
30947
  this.setupMinimap();
30891
30948
  }
30892
30949
  onInit() {
30893
- const throttledUpdateMinimap = (0, import_lodash$1.throttle)(async () => {
30950
+ const throttledUpdateMinimap = (0, import_lodash.throttle)(async () => {
30894
30951
  await this.updateMinimapContent();
30895
30952
  this.updateMinimapViewportReference();
30896
30953
  }, 100);
@@ -31183,7 +31240,7 @@ var WeaveConnectedUsersPlugin = class extends WeavePlugin {
31183
31240
  newConnectedUsers[userInformation.id] = userInformation;
31184
31241
  }
31185
31242
  }
31186
- if (!(0, import_lodash$1.isEqual)(this.connectedUsers, newConnectedUsers)) this.instance.emitEvent("onConnectedUsersChange", newConnectedUsers);
31243
+ if (!(0, import_lodash.isEqual)(this.connectedUsers, newConnectedUsers)) this.instance.emitEvent("onConnectedUsersChange", newConnectedUsers);
31187
31244
  this.connectedUsers = newConnectedUsers;
31188
31245
  });
31189
31246
  }
@@ -31431,7 +31488,7 @@ var WeaveUsersPointersPlugin = class extends WeavePlugin {
31431
31488
  for (let i = 0; i < inactiveUsers.length; i++) delete this.usersPointers[inactiveUsers[i]];
31432
31489
  this.renderPointers();
31433
31490
  });
31434
- const sendAwarenessUpdateThrottled = (0, import_lodash$1.throttle)(this.sendAwarenessUpdate.bind(this), this.config.awarenessThrottleMs);
31491
+ const sendAwarenessUpdateThrottled = (0, import_lodash.throttle)(this.sendAwarenessUpdate.bind(this), this.config.awarenessThrottleMs);
31435
31492
  stage.on("dragmove", () => {
31436
31493
  const mousePos = stage.getRelativePointerPosition();
31437
31494
  if (mousePos) sendAwarenessUpdateThrottled(mousePos);
@@ -32665,5 +32722,5 @@ if (typeof window === "undefined") {
32665
32722
  }
32666
32723
 
32667
32724
  //#endregion
32668
- export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, ARROW_TOOL_ACTION_NAME, ARROW_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_LINE_DEFAULT_CONFIG, GUIDE_ENTER_SNAPPING_TOLERANCE, GUIDE_EXIT_SNAPPING_TOLERANCE, GUIDE_HORIZONTAL_LINE_NAME, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, GUIDE_VERTICAL_LINE_NAME, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NODE_SNAP_HORIZONTAL, NODE_SNAP_VERTICAL, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, 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, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, WEAVE_ARROW_NODE_TYPE, 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_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_COLOR, WEAVE_GRID_DEFAULT_DOT_MAX_DOTS_PER_AXIS, WEAVE_GRID_DEFAULT_MAJOR_DOT_RATIO, WEAVE_GRID_DEFAULT_MAJOR_EVERY, WEAVE_GRID_DEFAULT_MAJOR_LINE_RATIO, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_RADIUS, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_STROKE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_TYPE, WEAVE_NODES_DISTANCE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_EDGE_SNAPPING_PLUGIN_KEY, 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_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveAlignNodesToolAction, WeaveArrowNode, WeaveArrowToolAction, WeaveBrushToolAction, WeaveCommentNode, WeaveCommentToolAction, WeaveCommentsRendererPlugin, WeaveConnectedUsersPlugin, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveEllipseNode, WeaveEllipseToolAction, WeaveEraserToolAction, WeaveExportNodesToolAction, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToSelectionToolAction, WeaveFrameNode, WeaveFrameToolAction, WeaveGroupNode, WeaveImageNode, WeaveImageToolAction, WeaveLayerNode, WeaveLineNode, WeaveMoveToolAction, WeaveNode, WeaveNodesDistanceSnappingPlugin, WeaveNodesEdgeSnappingPlugin, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesSelectionPlugin, WeavePenToolAction, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRegularPolygonNode, WeaveRegularPolygonToolAction, WeaveSelectionToolAction, WeaveStageDropAreaPlugin, WeaveStageGridPlugin, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomPlugin, WeaveStarNode, WeaveStarToolAction, WeaveStore, WeaveStrokeNode, WeaveTextNode, WeaveTextToolAction, WeaveUsersPointersPlugin, WeaveUsersSelectionPlugin, WeaveVideoNode, WeaveVideoToolAction, WeaveZoomInToolAction, WeaveZoomOutToolAction, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, getBoundingBox, getExportBoundingBox, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isIOS, isInShadowDOM, isNodeInSelection, isServer, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, setupCanvasBackend, setupSkiaBackend };
32725
+ export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, ARROW_TOOL_ACTION_NAME, ARROW_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_LINE_DEFAULT_CONFIG, GUIDE_ENTER_SNAPPING_TOLERANCE, GUIDE_EXIT_SNAPPING_TOLERANCE, GUIDE_HORIZONTAL_LINE_NAME, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, GUIDE_VERTICAL_LINE_NAME, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NODE_SNAP_HORIZONTAL, NODE_SNAP_VERTICAL, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, 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, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, WEAVE_ARROW_NODE_TYPE, 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_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_COLOR, WEAVE_GRID_DEFAULT_DOT_MAX_DOTS_PER_AXIS, WEAVE_GRID_DEFAULT_MAJOR_DOT_RATIO, WEAVE_GRID_DEFAULT_MAJOR_EVERY, WEAVE_GRID_DEFAULT_MAJOR_LINE_RATIO, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_RADIUS, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_STROKE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_TYPE, WEAVE_NODES_DISTANCE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_EDGE_SNAPPING_PLUGIN_KEY, 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_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveAlignNodesToolAction, WeaveArrowNode, WeaveArrowToolAction, WeaveBrushToolAction, WeaveCommentNode, WeaveCommentToolAction, WeaveCommentsRendererPlugin, WeaveConnectedUsersPlugin, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveEllipseNode, WeaveEllipseToolAction, WeaveEraserToolAction, WeaveExportNodesToolAction, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToSelectionToolAction, WeaveFrameNode, WeaveFrameToolAction, WeaveGroupNode, WeaveImageNode, WeaveImageToolAction, WeaveLayerNode, WeaveLineNode, WeaveMoveToolAction, WeaveNode, WeaveNodesDistanceSnappingPlugin, WeaveNodesEdgeSnappingPlugin, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesSelectionPlugin, WeavePenToolAction, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRegularPolygonNode, WeaveRegularPolygonToolAction, WeaveSelectionToolAction, WeaveStageDropAreaPlugin, WeaveStageGridPlugin, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomPlugin, WeaveStarNode, WeaveStarToolAction, WeaveStore, WeaveStrokeNode, WeaveTextNode, WeaveTextToolAction, WeaveUsersPointersPlugin, WeaveUsersSelectionPlugin, WeaveVideoNode, WeaveVideoToolAction, WeaveZoomInToolAction, WeaveZoomOutToolAction, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, getBoundingBox, getExportBoundingBox, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isIOS, isInShadowDOM, isNodeInSelection, isServer, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, setupCanvasBackend, setupSkiaBackend };
32669
32726
  //# sourceMappingURL=sdk.node.js.map