@x-viewer/core 0.21.6 → 0.21.7

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.
@@ -47,7 +47,7 @@ export declare class CameraManager {
47
47
  getDistanceToFitSphere(radius: number): number;
48
48
  setNavigationMode(mode: ControlsMode): void;
49
49
  getProjection(): CameraProjection;
50
- setProjection(proj: CameraProjection): void;
50
+ setProjection(proj: CameraProjection, forceInit?: boolean): void;
51
51
  setOrbitPoint(point: THREE.Vector3): void;
52
52
  getCameraDirection(): THREE.Vector3;
53
53
  getCameraInfo(): CameraInfo;
@@ -469,4 +469,5 @@ export default class DxfParser {
469
469
  unknownEntityCount: number;
470
470
  };
471
471
  } | undefined>;
472
+ private parseDwgDb;
472
473
  }
@@ -59,6 +59,11 @@ export declare class EffectManager {
59
59
  enableModelEdges(enable: boolean): void;
60
60
  showVertexNormals(show: boolean, size?: number): void;
61
61
  setSize(width: number, height: number): void;
62
+ /**
63
+ * Most postprocessing passes cache the camera reference in constructor.
64
+ * Keep them synced with current viewer camera when projection switches.
65
+ */
66
+ private syncPostprocessingCamera;
62
67
  render(): void;
63
68
  destroy(): void;
64
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-viewer/core",
3
- "version": "0.21.6",
3
+ "version": "0.21.7",
4
4
  "homepage": "https://dwg.thingraph.site/",
5
5
  "description": "WebGL-based 2D/3D viewer engine built on Three.js. View DWG/DXF/PDF files in the browser with no server required. Supports glTF, OBJ, FBX, IFC, STL and BimTiles formats.",
6
6
  "author": "thingraph",