@inweb/client 25.3.3 → 25.3.5

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.3"
2083
+ client: "25.3.5"
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 {
@@ -7226,8 +7222,8 @@ class Viewer extends EventEmitter2 {
7226
7222
  return entityId;
7227
7223
  }
7228
7224
  drawViewpoint(viewpoint) {
7229
- this.setOrthogonalCameraSettings(viewpoint);
7230
- this.setClippingPlanes(viewpoint);
7225
+ this.setOrthogonalCameraSettings(viewpoint.orthogonal_camera);
7226
+ this.setClippingPlanes(viewpoint.clipping_planes);
7231
7227
  this.markup.setViewpoint(viewpoint);
7232
7228
  }
7233
7229
  createViewpoint() {
@@ -7257,14 +7253,14 @@ class Viewer extends EventEmitter2 {
7257
7253
  field_height: activeView.viewFieldHeight
7258
7254
  };
7259
7255
  }
7260
- setOrthogonalCameraSettings(viewpoint) {
7256
+ setOrthogonalCameraSettings(settings) {
7261
7257
  const visViewer = this.visViewer();
7262
7258
  const activeView = visViewer.activeView;
7263
7259
  this.resetActiveDragger();
7264
7260
  this.clearSlices();
7265
7261
  this.clearOverlay();
7266
- if (viewpoint.orthogonal_camera) {
7267
- 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);
7268
7264
  }
7269
7265
  this.syncOverlay();
7270
7266
  }
@@ -7282,11 +7278,11 @@ class Viewer extends EventEmitter2 {
7282
7278
  }
7283
7279
  return clipping_planes;
7284
7280
  }
7285
- setClippingPlanes(viewpoint) {
7286
- if (viewpoint.clipping_planes) {
7281
+ setClippingPlanes(clippingPlanes) {
7282
+ if (clippingPlanes) {
7287
7283
  const visViewer = this.visViewer();
7288
7284
  const activeView = visViewer.activeView;
7289
- for (const plane of viewpoint.clipping_planes) {
7285
+ for (const plane of clippingPlanes) {
7290
7286
  const cuttingPlane = new (this.visLib().OdTvPlane);
7291
7287
  cuttingPlane.set(this.getLogicalPoint3dAsArray(plane.location), this.getLogicalPoint3dAsArray(plane.direction));
7292
7288
  activeView.addCuttingPlane(cuttingPlane);
@@ -7628,7 +7624,7 @@ function zoomToSelected(viewer) {
7628
7624
 
7629
7625
  commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
7630
7626
 
7631
- const version = "25.3.3";
7627
+ const version = "25.3.5";
7632
7628
 
7633
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 };
7634
7630
  //# sourceMappingURL=client.module.js.map