@inditextech/weave-sdk 2.11.0 → 2.11.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 CHANGED
@@ -24900,30 +24900,60 @@ var WeaveVideoNode = class extends WeaveNode {
24900
24900
  //#endregion
24901
24901
  //#region src/nodes/measure/constants.ts
24902
24902
  const WEAVE_MEASURE_NODE_TYPE = "measure";
24903
+ const WEAVE_MEASURE_NODE_DEFAULT_CONFIG = { style: {
24904
+ separationLine: {
24905
+ padding: 0,
24906
+ strokeWidth: 1,
24907
+ dash: [],
24908
+ stroke: "#FF3366"
24909
+ },
24910
+ text: {
24911
+ padding: 10,
24912
+ fontSize: 14,
24913
+ fontFamily: "monospace",
24914
+ fill: "#FF3366"
24915
+ },
24916
+ intersectionCircle: {
24917
+ radius: 3,
24918
+ fill: "#FF3366"
24919
+ },
24920
+ measureLine: {
24921
+ stroke: "#FF3366",
24922
+ dash: [4, 4],
24923
+ strokeWidth: 1
24924
+ },
24925
+ handler: {
24926
+ noSpaceSeparationMultiplier: 2.5,
24927
+ spaceSeparationMultiplier: 1.5
24928
+ }
24929
+ } };
24903
24930
 
24904
24931
  //#endregion
24905
24932
  //#region src/nodes/measure/measure.ts
24906
- const HANDLE_SPACE_SEPARATION_MULTIPLIER = 1.5;
24907
- const HANDLE_NO_SPACE_SEPARATION_MULTIPLIER = 2.5;
24908
24933
  var WeaveMeasureNode = class extends WeaveNode {
24909
24934
  nodeType = WEAVE_MEASURE_NODE_TYPE;
24910
24935
  handlePointCircleRadius = 6;
24936
+ constructor(params) {
24937
+ super();
24938
+ this.config = mergeExceptArrays(WEAVE_MEASURE_NODE_DEFAULT_CONFIG, params?.config ?? {});
24939
+ }
24911
24940
  onRender(props) {
24912
24941
  const measure = new Konva.Group({
24913
24942
  ...props,
24914
24943
  name: "node",
24915
24944
  draggable: false
24916
24945
  });
24917
- const color = props.color || "#FF3366";
24918
24946
  const fromPoint = props.fromPoint;
24919
24947
  const toPoint = props.toPoint;
24920
24948
  const separation = props.separation ?? 100;
24921
24949
  const orientation = props.orientation ?? -1;
24922
- const textPadding = props.textPadding ?? 20;
24923
- const separationPadding = props.separationPadding ?? 30;
24924
24950
  const unit = props.unit ?? "cms";
24925
24951
  const unitPerPixel = props.unitPerPixel ?? 100;
24926
- const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationPadding) * orientation);
24952
+ const measureLine = this.config.style.measureLine;
24953
+ const intersectionCircle = this.config.style.intersectionCircle;
24954
+ const separationLine = this.config.style.separationLine;
24955
+ const textConfig = this.config.style.text;
24956
+ const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationLine.padding) * orientation);
24927
24957
  const linePerpFrom = new Konva.Line({
24928
24958
  id: `linePerpFrom-${props.id}`,
24929
24959
  nodeId: props.id,
@@ -24934,12 +24964,12 @@ var WeaveMeasureNode = class extends WeaveNode {
24934
24964
  fromFinalPerp.left.x,
24935
24965
  fromFinalPerp.left.y
24936
24966
  ],
24937
- stroke: color,
24938
- strokeWidth: 1,
24939
- dash: [4, 4]
24967
+ stroke: separationLine.stroke,
24968
+ strokeWidth: separationLine.strokeWidth,
24969
+ dash: separationLine.dash
24940
24970
  });
24941
24971
  measure.add(linePerpFrom);
