@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.
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.3",
3928
+ client: "25.3.5",
3929
3929
  }));
3930
3930
  }
3931
3931
  /**
@@ -19160,7 +19160,6 @@
19160
19160
  this._isInitialized = false;
19161
19161
  this._zIndex = 1;
19162
19162
  this._markupContainerName = "markupContainer";
19163
- this.TEXT_FONT_FAMILY = "Calibri";
19164
19163
  this.lineWidth = 4;
19165
19164
  this.changeActiveDragger = (event) => {
19166
19165
  const draggerName = event.data;
@@ -19266,8 +19265,9 @@
19266
19265
  this.loadMarkup(viewpoint);
19267
19266
  }
19268
19267
  getViewpoint() {
19268
+ // 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
19269
19269
  if (!this._viewer.visualizeJs)
19270
- return {};
19270
+ return { file_id: "" };
19271
19271
  const viewpoint = {
19272
19272
  lines: [],
19273
19273
  texts: [],
@@ -20180,7 +20180,7 @@
20180
20180
  return { x: array[0], y: array[1], z: array[2] };
20181
20181
  }
20182
20182
  if (!this._viewer.visualizeJs)
20183
- return {};
20183
+ return { file_id: "" };
20184
20184
  const visLib = this._viewer.visLib();
20185
20185
  const visViewer = visLib.getViewer();
20186
20186
  const viewpoint = {
@@ -20253,9 +20253,6 @@
20253
20253
  clearSelected() {
20254
20254
  throw new Error("Not implemented yet");
20255
20255
  }
20256
- getPoint3dFromArray(array) {
20257
- return { x: array[0], y: array[1], z: array[2] };
20258
- }
20259
20256
  }
20260
20257
 
20261
20258
  class MarkupFactory {
@@ -21125,8 +21122,8 @@
21125
21122
  * @param viewpoint - Viewpoint.
21126
21123
  */
21127
21124
  drawViewpoint(viewpoint) {
21128
- this.setOrthogonalCameraSettings(viewpoint);
21129
- this.setClippingPlanes(viewpoint);
21125
+ this.setOrthogonalCameraSettings(viewpoint.orthogonal_camera);
21126
+ this.setClippingPlanes(viewpoint.clipping_planes);
21130
21127
  this.markup.setViewpoint(viewpoint);
21131
21128
  }
21132
21129
  /**
@@ -21157,14 +21154,14 @@
21157
21154
  field_height: activeView.viewFieldHeight,
21158
21155
  };
21159
21156
  }
21160
- setOrthogonalCameraSettings(viewpoint) {
21157
+ setOrthogonalCameraSettings(settings) {
21161
21158
  const visViewer = this.visViewer();
21162
21159
  const activeView = visViewer.activeView;
21163
21160
  this.resetActiveDragger();
21164
21161
  this.clearSlices();
21165
21162
  this.clearOverlay();
21166
- if (viewpoint.orthogonal_camera) {
21167
- 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);
21163
+ if (settings) {
21164
+ activeView.setView(this.getLogicalPoint3dAsArray(settings.view_point), this.getLogicalPoint3dAsArray(settings.direction), this.getLogicalPoint3dAsArray(settings.up_vector), settings.field_width, settings.field_height, true);
21168
21165
  }
21169
21166
  this.syncOverlay();
21170
21167
  }
@@ -21182,11 +21179,11 @@
21182
21179
  }
21183
21180
  return clipping_planes;
21184
21181
  }
21185
- setClippingPlanes(viewpoint) {
21186
- if (viewpoint.clipping_planes) {
21182
+ setClippingPlanes(clippingPlanes) {
21183
+ if (clippingPlanes) {
21187
21184
  const visViewer = this.visViewer();
21188
21185
  const activeView = visViewer.activeView;
21189
- for (const plane of viewpoint.clipping_planes) {
21186
+ for (const plane of clippingPlanes) {
21190
21187
  const cuttingPlane = new (this.visLib().OdTvPlane)();
21191
21188
  cuttingPlane.set(this.getLogicalPoint3dAsArray(plane.location), this.getLogicalPoint3dAsArray(plane.direction));
21192
21189
  activeView.addCuttingPlane(cuttingPlane);
@@ -21519,7 +21516,7 @@
21519
21516
  commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
21520
21517
 
21521
21518
  ///////////////////////////////////////////////////////////////////////////////
21522
- const version = "25.3.3";
21519
+ const version = "25.3.5";
21523
21520
 
21524
21521
  exports.Assembly = Assembly;
21525
21522
  exports.CANVAS_EVENTS = CANVAS_EVENTS;