@procore/bim-webviewer-sdk 14.1.0 → 15.0.0-BIM-4050.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 +37 -0
- package/dist/Procore.Bim.Webviewer.d.ts +67 -49
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +14 -3
- package/dist/types/src/api/HttpClient.d.ts +1 -0
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +6 -1
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +6 -1
- package/dist/types/src/components/LoadingComponent/LoadingComponent.d.ts +1 -0
- package/dist/types/src/components/Markup/SvgRenderer.d.ts +3 -3
- package/dist/types/src/components/RootComponent.d.ts +3 -3
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +3 -3
- package/dist/types/src/components/{HomeViewpointManager/HomeViewpointManager.d.ts → ViewpointManager/ViewpointManager.d.ts} +2 -2
- package/dist/types/src/components/ViewpointManager/index.d.ts +1 -0
- package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +1 -1
- package/dist/types/src/components/WindowSettingsComponent.d.ts +1 -1
- package/dist/types/src/components/WindowTreeViewComponent.d.ts +1 -1
- package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +1 -1
- 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/controllers/RenderController.d.ts +7 -6
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +16 -3
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -1
- package/dist/types/src/pwfreader/PWF.d.ts +2 -0
- package/dist/types/src/pwfreader/streaming/PartitionProxy.d.ts +6 -1
- package/dist/types/src/sdk.d.ts +14 -1
- package/dist/types/src/sectioning/SectionController.d.ts +3 -3
- package/dist/types/src/types/WebviewerOptions.d.ts +4 -5
- package/dist/types/src/utils/ApiMetaData/index.d.ts +1 -0
- package/dist/types/src/utils/constants.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/src/components/HomeViewpointManager/index.d.ts +0 -1
- /package/dist/types/src/components/{HomeViewpointManager/__tests__/HomeViewpointManager.test.d.ts → ViewpointManager/__tests__/ViewpointManager.test.d.ts} +0 -0
- /package/dist/types/src/components/{HomeViewpointManager → ViewpointManager}/__tests__/fixtures.d.ts +0 -0
|
@@ -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;
|
|
@@ -18,14 +18,19 @@ export declare const clientLoadings: {
|
|
|
18
18
|
readonly initialization: `${string}.initialization`;
|
|
19
19
|
readonly download_completed: `${string}.download_completed`;
|
|
20
20
|
};
|
|
21
|
+
export type ModelType = 'standard' | 'partitioned' | undefined;
|
|
21
22
|
export type BimModelsDownloadCompletedPayload = {
|
|
22
23
|
time_to_download: number;
|
|
23
24
|
web_viewer_version: string;
|
|
24
25
|
file_name: string;
|
|
25
26
|
file_type: string;
|
|
26
27
|
input_file_size: number;
|
|
28
|
+
model_type: ModelType;
|
|
29
|
+
model_cached: boolean;
|
|
30
|
+
total_partitions_size?: number;
|
|
31
|
+
total_partitions_size_compressed?: number;
|
|
32
|
+
num_partitions?: number;
|
|
27
33
|
};
|
|
28
|
-
export type ModelType = 'standard' | 'partitioned' | undefined;
|
|
29
34
|
export type ModelInitializationPayload = {
|
|
30
35
|
success: boolean;
|
|
31
36
|
start_timestamp: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PWF } from '../../pwfreader/PWF';
|
|
2
|
-
import { ModelInitializationPayload, BimModelsDownloadCompletedPayload, InitializationTrackEventPayload } from './analyticKeys';
|
|
2
|
+
import { ModelInitializationPayload, BimModelsDownloadCompletedPayload, InitializationTrackEventPayload, ModelType } from './analyticKeys';
|
|
3
3
|
export declare const getModelMetaData: () => Promise<{
|
|
4
4
|
file_name: string;
|
|
5
5
|
file_type: string;
|
|
@@ -20,4 +20,9 @@ export declare const getInitializationEventPayload: (params: {
|
|
|
20
20
|
export declare const getInitializationTrackEventPayload: (eventPayload: ModelInitializationPayload) => Promise<InitializationTrackEventPayload>;
|
|
21
21
|
export declare const getDownloadCompletedTrackEventPayload: (params: {
|
|
22
22
|
timeToDownload: number;
|
|
23
|
+
modelType: ModelType;
|
|
24
|
+
modelCached: boolean;
|
|
25
|
+
totalPartitionsSize?: number | undefined;
|
|
26
|
+
totalPartitionsSizeCompressed?: number | undefined;
|
|
27
|
+
numPartitions?: number | undefined;
|
|
23
28
|
}) => Promise<BimModelsDownloadCompletedPayload>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Vector2, Vector3 } from '../../types/Math';
|
|
2
2
|
import type { RenderControllerProxy } from '../../controllers/RenderControllerProxy';
|
|
3
|
-
type RGB = `rgb(${number}, ${number}, ${number})`;
|
|
4
|
-
type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
5
|
-
type HEX = `#${string}`;
|
|
3
|
+
export type RGB = `rgb(${number}, ${number}, ${number})`;
|
|
4
|
+
export type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
5
|
+
export type HEX = `#${string}`;
|
|
6
6
|
export type CssColor = RGB | RGBA | HEX | string;
|
|
7
7
|
export type CssFont = string;
|
|
8
8
|
type Anchorable = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export function RootComponent(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any,
|
|
1
|
+
export function RootComponent(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any, viewpointManager: any): void;
|
|
2
2
|
export class RootComponent {
|
|
3
|
-
constructor(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any,
|
|
3
|
+
constructor(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any, viewpointManager: any);
|
|
4
4
|
options: any;
|
|
5
5
|
pubsub: any;
|
|
6
6
|
render: any;
|
|
7
7
|
sectionBoxDisplayManager: any;
|
|
8
|
-
|
|
8
|
+
viewpointManager: any;
|
|
9
9
|
api: any;
|
|
10
10
|
settings: any;
|
|
11
11
|
sub_components: {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export function ToolBarComponent(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any,
|
|
1
|
+
export function ToolBarComponent(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any, viewpointManager: any): void;
|
|
2
2
|
export class ToolBarComponent {
|
|
3
|
-
constructor(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any,
|
|
3
|
+
constructor(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any, viewpointManager: any);
|
|
4
4
|
options: any;
|
|
5
5
|
pubsub: any;
|
|
6
6
|
render: any;
|
|
7
7
|
sectionBoxDisplayManager: any;
|
|
8
|
-
|
|
8
|
+
viewpointManager: any;
|
|
9
9
|
api: any;
|
|
10
10
|
dom: any;
|
|
11
11
|
toolbarElement: HTMLDivElement | null;
|
|
@@ -2,7 +2,7 @@ import type { Markup } from '../Markup';
|
|
|
2
2
|
import type { RenderControllerProxy } from '../../controllers/RenderControllerProxy';
|
|
3
3
|
import type { SectionBoxDisplayManager } from '../../sectioning/SectionBoxDisplayManager';
|
|
4
4
|
import type { Viewpoint } from '../../api/types/Model';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ViewpointManager {
|
|
6
6
|
private renderController;
|
|
7
7
|
private sectionBoxDisplayManager;
|
|
8
8
|
private markup;
|
|
@@ -11,7 +11,7 @@ export declare class HomeViewpointManager {
|
|
|
11
11
|
sectionBoxDisplayManager: SectionBoxDisplayManager;
|
|
12
12
|
markup: Markup;
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
activateHomeViewpoint: () => Promise<void>;
|
|
15
15
|
private activateViewpoint;
|
|
16
16
|
getViewpoint(): Promise<Viewpoint>;
|
|
17
17
|
setViewpoint(viewpoint: Viewpoint): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ViewpointManager } from './ViewpointManager';
|
package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function WindowModelObjectComponent(options: any, renderController: any, apiController: any, contextMenuEnabled: any): void;
|
|
2
2
|
export class WindowModelObjectComponent {
|
|
3
3
|
constructor(options: any, renderController: any, apiController: any, contextMenuEnabled: any);
|
|
4
|
-
toolId: import("../../
|
|
4
|
+
toolId: import("../../sdk").Tool;
|
|
5
5
|
onhideupdate: () => Promise<void>;
|
|
6
6
|
onselectedupdated: (selectedNodeIds: any) => Promise<void>;
|
|
7
7
|
onobjectselectedfrommodel: (payload: any) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function WindowSettingsComponent(options: any, pubsub: any, settings: any): void;
|
|
2
2
|
export class WindowSettingsComponent {
|
|
3
3
|
constructor(options: any, pubsub: any, settings: any);
|
|
4
|
-
toolId: import("../
|
|
4
|
+
toolId: import("../sdk").Tool;
|
|
5
5
|
settings: any;
|
|
6
6
|
clickEvent: (e: any) => void;
|
|
7
7
|
dispose(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function WindowTreeViewComponent(options: any, api: any, render: any, sectionBoxDisplayManager: any): void;
|
|
2
2
|
export class WindowTreeViewComponent {
|
|
3
3
|
constructor(options: any, api: any, render: any, sectionBoxDisplayManager: any);
|
|
4
|
-
toolId: import("../
|
|
4
|
+
toolId: import("../sdk").Tool;
|
|
5
5
|
api: any;
|
|
6
6
|
render: any;
|
|
7
7
|
sectionBoxDisplayManager: any;
|
package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function WindowViewPropertiesComponent(options: any, render: any): void;
|
|
2
2
|
export class WindowViewPropertiesComponent {
|
|
3
3
|
constructor(options: any, render: any);
|
|
4
|
-
toolId: import("../../
|
|
4
|
+
toolId: import("../../sdk").Tool;
|
|
5
5
|
render: any;
|
|
6
6
|
viewPropertiesId: string;
|
|
7
7
|
searchTerm: string;
|
|
@@ -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";
|
|
@@ -112,7 +112,7 @@ export class RenderController {
|
|
|
112
112
|
getInitEventPayload(params: any): import("../api/analytic_events/analyticKeys").ModelInitializationPayload;
|
|
113
113
|
launchAnimationLoop(): void;
|
|
114
114
|
captureModelStats(): void;
|
|
115
|
-
init(meshnodeAB: any, nodeAB: any, meshAB: any, manifest: any): Promise<void>;
|
|
115
|
+
init(meshnodeAB: any, nodeAB: any, meshAB: any, manifest: any, downloadMetaData: any): Promise<void>;
|
|
116
116
|
nodeAB: any;
|
|
117
117
|
meshnodeAB: any;
|
|
118
118
|
meshAB: any;
|
|
@@ -120,6 +120,7 @@ export class RenderController {
|
|
|
120
120
|
startTimestamp: number | undefined;
|
|
121
121
|
startTime: number | undefined;
|
|
122
122
|
sceneGraphName: any;
|
|
123
|
+
downloadMetaData: any;
|
|
123
124
|
instantiateGeometryFactory(streaming: any, webGL2Context: any): GeometryFactory;
|
|
124
125
|
onUpdateWithState(data: any): void;
|
|
125
126
|
close(): boolean;
|
|
@@ -196,7 +197,7 @@ export class RenderController {
|
|
|
196
197
|
getRenderer(): import("../procoregl/ViewerRenderer").ViewerRenderer | undefined;
|
|
197
198
|
resizeScene(params: any): void;
|
|
198
199
|
getContextMenuData(evt: any): {
|
|
199
|
-
intersection: import("../
|
|
200
|
+
intersection: import("../sdk").Vector3 | null;
|
|
200
201
|
meshnodeIndex: number;
|
|
201
202
|
} | {
|
|
202
203
|
meshnodeIndex: number;
|
|
@@ -204,7 +205,7 @@ export class RenderController {
|
|
|
204
205
|
onContextMenu(evt: any): void;
|
|
205
206
|
isSectionBlockingClick(): boolean;
|
|
206
207
|
getIntersectionAndMeshnodeIndex(evt: any): {
|
|
207
|
-
intersection: import("../
|
|
208
|
+
intersection: import("../sdk").Vector3 | null;
|
|
208
209
|
meshnodeIndex: number;
|
|
209
210
|
};
|
|
210
211
|
handleMeasurementClick(meshnodeIndex: any): void;
|
|
@@ -327,7 +328,7 @@ export class RenderController {
|
|
|
327
328
|
removeSectionBox(): void;
|
|
328
329
|
addSectionPlane(params: any): void;
|
|
329
330
|
removeSectionPlane(uuid: any): void;
|
|
330
|
-
getSections(format: any): import("../
|
|
331
|
+
getSections(format: any): import("../sdk").SectionDataProcoreFormat | import("../sdk").SectionDataAutodeskFormat | null;
|
|
331
332
|
clearSection(): void;
|
|
332
333
|
setOptions(options: any): void;
|
|
333
334
|
findFirstObject(meshnodeIndex: any): any;
|
|
@@ -346,7 +347,7 @@ export class RenderController {
|
|
|
346
347
|
y: any;
|
|
347
348
|
z: any;
|
|
348
349
|
}[];
|
|
349
|
-
orbitPoint: import("../
|
|
350
|
+
orbitPoint: import("../sdk").Vector3;
|
|
350
351
|
};
|
|
351
352
|
setMeasureEnabled(enabled: any): void;
|
|
352
353
|
getMeasureEnabled(): boolean;
|
|
@@ -390,7 +391,7 @@ export class RenderController {
|
|
|
390
391
|
getSelectedNodeIds(): any[];
|
|
391
392
|
getPartiallySelectedNodeIds(): any[];
|
|
392
393
|
toggleSectionBoxDisplay(enable: any): void;
|
|
393
|
-
getSectionBoxDisplayBbox(): import("../
|
|
394
|
+
getSectionBoxDisplayBbox(): import("../sdk").BoundingBox;
|
|
394
395
|
getSectionsAsBox(): import("../sectioning/SectionController").OrientedBox | null;
|
|
395
396
|
zoomToSectionBox(): void;
|
|
396
397
|
resetSectionBox(): void;
|
|
@@ -28,6 +28,15 @@ export class RenderControllerProxy {
|
|
|
28
28
|
logInitializationTimes: any;
|
|
29
29
|
projectId: any;
|
|
30
30
|
baseUrl: any;
|
|
31
|
+
nodeUrl: any;
|
|
32
|
+
meshnodeUrl: any;
|
|
33
|
+
meshUrl: any;
|
|
34
|
+
manifestUrl: any;
|
|
35
|
+
fileExtractionId: any;
|
|
36
|
+
modelId: any;
|
|
37
|
+
modelRevisionId: any;
|
|
38
|
+
companyId: any;
|
|
39
|
+
accessToken: any;
|
|
31
40
|
};
|
|
32
41
|
processPWFArrayBuffers: (arrayBuffers: any, pwfFilePreCached: any) => void;
|
|
33
42
|
messageToEvent: {
|
|
@@ -35,6 +44,10 @@ export class RenderControllerProxy {
|
|
|
35
44
|
'Error: File size exception.': "fileTooBigError";
|
|
36
45
|
};
|
|
37
46
|
handleDownloadError: (message: any) => void;
|
|
47
|
+
downloadMetaData: {
|
|
48
|
+
timeToDownload: number;
|
|
49
|
+
modelCached: boolean;
|
|
50
|
+
};
|
|
38
51
|
navmode: any;
|
|
39
52
|
globalOffset: any;
|
|
40
53
|
createRenderController(): void;
|
|
@@ -138,7 +151,7 @@ export class RenderControllerProxy {
|
|
|
138
151
|
y: any;
|
|
139
152
|
z: any;
|
|
140
153
|
}[];
|
|
141
|
-
orbitPoint: import("../
|
|
154
|
+
orbitPoint: import("../sdk").Vector3;
|
|
142
155
|
};
|
|
143
156
|
ToScreenPosition(params: any): Promise<any> | {
|
|
144
157
|
x: any;
|
|
@@ -222,7 +235,7 @@ export class RenderControllerProxy {
|
|
|
222
235
|
removeSectionBox(): void;
|
|
223
236
|
addSectionPlane(params: any): void;
|
|
224
237
|
removeSectionPlane(uuid: any): void;
|
|
225
|
-
getSections(format: any): Promise<any> | import("../
|
|
238
|
+
getSections(format: any): Promise<any> | import("../sdk").SectionDataProcoreFormat | import("../sdk").SectionDataAutodeskFormat | null;
|
|
226
239
|
clearSection(): void | Promise<any>;
|
|
227
240
|
setOptions(options: any): void;
|
|
228
241
|
setCanvasSelectionEnabled(params: any): void;
|
|
@@ -274,7 +287,7 @@ export class RenderControllerProxy {
|
|
|
274
287
|
children: number[];
|
|
275
288
|
};
|
|
276
289
|
clearFilteredObjectTree(): void | Promise<any>;
|
|
277
|
-
getSectionBoxDisplayBbox(): Promise<any> | import("../
|
|
290
|
+
getSectionBoxDisplayBbox(): Promise<any> | import("../sdk").BoundingBox;
|
|
278
291
|
getSectionsAsBox(): Promise<any> | import("../sectioning/SectionController").OrientedBox | null;
|
|
279
292
|
setHotkeysEnabled(enabled: any): void;
|
|
280
293
|
partitionUrlsFromMeshnodeIndices(meshnodeIndices: any): any;
|
|
@@ -7,7 +7,7 @@ export class RenderControllerWorker {
|
|
|
7
7
|
rejects: {};
|
|
8
8
|
worker: any;
|
|
9
9
|
globalPromiseId: number;
|
|
10
|
-
init(meshnodeAB: any, nodeAB: any, meshAB: any, manifest: any): void;
|
|
10
|
+
init(meshnodeAB: any, nodeAB: any, meshAB: any, manifest: any, downloadMetaData: any): void;
|
|
11
11
|
postSimpleMessage(fn: any, args: any): Promise<any>;
|
|
12
12
|
postMessage(payload: any): Promise<any>;
|
|
13
13
|
onUpdateWithState(data: any): Promise<any>;
|
|
@@ -11,6 +11,7 @@ export class PWF {
|
|
|
11
11
|
sceneGraphName: any;
|
|
12
12
|
isLogging: any;
|
|
13
13
|
locale: any;
|
|
14
|
+
downloadMetaData: any;
|
|
14
15
|
streaming: boolean;
|
|
15
16
|
nodeServices: NodeServices | null;
|
|
16
17
|
meshnodeServices: StreamedMeshnodeServices | MeshnodeServices | null;
|
|
@@ -98,6 +99,7 @@ export class PWF {
|
|
|
98
99
|
};
|
|
99
100
|
currentIndex: number | undefined;
|
|
100
101
|
partitionProxies: PartitionProxy[] | undefined;
|
|
102
|
+
loadPartitionPromises: any[] | undefined;
|
|
101
103
|
getNodeById(id: any): import("./shared/Node").Node;
|
|
102
104
|
hasNode(id: any): boolean;
|
|
103
105
|
globalOffset(): {
|
|
@@ -22,6 +22,8 @@ export declare class PartitionProxy {
|
|
|
22
22
|
offsetTop: number;
|
|
23
23
|
offsetLeft: number;
|
|
24
24
|
};
|
|
25
|
+
private _byteLength?;
|
|
26
|
+
private _compressedByteLength?;
|
|
25
27
|
static Stats: {
|
|
26
28
|
PartitionsLoaded: number;
|
|
27
29
|
MeshesLoaded: number;
|
|
@@ -36,7 +38,10 @@ export declare class PartitionProxy {
|
|
|
36
38
|
setMeshnodes(meshnodes: StreamedMeshnode[]): void;
|
|
37
39
|
loadPartitionData(callbackFn: (partition: Partition) => void): Promise<void>;
|
|
38
40
|
loadPartition(factory: StreamedGeometryFactory): Promise<void>;
|
|
39
|
-
|
|
41
|
+
size(): {
|
|
42
|
+
compressed: number;
|
|
43
|
+
size: number;
|
|
44
|
+
};
|
|
40
45
|
static processPartitionProxiesAB(partitionProxiesAB: Uint8Array, callback: (partitionProxy: PartitionProxy) => void): void;
|
|
41
46
|
static getPartitionProxies(partitionProxiesAB: ArrayBuffer): PWFPartitionProxy[];
|
|
42
47
|
getContentOfPartitionUrl(): string;
|
package/dist/types/src/sdk.d.ts
CHANGED
|
@@ -6,6 +6,19 @@ export { Cache };
|
|
|
6
6
|
export { Webviewer } from './Webviewer';
|
|
7
7
|
export { BenchmarkReporter as Benchmark } from './utils/Benchmark';
|
|
8
8
|
export { TestRoutineRecorder } from './utils/Benchmark';
|
|
9
|
-
export { Options } from './types/WebviewerOptions';
|
|
9
|
+
export type { Options, Tool, GeometryBundle, FileExtractionModePwfV1OverrideOptions, FileExtractionModePwfV2OverrideOptions, FileExtractionModeOptions, ModelRevisionModePwfV2Options, ModelRevisionModePwfV1Options, PwfV1Bundle, PwfV2Bundle, CommonOptions, FeatureFlags, } from './types/WebviewerOptions';
|
|
10
|
+
export type { GeometryFile, FileExtraction, BimFileUpload, FileExtractionItem, WebFormatExtractionItem, PropertiesExtractionItem, FileVersion, Attachment, PropertiesFile, } from './api/types/FileExtraction';
|
|
11
|
+
export type { Viewpoint, Model, ModelRevision, ModelRevisionViewpoint, } from './api/types/Model';
|
|
12
|
+
export type { Project } from './api/types/Project';
|
|
13
|
+
export type { Vector2, Vector3, BoundingBox } from './types/Math';
|
|
14
|
+
export type { CssColor, RGB, RGBA, HEX } from './components/Markup/SvgRenderer';
|
|
15
|
+
export type { BcfCameraPerspective } from './types/BcfCamera';
|
|
16
|
+
export type { SectionDataProcoreFormat, SectionDataAutodeskFormat, AutodeskFormatClipBox, AutodeskFormatClipPlane, ProcoreFormatClipPlane, } from './sectioning/SectionController';
|
|
17
|
+
export type { PublicNode } from './types/PublicNode';
|
|
18
|
+
export type { BoundingBox as NodeBoundingBox } from './pwfreader/shared/Node';
|
|
19
|
+
export type { ObjectFilter, FilterField } from './types/ObjectFilter';
|
|
20
|
+
export { FILTER_FIELD } from './types/ObjectFilter';
|
|
21
|
+
export type { NavigationMode } from './navigation/NavigationModes';
|
|
22
|
+
export { NAV_MODE } from './navigation/NavigationModes';
|
|
10
23
|
declare const version: string;
|
|
11
24
|
export { version };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Vector2, Vector3, BoundingBox } from '../types/Math';
|
|
2
2
|
import type { StandardRenderer } from '../procoregl/StandardRenderer';
|
|
3
|
-
type AutodeskFormatClipPlane = {
|
|
3
|
+
export type AutodeskFormatClipPlane = {
|
|
4
4
|
Type: 'ClipPlane';
|
|
5
5
|
Version: 1;
|
|
6
6
|
Normal: [number, number, number];
|
|
7
7
|
Distance: number;
|
|
8
8
|
Enabled: boolean;
|
|
9
9
|
};
|
|
10
|
-
type AutodeskFormatClipBox = {
|
|
10
|
+
export type AutodeskFormatClipBox = {
|
|
11
11
|
Type: 'OrientedBox3D';
|
|
12
12
|
Version: 1;
|
|
13
13
|
Box: [[number, number, number], [number, number, number]];
|
|
@@ -22,7 +22,7 @@ export type SectionDataAutodeskFormat = {
|
|
|
22
22
|
Linked: boolean;
|
|
23
23
|
Enabled: boolean;
|
|
24
24
|
};
|
|
25
|
-
type ProcoreFormatClipPlane = {
|
|
25
|
+
export type ProcoreFormatClipPlane = {
|
|
26
26
|
unit?: string;
|
|
27
27
|
direction: Vector3;
|
|
28
28
|
location: Vector3;
|
|
@@ -2,10 +2,10 @@ import { Project } from '../api/types/Project';
|
|
|
2
2
|
import { FileExtraction, GeometryFile } from '../api/types/FileExtraction';
|
|
3
3
|
import { Model, ModelRevision } from '../api/types/Model';
|
|
4
4
|
export type Tool = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
5
|
-
type FeatureFlags = Partial<{
|
|
5
|
+
export type FeatureFlags = Partial<{
|
|
6
6
|
enableObjectTreeSearch: boolean;
|
|
7
7
|
}>;
|
|
8
|
-
type CommonOptions = {
|
|
8
|
+
export type CommonOptions = {
|
|
9
9
|
/**
|
|
10
10
|
* Always required
|
|
11
11
|
*/
|
|
@@ -62,13 +62,13 @@ export type GeometryBundle = {
|
|
|
62
62
|
meshUrl?: GeometryFile['url'];
|
|
63
63
|
manifestUrl?: GeometryFile['url'];
|
|
64
64
|
};
|
|
65
|
-
type PwfV2Bundle = {
|
|
65
|
+
export type PwfV2Bundle = {
|
|
66
66
|
nodeUrl: GeometryFile['url'];
|
|
67
67
|
meshnodeUrl: GeometryFile['url'];
|
|
68
68
|
meshUrl: GeometryFile['url'];
|
|
69
69
|
manifestUrl: GeometryFile['url'];
|
|
70
70
|
};
|
|
71
|
-
type PwfV1Bundle = {
|
|
71
|
+
export type PwfV1Bundle = {
|
|
72
72
|
nodeUrl: GeometryFile['url'];
|
|
73
73
|
meshnodeUrl: GeometryFile['url'];
|
|
74
74
|
meshUrl: GeometryFile['url'];
|
|
@@ -96,7 +96,6 @@ export declare const isModelRevisionModePwfV2Options: (options: Options) => opti
|
|
|
96
96
|
export declare const isFileExtractionModePwfV1OverrideOptions: (options: Options) => options is FileExtractionModePwfV1OverrideOptions;
|
|
97
97
|
export declare const isFileExtractionModePwfV2OverrideOptions: (options: Options) => options is FileExtractionModePwfV2OverrideOptions;
|
|
98
98
|
export declare const isFileExtractionModeOptions: (options: Options) => options is FileExtractionModeOptions;
|
|
99
|
-
export {};
|
|
100
99
|
/**
|
|
101
100
|
* Type Testing
|
|
102
101
|
*
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HomeViewpointManager } from './HomeViewpointManager';
|
|
File without changes
|
/package/dist/types/src/components/{HomeViewpointManager → ViewpointManager}/__tests__/fixtures.d.ts
RENAMED
|
File without changes
|