@x-viewer/core 0.21.12 → 0.21.13

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.
@@ -53,6 +53,8 @@ export declare class BimTilesViewer extends BaseViewer {
53
53
  setDoubleSidedMaterials(): void;
54
54
  revertDoubleSidedMaterials(): void;
55
55
  clearSelection(): void;
56
+ /** True when the user has an active tile pick selection (independent of the current cursor hit). */
57
+ hasSelectedObject(): boolean;
56
58
  /**
57
59
  * Gets if selection is enabled.
58
60
  */
@@ -112,6 +114,11 @@ export declare class BimTilesViewer extends BaseViewer {
112
114
  * First get the object through the gpu, and then get the specific intersection point
113
115
  */
114
116
  pickObjects(mousePosition: THREE.Vector2, layerChannels?: number[]): THREE.Intersection<THREE.Object3D<THREE.Object3DEventMap>>[];
117
+ /**
118
+ * GPU pick on the BimTiles compositing pass (same as pointer interaction). Call before reading picking buffer.
119
+ * @returns `{ tilesetId, userId }` when a tile was hit, otherwise `undefined`.
120
+ */
121
+ pickTileObject(mousePosition: THREE.Vector2): TileObject | undefined;
115
122
  /**
116
123
  * `errorTarget` refers to The target screenspace error in pixels to target when updating the geometry.
117
124
  * It represents the maximum acceptable error in pixels for the tiles' geometry.
@@ -98,6 +98,8 @@ export declare class Viewer3d extends BaseViewer {
98
98
  setDoubleSidedMaterials(): void;
99
99
  revertDoubleSidedMaterials(): void;
100
100
  clearSelection(): void;
101
+ /** True when the user has an active pick selection (independent of the current cursor hit). */
102
+ hasSelectedObject(): boolean;
101
103
  /**
102
104
  * Gets if selection is enabled.
103
105
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-viewer/core",
3
- "version": "0.21.12",
3
+ "version": "0.21.13",
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",