24942
- const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationPadding) * orientation);
24972
+ const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationLine.padding) * orientation);
24943
24973
  const linePerpTo = new Konva.Line({
24944
24974
  id: `linePerpTo-${props.id}`,
24945
24975
  nodeId: props.id,
@@ -24950,9 +24980,9 @@ var WeaveMeasureNode = class extends WeaveNode {
24950
24980
  toFinalPerp.left.x,
24951
24981
  toFinalPerp.left.y
24952
24982
  ],
24953
- stroke: color,
24954
- strokeWidth: 1,
24955
- dash: [4, 4]
24983
+ stroke: separationLine.stroke,
24984
+ strokeWidth: separationLine.strokeWidth,
24985
+ dash: separationLine.dash
24956
24986
  });
24957
24987
  measure.add(linePerpTo);
24958
24988
  const fromPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, separation * orientation);
@@ -24962,8 +24992,8 @@ var WeaveMeasureNode = class extends WeaveNode {
24962
24992
  nodeType: WEAVE_MEASURE_NODE_TYPE,
24963
24993
  x: fromPerp.left.x,
24964
24994
  y: fromPerp.left.y,
24965
- radius: 3,
24966
- fill: color
24995
+ radius: intersectionCircle.radius,
24996
+ fill: intersectionCircle.fill
24967
24997
  });
24968
24998
  measure.add(fromCircle);
24969
24999
  const toPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, separation * orientation);
@@ -24973,8 +25003,8 @@ var WeaveMeasureNode = class extends WeaveNode {
24973
25003
  nodeType: WEAVE_MEASURE_NODE_TYPE,
24974
25004
  x: toPerp.left.x,
24975
25005
  y: toPerp.left.y,
24976
- radius: 3,
24977
- fill: color
25006
+ radius: intersectionCircle.radius,
25007
+ fill: intersectionCircle.fill
24978
25008
  });
24979
25009
  measure.add(toCircle);
24980
25010
  const midPoint = this.midPoint(fromPerp.left, toPerp.left);
@@ -24988,11 +25018,11 @@ var WeaveMeasureNode = class extends WeaveNode {
24988
25018
  x: midPoint.x,
24989
25019
  y: midPoint.y,
24990
25020
  text,
24991
- fontFamily: "monospace",
24992
- fontSize: 14,
25021
+ fontFamily: textConfig.fontFamily,
25022
+ fontSize: textConfig.fontSize,
24993
25023
  verticalAlign: "middle",
24994
25024
  align: "center",
24995
- fill: color
25025
+ fill: textConfig.fill
24996
25026
  });
24997
25027
  const angle = this.getAngle(fromPoint, toPoint);
24998
25028
  const textSize = measureText.measureSize(text);
@@ -25001,13 +25031,13 @@ var WeaveMeasureNode = class extends WeaveNode {
25001
25031
  measureText.offsetX(textSize.width / 2);
25002
25032
  measureText.offsetY(textSize.height / 2);
25003
25033
  if (textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left)) {
25004
- const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, textSize.height * orientation);
25034
+ const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, (textSize.height + separationLine.padding) * orientation);
25005
25035
  measureText.x(perpPointTextMid.left.x);
25006
25036
  measureText.y(perpPointTextMid.left.y);
25007
25037
  }
25008
25038
  measure.add(measureText);
25009
- const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, false);
25010
- const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, true);
25039
+ const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, false);
25040
+ const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, true);
25011
25041
  const lineLeft = new Konva.Line({
25012
25042
  id: `lineLeft-${props.id}`,
25013
25043
  nodeId: props.id,
@@ -25018,8 +25048,9 @@ var WeaveMeasureNode = class extends WeaveNode {
25018
25048
  pointLeftText.x,
25019
25049
  pointLeftText.y
25020
25050
  ],
25021
- stroke: color,
25022
- strokeWidth: 1
25051
+ dash: measureLine.dash,
25052
+ stroke: measureLine.stroke,
25053
+ strokeWidth: measureLine.strokeWidth
25023
25054
  });
