@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.node.js CHANGED
@@ -21875,7 +21875,7 @@ var WeaveRegisterManager = class {
21875
21875
 
21876
21876
  //#endregion
21877
21877
  //#region package.json
21878
- var version = "2.11.0";
21878
+ var version = "2.11.1";
21879
21879
 
21880
21880
  //#endregion
21881
21881
  //#region src/managers/setup.ts
@@ -27014,30 +27014,60 @@ var WeaveVideoNode = class extends WeaveNode {
27014
27014
  //#endregion
27015
27015
  //#region src/nodes/measure/constants.ts
27016
27016
  const WEAVE_MEASURE_NODE_TYPE = "measure";
27017
+ const WEAVE_MEASURE_NODE_DEFAULT_CONFIG = { style: {
27018
+ separationLine: {
27019
+ padding: 0,
27020
+ strokeWidth: 1,
27021
+ dash: [],
27022
+ stroke: "#FF3366"
27023
+ },
27024
+ text: {
27025
+ padding: 10,
27026
+ fontSize: 14,
27027
+ fontFamily: "monospace",
27028
+ fill: "#FF3366"
27029
+ },
27030
+ intersectionCircle: {
27031
+ radius: 3,
27032
+ fill: "#FF3366"
27033
+ },
27034
+ measureLine: {
27035
+ stroke: "#FF3366",
27036
+ dash: [4, 4],
27037
+ strokeWidth: 1
27038
+ },
27039
+ handler: {
27040
+ noSpaceSeparationMultiplier: 2.5,
27041
+ spaceSeparationMultiplier: 1.5
27042
+ }
27043
+ } };
27017
27044
 
27018
27045
  //#endregion
27019
27046
  //#region src/nodes/measure/measure.ts
27020
- const HANDLE_SPACE_SEPARATION_MULTIPLIER = 1.5;
27021
- const HANDLE_NO_SPACE_SEPARATION_MULTIPLIER = 2.5;
27022
27047
  var WeaveMeasureNode = class extends WeaveNode {
27023
27048
  nodeType = WEAVE_MEASURE_NODE_TYPE;
27024
27049
  handlePointCircleRadius = 6;
27050
+ constructor(params) {
27051
+ super();
27052
+ this.config = mergeExceptArrays(WEAVE_MEASURE_NODE_DEFAULT_CONFIG, params?.config ?? {});
27053
+ }
27025
27054
  onRender(props) {
27026
27055
  const measure = new Konva.Group({
27027
27056
  ...props,
27028
27057
  name: "node",
27029
27058
  draggable: false
27030
27059
  });
27031
- const color = props.color || "#FF3366";
27032
27060
  const fromPoint = props.fromPoint;
27033
27061
  const toPoint = props.toPoint;
27034
27062
  const separation = props.separation ?? 100;
27035
27063
  const orientation = props.orientation ?? -1;
27036
- const textPadding = props.textPadding ?? 20;
27037
- const separationPadding = props.separationPadding ?? 30;
27038
27064
  const unit = props.unit ?? "cms";
27039
27065
  const unitPerPixel = props.unitPerPixel ?? 100;
27040
- const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationPadding) * orientation);
27066
+ const measureLine = this.config.style.measureLine;
27067
+ const intersectionCircle = this.config.style.intersectionCircle;
27068
+ const separationLine = this.config.style.separationLine;
27069
+ const textConfig = this.config.style.text;
27070
+ const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationLine.padding) * orientation);
27041
27071
  const linePerpFrom = new Konva.Line({
27042
27072
  id: `linePerpFrom-${props.id}`,
27043
27073
  nodeId: props.id,
@@ -27048,12 +27078,12 @@ var WeaveMeasureNode = class extends WeaveNode {
27048
27078
  fromFinalPerp.left.x,
27049
27079
  fromFinalPerp.left.y
27050
27080
  ],
27051
- stroke: color,
27052
- strokeWidth: 1,
27053
- dash: [4, 4]
27081
+ stroke: separationLine.stroke,
27082
+ strokeWidth: separationLine.strokeWidth,
27083
+ dash: separationLine.dash
27054
27084
  });
27055
27085
  measure.add(linePerpFrom);
