@inweb/client 25.3.8 → 25.3.9

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/client.js CHANGED
@@ -3925,7 +3925,7 @@
3925
3925
  .then((data) => ({
3926
3926
  ...data,
3927
3927
  server: data.version,
3928
- client: "25.3.8",
3928
+ client: "25.3.9",
3929
3929
  }));
3930
3930
  }
3931
3931
  /**
@@ -18580,7 +18580,7 @@
18580
18580
 
18581
18581
  class KonvaRectangle {
18582
18582
  constructor(params, ref = null) {
18583
- var _a, _b;
18583
+ var _a, _b, _c, _d;
18584
18584
  if (ref) {
18585
18585
  this._ref = ref;
18586
18586
  return;
@@ -18595,8 +18595,8 @@
18595
18595
  lineJoin: "round",
18596
18596
  x: params.position.x,
18597
18597
  y: params.position.y,
18598
- width: params.width,
18599
- height: params.height,
18598
+ width: (_c = params.width) !== null && _c !== void 0 ? _c : 200,
18599
+ height: (_d = params.height) !== null && _d !== void 0 ? _d : 200,
18600
18600
  draggable: true,
18601
18601
  strokeScaleEnabled: false,
18602
18602
  });
@@ -19257,9 +19257,9 @@
19257
19257
  this.loadMarkup(viewpoint);
19258
19258
  }
19259
19259
  getViewpoint() {
19260
- // TODO: at the current 25.2 state we need VisualizeJS here and below. In the future we need to use it as an external interface
19260
+ // TODO: at the current 25.2 state we need VisualizeJS here and below. In the future we need to use it as an external interface.
19261
19261
  if (!this._viewer.visualizeJs)
19262
- return { file_id: "" };
19262
+ return {};
19263
19263
  const viewpoint = {
19264
19264
  lines: [],
19265
19265
  texts: [],
@@ -19797,9 +19797,9 @@
19797
19797
  }
19798
19798
  const konvaLine = new KonvaLine({
19799
19799
  points,
19800
- color: color || this._markupColor.HexColor,
19801
19800
  type: type || "solid",
19802
19801
  width: width || this.lineWidth,
19802
+ color: color || this._markupColor.HexColor,
19803
19803
  id,
19804
19804
  });
19805
19805
  const obj = konvaLine.ref();
@@ -19861,9 +19861,9 @@
19861
19861
  const konvaText = new KonvaText({
19862
19862
  position: { x: position.x, y: position.y },
19863
19863
  text: specifiedText,
19864
+ rotation: angle,
19864
19865
  fontSize,
19865
19866
  color: color || this._markupColor.HexColor,
19866
- rotation: angle,
19867
19867
  id,
19868
19868
  });
19869
19869
  this._konvaLayer.add(konvaText.ref());
@@ -19882,10 +19882,10 @@
19882
19882
  return;
19883
19883
  const konvaRectangle = new KonvaRectangle({
19884
19884
  position,
19885
- color: color || this._markupColor.HexColor,
19886
- lineWidth: lineWidth || this.lineWidth,
19887
19885
  width,
19888
19886
  height,
19887
+ lineWidth: lineWidth || this.lineWidth,
19888
+ color: color || this._markupColor.HexColor,
19889
19889
  id,
19890
19890
  });
19891
19891
  const obj = konvaRectangle.ref();
@@ -20172,7 +20172,7 @@
20172
20172
  return { x: array[0], y: array[1], z: array[2] };
20173
20173
  }
20174
20174
  if (!this._viewer.visualizeJs)
20175
- return { file_id: "" };
20175
+ return {};
20176
20176
  const visLib = this._viewer.visLib();
20177
20177
  const visViewer = visLib.getViewer();
20178
20178
  const viewpoint = {
@@ -21508,7 +21508,7 @@
21508
21508
  commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
21509
21509
 
21510
21510
  ///////////////////////////////////////////////////////////////////////////////
21511
- const version = "25.3.8";
21511
+ const version = "25.3.9";
21512
21512
 
21513
21513
  exports.Assembly = Assembly;
21514
21514
  exports.CANVAS_EVENTS = CANVAS_EVENTS;