25024
25055
  const lineRight = new Konva.Line({
25025
25056
  id: `lineRight-${props.id}`,
@@ -25031,8 +25062,9 @@ var WeaveMeasureNode = class extends WeaveNode {
25031
25062
  toPerp.left.x,
25032
25063
  toPerp.left.y
25033
25064
  ],
25034
- stroke: color,
25035
- strokeWidth: 1
25065
+ dash: measureLine.dash,
25066
+ stroke: measureLine.stroke,
25067
+ strokeWidth: measureLine.strokeWidth
25036
25068
  });
25037
25069
  measure.add(measureText);
25038
25070
  measure.add(lineLeft);
@@ -25123,7 +25155,8 @@ var WeaveMeasureNode = class extends WeaveNode {
25123
25155
  const toPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, separation * orientation);
25124
25156
  const pointMidMeasure = this.pointFromMid(fromPerp.left, toPerp.left, 0, false);
25125
25157
  const isTextBiggerThanMeasureSpace = (textSize?.width ?? 0) > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
25126
- const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
25158
+ const multiplier = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
25159
+ const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, multiplier * (textSize?.height ?? 0) * orientation);
25127
25160
  const moveSeparationRect = new Konva.Rect({
25128
25161
  id: `moveSeparationRect-${props.id}`,
25129
25162
  edgeDistanceDisableOnDrag: true,
@@ -25226,10 +25259,11 @@ var WeaveMeasureNode = class extends WeaveNode {
25226
25259
  const toPoint$1 = node.getAttrs().toPoint;
25227
25260
  const midPoint = this.midPoint(fromPoint$1, toPoint$1);
25228
25261
  const isTextBiggerThanMeasureSpace$1 = (textSize?.width ?? 0) > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
25229
- const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, (isTextBiggerThanMeasureSpace$1 ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
25262
+ const multiplier$1 = isTextBiggerThanMeasureSpace$1 ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
25263
+ const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, multiplier$1 * (textSize?.height ?? 0) * orientation);
25230
25264
  const pointInLine = this.projectPointToLine(separatorPoint$1.left, originalSeparationHandlerPosition, pos);
25231
25265
  if (isNaN(pointInLine.t)) {
25232
- const point = this.movePointPerpendicularToLine(fromPoint$1, toPoint$1, separatorPoint$1.left, ((isTextBiggerThanMeasureSpace$1 ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) + 1) * orientation);
25266
+ const point = this.movePointPerpendicularToLine(fromPoint$1, toPoint$1, separatorPoint$1.left, (multiplier$1 * (textSize?.height ?? 0) + 1) * orientation);
25233
25267
  moveSeparationRect.position(point);
25234
25268
  originalSeparationHandlerPosition = point;
25235
25269
  realNode.setAttrs({ separation: (textSize?.height ?? 0) + 1 });
@@ -25250,7 +25284,8 @@ var WeaveMeasureNode = class extends WeaveNode {
25250
25284
  const fromPoint$1 = node.getAttrs().fromPoint;
25251
25285
  const toPoint$1 = node.getAttrs().toPoint;
25252
25286
  const midPoint = this.midPoint(fromPoint$1, toPoint$1);
25253
- const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
25287
+ const multiplier$1 = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
25288
+ const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, multiplier$1 * (textSize?.height ?? 0) * orientation);
25254
25289
  const pointInLine = this.projectPointToLine(separatorPoint$1.left, originalSeparationHandlerPosition, pos);
25255
25290
  moveSeparationRect.position(pointInLine);
25256
25291
  const dx = originalSeparationHandlerPosition.x - separatorPoint$1.left.x;
@@ -25298,7 +25333,8 @@ var WeaveMeasureNode = class extends WeaveNode {
25298
25333
  const toPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, separation * orientation);
25299
25334
  const pointMidMeasure = this.pointFromMid(fromPerp.left, toPerp.left, 0, false);
25300
25335
  const isTextBiggerThanMeasureSpace = (textSize?.width ?? 0) > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
25301
- const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
25336
+ const multiplier = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
25337
+ const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, multiplier * (textSize?.height ?? 0) * orientation);
25302
25338
  moveSeparationRect.x(separatorPoint.left.x);
25303
25339
  moveSeparationRect.y(separatorPoint.left.y);
25304
25340
  moveSeparationRect.rotation(angle);
@@ -25372,11 +25408,11 @@ var WeaveMeasureNode = class extends WeaveNode {
25372
25408
  const toPoint = nextProps.toPoint;
25373
25409
  const separation = nextProps.separation ?? 100;
25374
25410
  const orientation = nextProps.orientation ?? -1;
25375
- const textPadding = nextProps.textPadding ?? 20;
25376
- const separationPadding = nextProps.separationPadding ?? 30;
25377
25411
  const unit = nextProps.unit ?? "cms";
25378
25412
  const unitPerPixel = nextProps.unitPerPixel ?? 100;
25379
- const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationPadding) * orientation);
25413
+ const separationLine = this.config.style.separationLine;
25414
+ const textConfig = this.config.style.text;
25415
+ const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationLine.padding) * orientation);
25380
25416
  const linePerpFrom = measure.findOne(`#linePerpFrom-${nextProps.id}`);