27056
- const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationPadding) * orientation);
27086
+ const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationLine.padding) * orientation);
27057
27087
  const linePerpTo = new Konva.Line({
27058
27088
  id: `linePerpTo-${props.id}`,
27059
27089
  nodeId: props.id,
@@ -27064,9 +27094,9 @@ var WeaveMeasureNode = class extends WeaveNode {
27064
27094
  toFinalPerp.left.x,
27065
27095
  toFinalPerp.left.y
27066
27096
  ],
27067
- stroke: color,
27068
- strokeWidth: 1,
27069
- dash: [4, 4]
27097
+ stroke: separationLine.stroke,
27098
+ strokeWidth: separationLine.strokeWidth,
27099
+ dash: separationLine.dash
27070
27100
  });
27071
27101
  measure.add(linePerpTo);
27072
27102
  const fromPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, separation * orientation);
@@ -27076,8 +27106,8 @@ var WeaveMeasureNode = class extends WeaveNode {
27076
27106
  nodeType: WEAVE_MEASURE_NODE_TYPE,
27077
27107
  x: fromPerp.left.x,
27078
27108
  y: fromPerp.left.y,
27079
- radius: 3,
27080
- fill: color
27109
+ radius: intersectionCircle.radius,
27110
+ fill: intersectionCircle.fill
27081
27111
  });
27082
27112
  measure.add(fromCircle);
27083
27113
  const toPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, separation * orientation);
@@ -27087,8 +27117,8 @@ var WeaveMeasureNode = class extends WeaveNode {
27087
27117
  nodeType: WEAVE_MEASURE_NODE_TYPE,
27088
27118
  x: toPerp.left.x,
27089
27119
  y: toPerp.left.y,
27090
- radius: 3,
27091
- fill: color
27120
+ radius: intersectionCircle.radius,
27121
+ fill: intersectionCircle.fill
27092
27122
  });
27093
27123
  measure.add(toCircle);
27094
27124
  const midPoint = this.midPoint(fromPerp.left, toPerp.left);
@@ -27102,11 +27132,11 @@ var WeaveMeasureNode = class extends WeaveNode {
27102
27132
  x: midPoint.x,
27103
27133
  y: midPoint.y,
27104
27134
  text,
27105
- fontFamily: "monospace",
27106
- fontSize: 14,
27135
+ fontFamily: textConfig.fontFamily,
27136
+ fontSize: textConfig.fontSize,
27107
27137
  verticalAlign: "middle",
27108
27138
  align: "center",
27109
- fill: color
27139
+ fill: textConfig.fill
27110
27140
  });
27111
27141
  const angle = this.getAngle(fromPoint, toPoint);
27112
27142
  const textSize = measureText.measureSize(text);
@@ -27115,13 +27145,13 @@ var WeaveMeasureNode = class extends WeaveNode {
27115
27145
  measureText.offsetX(textSize.width / 2);
27116
27146
  measureText.offsetY(textSize.height / 2);
27117
27147
  if (textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left)) {
27118
- const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, textSize.height * orientation);
27148
+ const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, (textSize.height + separationLine.padding) * orientation);
27119
27149
  measureText.x(perpPointTextMid.left.x);
27120
27150
  measureText.y(perpPointTextMid.left.y);
27121
27151
  }
27122
27152
  measure.add(measureText);
27123
- const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, false);
27124
- const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, true);
27153
+ const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, false);
27154
+ const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, true);
27125
27155
  const lineLeft = new Konva.Line({
27126
27156
  id: `lineLeft-${props.id}`,
27127
27157
  nodeId: props.id,
@@ -27132,8 +27162,9 @@ var WeaveMeasureNode = class extends WeaveNode {
27132
27162
  pointLeftText.x,
27133
27163
  pointLeftText.y
27134
27164
  ],
27135
- stroke: color,
27136
- strokeWidth: 1
27165
+ dash: measureLine.dash,
27166
+ stroke: measureLine.stroke,
27167
+ strokeWidth: measureLine.strokeWidth
27137
27168
  });
