@procore/bim-webviewer-sdk 16.6.0-rc.7 → 16.6.0-rc.9
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 +2 -0
- package/dist/Procore.Bim.Webviewer.d.ts +24 -13
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/api/analytic_events/analyticKeys.d.ts +30 -30
- package/dist/types/src/api/analytic_events/payloadFactories.d.ts +8 -8
- package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +1 -1
- package/dist/types/src/components/RootComponent.d.ts +3 -3
- package/dist/types/src/components/ShortestDistanceComponent.d.ts +7 -5
- package/dist/types/src/components/WindowModelObjectComponent/VirtualizedList.d.ts +1 -1
- package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +3 -3
- package/dist/types/src/components/WindowTreeComponent.d.ts +0 -1
- package/dist/types/src/components/WindowTreeViewComponent.d.ts +2 -3
- package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +3 -3
- package/dist/types/src/components/__tests__/ShortestDisanceFixtures.d.ts +21 -0
- package/dist/types/src/controllers/ApiController/ApiController.d.ts +2 -2
- package/dist/types/src/controllers/CacheController.d.ts +2 -2
- package/dist/types/src/controllers/DatabaseController.d.ts +1 -1
- package/dist/types/src/controllers/DomController/DomController.d.ts +0 -1
- package/dist/types/src/controllers/PubSubController.d.ts +1 -1
- package/dist/types/src/controllers/RenderController.d.ts +16 -16
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +11 -11
- package/dist/types/src/controllers/RenderStatusType.d.ts +4 -4
- package/dist/types/src/measuring/MeasurementInterface.d.ts +8 -0
- package/dist/types/src/measuring/MeasurementManager.d.ts +2 -0
- package/dist/types/src/measuring/PointToPointManager.d.ts +4 -3
- package/dist/types/src/messages.d.ts +7 -7
- package/dist/types/src/navigation/Orbit/calcNewPosition.d.ts +0 -1
- package/dist/types/src/navigation/Orbit/getQuatToCylinderSpace.d.ts +0 -1
- package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +1 -1
- package/dist/types/src/procoregl/HiddenNodeServices/rangify.d.ts +2 -8
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +3 -3
- package/dist/types/src/procoregl/ProcoreGeometries/ProcoreArrow.d.ts +0 -1
- package/dist/types/src/procoregl/ProcoreGeometries/StubbyArrow.d.ts +0 -1
- package/dist/types/src/procoregl/SectionDisplay/getCursorDirectionFromCameraToPlane.d.ts +1 -2
- package/dist/types/src/sectioning/utils.d.ts +0 -1
- package/dist/types/src/threeShaking.d.ts +47 -47
- package/dist/types/src/unit_util.d.ts +3 -3
- package/dist/types/src/utils/Benchmark/MainThreadBenchmark.d.ts +2 -2
- 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/ZoomExtents/__tests__/computePoseToFitBoxFromPosition.test.d.ts +0 -1
- package/dist/types/src/utils/ZoomExtents/computeRefinedBbox.d.ts +2 -3
- package/dist/types/src/utils/ZoomExtents/utils.d.ts +0 -1
- package/dist/types/src/utils/i18n.d.ts +1 -1
- package/dist/types/src/validateOptions/checkTools.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const model: {
|
|
2
|
-
readonly initialization:
|
|
2
|
+
readonly initialization: "ux.web.bim_viewer.model.initialization";
|
|
3
3
|
};
|
|
4
4
|
export declare const bimToolbars: {
|
|
5
|
-
readonly home_tapped:
|
|
6
|
-
readonly settings_tapped:
|
|
7
|
-
readonly views_tapped:
|
|
8
|
-
readonly objects_tapped:
|
|
9
|
-
readonly properties_tapped:
|
|
10
|
-
readonly measure_tapped:
|
|
11
|
-
readonly section_box_tapped:
|
|
12
|
-
readonly xray_tapped:
|
|
13
|
-
readonly navigation_default_tapped:
|
|
14
|
-
readonly navigation_orbit_tapped:
|
|
15
|
-
readonly navigation_fly_tapped:
|
|
5
|
+
readonly home_tapped: "project.3d_models.bim_toolbar.home_tapped";
|
|
6
|
+
readonly settings_tapped: "project.3d_models.bim_toolbar.settings_tapped";
|
|
7
|
+
readonly views_tapped: "project.3d_models.bim_toolbar.views_tapped";
|
|
8
|
+
readonly objects_tapped: "project.3d_models.bim_toolbar.objects_tapped";
|
|
9
|
+
readonly properties_tapped: "project.3d_models.bim_toolbar.properties_tapped";
|
|
10
|
+
readonly measure_tapped: "project.3d_models.bim_toolbar.measure_tapped";
|
|
11
|
+
readonly section_box_tapped: "project.3d_models.bim_toolbar.section_box_tapped";
|
|
12
|
+
readonly xray_tapped: "project.3d_models.bim_toolbar.xray_tapped";
|
|
13
|
+
readonly navigation_default_tapped: "project.3d_models.bim_toolbar.navigation_default_tapped";
|
|
14
|
+
readonly navigation_orbit_tapped: "project.3d_models.bim_toolbar.navigation_orbit_tapped";
|
|
15
|
+
readonly navigation_fly_tapped: "project.3d_models.bim_toolbar.navigation_fly_tapped";
|
|
16
16
|
};
|
|
17
17
|
export declare const clientLoadings: {
|
|
18
|
-
readonly download_completed:
|
|
19
|
-
readonly initialization:
|
|
18
|
+
readonly download_completed: "project.3d_models.client_loading.download_completed";
|
|
19
|
+
readonly initialization: "project.3d_models.client_loading.initialization";
|
|
20
20
|
};
|
|
21
21
|
export type ModelType = 'standard' | 'partitioned' | undefined;
|
|
22
22
|
export type BimModelsDownloadCompletedPayload = {
|
|
@@ -56,7 +56,7 @@ export type InitializationTrackEventPayload = ModelInitializationPayload & {
|
|
|
56
56
|
file_extraction_id?: string;
|
|
57
57
|
};
|
|
58
58
|
export declare const webviewers: {
|
|
59
|
-
readonly environment:
|
|
59
|
+
readonly environment: "project.3d_models.webviewer.environment";
|
|
60
60
|
};
|
|
61
61
|
export type EnvironmentTrackEventPayload = {
|
|
62
62
|
web_viewer_version: string;
|
|
@@ -78,13 +78,13 @@ export type EnvironmentTrackEventPayload = {
|
|
|
78
78
|
ua_cpu_architecture?: string;
|
|
79
79
|
};
|
|
80
80
|
export declare const sectionBoxes: {
|
|
81
|
-
readonly enabled:
|
|
82
|
-
readonly disabled:
|
|
83
|
-
readonly optionbar_open:
|
|
84
|
-
readonly optionbar_close:
|
|
85
|
-
readonly display_planes:
|
|
86
|
-
readonly reset:
|
|
87
|
-
readonly zoom_extents:
|
|
81
|
+
readonly enabled: "project.3d_models.section_box.enabled";
|
|
82
|
+
readonly disabled: "project.3d_models.section_box.disabled";
|
|
83
|
+
readonly optionbar_open: "project.3d_models.section_box.optionbar_open";
|
|
84
|
+
readonly optionbar_close: "project.3d_models.section_box.optionbar_close";
|
|
85
|
+
readonly display_planes: "project.3d_models.section_box.display_planes";
|
|
86
|
+
readonly reset: "project.3d_models.section_box.reset";
|
|
87
|
+
readonly zoom_extents: "project.3d_models.section_box.zoom_extents";
|
|
88
88
|
};
|
|
89
89
|
export declare const SECTION_BOX_ORIGIN: {
|
|
90
90
|
readonly OBJECT: "object";
|
|
@@ -122,11 +122,11 @@ export declare const bimProperties: {
|
|
|
122
122
|
tab_changed: string;
|
|
123
123
|
};
|
|
124
124
|
export declare const modelObjectTrees: {
|
|
125
|
-
readonly hide_all:
|
|
126
|
-
readonly select_all:
|
|
127
|
-
readonly collapse_all:
|
|
128
|
-
readonly searched:
|
|
129
|
-
readonly search_cleared:
|
|
125
|
+
readonly hide_all: "project.3d_models.bim_object_tree.hide_all";
|
|
126
|
+
readonly select_all: "project.3d_models.bim_object_tree.select_all";
|
|
127
|
+
readonly collapse_all: "project.3d_models.bim_object_tree.collapse_all";
|
|
128
|
+
readonly searched: "project.3d_models.bim_object_tree.searched";
|
|
129
|
+
readonly search_cleared: "project.3d_models.bim_object_tree.search_cleared";
|
|
130
130
|
};
|
|
131
131
|
export declare const renderings: {
|
|
132
132
|
mode_changed: string;
|
|
@@ -149,7 +149,7 @@ export declare const MEASUREMENT_ORIGIN: {
|
|
|
149
149
|
readonly HOTKEY: "hotkey";
|
|
150
150
|
};
|
|
151
151
|
export declare const measurements: {
|
|
152
|
-
readonly enabled:
|
|
153
|
-
readonly disabled:
|
|
154
|
-
readonly completed:
|
|
152
|
+
readonly enabled: "project.3d_models.measure.enabled";
|
|
153
|
+
readonly disabled: "project.3d_models.measure.disabled";
|
|
154
|
+
readonly completed: "project.3d_models.measure.completed";
|
|
155
155
|
};
|
|
@@ -4,24 +4,24 @@ export declare const getModelMetaData: () => Promise<{
|
|
|
4
4
|
file_name: string;
|
|
5
5
|
file_type: string;
|
|
6
6
|
input_file_size: number;
|
|
7
|
-
file_extraction_id?: string
|
|
7
|
+
file_extraction_id?: string;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const getInitializationEventPayload: (params: {
|
|
10
|
-
streaming?: boolean
|
|
11
|
-
pwf?: PWF
|
|
10
|
+
streaming?: boolean;
|
|
11
|
+
pwf?: PWF;
|
|
12
12
|
startTimestamp: number;
|
|
13
13
|
duration: number;
|
|
14
14
|
success: boolean;
|
|
15
|
-
stepFailed?: string
|
|
16
|
-
errorDescription?: string
|
|
15
|
+
stepFailed?: string;
|
|
16
|
+
errorDescription?: string;
|
|
17
17
|
}) => ModelInitializationPayload;
|
|
18
18
|
export declare const getInitializationTrackEventPayload: (eventPayload: ModelInitializationPayload) => Promise<InitializationTrackEventPayload>;
|
|
19
19
|
export declare const getDownloadCompletedTrackEventPayload: (params: {
|
|
20
20
|
timeToDownload: number;
|
|
21
21
|
modelType: ModelType;
|
|
22
22
|
modelCached: boolean;
|
|
23
|
-
totalPartitionsSize?: number
|
|
24
|
-
totalPartitionsSizeCompressed?: number
|
|
25
|
-
numPartitions?: number
|
|
23
|
+
totalPartitionsSize?: number;
|
|
24
|
+
totalPartitionsSizeCompressed?: number;
|
|
25
|
+
numPartitions?: number;
|
|
26
26
|
}) => Promise<BimModelsDownloadCompletedPayload>;
|
|
27
27
|
export declare const getEnvironmentTrackEventPayload: () => Promise<EnvironmentTrackEventPayload>;
|
|
@@ -22,6 +22,6 @@ export class RootComponent {
|
|
|
22
22
|
GetWindowComponents(): any[];
|
|
23
23
|
DisableComponent(component: any): void;
|
|
24
24
|
}
|
|
25
|
-
import { SectionToolDropdown } from
|
|
26
|
-
import { StatsJS } from
|
|
27
|
-
import { TooltipManager } from
|
|
25
|
+
import { SectionToolDropdown } from './DropdownComponent';
|
|
26
|
+
import { StatsJS } from './StatsJS';
|
|
27
|
+
import { TooltipManager } from './Tooltip';
|
|
@@ -8,14 +8,16 @@ export class ShortestDistanceComponent {
|
|
|
8
8
|
bimMain: HTMLElement | null;
|
|
9
9
|
cursorTooltip: CursorTooltip | null;
|
|
10
10
|
center_lock: any;
|
|
11
|
-
|
|
11
|
+
measureObjectCount: number;
|
|
12
|
+
measurementShown: boolean;
|
|
12
13
|
pivot: import("three").Vector3;
|
|
13
14
|
onHideUpdated(): Promise<void>;
|
|
14
15
|
toggle(params: any): void;
|
|
15
|
-
|
|
16
|
+
clearDisplayElements(): void;
|
|
16
17
|
removeCursors(): void;
|
|
17
18
|
setGlobalOffset(params: any): void;
|
|
18
19
|
globalOffset: import("three").Vector3 | undefined;
|
|
20
|
+
getMeasurementProgress(): "initial" | "inProgress" | "completed";
|
|
19
21
|
getGlobalOffset(): import("three").Vector3;
|
|
20
22
|
onNavigationChanged(data: any): Promise<void>;
|
|
21
23
|
compute(modelItem1: any, modelItem2: any): Promise<void>;
|
|
@@ -26,7 +28,7 @@ export class ShortestDistanceComponent {
|
|
|
26
28
|
distance: number;
|
|
27
29
|
} | undefined;
|
|
28
30
|
resetMeasurement(): void;
|
|
29
|
-
onObjectMeasure(
|
|
30
|
-
handleMeasureObjectsSelected(measureObjectMeshes: any
|
|
31
|
+
onObjectMeasure(): Promise<void>;
|
|
32
|
+
handleMeasureObjectsSelected(measureObjectMeshes: any): Promise<void>;
|
|
31
33
|
}
|
|
32
|
-
import { CursorTooltip } from
|
|
34
|
+
import { CursorTooltip } from '../measuring/CursorTooltip';
|
package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts
CHANGED
|
@@ -77,6 +77,6 @@ export class WindowModelObjectComponent {
|
|
|
77
77
|
getSelectedObjectCount(): Promise<any>;
|
|
78
78
|
getObjectTreeName(): "default" | "filtered";
|
|
79
79
|
}
|
|
80
|
-
import { VirtualizedList } from
|
|
81
|
-
import { SearchInput } from
|
|
82
|
-
import { WindowAlertComponent } from
|
|
80
|
+
import { VirtualizedList } from './VirtualizedList';
|
|
81
|
+
import { SearchInput } from '../SearchInput';
|
|
82
|
+
import { WindowAlertComponent } from '../WindowAlertComponent';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export function WindowTreeComponent(id: any, name: any, options: any, pubsub: any): void;
|
|
2
2
|
export class WindowTreeComponent {
|
|
3
3
|
constructor(id: any, name: any, options: any, pubsub: any);
|
|
4
|
-
constructor: typeof WindowTreeComponent;
|
|
5
4
|
CreateSubUnorderedList(subGroupId: any): HTMLUListElement;
|
|
6
5
|
GetUnorderedList(subGroupId?: null): HTMLElement | null;
|
|
7
6
|
CreateListItem(listItemId: any): HTMLLIElement;
|
|
@@ -13,7 +13,6 @@ export class WindowTreeViewComponent {
|
|
|
13
13
|
viewpoints: any[];
|
|
14
14
|
viewfolders: any[];
|
|
15
15
|
viewfoldersDict: {};
|
|
16
|
-
constructor: typeof WindowTreeViewComponent;
|
|
17
16
|
CreateForFolder(folderId?: null): void;
|
|
18
17
|
SetMarkupData(markupData: any, fov: any): void;
|
|
19
18
|
CreateViewpointItem(revisionViewpoint: any, level?: number): any;
|
|
@@ -33,7 +32,7 @@ export class WindowTreeViewComponent {
|
|
|
33
32
|
}
|
|
34
33
|
export namespace WindowTreeViewComponent {
|
|
35
34
|
namespace TypeEnum {
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
let VIEWPOINT: number;
|
|
36
|
+
let VIEWFOLDER: number;
|
|
38
37
|
}
|
|
39
38
|
}
|
package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts
CHANGED
|
@@ -38,6 +38,6 @@ export class WindowViewPropertiesComponent {
|
|
|
38
38
|
updateCurrentNodeProperties(nodeId: any): void;
|
|
39
39
|
fetchObjectProperties(): void;
|
|
40
40
|
}
|
|
41
|
-
import { SearchInput } from
|
|
42
|
-
import { PropertiesCardComponent } from
|
|
43
|
-
import { TabsComponent } from
|
|
41
|
+
import { SearchInput } from '../SearchInput';
|
|
42
|
+
import { PropertiesCardComponent } from '../PropertiesCardComponent';
|
|
43
|
+
import { TabsComponent } from '../TabsComponent';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MeshnodeObject } from '../../pwfreader/PWFTypes';
|
|
2
|
+
export declare const meshnodeIndex1 = 1604;
|
|
3
|
+
export declare const meshnodeObject1: MeshnodeObject;
|
|
4
|
+
export declare const meshnodeIndex2 = 2683;
|
|
5
|
+
export declare const meshnodeObject2: MeshnodeObject;
|
|
6
|
+
export declare const expectedResult: {
|
|
7
|
+
method: string;
|
|
8
|
+
start: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
};
|
|
13
|
+
end: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
z: number;
|
|
17
|
+
};
|
|
18
|
+
distance: number;
|
|
19
|
+
reduced_by_1: string;
|
|
20
|
+
reduced_by_2: string;
|
|
21
|
+
};
|
|
@@ -22,5 +22,5 @@ export class ApiController {
|
|
|
22
22
|
trackEvent(key: any, properties?: {}): Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
export const api: ApiController;
|
|
25
|
-
import * as ModelRevisions from
|
|
26
|
-
import * as FileExtractions from
|
|
25
|
+
import * as ModelRevisions from '../../api/bim_model_revisions';
|
|
26
|
+
import * as FileExtractions from '../../api/bim_file_extractions';
|
|
@@ -14,8 +14,8 @@ export type ModelRevisionStoreItem = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const LocalStoreItemDNE = "Local store item does not exist.";
|
|
16
16
|
export declare namespace Cache {
|
|
17
|
-
const updateAndPurgeFileVersion: (fileVersion: FileVersion, propertyFileId: PropertiesFile[
|
|
18
|
-
const updateAndPurgeModelRevision: (modelId: Model[
|
|
17
|
+
const updateAndPurgeFileVersion: (fileVersion: FileVersion, propertyFileId: PropertiesFile["id"], geometryBundle: GeometryBundle) => Promise<void>;
|
|
18
|
+
const updateAndPurgeModelRevision: (modelId: Model["id"], modelRevisionId: ModelRevision["id"], geometryBundle: GeometryBundle) => Promise<void>;
|
|
19
19
|
const removeModel: (options: any) => Promise<boolean>;
|
|
20
20
|
const hasModel: (geometryBundle: GeometryBundle) => Promise<boolean>;
|
|
21
21
|
}
|
|
@@ -11,7 +11,7 @@ export class DatabaseController {
|
|
|
11
11
|
deleteValue(objectStoreName: any, key: any): Promise<any>;
|
|
12
12
|
}
|
|
13
13
|
export namespace DatabaseController {
|
|
14
|
-
|
|
14
|
+
let OBJECT_STORES: Readonly<{
|
|
15
15
|
ModelVersion: "model_version";
|
|
16
16
|
Settings: "project_settings";
|
|
17
17
|
BrowserSettings: "browser_settings";
|
|
@@ -197,7 +197,7 @@ export class RenderController {
|
|
|
197
197
|
hidden?: boolean | undefined;
|
|
198
198
|
selected?: boolean | undefined;
|
|
199
199
|
partiallySelected?: boolean | undefined;
|
|
200
|
-
parentId?: number
|
|
200
|
+
parentId?: number;
|
|
201
201
|
}[];
|
|
202
202
|
};
|
|
203
203
|
onDoubleClick(evt: any): void;
|
|
@@ -391,9 +391,9 @@ export class RenderController {
|
|
|
391
391
|
}
|
|
392
392
|
export namespace RenderController {
|
|
393
393
|
namespace NullSelectedSubtree {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
let objectId: number;
|
|
395
|
+
let selectionContainerId: number;
|
|
396
|
+
let ancestry: never[];
|
|
397
397
|
}
|
|
398
398
|
function createCameras(options: any): {
|
|
399
399
|
default: import("three").PerspectiveCamera;
|
|
@@ -415,15 +415,15 @@ export namespace RenderController {
|
|
|
415
415
|
};
|
|
416
416
|
function sanitizeOptions(options: any): any;
|
|
417
417
|
}
|
|
418
|
-
import { StatusTrackingController } from
|
|
419
|
-
import { SectionController } from
|
|
420
|
-
import { EffectComposer } from
|
|
421
|
-
import { ProcoreRenderPass } from
|
|
422
|
-
import { SectionRenderPass } from
|
|
423
|
-
import { PickingController } from
|
|
424
|
-
import { PointToPointController } from
|
|
425
|
-
import { NavigationModel } from
|
|
426
|
-
import { Models } from
|
|
427
|
-
import { ShortestDistanceController } from
|
|
428
|
-
import { ColorServices } from
|
|
429
|
-
import { ObjectTree } from
|
|
418
|
+
import { StatusTrackingController } from './StatusTrackingController';
|
|
419
|
+
import { SectionController } from '../sectioning';
|
|
420
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
421
|
+
import { ProcoreRenderPass } from '../procoregl/ProcoreRenderPass';
|
|
422
|
+
import { SectionRenderPass } from '../procoregl/SectionDisplay';
|
|
423
|
+
import { PickingController } from '../picking/PickingController';
|
|
424
|
+
import { PointToPointController } from '../measuring';
|
|
425
|
+
import { NavigationModel } from '../navigation/NavigationModel';
|
|
426
|
+
import { Models } from '../procoregl/Models';
|
|
427
|
+
import { ShortestDistanceController } from './ShortestDistanceController';
|
|
428
|
+
import { ColorServices } from '../procoregl/ColorServices';
|
|
429
|
+
import { ObjectTree } from '../procoregl/ObjectTree';
|
|
@@ -281,16 +281,16 @@ export class RenderControllerProxy {
|
|
|
281
281
|
}
|
|
282
282
|
export namespace RenderControllerProxy {
|
|
283
283
|
namespace NAVIGATION_MODE {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
284
|
+
let NONE: number;
|
|
285
|
+
let GENERAL: number;
|
|
286
|
+
let WALK: number;
|
|
287
|
+
let ORBIT: number;
|
|
288
|
+
let MEASURE: number;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
import { PubSubController } from
|
|
292
|
-
import { NavigationManager } from
|
|
293
|
-
import { Hotkeys } from
|
|
294
|
-
import { RenderController } from
|
|
295
|
-
import { RenderControllerWorker } from
|
|
296
|
-
import { PWFCache } from
|
|
291
|
+
import { PubSubController } from './PubSubController';
|
|
292
|
+
import { NavigationManager } from '../navigation/NavigationManager';
|
|
293
|
+
import { Hotkeys } from '../navigation/Hotkeys';
|
|
294
|
+
import { RenderController } from './RenderController';
|
|
295
|
+
import { RenderControllerWorker } from './RenderControllerWorker';
|
|
296
|
+
import { PWFCache } from '../pwfreader/PWFCache';
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { Vector3 } from '../types/Math';
|
|
2
|
+
export declare const MEASUREMENT_STATE: {
|
|
3
|
+
readonly initial: "initial";
|
|
4
|
+
readonly inProgress: "inProgress";
|
|
5
|
+
readonly completed: "completed";
|
|
6
|
+
};
|
|
7
|
+
export type MeasurementState = (typeof MEASUREMENT_STATE)[keyof typeof MEASUREMENT_STATE];
|
|
2
8
|
export interface MeasurementInterface {
|
|
3
9
|
setGlobalOffset(params: Vector3): void;
|
|
4
10
|
toggle(params: {
|
|
5
11
|
enable: boolean;
|
|
6
12
|
}): void;
|
|
13
|
+
getMeasurementProgress(): MeasurementState;
|
|
14
|
+
resetMeasurement(): void;
|
|
7
15
|
}
|
|
@@ -3,7 +3,7 @@ import type { Vector3 } from '../types/Math';
|
|
|
3
3
|
import type { MeasurementRenderer } from './MeasurementRenderer';
|
|
4
4
|
import type { SettingsController } from '../controllers/SettingsController';
|
|
5
5
|
import type { RenderControllerProxy } from '../controllers/RenderControllerProxy';
|
|
6
|
-
import type
|
|
6
|
+
import { type MeasurementInterface, type MeasurementState } from './MeasurementInterface';
|
|
7
7
|
import { ApiController } from '../controllers/ApiController';
|
|
8
8
|
export declare class PointToPointManager implements MeasurementInterface {
|
|
9
9
|
private readonly svgRenderer;
|
|
@@ -34,18 +34,19 @@ export declare class PointToPointManager implements MeasurementInterface {
|
|
|
34
34
|
});
|
|
35
35
|
setGlobalOffset(params: Vector3): void;
|
|
36
36
|
getGlobalOffset(): THREE.Vector3;
|
|
37
|
+
getMeasurementProgress(): MeasurementState;
|
|
37
38
|
private onCameraUpdated;
|
|
38
39
|
private onNavigationChanged;
|
|
39
40
|
private onMeasurementObjectMove;
|
|
40
41
|
private updateTemporaryDistanceLabel;
|
|
41
42
|
private onMeasurementObjectLeave;
|
|
42
43
|
private onMeasurementObjectClick;
|
|
43
|
-
|
|
44
|
+
resetMeasurement(): void;
|
|
44
45
|
static isEnabled(): boolean;
|
|
45
46
|
toggle(params: {
|
|
46
47
|
enable: boolean;
|
|
47
48
|
}): Promise<void>;
|
|
48
|
-
private
|
|
49
|
+
private clearDisplayElements;
|
|
49
50
|
private removeCursors;
|
|
50
51
|
private setCameraAndNavigationControls;
|
|
51
52
|
private updateSvg;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export namespace Messages {
|
|
2
2
|
namespace MessageType {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
let Error: string;
|
|
4
|
+
let Warning: string;
|
|
5
5
|
}
|
|
6
6
|
namespace MessageComponent {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
let Downloading: string;
|
|
8
|
+
let Engine: string;
|
|
9
|
+
let FileReading: string;
|
|
10
|
+
let Cache: string;
|
|
11
|
+
let FloorPlan: string;
|
|
12
12
|
}
|
|
13
13
|
function getMessage(type: any, component: any, message: any): {
|
|
14
14
|
messageType: any;
|
|
@@ -23,7 +23,7 @@ export declare class HiddenNodeServices {
|
|
|
23
23
|
hasMeshnodeIndices: (indexes: Array<number>, resourceId: number) => boolean;
|
|
24
24
|
private nodeNeedsUpdating;
|
|
25
25
|
getVisibility: (resourceId: number, options?: {
|
|
26
|
-
defaultVisibilityAlwaysTrue?: boolean
|
|
26
|
+
defaultVisibilityAlwaysTrue?: boolean;
|
|
27
27
|
}) => Visibility;
|
|
28
28
|
setVisibility: (visibility: Visibility, resourceId: number) => void;
|
|
29
29
|
private updateNodeAndChildren;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
export declare const rangify: (numbers: number[]) => {
|
|
2
2
|
numbers: number[];
|
|
3
|
-
ranges: [
|
|
4
|
-
number,
|
|
5
|
-
number
|
|
6
|
-
][];
|
|
3
|
+
ranges: [number, number][];
|
|
7
4
|
};
|
|
8
5
|
export declare const derangify: (rangified: {
|
|
9
6
|
numbers: number[];
|
|
10
|
-
ranges: [
|
|
11
|
-
number,
|
|
12
|
-
number
|
|
13
|
-
][];
|
|
7
|
+
ranges: [number, number][];
|
|
14
8
|
}) => number[];
|
|
@@ -91,6 +91,6 @@ export class PartitionsRenderer {
|
|
|
91
91
|
allocTextureUnit: () => number;
|
|
92
92
|
renderBufferDirect: (camera: any, fog: any, geometry: any, material: any, object: any, group: any) => void;
|
|
93
93
|
}
|
|
94
|
-
import { WebXRManager } from
|
|
95
|
-
import { WebVRManager } from
|
|
96
|
-
import { WebGLShadowMap } from
|
|
94
|
+
import { WebXRManager } from 'three/src/renderers/webvr/WebXRManager';
|
|
95
|
+
import { WebVRManager } from 'three/src/renderers/webvr/WebVRManager';
|
|
96
|
+
import { WebGLShadowMap } from 'three/src/renderers/webgl/WebGLShadowMap';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getCursorDirectionFromCameraToPlane: (camera: THREE.Camera, plane?: THREE.Mesh) => 'ns' | 'ew' | 'nwse' | 'nesw' | null;
|
|
1
|
+
export declare const getCursorDirectionFromCameraToPlane: (camera: THREE.Camera, plane?: THREE.Mesh) => "ns" | "ew" | "nwse" | "nesw" | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { THREE } from '../threeShaking';
|
|
2
1
|
import { Vector3, BoundingBox } from '../types/Math';
|
|
3
2
|
export declare const transformToThreePlane: (distance: number, normal: Vector3, rotation: Vector3 | null, center: THREE.Vector3 | undefined | null, offset: THREE.Vector3) => THREE.Plane;
|
|
4
3
|
export declare const validateBoundary: (min: Vector3 | null, max: Vector3 | null) => boolean;
|