25381
25417
  linePerpFrom?.points([
25382
25418
  fromPoint.x,
@@ -25384,7 +25420,7 @@ var WeaveMeasureNode = class extends WeaveNode {
25384
25420
  fromFinalPerp.left.x,
25385
25421
  fromFinalPerp.left.y
25386
25422
  ]);
25387
- const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationPadding) * orientation);
25423
+ const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationLine.padding) * orientation);
25388
25424
  const linePerpTo = measure.findOne(`#linePerpTo-${nextProps.id}`);
25389
25425
  linePerpTo?.points([
25390
25426
  toPoint.x,
@@ -25419,12 +25455,12 @@ var WeaveMeasureNode = class extends WeaveNode {
25419
25455
  measureText?.offsetX(textSize.width / 2);
25420
25456
  measureText?.offsetY(textSize.height / 2);
25421
25457
  if (textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left)) {
25422
- const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, textSize.height * orientation);
25458
+ const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, (textSize.height + separationLine.padding) * orientation);
25423
25459
  measureText.x(perpPointTextMid.left.x);
25424
25460
  measureText.y(perpPointTextMid.left.y);
25425
25461
  }
25426
- const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, false);
25427
- const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, true);
25462
+ const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, false);
25463
+ const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, true);
25428
25464
  const lineLeft = measure.findOne(`#lineLeft-${nextProps.id}`);