27138
27169
  const lineRight = new Konva.Line({
27139
27170
  id: `lineRight-${props.id}`,
@@ -27145,8 +27176,9 @@ var WeaveMeasureNode = class extends WeaveNode {
27145
27176
  toPerp.left.x,
27146
27177
  toPerp.left.y
27147
27178
  ],
27148
- stroke: color,
27149
- strokeWidth: 1
27179
+ dash: measureLine.dash,
27180
+ stroke: measureLine.stroke,
27181
+ strokeWidth: measureLine.strokeWidth
27150
27182
  });
27151
27183
  measure.add(measureText);
27152
27184
  measure.add(lineLeft);
@@ -27237,7 +27269,8 @@ var WeaveMeasureNode = class extends WeaveNode {
27237
27269
  const toPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, separation * orientation);
27238
27270
  const pointMidMeasure = this.pointFromMid(fromPerp.left, toPerp.left, 0, false);
27239
27271
  const isTextBiggerThanMeasureSpace = (textSize?.width ?? 0) > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
27240
- const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
27272
+ const multiplier = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
27273
+ const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, multiplier * (textSize?.height ?? 0) * orientation);
27241
27274
  const moveSeparationRect = new Konva.Rect({
27242
27275
  id: `moveSeparationRect-${props.id}`,
27243
27276
  edgeDistanceDisableOnDrag: true,
@@ -27340,10 +27373,11 @@ var WeaveMeasureNode = class extends WeaveNode {
27340
27373
  const toPoint$1 = node.getAttrs().toPoint;
27341
27374
  const midPoint = this.midPoint(fromPoint$1, toPoint$1);
27342
27375
  const isTextBiggerThanMeasureSpace$1 = (textSize?.width ?? 0) > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
27343
- 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);
27376
+ const multiplier$1 = isTextBiggerThanMeasureSpace$1 ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
27377
+ const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, multiplier$1 * (textSize?.height ?? 0) * orientation);
27344
27378
  const pointInLine = this.projectPointToLine(separatorPoint$1.left, originalSeparationHandlerPosition, pos);
27345
27379
  if (isNaN(pointInLine.t)) {
27346
- 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);
27380
+ const point = this.movePointPerpendicularToLine(fromPoint$1, toPoint$1, separatorPoint$1.left, (multiplier$1 * (textSize?.height ?? 0) + 1) * orientation);
27347
27381
  moveSeparationRect.position(point);
27348
27382
  originalSeparationHandlerPosition = point;
27349
27383
  realNode.setAttrs({ separation: (textSize?.height ?? 0) + 1 });
@@ -27364,7 +27398,8 @@ var WeaveMeasureNode = class extends WeaveNode {
27364
27398
  const fromPoint$1 = node.getAttrs().fromPoint;
27365
27399
  const toPoint$1 = node.getAttrs().toPoint;
27366
27400
  const midPoint = this.midPoint(fromPoint$1, toPoint$1);
27367
- const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
27401
+ const multiplier$1 = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
27402
+ const separatorPoint$1 = this.perpendicularPoint(fromPoint$1, toPoint$1, midPoint, multiplier$1 * (textSize?.height ?? 0) * orientation);
27368
27403
  const pointInLine = this.projectPointToLine(separatorPoint$1.left, originalSeparationHandlerPosition, pos);
27369
27404
  moveSeparationRect.position(pointInLine);
27370
27405
  const dx = originalSeparationHandlerPosition.x - separatorPoint$1.left.x;
@@ -27412,7 +27447,8 @@ var WeaveMeasureNode = class extends WeaveNode {
27412
27447
  const toPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, separation * orientation);
27413
27448
  const pointMidMeasure = this.pointFromMid(fromPerp.left, toPerp.left, 0, false);
27414
27449
  const isTextBiggerThanMeasureSpace = (textSize?.width ?? 0) > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
27415
- const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * (textSize?.height ?? 0) * orientation);
27450
+ const multiplier = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
27451
+ const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, multiplier * (textSize?.height ?? 0) * orientation);
27416
27452
  moveSeparationRect.x(separatorPoint.left.x);
27417
27453
  moveSeparationRect.y(separatorPoint.left.y);
27418
27454
  moveSeparationRect.rotation(angle);
