@pilotdev/pilot-web-3d 26.2.0 → 26.4.0

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -920,7 +920,7 @@ export interface ICameraControl {
920
920
  /**
921
921
  * Sets the camera parameters.
922
922
  */
923
- setCameraParameters(iParams: CameraParameters): void;
923
+ setCameraParameters(iParams: CameraParameters, isAnimationEnabled?: boolean): void;
924
924
  /**
925
925
  * Sets the camera view point.
926
926
  * @param viewCenter - view point
@@ -974,7 +974,7 @@ export interface ICameraControl {
974
974
  * @param iOrientation - camera orientation after zooming (optional)
975
975
  * @param isAnimationEnabled - is animated zoom enabled
976
976
  */
977
- zoomToFit(boundingBox: THREE.Box3, iOrientation?: CameraOrientation, iAnimationEnabled?: boolean): void;
977
+ zoomToFit(boundingBox: THREE.Box3, iOrientation?: CameraOrientation, isAnimationEnabled?: boolean): void;
978
978
  /**
979
979
  * Gets the navigation mode.
980
980
  */
@@ -1814,6 +1814,8 @@ export class MeshLine extends THREE.Mesh<MeshLineGeometry, MeshLineMaterial, Vie
1814
1814
  export interface SceneCheckOptions {
1815
1815
  /** specify whether intersections should be filtered by clippings */
1816
1816
  filterByClipping?: boolean;
1817
+ /** If true, intersection check may return last intersection result */
1818
+ lazyCheck?: boolean;
1817
1819
  }
1818
1820
  export interface ModelCheckOptions extends SceneCheckOptions {
1819
1821
  /** Scene names to check intersections. */
@@ -1889,6 +1891,10 @@ export interface IIntersectionChecker<TOptions> {
1889
1891
  * @param options
1890
1892
  */
1891
1893
  getObjectsBoundingBox(elements: ModelElementIds[], options?: TOptions): THREE.Box3;
1894
+ /**
1895
+ * Clear last intersection result used for lazy check
1896
+ */
1897
+ clearLastIntersection(): void;
1892
1898
  }
1893
1899
  export interface ISceneIntersectionChecker extends IIntersectionChecker<SceneCheckOptions> {
1894
1900
  /** Gets the bounding box of the scene*/
@@ -2149,7 +2155,7 @@ export interface INavigationTool {
2149
2155
  * Sets the camera parameters.
2150
2156
  * @param iParams
2151
2157
  */
2152
- setCameraParameters(iParams: CameraParameters): void;
2158
+ setCameraParameters(iParams: CameraParameters, isAnimationEnabled?: boolean): void;
2153
2159
  /**
2154
2160
  * Gets the camera parameters.
2155
2161
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pilotdev/pilot-web-3d",
3
- "version": "26.2.0",
3
+ "version": "26.4.0",
4
4
  "description": "TypeScript definitions for ASCON PilotWeb3D component",
5
5
  "main": "",
6
6
  "types": "index.d.ts",