@inweb/client 25.3.2 → 25.3.4

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.2"
2083
+ client: "25.3.4"
2084
2084
  })));
2085
2085
  }
2086
2086
  registerUser(email, password, userName) {
@@ -5452,7 +5452,6 @@ class KonvaMarkup {
5452
5452
  this._isInitialized = false;
5453
5453
  this._zIndex = 1;
5454
5454
  this._markupContainerName = "markupContainer";
5455
- this.TEXT_FONT_FAMILY = "Calibri";
5456
5455
  this.lineWidth = 4;
5457
5456
  this.changeActiveDragger = event => {
5458
5457
  const draggerName = event.data;
@@ -5555,7 +5554,9 @@ class KonvaMarkup {
5555
5554
  this.loadMarkup(viewpoint);
5556
5555
  }
5557
5556
  getViewpoint() {
5558
- if (!this._viewer.visualizeJs) return {};
5557
+ if (!this._viewer.visualizeJs) return {
5558
+ file_id: ""
5559
+ };
5559
5560
  const viewpoint = {
5560
5561
  lines: [],
5561
5562
  texts: [],
@@ -6490,7 +6491,9 @@ class VisualizeMarkup {
6490
6491
  z: array[2]
6491
6492
  };
6492
6493
  }
6493
- if (!this._viewer.visualizeJs) return {};
6494
+ if (!this._viewer.visualizeJs) return {
6495
+ file_id: ""
6496
+ };
6494
6497
  const visLib = this._viewer.visLib();
6495
6498
  const visViewer = visLib.getViewer();
6496
6499
  const viewpoint = {
@@ -6562,13 +6565,6 @@ class VisualizeMarkup {
6562
6565
  clearSelected() {
6563
6566
  throw new Error("Not implemented yet");
6564
6567
  }
6565
- getPoint3dFromArray(array) {
6566
- return {
6567
- x: array[0],
6568
- y: array[1],
6569
- z: array[2]
6570
- };
6571
- }
6572
6568
  }
6573
6569
 
6574
6570
  class MarkupFactory {
@@ -6656,6 +6652,7 @@ class Viewer extends EventEmitter2 {
6656
6652
  canvas.style.width = "100%";
6657
6653
  canvas.style.height = "100%";
6658
6654
  }
6655
+ canvas.parentElement.style.touchAction = "none";
6659
6656
  canvas.style.touchAction = "none";
6660
6657
  canvas.width = canvas.clientWidth * window.devicePixelRatio;
6661
6658
  canvas.height = canvas.clientHeight * window.devicePixelRatio;
@@ -7225,8 +7222,8 @@ class Viewer extends EventEmitter2 {
7225
7222
  return entityId;
7226
7223
  }
7227
7224
  drawViewpoint(viewpoint) {
7228
- this.setOrthogonalCameraSettings(viewpoint);
7229
- this.setClippingPlanes(viewpoint);
7225
+ this.setOrthogonalCameraSettings(viewpoint.orthogonal_camera);
7226
+ this.setClippingPlanes(viewpoint.clipping_planes);
7230
7227
  this.markup.setViewpoint(viewpoint);
7231
7228
  }
7232
7229
  createViewpoint() {
@@ -7256,14 +7253,14 @@ class Viewer extends EventEmitter2 {
7256
7253
  field_height: activeView.viewFieldHeight
7257
7254
  };
7258
7255
  }
7259
- setOrthogonalCameraSettings(viewpoint) {
7256
+ setOrthogonalCameraSettings(settings) {
7260
7257
  const visViewer = this.visViewer();
7261
7258
  const activeView = visViewer.activeView;
7262
7259
  this.resetActiveDragger();
7263
7260
  this.clearSlices();
7264
7261
  this.clearOverlay();
7265
- if (viewpoint.orthogonal_camera) {
7266
- activeView.setView(this.getLogicalPoint3dAsArray(viewpoint.orthogonal_camera.view_point), this.getLogicalPoint3dAsArray(viewpoint.orthogonal_camera.direction), this.getLogicalPoint3dAsArray(viewpoint.orthogonal_camera.up_vector), viewpoint.orthogonal_camera.field_width, viewpoint.orthogonal_camera.field_height, true);
7262
+ if (settings) {
7263
+ activeView.setView(this.getLogicalPoint3dAsArray(settings.view_point), this.getLogicalPoint3dAsArray(settings.direction), this.getLogicalPoint3dAsArray(settings.up_vector), settings.field_width, settings.field_height, true);
7267
7264
  }
7268
7265
  this.syncOverlay();
7269
7266
  }
@@ -7281,11 +7278,11 @@ class Viewer extends EventEmitter2 {
7281
7278
  }
7282
7279
  return clipping_planes;
7283
7280
  }
7284
- setClippingPlanes(viewpoint) {
7285
- if (viewpoint.clipping_planes) {
7281
+ setClippingPlanes(clippingPlanes) {
7282
+ if (clippingPlanes) {
7286
7283
  const visViewer = this.visViewer();
7287
7284
  const activeView = visViewer.activeView;
7288
- for (const plane of viewpoint.clipping_planes) {
7285
+ for (const plane of clippingPlanes) {
7289
7286
  const cuttingPlane = new (this.visLib().OdTvPlane);
7290
7287
  cuttingPlane.set(this.getLogicalPoint3dAsArray(plane.location), this.getLogicalPoint3dAsArray(plane.direction));
7291
7288
  activeView.addCuttingPlane(cuttingPlane);
@@ -7627,7 +7624,7 @@ function zoomToSelected(viewer) {
7627
7624
 
7628
7625
  commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
7629
7626
 
7630
- const version = "25.3.2";
7627
+ const version = "25.3.4";
7631
7628
 
7632
7629
  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 };
7633
7630
  //# sourceMappingURL=client.module.js.map