@@ -27486,11 +27522,11 @@ var WeaveMeasureNode = class extends WeaveNode {
27486
27522
  const toPoint = nextProps.toPoint;
27487
27523
  const separation = nextProps.separation ?? 100;
27488
27524
  const orientation = nextProps.orientation ?? -1;
27489
- const textPadding = nextProps.textPadding ?? 20;
27490
- const separationPadding = nextProps.separationPadding ?? 30;
27491
27525
  const unit = nextProps.unit ?? "cms";
27492
27526
  const unitPerPixel = nextProps.unitPerPixel ?? 100;
27493
- const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationPadding) * orientation);
27527
+ const separationLine = this.config.style.separationLine;
27528
+ const textConfig = this.config.style.text;
27529
+ const fromFinalPerp = this.perpendicularPoint(fromPoint, toPoint, fromPoint, (separation + separationLine.padding) * orientation);
27494
27530
  const linePerpFrom = measure.findOne(`#linePerpFrom-${nextProps.id}`);
27495
27531
  linePerpFrom?.points([
27496
27532
  fromPoint.x,
@@ -27498,7 +27534,7 @@ var WeaveMeasureNode = class extends WeaveNode {
27498
27534
  fromFinalPerp.left.x,
27499
27535
  fromFinalPerp.left.y
27500
27536
  ]);
27501
- const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationPadding) * orientation);
27537
+ const toFinalPerp = this.perpendicularPoint(fromPoint, toPoint, toPoint, (separation + separationLine.padding) * orientation);
27502
27538
  const linePerpTo = measure.findOne(`#linePerpTo-${nextProps.id}`);
27503
27539
  linePerpTo?.points([
27504
27540
  toPoint.x,
@@ -27533,12 +27569,12 @@ var WeaveMeasureNode = class extends WeaveNode {
27533
27569
  measureText?.offsetX(textSize.width / 2);
27534
27570
  measureText?.offsetY(textSize.height / 2);
27535
27571
  if (textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left)) {
27536
- const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, textSize.height * orientation);
27572
+ const perpPointTextMid = this.perpendicularPoint(fromPerp.left, toPerp.left, midPoint, (textSize.height + separationLine.padding) * orientation);
27537
27573
  measureText.x(perpPointTextMid.left.x);
27538
27574
  measureText.y(perpPointTextMid.left.y);
27539
27575
  }
27540
- const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, false);
27541
- const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textPadding, true);
27576
+ const pointLeftText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, false);
27577
+ const pointRightText = this.pointFromMid(fromPerp.left, toPerp.left, textSize.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left) ? 0 : textOffsetX + textConfig.padding, true);
27542
27578
  const lineLeft = measure.findOne(`#lineLeft-${nextProps.id}`);
