@procore/bim-webviewer-sdk 15.0.0 → 15.1.0-BIM-4183.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 +22 -0
- package/dist/Procore.Bim.Webviewer.d.ts +162 -76
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +45 -25
- package/dist/types/src/api/HttpClient.d.ts +1 -0
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +10 -6
- package/dist/types/src/api/analytic_events/index.d.ts +1 -1
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +6 -1
- package/dist/types/src/api/types/Model.d.ts +0 -13
- package/dist/types/src/api/types/ModelRevision.d.ts +9 -0
- package/dist/types/src/api/types/Viewpoint.d.ts +15 -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 +35 -8
- package/dist/types/src/components/ToolBarTools.d.ts +17 -16
- package/dist/types/src/components/ToolEnum.d.ts +18 -3
- package/dist/types/src/components/ViewpointManager/ViewpointManager.d.ts +28 -0
- package/dist/types/src/components/{HomeViewpointManager → ViewpointManager}/__tests__/fixtures.d.ts +5 -1
- 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 +4 -4
- package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +1 -1
- package/dist/types/src/controllers/CacheController.d.ts +2 -1
- package/dist/types/src/controllers/PubSubController.d.ts +1 -0
- package/dist/types/src/controllers/RenderController.d.ts +11 -8
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +20 -5
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +5 -3
- package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +6 -1
- package/dist/types/src/procoregl/HiddenNodeServices/__tests__/rangify.test.d.ts +1 -0
- package/dist/types/src/procoregl/HiddenNodeServices/rangify.d.ts +14 -0
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +2 -2
- package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +3 -2
- package/dist/types/src/procoregl/StandardRenderer.d.ts +2 -2
- package/dist/types/src/procoregl/StandardRendererImpl.d.ts +3 -2
- package/dist/types/src/procoregl/ViewerRenderer.d.ts +3 -2
- package/dist/types/src/pwfreader/PWF.d.ts +3 -0
- package/dist/types/src/pwfreader/shared/NodeServices.d.ts +2 -0
- package/dist/types/src/pwfreader/streaming/PartitionProxy.d.ts +6 -1
- package/dist/types/src/sdk.d.ts +24 -1
- package/dist/types/src/sectioning/SectionController.d.ts +3 -3
- package/dist/types/src/types/WebviewerOptions.d.ts +8 -8
- package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +1 -1
- package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +1 -1
- package/dist/types/src/utils/ApiMetaData/index.d.ts +1 -0
- package/dist/types/src/utils/Enums.d.ts +13 -12
- package/dist/types/src/utils/Stack.d.ts +6 -4
- package/dist/types/src/utils/constants.d.ts +9 -4
- package/dist/types/src/viewpoint/ViewpointFactory.d.ts +5 -1
- package/dist/types/src/viewpoint/types.d.ts +5 -1
- package/package.json +1 -1
- package/dist/types/src/components/HomeViewpointManager/HomeViewpointManager.d.ts +0 -18
- 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
|
@@ -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>;
|
|
@@ -49,6 +49,8 @@ export class RenderControllerWorker {
|
|
|
49
49
|
getHiddenGeoIdsSet(): Promise<any>;
|
|
50
50
|
addHiddenMeshnodeIndices(arr: any): Promise<any>;
|
|
51
51
|
removeHiddenGeoIds(arr: any): Promise<any>;
|
|
52
|
+
setVisibility(params: any): Promise<any>;
|
|
53
|
+
getVisibility(params: any): Promise<any>;
|
|
52
54
|
getOrbitTranslate(evt: any): Promise<any>;
|
|
53
55
|
ToScreenPosition(params: any): Promise<any>;
|
|
54
56
|
ModelToMapSpace(params: any): Promise<any>;
|
|
@@ -100,8 +102,8 @@ export class RenderControllerWorker {
|
|
|
100
102
|
unhideNodeFromNodeIds(params: any): Promise<any>;
|
|
101
103
|
hideNodesFromNodeIds(params: any): Promise<any>;
|
|
102
104
|
getNumNodesSelected(params: any): Promise<any>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
setRenderMode(params: any): Promise<any>;
|
|
106
|
+
getRenderMode(): Promise<any>;
|
|
105
107
|
getSelectedNodeIds(): Promise<any>;
|
|
106
108
|
getPartiallySelectedNodeIds(): Promise<any>;
|
|
107
109
|
toggleSectionBoxDisplay(params: any): Promise<any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PWF } from '../../pwfreader/PWF';
|
|
2
2
|
import type { InternalNode, ObjectTree } from '../ObjectTree';
|
|
3
|
+
import type { Visibility } from '../../api/types/Viewpoint';
|
|
3
4
|
export declare class HiddenNodeServices {
|
|
4
5
|
private hiddenObjectCount;
|
|
5
6
|
private hiddenMeshnodeIndices;
|
|
@@ -21,7 +22,11 @@ export declare class HiddenNodeServices {
|
|
|
21
22
|
hideAll(): void;
|
|
22
23
|
hasMeshnodeIndices: (indexes: Array<number>) => boolean;
|
|
23
24
|
private nodeNeedsUpdating;
|
|
25
|
+
getVisibility: () => Visibility;
|
|
26
|
+
setVisibility: (visibility: Visibility) => void;
|
|
24
27
|
private updateNodeAndChildren;
|
|
25
|
-
private
|
|
28
|
+
private updateNodeAndParentsDF;
|
|
29
|
+
private setNodeHiddenIfChildrenHidden;
|
|
30
|
+
private updateNodesAndParentsByIdBF;
|
|
26
31
|
updateHiddenAncestry: (nodeId: number, hidden: boolean) => void;
|
|
27
32
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -42,8 +42,8 @@ export class PartitionsRenderer {
|
|
|
42
42
|
initialize: (sceneGraph: any, meshnodes: any, measureSet: any, detailsParams: any, selectedNodeServices: any, colorServices: any) => void;
|
|
43
43
|
render: (scene: any, camera: any) => void;
|
|
44
44
|
cleanBuffer: () => void;
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
setRenderMode: (renderMode: any) => void;
|
|
46
|
+
getRenderMode: () => "shaded";
|
|
47
47
|
getRenderingStage: () => "renderIdle";
|
|
48
48
|
renderSection: (scene: any, camera: any) => void;
|
|
49
49
|
enableBackFaceFillColor: (enable: any) => void;
|
|
@@ -5,6 +5,7 @@ import { SelectedNodeServices } from './SelectedNodeServices';
|
|
|
5
5
|
import { ColorServices } from './ColorServices';
|
|
6
6
|
import { CacheEstimatorArgs, ViewerRenderer } from './ViewerRenderer';
|
|
7
7
|
import { PWF } from '../pwfreader/PWF';
|
|
8
|
+
import { RenderMode } from '../utils/constants';
|
|
8
9
|
type PartitionedModelRendererArgs = {
|
|
9
10
|
antialias: boolean;
|
|
10
11
|
preserveDrawingBuffer: boolean;
|
|
@@ -20,8 +21,8 @@ export declare class PartitionsRendererImpl implements ViewerRenderer {
|
|
|
20
21
|
}, selectedNodeServices: SelectedNodeServices, colorServices: ColorServices): void;
|
|
21
22
|
render(scene: THREE.Scene, camera: THREE.Camera): void;
|
|
22
23
|
cleanBuffer(): void;
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
setRenderMode(mode: RenderMode): void;
|
|
25
|
+
getRenderMode(): string;
|
|
25
26
|
getRenderingStage(): string;
|
|
26
27
|
get autoClear(): boolean;
|
|
27
28
|
set autoClear(value: boolean);
|
|
@@ -51,8 +51,8 @@ export class StandardRenderer {
|
|
|
51
51
|
renderMeshnode: (meshnode: any, scene: any, camera: any, renderStage: any) => void;
|
|
52
52
|
renderMesh: (scene: any, camera: any, meshGeometry: any, nodedata: any, renderStage: any, isPicked: any, overrideMaterial: any) => void;
|
|
53
53
|
cleanBuffer: () => void;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
setRenderMode: (renderMode: any) => void;
|
|
55
|
+
getRenderMode: () => "shaded";
|
|
56
56
|
getRenderingStage: () => "renderIdle";
|
|
57
57
|
renderSection: (scene: any, camera: any) => void;
|
|
58
58
|
enableBackFaceFillColor: (enable: any) => void;
|
|
@@ -5,6 +5,7 @@ import { SelectedNodeServices } from './SelectedNodeServices';
|
|
|
5
5
|
import { ColorServices } from './ColorServices';
|
|
6
6
|
import { CacheEstimatorArgs, ViewerRenderer } from './ViewerRenderer';
|
|
7
7
|
import { PWF } from '../pwfreader/PWF';
|
|
8
|
+
import { RenderMode } from '../utils/constants';
|
|
8
9
|
type StandardModelRendererArgs = {
|
|
9
10
|
antialias: boolean;
|
|
10
11
|
preserveDrawingBuffer: boolean;
|
|
@@ -20,8 +21,8 @@ export declare class StandardRendererImpl implements ViewerRenderer {
|
|
|
20
21
|
}, selectedNodeServices: SelectedNodeServices, colorServices: ColorServices): void;
|
|
21
22
|
render(scene: THREE.Scene, camera: THREE.Camera): void;
|
|
22
23
|
cleanBuffer(): void;
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
setRenderMode(mode: RenderMode): void;
|
|
25
|
+
getRenderMode(): string;
|
|
25
26
|
getRenderingStage(): string;
|
|
26
27
|
get autoClear(): boolean;
|
|
27
28
|
set autoClear(value: boolean);
|
|
@@ -4,6 +4,7 @@ import { Meshnode } from '../pwfreader/shared/Meshnode';
|
|
|
4
4
|
import { SelectedNodeServices } from './SelectedNodeServices';
|
|
5
5
|
import { ColorServices } from './ColorServices';
|
|
6
6
|
import { PWF } from '../pwfreader/PWF';
|
|
7
|
+
import { RenderMode } from '../utils/constants';
|
|
7
8
|
export type CacheEstimatorArgs = {
|
|
8
9
|
scene: THREE.Scene;
|
|
9
10
|
camera: THREE.Camera;
|
|
@@ -38,8 +39,8 @@ export interface ViewerRenderer {
|
|
|
38
39
|
picking: THREE.WebGLRenderTarget;
|
|
39
40
|
};
|
|
40
41
|
readRenderTargetPixels(renderTarget: THREE.WebGLRenderTarget, x: number, y: number, width: number, height: number, buffer: Uint8Array): void;
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
setRenderMode(mode: RenderMode): void;
|
|
43
|
+
getRenderMode(): string;
|
|
43
44
|
getRenderingStage(): string;
|
|
44
45
|
dispose(): void;
|
|
45
46
|
enableBackFaceFillColor(state: boolean): void;
|
|
@@ -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(): {
|
|
@@ -113,6 +115,7 @@ export class PWF {
|
|
|
113
115
|
captureModelStats(): void;
|
|
114
116
|
captureStandardModelStats(pwfModel: any): void;
|
|
115
117
|
capturePartitionedModelStats(pwfModel: any): void;
|
|
118
|
+
numFirstObjects(): number;
|
|
116
119
|
#private;
|
|
117
120
|
}
|
|
118
121
|
import { NodeServices } from "./shared";
|
|
@@ -10,6 +10,7 @@ export declare class NodeServices {
|
|
|
10
10
|
private stack;
|
|
11
11
|
private queue;
|
|
12
12
|
static maxChunkSize: number;
|
|
13
|
+
private _numFirstObjects;
|
|
13
14
|
nodesOffset: number;
|
|
14
15
|
private _pwfRootNode;
|
|
15
16
|
private _numNodes;
|
|
@@ -34,4 +35,5 @@ export declare class NodeServices {
|
|
|
34
35
|
findFirstObject(meshnode: Meshnode): Node;
|
|
35
36
|
numNodes(): number;
|
|
36
37
|
allNodes(): Node[];
|
|
38
|
+
numFirstObjects(): number;
|
|
37
39
|
}
|
|
@@ -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,29 @@ 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, 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 { Model } from './api/types/Model';
|
|
12
|
+
export type { ModelRevision, ModelRevisionViewpoint, } from './api/types/ModelRevision';
|
|
13
|
+
export type { Viewpoint, Visibility } from './api/types/Viewpoint';
|
|
14
|
+
export type { Project } from './api/types/Project';
|
|
15
|
+
export type { Vector2, Vector3, BoundingBox } from './types/Math';
|
|
16
|
+
export type { CssColor, RGB, RGBA, HEX } from './components/Markup/SvgRenderer';
|
|
17
|
+
export type { BcfCameraPerspective } from './types/BcfCamera';
|
|
18
|
+
export type { SectionDataProcoreFormat, SectionDataAutodeskFormat, AutodeskFormatClipBox, AutodeskFormatClipPlane, ProcoreFormatClipPlane, } from './sectioning/SectionController';
|
|
19
|
+
export type { PublicNode } from './types/PublicNode';
|
|
20
|
+
export type { BoundingBox as NodeBoundingBox } from './pwfreader/shared/Node';
|
|
21
|
+
export type { ObjectFilter, FilterField } from './types/ObjectFilter';
|
|
22
|
+
export { FILTER_FIELD } from './types/ObjectFilter';
|
|
23
|
+
export type { NavigationMode } from './navigation/NavigationModes';
|
|
24
|
+
export { NAV_MODE } from './navigation/NavigationModes';
|
|
25
|
+
export { RENDER_MODE } from './utils/constants';
|
|
26
|
+
export type { RenderMode } from './utils/constants';
|
|
27
|
+
export { TOOL_ENUM } from './components/ToolEnum';
|
|
28
|
+
export type { ToolEnum } from './components/ToolEnum';
|
|
29
|
+
export { TOOL_BAR_TOOLS } from './components/ToolBarTools';
|
|
30
|
+
export type { ToolBarTools } from './components/ToolBarTools';
|
|
31
|
+
export { ACTION } from './utils/Enums';
|
|
32
|
+
export type { Action } from './utils/Enums';
|
|
10
33
|
declare const version: string;
|
|
11
34
|
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;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Project } from '../api/types/Project';
|
|
2
2
|
import { FileExtraction, GeometryFile } from '../api/types/FileExtraction';
|
|
3
|
-
import { Model
|
|
4
|
-
|
|
5
|
-
type
|
|
3
|
+
import { Model } from '../api/types/Model';
|
|
4
|
+
import { ModelRevision } from '../api/types/ModelRevision';
|
|
5
|
+
import type { ToolEnum } from '../components/ToolEnum';
|
|
6
|
+
export type FeatureFlags = Partial<{
|
|
6
7
|
enableObjectTreeSearch: boolean;
|
|
7
8
|
}>;
|
|
8
|
-
type CommonOptions = {
|
|
9
|
+
export type CommonOptions = {
|
|
9
10
|
/**
|
|
10
11
|
* Always required
|
|
11
12
|
*/
|
|
@@ -18,7 +19,7 @@ type CommonOptions = {
|
|
|
18
19
|
/**
|
|
19
20
|
* Always optional
|
|
20
21
|
*/
|
|
21
|
-
tools?:
|
|
22
|
+
tools?: ToolEnum[];
|
|
22
23
|
bcfCamera?: any;
|
|
23
24
|
min_boundary?: {
|
|
24
25
|
x: string;
|
|
@@ -62,13 +63,13 @@ export type GeometryBundle = {
|
|
|
62
63
|
meshUrl?: GeometryFile['url'];
|
|
63
64
|
manifestUrl?: GeometryFile['url'];
|
|
64
65
|
};
|
|
65
|
-
type PwfV2Bundle = {
|
|
66
|
+
export type PwfV2Bundle = {
|
|
66
67
|
nodeUrl: GeometryFile['url'];
|
|
67
68
|
meshnodeUrl: GeometryFile['url'];
|
|
68
69
|
meshUrl: GeometryFile['url'];
|
|
69
70
|
manifestUrl: GeometryFile['url'];
|
|
70
71
|
};
|
|
71
|
-
type PwfV1Bundle = {
|
|
72
|
+
export type PwfV1Bundle = {
|
|
72
73
|
nodeUrl: GeometryFile['url'];
|
|
73
74
|
meshnodeUrl: GeometryFile['url'];
|
|
74
75
|
meshUrl: GeometryFile['url'];
|
|
@@ -96,7 +97,6 @@ export declare const isModelRevisionModePwfV2Options: (options: Options) => opti
|
|
|
96
97
|
export declare const isFileExtractionModePwfV1OverrideOptions: (options: Options) => options is FileExtractionModePwfV1OverrideOptions;
|
|
97
98
|
export declare const isFileExtractionModePwfV2OverrideOptions: (options: Options) => options is FileExtractionModePwfV2OverrideOptions;
|
|
98
99
|
export declare const isFileExtractionModeOptions: (options: Options) => options is FileExtractionModeOptions;
|
|
99
|
-
export {};
|
|
100
100
|
/**
|
|
101
101
|
* Type Testing
|
|
102
102
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertiesFile, FileVersion, Attachment } from '../../api/types/FileExtraction';
|
|
2
|
-
import { ModelRevision } from '../../api/types/
|
|
2
|
+
import { ModelRevision } from '../../api/types/ModelRevision';
|
|
3
3
|
import * as FileExtractions from '../../api/bim_file_extractions';
|
|
4
4
|
import * as BimModelRevisions from '../../api/bim_model_revisions';
|
|
5
5
|
import { Options, GeometryBundle } from '../../types/WebviewerOptions';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FileExtractionModePwfV2OverrideOptions, FileExtractionModePwfV1OverrideOptions, FileExtractionModeOptions, ModelRevisionModePwfV2Options, ModelRevisionModePwfV1Options } from '../../../types/WebviewerOptions';
|
|
2
2
|
import { FileExtraction } from '../../../api/types/FileExtraction';
|
|
3
|
-
import { ModelRevision, ModelRevisionViewpoint } from '../../../api/types/
|
|
3
|
+
import { ModelRevision, ModelRevisionViewpoint } from '../../../api/types/ModelRevision';
|
|
4
4
|
import { InternalViewpoint } from '../../../viewpoint/types';
|
|
5
5
|
export declare const projectId = 4;
|
|
6
6
|
export declare const companyId = 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const keys: Readonly<{
|
|
1
|
+
export declare const keys: Readonly<{
|
|
2
2
|
NONE: -1;
|
|
3
3
|
LEFT: 37;
|
|
4
4
|
UP: 38;
|
|
@@ -34,21 +34,22 @@ export const keys: Readonly<{
|
|
|
34
34
|
SA: 203;
|
|
35
35
|
X: 88;
|
|
36
36
|
}>;
|
|
37
|
-
export const
|
|
38
|
-
NONE: -1;
|
|
39
|
-
PAN: 1;
|
|
40
|
-
KEYMOVE: 2;
|
|
41
|
-
ROTATE: 3;
|
|
42
|
-
FLY: 4;
|
|
43
|
-
ORBIT: 5;
|
|
44
|
-
STRAFE: 6;
|
|
45
|
-
}
|
|
46
|
-
export
|
|
37
|
+
export declare const ACTION: {
|
|
38
|
+
readonly NONE: -1;
|
|
39
|
+
readonly PAN: 1;
|
|
40
|
+
readonly KEYMOVE: 2;
|
|
41
|
+
readonly ROTATE: 3;
|
|
42
|
+
readonly FLY: 4;
|
|
43
|
+
readonly ORBIT: 5;
|
|
44
|
+
readonly STRAFE: 6;
|
|
45
|
+
};
|
|
46
|
+
export type Action = (typeof ACTION)[keyof typeof ACTION];
|
|
47
|
+
export declare const UnhideObjectOrigin: Readonly<{
|
|
47
48
|
COACHMARKHIDDEN: "coachmark_hidden";
|
|
48
49
|
OBJECTTREE: "object_tree";
|
|
49
50
|
OBJECTTREE_ALLOBJECTS: "object_tree_all_objects";
|
|
50
51
|
}>;
|
|
51
|
-
export const ToolOrigin: Readonly<{
|
|
52
|
+
export declare const ToolOrigin: Readonly<{
|
|
52
53
|
KEYBOARD: "keyboard";
|
|
53
54
|
TOOLBAR: "toolbar";
|
|
54
55
|
API: "api";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export const EMPTY_SPACE_MESHNODE_INDEX
|
|
2
|
-
export const EMPTY_SPACE_OBJECT_ID
|
|
3
|
-
export const DEFAULT_FOV
|
|
4
|
-
export const NO_CURRENT_NODE
|
|
1
|
+
export declare const EMPTY_SPACE_MESHNODE_INDEX = -1;
|
|
2
|
+
export declare const EMPTY_SPACE_OBJECT_ID = -1;
|
|
3
|
+
export declare const DEFAULT_FOV = 65;
|
|
4
|
+
export declare const NO_CURRENT_NODE = -1;
|
|
5
|
+
export declare const RENDER_MODE: {
|
|
6
|
+
readonly SHADED: "shaded";
|
|
7
|
+
readonly XRAY: "xray";
|
|
8
|
+
};
|
|
9
|
+
export type RenderMode = (typeof RENDER_MODE)[keyof typeof RENDER_MODE];
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { InternalViewpoint, RedlinesData, AutodeskRedlineCollection, CameraData, AutodeskCommonCamera } from './types';
|
|
2
|
-
import { Viewpoint } from '../api/types/
|
|
2
|
+
import { Viewpoint, Visibility } from '../api/types/Viewpoint';
|
|
3
|
+
import type { RenderMode } from '../utils/constants';
|
|
3
4
|
export declare function calculateFieldOfViewFromVerticalExtent(verticalExtent: number, targetDistance: number): number;
|
|
5
|
+
export declare const NULL_VISIBILITY: Visibility;
|
|
4
6
|
export declare class ViewpointFactory {
|
|
5
7
|
static createViewpoint(viewpoint: Viewpoint): InternalViewpoint;
|
|
6
8
|
private static getCameraData;
|
|
7
9
|
private static getSectionsData;
|
|
8
10
|
private static getRedlinesData;
|
|
11
|
+
static getVisibility(viewpoint: Viewpoint): Visibility;
|
|
12
|
+
static getRenderMode(viewpoint: Viewpoint): RenderMode;
|
|
9
13
|
static convertFromAutodeskCommonCamera(autodeskCameraData: AutodeskCommonCamera): CameraData;
|
|
10
14
|
static convertFromAutodeskRedlineCollection(autodeskMarkup: AutodeskRedlineCollection): RedlinesData;
|
|
11
15
|
static getUnit(viewpoint: InternalViewpoint): string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Visibility } from '../api/types/Viewpoint';
|
|
2
|
+
import type { RenderMode } from '../utils/constants';
|
|
3
|
+
import type { BcfCameraOrthogonal, BcfCameraPerspective } from '../types/BcfCamera';
|
|
2
4
|
export type CameraData = {
|
|
3
5
|
perspective_camera?: BcfCameraPerspective;
|
|
4
6
|
orthogonal_camera?: BcfCameraOrthogonal;
|
|
@@ -116,4 +118,6 @@ export type InternalViewpoint = {
|
|
|
116
118
|
camera_data: CameraData;
|
|
117
119
|
sections_data: Record<string, unknown> | Array<Record<string, unknown>> | null;
|
|
118
120
|
redlines_data: RedlinesData | null;
|
|
121
|
+
visibility: Visibility;
|
|
122
|
+
render_mode: RenderMode;
|
|
119
123
|
};
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Markup } from '../Markup';
|
|
2
|
-
import type { RenderControllerProxy } from '../../controllers/RenderControllerProxy';
|
|
3
|
-
import type { SectionBoxDisplayManager } from '../../sectioning/SectionBoxDisplayManager';
|
|
4
|
-
import type { Viewpoint } from '../../api/types/Model';
|
|
5
|
-
export declare class HomeViewpointManager {
|
|
6
|
-
private renderController;
|
|
7
|
-
private sectionBoxDisplayManager;
|
|
8
|
-
private markup;
|
|
9
|
-
constructor(params: {
|
|
10
|
-
renderController: RenderControllerProxy;
|
|
11
|
-
sectionBoxDisplayManager: SectionBoxDisplayManager;
|
|
12
|
-
markup: Markup;
|
|
13
|
-
});
|
|
14
|
-
activate: () => Promise<void>;
|
|
15
|
-
private activateViewpoint;
|
|
16
|
-
getViewpoint(): Promise<Viewpoint>;
|
|
17
|
-
setViewpoint(viewpoint: Viewpoint): Promise<void>;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HomeViewpointManager } from './HomeViewpointManager';
|