@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.js CHANGED
@@ -17616,7 +17616,7 @@ function resetScale(node) {
17616
17616
  }
17617
17617
  function clearContainerTargets(instance) {
17618
17618
  const containers = instance.getContainerNodes();
17619
- 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 });
17620
17620
  }
17621
17621
  function containerOverCursor(instance, ignoreNodes, definedCursorPosition) {
17622
17622
  Konva.hitOnDragEnabled = true;
@@ -17642,6 +17642,8 @@ function moveNodeToContainer(instance, node, containerToMove, invalidOriginsType
17642
17642
  const stage = instance.getStage();
17643
17643
  const isLocked = instance.allNodesLocked([node]);
17644
17644
  if (isLocked) return false;
17645
+ const canMoveToLayer = containerToMove.canMoveToContainer(node);
17646
+ if (!canMoveToLayer) return false;
17645
17647
  let nodeActualContainer = node.getParent();
17646
17648
  if (nodeActualContainer.getAttrs().nodeId) {
17647
17649
  const realParent = stage.findOne(`#${nodeActualContainer.getAttrs().nodeId}`);
@@ -17661,6 +17663,10 @@ function moveNodeToContainer(instance, node, containerToMove, invalidOriginsType
17661
17663
  node.x(node.x() - (layerToMoveAttrs.containerOffsetX ?? 0));
17662
17664
  node.y(node.y() - (layerToMoveAttrs.containerOffsetY ?? 0));
17663
17665
  node.movedToContainer(layerToMove);
17666
+ instance.emitEvent("onNodeMovedToContainer", {
17667
+ node: node.clone(),
17668
+ container: layerToMove
17669
+ });
17664
17670
  const nodeHandler = instance.getNodeHandler(node.getAttrs().nodeType);
17665
17671
  if (nodeHandler) {
17666
17672
  const actualNode = nodeHandler.serialize(node);
@@ -17902,6 +17908,16 @@ function mergeExceptArrays(object, source) {
17902
17908
  return void 0;
17903
17909
  });
17904
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
+ }
17905
17921
 
17906
17922
  //#endregion
17907
17923
  //#region src/actions/selection-tool/constants.ts
@@ -18719,6 +18735,8 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18719
18735
  this.triggerSelectedNodesEvent();
18720
18736
  });
18721
18737
  let initialPos = null;
18738
+ const originalNodeOpacity = {};
18739
+ const DRAG_OPACITY = .75;
18722
18740
  tr.on("dragstart", (e) => {
18723
18741
  initialPos = {
18724
18742
  x: e.target.x(),
@@ -18731,6 +18749,11 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18731
18749
  e.target.stopDrag();
18732
18750
  return;
18733
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
+ }
18734
18757
  e.cancelBubble = true;
18735
18758
  tr.forceUpdate();
18736
18759
  });
@@ -18761,7 +18784,7 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18761
18784
  if (this.isSelecting() && selectedNodes.length > 1) {
18762
18785
  clearContainerTargets(this.instance);
18763
18786
  const layerToMove = containerOverCursor(this.instance, selectedNodes);
18764
- 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 });
18765
18788
  }
18766
18789
  tr.forceUpdate();
18767
18790
  };
@@ -18778,6 +18801,11 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18778
18801
  selectionContainsFrames = selectionContainsFrames || hasFrames(node);
18779
18802
  node.updatePosition(node.getAbsolutePosition());