27543
27579
  lineLeft?.points([
27544
27580
  fromPerp.left.x,
@@ -27570,7 +27606,8 @@ var WeaveMeasureNode = class extends WeaveNode {
27570
27606
  if (moveSeparationRect) {
27571
27607
  const textSize$1 = measureText.measureSize(measureText.text());
27572
27608
  const isTextBiggerThanMeasureSpace = textSize$1.width > this.distanceBetweenPoints(fromPerp.left, toPerp.left);
27573
- const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, (isTextBiggerThanMeasureSpace ? HANDLE_NO_SPACE_SEPARATION_MULTIPLIER : HANDLE_SPACE_SEPARATION_MULTIPLIER) * textSize$1.height * orientation);
27609
+ const multiplier = isTextBiggerThanMeasureSpace ? this.config.style.handler.noSpaceSeparationMultiplier : this.config.style.handler.spaceSeparationMultiplier;
27610
+ const separatorPoint = this.perpendicularPoint(fromPerp.left, toPerp.left, pointMidMeasure, multiplier * textSize$1.height * orientation);
27574
27611
  moveSeparationRect.x(separatorPoint.left.x);
27575
27612
  moveSeparationRect.y(separatorPoint.left.y);
27576
27613
  moveSeparationRect.rotation(angle);
@@ -31429,6 +31466,7 @@ const MEASURE_TOOL_STATE = {
31429
31466
  ["SET_TO"]: "set_to",
31430
31467
  ["FINISHED"]: "finished"
31431
31468
  };
31469
+ const WEAVE_MEASURE_TOOL_DEFAULT_CONFIG = { style: { stroke: "#FF3366" } };
31432
31470
 
31433
31471
  //#endregion
31434
31472
  //#region src/plugins/stage-grid/stage-grid.ts
@@ -33889,11 +33927,11 @@ var WeaveStageKeyboardMovePlugin = class extends WeavePlugin {
33889
33927
  var WeaveMeasureToolAction = class extends WeaveAction {
33890
33928
  initialized = false;
33891
33929
  initialCursor = null;
33892
- color = "#FF3366";
33893
33930
  onPropsChange = void 0;
33894
33931
  onInit = void 0;
33895
- constructor() {
33932
+ constructor(params) {
33896
33933
  super();
33934
+ this.config = mergeExceptArrays(WEAVE_MEASURE_TOOL_DEFAULT_CONFIG, params?.config ?? {});
33897
33935
  this.initialized = false;
33898
33936
  this.state = MEASURE_TOOL_STATE.IDLE;
33899
33937
  this.measureId = null;
@@ -33912,12 +33950,8 @@ var WeaveMeasureToolAction = class extends WeaveAction {
33912
33950
  return {
33913
33951
  orientation: -1,
33914
33952
  separation: 0,
33915
- textPadding: 20,
33916
- separationPadding: 0,
33917
- unit: "cms",
33918
- unitPerPixel: 10,
33919
- color: this.color,
33920
- strokeEnabled: false
33953
+ unit: "cm",
33954
+ unitPerPixel: 10
33921
33955
  };
33922
33956
  }
33923
33957
  setupEvents() {
@@ -33957,6 +33991,15 @@ var WeaveMeasureToolAction = class extends WeaveAction {
33957
33991
  const tr = selectionPlugin.getTransformer();
33958
33992
  tr.hide();
33959
33993
  }
33994
+ this.instance.addEventListener("onZoomChange", () => {
33995
+ if (this.crosshairCursor) {
33996
+ const stage = this.instance.getStage();
33997
+ this.crosshairCursor.scale({
33998
+ x: 1 / stage.scaleX(),
33999
+ y: 1 / stage.scaleY()
34000
+ });
34001
+ }
34002
+ });
33960
34003
  this.buildCrosshairCursor();
33961
34004
  this.setCursor();
33962
34005
  this.setFocusStage();
@@ -33986,7 +34029,7 @@ var WeaveMeasureToolAction = class extends WeaveAction {
33986
34029
  ],
33987
34030
  x: -1 * (crosshairSize / 2),
33988
34031
  y: 0,
33989
- stroke: this.color,
34032
+ stroke: this.config.style.stroke,
33990
34033
  strokeWidth: 1
33991
34034
  });
33992
34035
  const lineV = new Konva.Line({
@@ -33998,7 +34041,7 @@ var WeaveMeasureToolAction = class extends WeaveAction {
33998
34041
  ],
33999
34042
  x: 0,
34000
34043
  y: -1 * crosshairSize / 2,
34001
- stroke: this.color,
34044
+ stroke: this.config.style.stroke,
34002
34045
  strokeWidth: 1
34003
34046
  });
34004
34047
  this.crosshairCursor.add(lineH);
@@ -34041,7 +34084,7 @@ var WeaveMeasureToolAction = class extends WeaveAction {
34041
34084
  x: 1 / stage.scaleX(),
34042
34085
  y: 1 / stage.scaleY()
34043
34086
  },
34044
- stroke: this.color,
34087
+ stroke: this.config.style.stroke,
34045
34088
  dashed: [4, 4],
34046
34089
  strokeWidth: 1,
34047
34090
  listening: false,
@@ -34151,5 +34194,5 @@ var WeaveMeasureToolAction = class extends WeaveAction {
34151
34194
  };
34152
34195
 
34153
34196
  //#endregion
34154
- 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, 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, 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, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isIOS, isInShadowDOM, isNodeInSelection, isServer, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, setupCanvasBackend, setupSkiaBackend };
34197
+ 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, 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, 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, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isIOS, isInShadowDOM, isNodeInSelection, isServer, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, setupCanvasBackend, setupSkiaBackend };
34155
34198
  //# sourceMappingURL=sdk.node.js.map