@procore/bim-webviewer-sdk 15.4.0 → 15.5.0-rc.1
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/CHANGELOG.md +12 -0
- package/dist/Procore.Bim.Webviewer.d.ts +17 -75
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +1 -1
- package/dist/types/src/controllers/RenderController.d.ts +42 -43
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +2 -2
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -1
- package/dist/types/src/navigation/NavigationModel.d.ts +16 -1
- package/dist/types/src/picking/PickingController.d.ts +3 -3
- package/dist/types/src/procoregl/Models/Models.d.ts +47 -17
- package/dist/types/src/procoregl/Models/__tests__/Models.test.d.ts +6 -1
- package/dist/types/src/procoregl/Models/translateVirtualMeshnodeIndex.d.ts +5 -0
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +14 -3
- package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +5 -8
- package/dist/types/src/procoregl/{KDTree.d.ts → SceneGraph/KDTree.d.ts} +2 -1
- package/dist/types/src/procoregl/{KDTreeNode.d.ts → SceneGraph/KDTreeNode.d.ts} +1 -1
- package/dist/types/src/procoregl/SceneGraph/__tests__/WASMTree.test.d.ts +1 -0
- package/dist/types/src/procoregl/SceneGraph/utils.d.ts +2 -0
- package/dist/types/src/procoregl/ViewerRenderer.d.ts +4 -7
- package/dist/types/src/procoregl/__tests__/MockMeshnode.d.ts +1 -0
- package/dist/types/src/pwfreader/PWF.d.ts +13 -37
- package/dist/types/src/pwfreader/shared/MeshServices.d.ts +1 -1
- package/dist/types/src/pwfreader/shared/Meshnode.d.ts +1 -0
- package/dist/types/src/pwfreader/streaming/StreamedMeshServices.d.ts +1 -1
- package/dist/types/src/utils/DebugGui/MainThreadDebugGui.d.ts +1 -1
- package/dist/types/src/utils/DebugGui/WorkerDebugGui.d.ts +1 -1
- package/dist/types/src/utils/DebugGui/guifyObject.d.ts +9 -3
- package/dist/types/src/utils/ZoomExtents/computeRefinedBbox.d.ts +2 -1
- package/dist/types/src/utils/ZoomExtents/createZoomExtentsDebugGui.d.ts +14 -7
- package/package.json +1 -1
- /package/dist/types/src/procoregl/{__tests__/KDTree.test.d.ts → Models/__tests__/translateVirtualMeshnodeIndex.test.d.ts} +0 -0
- /package/dist/types/src/procoregl/{WASMTree.d.ts → SceneGraph/WASMTree.d.ts} +0 -0
- /package/dist/types/src/procoregl/{__tests__/KDTreeNode.test.d.ts → SceneGraph/__tests__/KDTree.test.d.ts} +0 -0
- /package/dist/types/src/procoregl/{__tests__/WASMTree.test.d.ts → SceneGraph/__tests__/KDTreeNode.test.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ type Target = {
|
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
};
|
|
5
5
|
export declare namespace MainThreadDebugGui {
|
|
6
|
-
const add: (obj:
|
|
6
|
+
const add: <T extends Target>(obj: T, configureStore?: ((store: GuiStore<T>) => void) | undefined, onChange?: ((...args: any[]) => void) | undefined) => T;
|
|
7
7
|
const destroy: () => void;
|
|
8
8
|
}
|
|
9
9
|
export {};
|
|
@@ -4,7 +4,7 @@ type Target = {
|
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
};
|
|
6
6
|
export declare namespace WorkerDebugGui {
|
|
7
|
-
export const add: (obj:
|
|
7
|
+
export const add: <T extends Target>(obj: T, configureStore?: ((store: GuiStore<T>) => void) | undefined, onChange?: ((...args: any[]) => void) | undefined) => T;
|
|
8
8
|
type UpdateParams = {
|
|
9
9
|
id: ProxyId;
|
|
10
10
|
keyPath: string[];
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[
|
|
1
|
+
import type { GUIController } from 'dat.gui';
|
|
2
|
+
type OverwriteNonObjectTypes<T, S> = {
|
|
3
|
+
[K in keyof T]: T[K] extends Record<string, any> ? OverwriteNonObjectTypes<T[K], S> : S;
|
|
4
4
|
};
|
|
5
|
+
type InternalStore = {
|
|
6
|
+
__folder: dat.GUI;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
export type GuiStore<T extends Record<string, any> = Record<string, any>> = T & InternalStore & OverwriteNonObjectTypes<T, GUIController>;
|
|
5
10
|
export declare const _recursiveGuifyObject: (obj: Record<string, unknown>, parentGui: dat.GUI, rootGui: dat.GUI) => GuiStore;
|
|
6
11
|
export declare const guifyObject: (obj: Record<string, unknown>, parentGui: dat.GUI) => GuiStore;
|
|
12
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { THREE } from '../../threeShaking';
|
|
1
2
|
import { PWF } from '../../pwfreader/PWF';
|
|
2
3
|
type ComputeRefinedBboxParams = {
|
|
3
4
|
bbox: THREE.Box3;
|
|
4
5
|
pwf: PWF;
|
|
5
6
|
spaceJunkEliminationThreshold: number;
|
|
6
7
|
};
|
|
7
|
-
export declare const computeRefinedBbox: ({ bbox: globalBbox, pwf, spaceJunkEliminationThreshold, }: ComputeRefinedBboxParams) =>
|
|
8
|
+
export declare const computeRefinedBbox: ({ bbox: globalBbox, pwf, spaceJunkEliminationThreshold, }: ComputeRefinedBboxParams) => THREE.Box3;
|
|
8
9
|
export {};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare const DEFAULT_ZOOM_EXTENTS_DEBUG_GUI: {
|
|
2
|
+
zoomExtents: {
|
|
3
|
+
zenith: number;
|
|
4
|
+
azimuth: number;
|
|
5
|
+
distanceFromCenterFactor: number;
|
|
6
|
+
};
|
|
6
7
|
};
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
8
|
+
export declare const createZoomExtentsDebugGui: (params: {
|
|
9
|
+
onChange: () => void;
|
|
10
|
+
}) => typeof DEFAULT_ZOOM_EXTENTS_DEBUG_GUI;
|
|
11
|
+
declare const DEFAULT_SPACE_JUNK_DEBUG_GUI: {
|
|
12
|
+
spaceJunkEliminationThreshold: number;
|
|
9
13
|
};
|
|
14
|
+
export declare const createZoomToGlobalDebugGui: (params: {
|
|
15
|
+
onChange: () => void;
|
|
16
|
+
}) => typeof DEFAULT_SPACE_JUNK_DEBUG_GUI;
|
|
10
17
|
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|