@inweb/markup 26.6.1 → 26.6.2

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/markup.js CHANGED
@@ -12037,7 +12037,7 @@
12037
12037
  let wcsPoints = this._ref.getAttr("wcsPoints");
12038
12038
  if (!wcsPoints) {
12039
12039
  wcsPoints = [];
12040
- let points = this._ref.points();
12040
+ const points = this._ref.points();
12041
12041
  let wcsPoint;
12042
12042
  for (let i = 0; i < points.length; i += 2) {
12043
12043
  wcsPoint = this._worldTransformer.screenToWorld({ x: points[i], y: points[i + 1] });
@@ -12058,7 +12058,7 @@
12058
12058
  const wcsPoints = [];
12059
12059
  params.points.forEach((point) => {
12060
12060
  konvaPoints.push(point.x, point.y);
12061
- let wcsPoint = this._worldTransformer.screenToWorld({ x: point.x, y: point.y });
12061
+ const wcsPoint = this._worldTransformer.screenToWorld({ x: point.x, y: point.y });
12062
12062
  wcsPoints.push({ x: wcsPoint.x, y: wcsPoint.y, z: wcsPoint.z });
12063
12063
  });
12064
12064
  this._ref = new Konva.Line({
@@ -12080,8 +12080,8 @@
12080
12080
  });
12081
12081
  this._ref.on("transformend", (e) => {
12082
12082
  const absoluteTransform = this._ref.getAbsoluteTransform();
12083
- let wcsPoints = [];
12084
- let points = this._ref.points();
12083
+ const wcsPoints = [];
12084
+ const points = this._ref.points();
12085
12085
  let wcsPoint;
12086
12086
  for (let i = 0; i < points.length; i += 2) {
12087
12087
  const position = absoluteTransform.point({ x: points[i], y: points[i + 1] });
@@ -12092,8 +12092,8 @@
12092
12092
  });
12093
12093
  this._ref.on("dragend", (e) => {
12094
12094
  const absoluteTransform = this._ref.getAbsoluteTransform();
12095
- let wcsPoints = [];
12096
- let points = this._ref.points();
12095
+ const wcsPoints = [];
12096
+ const points = this._ref.points();
12097
12097
  let wcsPoint;
12098
12098
  for (let i = 0; i < points.length; i += 2) {
12099
12099
  const position = absoluteTransform.point({ x: points[i], y: points[i + 1] });
@@ -12170,17 +12170,17 @@
12170
12170
  }
12171
12171
  addPoints(points) {
12172
12172
  let newPoints = this._ref.points();
12173
- let wcsPoints = this._ref.getAttr("wcsPoints");
12173
+ const wcsPoints = this._ref.getAttr("wcsPoints");
12174
12174
  points.forEach((point) => {
12175
12175
  newPoints = newPoints.concat([point.x, point.y]);
12176
- let wcsPoint = this._worldTransformer.screenToWorld(point);
12176
+ const wcsPoint = this._worldTransformer.screenToWorld(point);
12177
12177
  wcsPoints.push(wcsPoint);
12178
12178
  });
12179
12179
  this._ref.points(newPoints);
12180
12180
  }
12181
12181
  updateScreenCoordinates() {
12182
- let wcsPoints = this._ref.getAttr("wcsPoints");
12183
- let points = [];
12182
+ const wcsPoints = this._ref.getAttr("wcsPoints");
12183
+ const points = [];
12184
12184
  let invert = this._ref.getAbsoluteTransform().copy();
12185
12185
  invert = invert.invert();
12186
12186
  wcsPoints.forEach((point) => {
@@ -12343,7 +12343,7 @@
12343
12343
  this._ref.fontSize(size);
12344
12344
  }
12345
12345
  updateScreenCoordinates() {
12346
- let screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
12346
+ const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
12347
12347
  let invert = this._ref.getStage().getAbsoluteTransform().copy();
12348
12348
  invert = invert.invert();
12349
12349
  const positionStart = invert.point(screenPositionStart);
@@ -12533,8 +12533,8 @@
12533
12533
  return this._ref.strokeWidth();
12534
12534
  }
12535
12535
  updateScreenCoordinates() {
12536
- let screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
12537
- let screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
12536
+ const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
12537
+ const screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
12538
12538
  let invert = this._ref.getStage().getAbsoluteTransform().copy();
12539
12539
  invert = invert.invert();
12540
12540
  const positionStart = invert.point(screenPositionStart);
@@ -12736,9 +12736,9 @@
12736
12736
  this._ref = null;
12737
12737
  }
12738
12738
  updateScreenCoordinates() {
12739
- let screenPosition = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsPosition"));
12740
- let radiusX = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsRadiusX"));
12741
- let radiusY = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsRadiusY"));
12739
+ const screenPosition = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsPosition"));
12740
+ const radiusX = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsRadiusX"));
12741
+ const radiusY = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsRadiusY"));
12742
12742
  let invert = this._ref.getStage().getAbsoluteTransform().copy();
12743
12743
  invert = invert.invert();
12744
12744
  const position = invert.point({ x: screenPosition.x, y: screenPosition.y });
@@ -12894,8 +12894,8 @@
12894
12894
  this._ref.setAttr("wcsEnd", this._worldTransformer.screenToWorld({ x, y }));
12895
12895
  }
12896
12896
  updateScreenCoordinates() {
12897
- let screenStartPoint = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
12898
- let screenEndPoint = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
12897
+ const screenStartPoint = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
12898
+ const screenEndPoint = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
12899
12899
  let invert = this._ref.getAbsoluteTransform().copy();
12900
12900
  invert = invert.invert();
12901
12901
  const startPoint = invert.point({ x: screenStartPoint.x, y: screenStartPoint.y });
@@ -13126,8 +13126,8 @@
13126
13126
  this._ref.setAttr("wcsEnd", wcsRightLowerPoint);
13127
13127
  }
13128
13128
  updateScreenCoordinates() {
13129
- let screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
13130
- let screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
13129
+ const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
13130
+ const screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
13131
13131
  let invert = this._ref.getStage().getAbsoluteTransform().copy();
13132
13132
  invert = invert.invert();
13133
13133
  const positionStart = invert.point(screenPositionStart);
@@ -13396,8 +13396,8 @@
13396
13396
  this._ref.strokeWidth(size);
13397
13397
  }
13398
13398
  updateScreenCoordinates() {
13399
- let screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
13400
- let screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
13399
+ const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
13400
+ const screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
13401
13401
  let invert = this._ref.getStage().getAbsoluteTransform().copy();
13402
13402
  invert = invert.invert();
13403
13403
  const positionStart = invert.point(screenPositionStart);