25429
25465
  lineLeft?.points([
25430
25466
  fromPerp.left.x,
@@ -25456,7 +25492,8 @@ var WeaveMeasureNode = class extends WeaveNode {
25456
25492
  if (moveSeparationRect) {
25457
25493
  const textSize$1 = measureText.measureSize(measureText.text());
25458
25494
  const isTextBiggerThanMeasureSpace = textSize$1.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
25459
- const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * textSize$1.height * orientation);
25495
+ const multiplier = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
25496
+ const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, multiplier * textSize$1.height * orientation);
25460
25497
  moveSeparationRect.x(separatorPoint.left.x);
25461
25498
  moveSeparationRect.y(separatorPoint.left.y);
25462
25499
  moveSeparationRect.rotation(angle);
@@ -29320,17 +29357,18 @@ const MEASURE_TOOL_STATE = {
29320
29357
  ["SET_TO"]: "set_to",
29321
29358
  ["FINISHED"]: "finished"
29322
29359
  };
29360
+ const WEAVE_MEASURE_TOOL_DEFAULT_CONFIG = { style: { stroke: "#FF3366" } };
29323
29361
 
29324
29362
  //#endregion
29325
29363
  //#region src/actions/measure-tool/measure-tool.ts
29326
29364
  var WeaveMeasureToolAction = class extends WeaveAction {
29327
29365
  initialized = false;
29328
29366
  initialCursor = null;
29329
- color = "#FF3366";
29330
29367
  onPropsChange = void 0;
29331
29368
  onInit = void 0;
29332
- constructor() {
29369
+ constructor(params) {
29333
29370
  super();
29371
+ this.config = mergeExceptArrays(WEAVE_MEASURE_TOOL_DEFAULT_CONFIG, params?.config ?? {});
29334
29372
  this.initialized = false;
29335
29373
  this.state = MEASURE_TOOL_STATE.IDLE;
29336
29374
  this.measureId = null;
@@ -29349,12 +29387,8 @@ var WeaveMeasureToolAction = class extends WeaveAction {
29349
29387
  return {
29350
29388
  orientation: -1,
29351
29389
  separation: 0,
29352
- textPadding: 20,
29353
- separationPadding: 0,
29354
- unit: "cms",
29355
- unitPerPixel: 10,
29356
- color: this.color,
29357
- strokeEnabled: false
29390
+ unit: "cm",
29391
+ unitPerPixel: 10
29358
29392
  };
29359
29393
  }
29360
29394
  setupEvents() {
@@ -29394,6 +29428,15 @@ var WeaveMeasureToolAction = class extends WeaveAction {
29394
29428
  const tr = selectionPlugin.getTransformer();
29395
29429
  tr.hide();
29396
29430
  }
29431
+ this.instance.addEventListener("onZoomChange", () => {
29432
+ if (this.crosshairCursor) {
29433
+ const stage = this.instance.getStage();
29434
+ this.crosshairCursor.scale({
29435
+ x: 1 / stage.scaleX(),
29436
+ y: 1 / stage.scaleY()
29437
+ });
29438
+ }
29439
+ });
29397
29440
  this.buildCrosshairCursor();
29398
29441
  this.setCursor();
29399
29442
  this.setFocusStage();
@@ -29423,7 +29466,7 @@ var WeaveMeasureToolAction = class extends WeaveAction {
29423
29466
  ],
29424
29467
  x: -1 * (crosshairSize / 2),
29425
29468
  y: 0,
29426
- stroke: this.color,
29469
+ stroke: this.config.style.stroke,
29427
29470
  strokeWidth: 1
29428
29471
  });
29429
29472
  const lineV = new Konva.Line({
@@ -29435,7 +29478,7 @@ var WeaveMeasureToolAction = class extends WeaveAction {
29435
29478
  ],
29436
29479
  x: 0,
29437
29480
  y: -1 * crosshairSize / 2,
29438
- stroke: this.color,
29481
+ stroke: this.config.style.stroke,
29439
29482
  strokeWidth: 1
29440
29483
  });
29441
29484
  this.crosshairCursor.add(lineH);
@@ -29478,7 +29521,7 @@ var WeaveMeasureToolAction = class extends WeaveAction {
29478
29521
  x: 1 / stage.scaleX(),
29479
29522
  y: 1 / stage.scaleY()
29480
29523
  },
29481
- stroke: this.color,
29524
+ stroke: this.config.style.stroke,
29482
29525
  dashed: [4, 4],
29483
29526
  strokeWidth: 1,
29484
29527
  listening: false,
@@ -33079,7 +33122,7 @@ var WeaveRegisterManager = class {
33079
33122
 
33080
33123
  //#endregion
33081
33124
  //#region package.json
33082
- var version = "2.11.0";
33125
+ var version = "2.11.1";
33083
33126
 
33084
33127
  //#endregion
33085
33128
  //#region src/managers/setup.ts
@@ -34466,5 +34509,5 @@ var WeaveLineToolAction = class extends WeaveAction {
34466
34509
  };
34467
34510
 
34468
34511
  //#endregion
34469
- 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, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MEASURE_TOOL_ACTION_NAME, MEASURE_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_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_MEASURE_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, WeaveLineToolAction, WeaveMeasureNode, WeaveMeasureToolAction, 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, getJSONFromYjsBinary, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isObject, isServer, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, weavejsToYjsBinary };
34512
+ 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, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MEASURE_TOOL_ACTION_NAME, MEASURE_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_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_MEASURE_NODE_DEFAULT_CONFIG, WEAVE_MEASURE_NODE_TYPE, WEAVE_MEASURE_TOOL_DEFAULT_CONFIG, 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, WeaveLineToolAction, WeaveMeasureNode, WeaveMeasureToolAction, 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, getJSONFromYjsBinary, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isObject, isServer, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, weavejsToYjsBinary };
34470
34513
  //# sourceMappingURL=sdk.js.map