@inweb/client 25.3.7 → 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.
@@ -2080,7 +2080,7 @@ class Client extends EventEmitter2 {
2080
2080
  return this._httpClient.get("/version").then((response => response.json())).then((data => ({
2081
2081
  ...data,
2082
2082
  server: data.version,
2083
- client: "25.3.7"
2083
+ client: "25.3.9"
2084
2084
  })));
2085
2085
  }
2086
2086
  registerUser(email, password, userName) {
@@ -4885,7 +4885,7 @@ class KonvaText {
4885
4885
 
4886
4886
  class KonvaRectangle {
4887
4887
  constructor(params, ref = null) {
4888
- var _a, _b;
4888
+ var _a, _b, _c, _d;
4889
4889
  if (ref) {
4890
4890
  this._ref = ref;
4891
4891
  return;
@@ -4899,8 +4899,8 @@ class KonvaRectangle {
4899
4899
  lineJoin: "round",
4900
4900
  x: params.position.x,
4901
4901
  y: params.position.y,
4902
- width: params.width,
4903
- height: params.height,
4902
+ width: (_c = params.width) !== null && _c !== void 0 ? _c : 200,
4903
+ height: (_d = params.height) !== null && _d !== void 0 ? _d : 200,
4904
4904
  draggable: true,
4905
4905
  strokeScaleEnabled: false
4906
4906
  });
@@ -5546,9 +5546,7 @@ class KonvaMarkup {
5546
5546
  this.loadMarkup(viewpoint);
5547
5547
  }
5548
5548
  getViewpoint() {
5549
- if (!this._viewer.visualizeJs) return {
5550
- file_id: ""
5551
- };
5549
+ if (!this._viewer.visualizeJs) return {};
5552
5550
  const viewpoint = {
5553
5551
  lines: [],
5554
5552
  texts: [],
@@ -6104,9 +6102,9 @@ class KonvaMarkup {
6104
6102
  }
6105
6103
  const konvaLine = new KonvaLine({
6106
6104
  points: points,
6107
- color: color || this._markupColor.HexColor,
6108
6105
  type: type || "solid",
6109
6106
  width: width || this.lineWidth,
6107
+ color: color || this._markupColor.HexColor,
6110
6108
  id: id
6111
6109
  });
6112
6110
  const obj = konvaLine.ref();
@@ -6168,9 +6166,9 @@ class KonvaMarkup {
6168
6166
  y: position.y
6169
6167
  },
6170
6168
  text: specifiedText,
6169
+ rotation: angle,
6171
6170
  fontSize: fontSize,
6172
6171
  color: color || this._markupColor.HexColor,
6173
- rotation: angle,
6174
6172
  id: id
6175
6173
  });
6176
6174
  this._konvaLayer.add(konvaText.ref());
@@ -6187,10 +6185,10 @@ class KonvaMarkup {
6187
6185
  if (!position) return;
6188
6186
  const konvaRectangle = new KonvaRectangle({
6189
6187
  position: position,
6190
- color: color || this._markupColor.HexColor,
6191
- lineWidth: lineWidth || this.lineWidth,
6192
6188
  width: width,
6193
6189
  height: height,
6190
+ lineWidth: lineWidth || this.lineWidth,
6191
+ color: color || this._markupColor.HexColor,
6194
6192
  id: id
6195
6193
  });
6196
6194
  const obj = konvaRectangle.ref();
@@ -6483,9 +6481,7 @@ class VisualizeMarkup {
6483
6481
  z: array[2]
6484
6482
  };
6485
6483
  }
6486
- if (!this._viewer.visualizeJs) return {
6487
- file_id: ""
6488
- };
6484
+ if (!this._viewer.visualizeJs) return {};
6489
6485
  const visLib = this._viewer.visLib();
6490
6486
  const visViewer = visLib.getViewer();
6491
6487
  const viewpoint = {
@@ -7616,7 +7612,7 @@ function zoomToSelected(viewer) {
7616
7612
 
7617
7613
  commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
7618
7614
 
7619
- const version = "25.3.7";
7615
+ const version = "25.3.9";
7620
7616
 
7621
7617
  export { Assembly, CANVAS_EVENTS, ClashTest, Client, EventEmitter2, File$1 as File, Job, Member, Model, OdBaseDragger, Options, Permission, Project, Role, User, Viewer, Viewer as VisualizejsViewer, commands, version };
7622
7618
  //# sourceMappingURL=client.module.js.map