@procore/bim-webviewer-sdk 14.1.0 → 15.0.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.
- package/CHANGELOG.md +21 -0
- package/dist/Procore.Bim.Webviewer.d.ts +21 -3
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +14 -3
- package/dist/types/src/components/LoadingComponent/LoadingComponent.d.ts +1 -0
- package/dist/types/src/controllers/Bootstrapper.d.ts +2 -3
- package/dist/types/src/controllers/{DomController.d.ts → DomController/DomController.d.ts} +4 -5
- package/dist/types/src/controllers/DomController/__tests__/DomController.test.d.ts +1 -0
- package/dist/types/src/controllers/DomController/__tests__/fitCanvasToSize.test.d.ts +1 -0
- package/dist/types/src/controllers/DomController/fitCanvasToSize.d.ts +4 -0
- package/dist/types/src/controllers/DomController/index.d.ts +1 -0
- package/dist/types/src/controllers/PubSubController.d.ts +1 -0
- package/dist/types/src/utils/constants.d.ts +0 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { PublicNode } from './types/PublicNode';
|
|
|
6
6
|
import { NavigationMode } from './navigation/NavigationModes';
|
|
7
7
|
import { SectionDataAutodeskFormat, SectionDataProcoreFormat } from './sectioning/SectionController';
|
|
8
8
|
import type { Viewpoint } from './api/types/Model';
|
|
9
|
+
import type { CssColor } from './components/Markup/SvgRenderer';
|
|
9
10
|
export declare class Webviewer {
|
|
10
11
|
options: Options;
|
|
11
12
|
static readonly tools: {
|
|
@@ -53,9 +54,19 @@ export declare class Webviewer {
|
|
|
53
54
|
position: Vector3;
|
|
54
55
|
direction: Vector3;
|
|
55
56
|
}>;
|
|
56
|
-
getSnapshot: (
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
getSnapshot: (params: {
|
|
58
|
+
color?: CssColor;
|
|
59
|
+
aspectRatio?: {
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
};
|
|
63
|
+
}) => Promise<void>;
|
|
64
|
+
getSnapshotDataUrl: (params: {
|
|
65
|
+
color?: CssColor;
|
|
66
|
+
aspectRatio?: {
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
59
70
|
}) => Promise<string>;
|
|
60
71
|
setLookAt: (x: number, y: number, z: number) => Promise<{
|
|
61
72
|
position: Vector3;
|
|
@@ -20,10 +20,9 @@ export declare class Bootstrapper {
|
|
|
20
20
|
static partitionUrlsToDownload: Set<string>;
|
|
21
21
|
static estimatedInitializationSteps: number;
|
|
22
22
|
static bootstrap(renderController: RenderController): Promise<void>;
|
|
23
|
-
static
|
|
23
|
+
static setPartitionsCount(numPartitions: number): void;
|
|
24
24
|
static totalStepsCount(): number;
|
|
25
|
-
static addDownloadSteps(
|
|
26
|
-
static incrementPartitionStepsCount(): void;
|
|
25
|
+
static addDownloadSteps(count: number): void;
|
|
27
26
|
static recordCompleteDownload(url: string, duration: number): void;
|
|
28
27
|
static recordPartialDownload(url: string): void;
|
|
29
28
|
static determineTotalStepsCount(): Promise<void>;
|
|
@@ -13,15 +13,14 @@ export class DomController {
|
|
|
13
13
|
removePanel(panel: any): boolean;
|
|
14
14
|
onResize(): void;
|
|
15
15
|
onDoubleClick(evt: any): void;
|
|
16
|
-
getSnapshot(
|
|
16
|
+
getSnapshot(params: any): Promise<void>;
|
|
17
17
|
setSectionBoxDisplayManager(sectionBoxDisplayManager: any): void;
|
|
18
18
|
sectionBoxDisplayManager: any;
|
|
19
|
-
getSnapshotDataUrl(
|
|
20
|
-
color: any;
|
|
21
|
-
}): Promise<any>;
|
|
19
|
+
getSnapshotDataUrl(params: any): Promise<any>;
|
|
22
20
|
currentSnapshotPromise: any;
|
|
23
|
-
buildSnapshotDataUrl({ color, }
|
|
21
|
+
buildSnapshotDataUrl({ color, aspectRatio, }?: {
|
|
24
22
|
color?: string | undefined;
|
|
23
|
+
aspectRatio: any;
|
|
25
24
|
}): Promise<string>;
|
|
26
25
|
dispose(): void;
|
|
27
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DomController } from './DomController';
|
|
@@ -51,6 +51,7 @@ export namespace PubSubController {
|
|
|
51
51
|
measured: "measured";
|
|
52
52
|
messages: "messages";
|
|
53
53
|
modelTreeParentInteracted: "modelTreeParentInteracted";
|
|
54
|
+
modelTypeDetermined: "modelTypeDetermined";
|
|
54
55
|
navigationChanged: "navigationChanged";
|
|
55
56
|
navigationMouseDown: "navigationMouseDown";
|
|
56
57
|
navigationMouseUp: "navigationMouseUp";
|