18780
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
+ }
18781
18809
  if (this.isSelecting() && tr.nodes().length > 1) {
18782
18810
  const actualCursor = stage.container().style.cursor;
18783
18811
  stage.container().style.cursor = "wait";
@@ -18788,6 +18816,7 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18788
18816
  const nodeUpdatePromise = (node) => {
18789
18817
  return new Promise((resolve) => {
18790
18818
  setTimeout(() => {
18819
+ if (node.getAttrs().lockToContainer === void 0 || !node.getAttrs().lockToContainer) return resolve();
18791
18820
  clearContainerTargets(this.instance);
18792
18821
  const nodeHandler = this.instance.getNodeHandler(node.getAttrs().nodeType);
18793
18822
  if (nodeHandler) this.instance.updateNode(nodeHandler.serialize(node));
@@ -18795,7 +18824,7 @@ var WeaveNodesSelectionPlugin = class extends WeavePlugin {
18795
18824
  if (layerToMove) containerToMove = layerToMove;
18796
18825
  let moved = false;
18797
18826
  if (containerToMove && !selectionContainsFrames) moved = moveNodeToContainer(this.instance, node, containerToMove);
18798
- if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { bubbles: true });
18827
+ if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { node: void 0 });
18799
18828
  if (!nodeHandler) return resolve();
18800
18829
  toSelect.push(node.getAttrs().id ?? "");
18801
18830
  if (!moved) toUpdate.push(nodeHandler.serialize(node));
@@ -19923,6 +19952,9 @@ var WeaveNode = class {
19923
19952
  node.handleMouseout = function() {};
19924
19953
  node.handleSelectNode = function() {};
19925
19954
  node.handleDeselectNode = function() {};
19955
+ node.canMoveToContainer = function() {
19956
+ return true;
19957
+ };
19926
19958
  }
19927
19959
  isNodeSelected(ele) {
19928
19960
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
@@ -19941,7 +19973,7 @@ var WeaveNode = class {
19941
19973
  setHoverState(node) {
19942
19974
  const selectionPlugin = this.getSelectionPlugin();
19943
19975
  if (!selectionPlugin) return;
19944
- if (selectionPlugin.isAreaSelecting()) {
19976
+ if (selectionPlugin.getSelectedNodes().length === 1 && node === selectionPlugin.getSelectedNodes()[0] || selectionPlugin.isAreaSelecting()) {
19945
19977
  this.hideHoverState();
19946
19978
  return;
19947
19979
  }
@@ -20011,6 +20043,8 @@ var WeaveNode = class {
20011
20043
  const nodeTarget = e.target;
20012
20044
  originalPosition = nodeTarget.getAbsolutePosition();
20013
20045
  });
20046
+ let originalOpacity = void 0;
20047
+ const DRAG_OPACITY = .75;
20014
20048
  node.on("dragstart", (e) => {
20015
20049
  const nodeTarget = e.target;
20016
20050
  this.getNodesSelectionFeedbackPlugin()?.hideSelectionHalo(nodeTarget);
@@ -20031,6 +20065,8 @@ var WeaveNode = class {
20031
20065
  }
20032
20066
  const realNodeTarget = this.getRealSelectedNode(nodeTarget);
20033
20067
  if (realNodeTarget.getAttrs().isCloned) return;
20068
+ originalOpacity = realNodeTarget.opacity();
20069
+ realNodeTarget.opacity(DRAG_OPACITY);
20034
20070
  if (e.evt?.altKey) {
20035
20071
  nodeTarget.setAttrs({ isCloneOrigin: true });
20036
20072
  nodeTarget.setAttrs({ isCloned: false });
@@ -20074,7 +20110,7 @@ var WeaveNode = class {
20074
20110
  if (this.isSelecting() && this.getSelectionPlugin()?.getSelectedNodes().length === 1) {
20075
20111
  clearContainerTargets(this.instance);
20076
20112
  const layerToMove = containerOverCursor(this.instance, [realNodeTarget]);
20077
- 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 });
20078
20114
  }
20079
20115
  };
20080
20116
  node.on("dragmove", (0, import_lodash.throttle)(handleDragMove, 100));
@@ -20097,7 +20133,9 @@ var WeaveNode = class {
20097
20133
  }
20098
20134
  this.instance.emitEvent("onDrag", null);
20099
20135
  const realNodeTarget = this.getRealSelectedNode(nodeTarget);
20100
- 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)) {
20101
20139
  clearContainerTargets(this.instance);
20102
20140
  const nodesEdgeSnappingPlugin = this.getNodesEdgeSnappingPlugin();
20103
20141
  const nodesDistanceSnappingPlugin = this.getNodesDistanceSnappingPlugin();
@@ -20109,9 +20147,17 @@ var WeaveNode = class {
20109
20147
  let moved = false;
20110
20148
  if (containerToMove && !hasFrames(node)) moved = moveNodeToContainer(this.instance, realNodeTarget, containerToMove);
20111
20149
  if (realNodeTarget.getAttrs().isCloned) this.instance.getCloningManager().removeClone(realNodeTarget);
20112
- if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { bubbles: true });
20150
+ if (containerToMove) containerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetLeave, { node: realNodeTarget });
20113
20151
  if (!moved) this.instance.updateNode(this.serialize(realNodeTarget));
20114
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
+ }
20115
20161
  nodeTarget.setAttrs({ isCloned: void 0 });
20116
20162
  nodeTarget.setAttrs({ isCloneOrigin: void 0 });
20117
20163
  realNodeTarget.setAttrs({ isCloned: void 0 });
@@ -20807,6 +20853,9 @@ var WeaveLayerNode = class extends WeaveNode {
20807
20853
  nodeType = WEAVE_LAYER_NODE_TYPE;
20808
20854
  onRender(props) {
20809
20855
  const layer = new Konva.Layer({ ...props });
20856
+ layer.canMoveToContainer = function() {
20857
+ return true;
20858
+ };
20810
20859
  return layer;
20811
20860
  }
20812
20861
  onUpdate(nodeInstance, nextProps) {
@@ -22890,6 +22939,9 @@ var WeaveFrameNode = class extends WeaveNode {
22890
22939
  fill: onTargetEnterFill
22891
22940
  });
22892
22941
  });
22942
+ frame.canMoveToContainer = function() {
22943
+ return true;
22944
+ };
22893
22945
  return frame;
22894
22946
  }
22895
22947
  onUpdate(nodeInstance, nextProps) {
@@ -27264,6 +27316,7 @@ const FRAME_TOOL_STATE = {
27264
27316
  //#region src/actions/frame-tool/frame-tool.ts
27265
27317
  var WeaveFrameToolAction = class extends WeaveAction {
27266
27318
  initialized = false;
27319
+ templateId = null;
27267
27320
  onPropsChange = void 0;
27268
27321
  onInit = void 0;
27269
27322
  constructor() {
@@ -27285,6 +27338,9 @@ var WeaveFrameToolAction = class extends WeaveAction {
27285
27338
  opacity: 1
27286
27339
  };
27287
27340
  }
27341
+ setTemplateToUse(templateId) {
27342
+ this.templateId = templateId;
27343
+ }
27288
27344
  setupEvents() {
27289
27345
  const stage = this.instance.getStage();
27290
27346
  window.addEventListener("keydown", (e) => {
@@ -27299,7 +27355,7 @@ var WeaveFrameToolAction = class extends WeaveAction {
27299
27355
  });
27300
27356
  stage.on("pointerclick", () => {
27301
27357
  if (this.state === FRAME_TOOL_STATE.IDLE) return;
27302
- if (this.state === FRAME_TOOL_STATE.ADDING) {
27358
+ if (this.state === FRAME_TOOL_STATE.ADDING && this.templateId === null) {
27303
27359
  this.handleAdding();
27304
27360
  return;
27305
27361
  }
@@ -27313,6 +27369,7 @@ var WeaveFrameToolAction = class extends WeaveAction {
27313
27369
  this.setCursor();
27314
27370
  this.setFocusStage();
27315
27371
  this.instance.emitEvent("onAddingFrame");
27372
+ this.templateId = null;
27316
27373
  this.frameId = null;
27317
27374
  this.clickPoint = null;
27318
27375
  this.setState(FRAME_TOOL_STATE.ADDING);
@@ -27362,6 +27419,7 @@ var WeaveFrameToolAction = class extends WeaveAction {
27362
27419
  this.frameId = null;
27363
27420
  this.container = void 0;
27364
27421
  this.clickPoint = null;
27422
+ this.templateId = null;
27365
27423
  this.setState(FRAME_TOOL_STATE.IDLE);
27366
27424
  }
27367
27425
  setCursor() {
@@ -31607,7 +31665,7 @@ var WeaveRegisterManager = class {
31607
31665
 
31608
31666
  //#endregion
31609
31667
  //#region package.json
31610
- var version = "2.2.0";
31668
+ var version = "2.3.0";
31611
31669
 
31612
31670
  //#endregion
31613
31671
  //#region src/managers/setup.ts
@@ -32658,5 +32716,5 @@ window._weave_isServerSide = false;
32658
32716
  window._weave_serverSideBackend = void 0;
32659
32717
 
32660
32718
  //#endregion
32661
- 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 };
32719
+ 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 };
32662
32720
  //# sourceMappingURL=sdk.js.map