@procore/bim-webviewer-sdk 16.6.0-rc.8 → 17.0.0-4d-scheduling-hackathon.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +19 -3
  2. package/dist/Procore.Bim.Webviewer.d.ts +157 -2318
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/Webviewer.d.ts +4 -3
  5. package/dist/types/src/api/analytic_events/analyticKeys.d.ts +31 -30
  6. package/dist/types/src/api/analytic_events/index.d.ts +1 -1
  7. package/dist/types/src/api/analytic_events/payloadFactories.d.ts +8 -8
  8. package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +1 -1
  9. package/dist/types/src/components/RootComponent.d.ts +3 -3
  10. package/dist/types/src/components/ShortestDistanceComponent.d.ts +1 -1
  11. package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +1 -0
  12. package/dist/types/src/components/ToolBarComponent/ToolbarButton/SplitButton.d.ts +7 -5
  13. package/dist/types/src/components/WindowModelObjectComponent/VirtualizedList.d.ts +1 -1
  14. package/dist/types/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +3 -3
  15. package/dist/types/src/components/WindowTreeComponent.d.ts +0 -1
  16. package/dist/types/src/components/WindowTreeViewComponent.d.ts +2 -3
  17. package/dist/types/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +3 -3
  18. package/dist/types/src/controllers/ApiController/ApiController.d.ts +2 -2
  19. package/dist/types/src/controllers/CacheController.d.ts +3 -2
  20. package/dist/types/src/controllers/DatabaseController.d.ts +2 -1
  21. package/dist/types/src/controllers/DomController/DomController.d.ts +0 -1
  22. package/dist/types/src/controllers/PubSubController.d.ts +3 -1
  23. package/dist/types/src/controllers/RenderController.d.ts +18 -17
  24. package/dist/types/src/controllers/RenderControllerProxy.d.ts +13 -11
  25. package/dist/types/src/controllers/RenderControllerWorker.d.ts +1 -0
  26. package/dist/types/src/controllers/RenderStatusType.d.ts +4 -4
  27. package/dist/types/src/controllers/__tests__/fixtures.d.ts +4 -1
  28. package/dist/types/src/measuring/DistanceLabel.d.ts +1 -0
  29. package/dist/types/src/measuring/MeasurementManager.d.ts +5 -4
  30. package/dist/types/src/measuring/PointToPointController.d.ts +6 -0
  31. package/dist/types/src/measuring/PointToPointManager.d.ts +14 -1
  32. package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +5 -4
  33. package/dist/types/src/measuring/createPointToPointLineDrawingDebugGui.d.ts +0 -5
  34. package/dist/types/src/messages.d.ts +7 -7
  35. package/dist/types/src/navigation/DefaultControl.d.ts +0 -11
  36. package/dist/types/src/navigation/Orbit/calcNewPosition.d.ts +0 -1
  37. package/dist/types/src/navigation/Orbit/getQuatToCylinderSpace.d.ts +0 -1
  38. package/dist/types/src/navigation/__tests__/FixedOrbitControl.test.d.ts +1 -0
  39. package/dist/types/src/navigation/__tests__/ZoomControl.test.d.ts +1 -0
  40. package/dist/types/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +1 -1
  41. package/dist/types/src/procoregl/HiddenNodeServices/rangify.d.ts +2 -8
  42. package/dist/types/src/procoregl/Models/Models.d.ts +3 -1
  43. package/dist/types/src/procoregl/PartitionsRenderer.d.ts +3 -3
  44. package/dist/types/src/procoregl/ProcoreGeometries/ProcoreArrow.d.ts +0 -1
  45. package/dist/types/src/procoregl/ProcoreGeometries/StubbyArrow.d.ts +0 -1
  46. package/dist/types/src/procoregl/SectionDisplay/getCursorDirectionFromCameraToPlane.d.ts +1 -2
  47. package/dist/types/src/pwfreader/PWF.d.ts +1 -0
  48. package/dist/types/src/pwfreader/PWFProxy.d.ts +4 -1
  49. package/dist/types/src/pwfreader/v1/PWFV1.d.ts +6 -1
  50. package/dist/types/src/pwfreader/v1/standard/MeshServices.d.ts +1 -0
  51. package/dist/types/src/pwfreader/v1/streaming/MeshData.d.ts +1 -0
  52. package/dist/types/src/pwfreader/v1/streaming/OPFSFile/MainThreadSyncAccessHandleFallback.d.ts +14 -0
  53. package/dist/types/src/pwfreader/v1/streaming/OPFSFile/OPFSFile.d.ts +12 -0
  54. package/dist/types/src/pwfreader/v1/streaming/OPFSFile/index.d.ts +1 -0
  55. package/dist/types/src/pwfreader/v1/streaming/PartitionProxy.d.ts +7 -2
  56. package/dist/types/src/pwfreader/v1/streaming/StreamedMeshServices.d.ts +18 -2
  57. package/dist/types/src/pwfreader/v2/PWFV2.d.ts +1 -0
  58. package/dist/types/src/pwfreader/v2/standard/MeshServices.d.ts +1 -0
  59. package/dist/types/src/pwfreader/v2/streaming/StreamedMeshServices.d.ts +1 -0
  60. package/dist/types/src/sdk.d.ts +1 -0
  61. package/dist/types/src/sectioning/utils.d.ts +0 -1
  62. package/dist/types/src/threeShaking.d.ts +47 -47
  63. package/dist/types/src/types/Palette.d.ts +1 -1
  64. package/dist/types/src/types/WebviewerOptions.d.ts +8 -3
  65. package/dist/types/src/unit_util.d.ts +3 -3
  66. package/dist/types/src/utils/Benchmark/MainThreadBenchmark.d.ts +2 -2
  67. package/dist/types/src/utils/DebugGui/MainThreadDebugGui.d.ts +1 -1
  68. package/dist/types/src/utils/DebugGui/WorkerDebugGui.d.ts +1 -1
  69. package/dist/types/src/utils/ZoomExtents/__tests__/computePoseToFitBoxFromPosition.test.d.ts +0 -1
  70. package/dist/types/src/utils/ZoomExtents/computeRefinedBbox.d.ts +2 -3
  71. package/dist/types/src/utils/ZoomExtents/utils.d.ts +0 -1
  72. package/dist/types/src/utils/i18n.d.ts +1 -1
  73. package/dist/types/src/validateOptions/checkTools.d.ts +1 -1
  74. package/package.json +1 -1
@@ -10,8 +10,8 @@ import { SectionDataAutodeskFormat, SectionDataProcoreFormat } from './sectionin
10
10
  import type { Viewpoint, Visibility } from './api/types/Viewpoint';
11
11
  import type { CssColor } from './components/Markup/SvgRenderer';
12
12
  import { RenderMode } from './utils/constants';
13
- import { PointToPointManager } from './measuring';
14
13
  import { Uom, DisplayUnit } from './unit_util';
14
+ import { MeasureMode } from './measuring/MeasurementManager';
15
15
  export type ResourceDiscriminator = {
16
16
  fileExtractionId: number;
17
17
  } | {
@@ -19,7 +19,6 @@ export type ResourceDiscriminator = {
19
19
  };
20
20
  export declare class Webviewer {
21
21
  options: Options;
22
- pointToPointManager: PointToPointManager;
23
22
  private readonly measurementRenderer;
24
23
  private readonly measurementManager;
25
24
  static readonly tools: {
@@ -216,7 +215,9 @@ export declare class Webviewer {
216
215
  deselectObjects: (objectIds: number[], objectTreeName?: string) => Promise<boolean>;
217
216
  selectAllObjects: (objectTreeName?: string) => Promise<boolean>;
218
217
  getSelectedObjects: () => Promise<number[]>;
219
- setMeasurement: (enable: boolean) => void;
218
+ setMeasurement: (enable: boolean, options?: {
219
+ measurementMode?: MeasureMode;
220
+ }) => void;
220
221
  setObjectColor: (palettes: PaletteParams[], options?: {
221
222
  resourceId?: number;
222
223
  }) => void;
@@ -1,22 +1,22 @@
1
1
  export declare const model: {
2
- readonly initialization: `${string}.initialization`;
2
+ readonly initialization: "ux.web.bim_viewer.model.initialization";
3
3
  };
4
4
  export declare const bimToolbars: {
5
- readonly home_tapped: `${string}.home_tapped`;
6
- readonly settings_tapped: `${string}.settings_tapped`;
7
- readonly views_tapped: `${string}.views_tapped`;
8
- readonly objects_tapped: `${string}.objects_tapped`;
9
- readonly properties_tapped: `${string}.properties_tapped`;
10
- readonly measure_tapped: `${string}.measure_tapped`;
11
- readonly section_box_tapped: `${string}.section_box_tapped`;
12
- readonly xray_tapped: `${string}.xray_tapped`;
13
- readonly navigation_default_tapped: `${string}.navigation_default_tapped`;
14
- readonly navigation_orbit_tapped: `${string}.navigation_orbit_tapped`;
15
- readonly navigation_fly_tapped: `${string}.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: `${string}.download_completed`;
19
- readonly initialization: `${string}.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: `${string}.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: `${string}.enabled`;
82
- readonly disabled: `${string}.disabled`;
83
- readonly optionbar_open: `${string}.optionbar_open`;
84
- readonly optionbar_close: `${string}.optionbar_close`;
85
- readonly display_planes: `${string}.display_planes`;
86
- readonly reset: `${string}.reset`;
87
- readonly zoom_extents: `${string}.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: `${string}.hide_all`;
126
- readonly select_all: `${string}.select_all`;
127
- readonly collapse_all: `${string}.collapse_all`;
128
- readonly searched: `${string}.searched`;
129
- readonly search_cleared: `${string}.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;
@@ -148,8 +148,9 @@ export declare const MEASUREMENT_ORIGIN: {
148
148
  readonly ESC: "esc";
149
149
  readonly HOTKEY: "hotkey";
150
150
  };
151
+ export type MeasurementOrigin = (typeof MEASUREMENT_ORIGIN)[keyof typeof MEASUREMENT_ORIGIN];
151
152
  export declare const measurements: {
152
- readonly enabled: `${string}.enabled`;
153
- readonly disabled: `${string}.disabled`;
154
- readonly completed: `${string}.completed`;
153
+ readonly enabled: "project.3d_models.measure.enabled";
154
+ readonly disabled: "project.3d_models.measure.disabled";
155
+ readonly completed: "project.3d_models.measure.completed";
155
156
  };
@@ -1,3 +1,3 @@
1
- export { model, clientLoadings, webviewers, bimToolbars, sectionBoxes, SECTION_BOX_ORIGIN, SectionBoxOrigin, SectionBoxDisplayPlanesPayload, bimObjects, BIM_OBJECT_ORIGIN, renderings, RENDER_MODE_ORIGIN, measurements, MEASUREMENT_ORIGIN, } from './analyticKeys';
1
+ export { model, clientLoadings, webviewers, bimToolbars, sectionBoxes, SECTION_BOX_ORIGIN, SectionBoxOrigin, SectionBoxDisplayPlanesPayload, bimObjects, BIM_OBJECT_ORIGIN, renderings, RENDER_MODE_ORIGIN, measurements, MEASUREMENT_ORIGIN, MeasurementOrigin, } from './analyticKeys';
2
2
  export { trackEvent } from './analyticEvents';
3
3
  export { AnalyticEventPayload } from './types/AnalyticEventPayload';
@@ -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 | undefined;
7
+ file_extraction_id?: string;
8
8
  }>;
9
9
  export declare const getInitializationEventPayload: (params: {
10
- streaming?: boolean | undefined;
11
- pwf?: PWF | undefined;
10
+ streaming?: boolean;
11
+ pwf?: PWF;
12
12
  startTimestamp: number;
13
13
  duration: number;
14
14
  success: boolean;
15
- stepFailed?: string | undefined;
16
- errorDescription?: string | undefined;
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 | undefined;
24
- totalPartitionsSizeCompressed?: number | undefined;
25
- numPartitions?: number | undefined;
23
+ totalPartitionsSize?: number;
24
+ totalPartitionsSizeCompressed?: number;
25
+ numPartitions?: number;
26
26
  }) => Promise<BimModelsDownloadCompletedPayload>;
27
27
  export declare const getEnvironmentTrackEventPayload: () => Promise<EnvironmentTrackEventPayload>;
@@ -55,4 +55,4 @@ export class ContextMenuComponent {
55
55
  removeContextMenuItems(ids: any): void;
56
56
  getSimilarObjects(): Promise<any>;
57
57
  }
58
- import { CONTEXT_MENU_ORIGIN } from "./helper";
58
+ import { CONTEXT_MENU_ORIGIN } from './helper';
@@ -22,6 +22,6 @@ export class RootComponent {
22
22
  GetWindowComponents(): any[];
23
23
  DisableComponent(component: any): void;
24
24
  }
25
- import { SectionToolDropdown } from "./DropdownComponent";
26
- import { StatsJS } from "./StatsJS";
27
- import { TooltipManager } from "./Tooltip";
25
+ import { SectionToolDropdown } from './DropdownComponent';
26
+ import { StatsJS } from './StatsJS';
27
+ import { TooltipManager } from './Tooltip';
@@ -31,4 +31,4 @@ export class ShortestDistanceComponent {
31
31
  onObjectMeasure(): Promise<void>;
32
32
  handleMeasureObjectsSelected(measureObjectMeshes: any): Promise<void>;
33
33
  }
34
- import { CursorTooltip } from "../measuring/CursorTooltip";
34
+ import { CursorTooltip } from '../measuring/CursorTooltip';
@@ -61,6 +61,7 @@ export class ToolBarComponent {
61
61
  createToolBarButton(tool: any, clickFunction?: null): HTMLDivElement;
62
62
  createDividerLine(id: any): HTMLDivElement;
63
63
  createOptionalTools(toolbar: any): void;
64
+ measureButton: any;
64
65
  onResize(): void;
65
66
  createNavTools(toolbar: any): void;
66
67
  onMeasurementToggled(data: any): void;
@@ -1,16 +1,17 @@
1
1
  import './styles.css';
2
2
  type FlyOutMenuItem = {
3
+ key: string;
3
4
  content: string;
4
5
  onMenuItemClick: () => void;
5
6
  cssIconClass: string;
6
7
  };
7
8
  export declare class SplitButton {
8
9
  element: HTMLElement;
9
- flyOutMenu: HTMLElement;
10
- button: HTMLElement;
11
- buttonIcon: HTMLElement;
12
- flyOutClickAreaButton: HTMLElement;
13
- flyOutMenuItemsElements: HTMLElement[];
10
+ private readonly flyOutMenu;
11
+ private readonly button;
12
+ private readonly buttonIcon;
13
+ private readonly flyOutClickAreaButton;
14
+ private readonly flyOutMenuItems;
14
15
  onFlyOutMenuOpen: () => void;
15
16
  onFlyOutMenuClose: () => void;
16
17
  constructor(params: {
@@ -25,6 +26,7 @@ export declare class SplitButton {
25
26
  };
26
27
  });
27
28
  private createFlyOutMenuItem;
29
+ setSelectedItem: (key: string) => void;
28
30
  private setMenuItemSelected;
29
31
  private flyOutClickZoneOnClick;
30
32
  private setFlyOutMenuVisibility;
@@ -22,7 +22,7 @@ export declare class VirtualizedList {
22
22
  private cleanup;
23
23
  add: (params: {
24
24
  ids: number[];
25
- startId?: number | undefined;
25
+ startId?: number;
26
26
  }) => void;
27
27
  remove: (ids: number[]) => void;
28
28
  refreshList: () => Promise<void>;
@@ -77,6 +77,6 @@ export class WindowModelObjectComponent {
77
77
  getSelectedObjectCount(): Promise<any>;
78
78
  getObjectTreeName(): "default" | "filtered";
79
79
  }
80
- import { VirtualizedList } from "./VirtualizedList";
81
- import { SearchInput } from "../SearchInput";
82
- import { WindowAlertComponent } from "../WindowAlertComponent";
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
- const VIEWPOINT: number;
37
- const VIEWFOLDER: number;
35
+ let VIEWPOINT: number;
36
+ let VIEWFOLDER: number;
38
37
  }
39
38
  }
@@ -38,6 +38,6 @@ export class WindowViewPropertiesComponent {
38
38
  updateCurrentNodeProperties(nodeId: any): void;
39
39
  fetchObjectProperties(): void;
40
40
  }
41
- import { SearchInput } from "../SearchInput";
42
- import { PropertiesCardComponent } from "../PropertiesCardComponent";
43
- import { TabsComponent } from "../TabsComponent";
41
+ import { SearchInput } from '../SearchInput';
42
+ import { PropertiesCardComponent } from '../PropertiesCardComponent';
43
+ import { TabsComponent } from '../TabsComponent';
@@ -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 "../../api/bim_model_revisions";
26
- import * as FileExtractions from "../../api/bim_file_extractions";
25
+ import * as ModelRevisions from '../../api/bim_model_revisions';
26
+ import * as FileExtractions from '../../api/bim_file_extractions';
@@ -14,8 +14,9 @@ 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['id'], geometryBundle: GeometryBundle) => Promise<void>;
18
- const updateAndPurgeModelRevision: (modelId: Model['id'], modelRevisionId: ModelRevision['id'], geometryBundle: GeometryBundle) => Promise<void>;
17
+ const clear: () => Promise<boolean>;
18
+ const updateAndPurgeFileVersion: (fileVersion: FileVersion, propertyFileId: PropertiesFile["id"], geometryBundle: GeometryBundle) => Promise<void>;
19
+ const updateAndPurgeModelRevision: (modelId: Model["id"], modelRevisionId: ModelRevision["id"], geometryBundle: GeometryBundle) => Promise<void>;
19
20
  const removeModel: (options: any) => Promise<boolean>;
20
21
  const hasModel: (geometryBundle: GeometryBundle) => Promise<boolean>;
21
22
  }
@@ -9,9 +9,10 @@ export class DatabaseController {
9
9
  getValue(objectStoreName: any, key: any): Promise<any>;
10
10
  updateValue(objectStoreName: any, key: any, value: any): Promise<any>;
11
11
  deleteValue(objectStoreName: any, key: any): Promise<any>;
12
+ clearObjectStore(objectStoreName: any): Promise<any>;
12
13
  }
13
14
  export namespace DatabaseController {
14
- const OBJECT_STORES: Readonly<{
15
+ let OBJECT_STORES: Readonly<{
15
16
  ModelVersion: "model_version";
16
17
  Settings: "project_settings";
17
18
  BrowserSettings: "browser_settings";
@@ -20,7 +20,6 @@ export class DomController {
20
20
  currentSnapshotPromise: any;
21
21
  buildSnapshotDataUrl({ color, aspectRatio, }?: {
22
22
  color?: string | undefined;
23
- aspectRatio: any;
24
23
  }): Promise<string>;
25
24
  dispose(): void;
26
25
  }
@@ -6,7 +6,7 @@ export class PubSubController {
6
6
  clear: () => void;
7
7
  }
8
8
  export namespace PubSubController {
9
- const EVENTS: Readonly<{
9
+ let EVENTS: Readonly<{
10
10
  animate: "animate";
11
11
  appResize: "appResize";
12
12
  appStart: "appStart";
@@ -71,6 +71,7 @@ export namespace PubSubController {
71
71
  objectTreeUpdated: "objectTreeUpdated";
72
72
  objectUnhide: "objectUnhide";
73
73
  optionsChanged: "optionsChanged";
74
+ allPartitionsDownloadComplete: "allPartitionsDownloadComplete";
74
75
  projectSettingsLoaded: "projectSettingsLoaded";
75
76
  projectSettingsUpdated: "projectSettingsUpdated";
76
77
  propertiesReady: "propertiesReady";
@@ -99,6 +100,7 @@ export namespace PubSubController {
99
100
  undo: "undo";
100
101
  updatePivot: "updatePivot";
101
102
  windowClose: "windowClose";
103
+ wheel: "wheel";
102
104
  windowComponentChanged: "windowComponentChanged";
103
105
  windowComponentShouldClose: "windowComponentShouldClose";
104
106
  windowComponentShouldOpen: "windowComponentShouldOpen";
@@ -56,7 +56,7 @@ export class RenderController {
56
56
  parsePwfNodes(): import("./Bootstrapper").BootstrapperResult;
57
57
  parsePwfMeshnodes(): import("./Bootstrapper").BootstrapperResult;
58
58
  parsePwfMeshes(): void;
59
- initMeshServices(): void;
59
+ initMeshServices(): import("./Bootstrapper").BootstrapperResult;
60
60
  initNodeServices(): void;
61
61
  initMeshnodeServices(): void;
62
62
  initNodeTree(): import("./Bootstrapper").BootstrapperResult;
@@ -185,6 +185,7 @@ export class RenderController {
185
185
  handleEmptySpaceClick(): void;
186
186
  onSingleClick(evt: any, rightClick?: boolean): void;
187
187
  onMouseMove(evt: any): void;
188
+ onWheel(evt: any): void;
188
189
  setCanvasSelectionEnabled(enabled: any): void;
189
190
  getSelectedSubtree(meshnodeIndex: any): {
190
191
  objectId: number;
@@ -197,7 +198,7 @@ export class RenderController {
197
198
  hidden?: boolean | undefined;
198
199
  selected?: boolean | undefined;
199
200
  partiallySelected?: boolean | undefined;
200
- parentId?: number | undefined;
201
+ parentId?: number;
201
202
  }[];
202
203
  };
203
204
  onDoubleClick(evt: any): void;
@@ -391,9 +392,9 @@ export class RenderController {
391
392
  }
392
393
  export namespace RenderController {
393
394
  namespace NullSelectedSubtree {
394
- const objectId: number;
395
- const selectionContainerId: number;
396
- const ancestry: never[];
395
+ let objectId: number;
396
+ let selectionContainerId: number;
397
+ let ancestry: never[];
397
398
  }
398
399
  function createCameras(options: any): {
399
400
  default: import("three").PerspectiveCamera;
@@ -415,15 +416,15 @@ export namespace RenderController {
415
416
  };
416
417
  function sanitizeOptions(options: any): any;
417
418
  }
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";
419
+ import { StatusTrackingController } from './StatusTrackingController';
420
+ import { SectionController } from '../sectioning';
421
+ import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
422
+ import { ProcoreRenderPass } from '../procoregl/ProcoreRenderPass';
423
+ import { SectionRenderPass } from '../procoregl/SectionDisplay';
424
+ import { PickingController } from '../picking/PickingController';
425
+ import { PointToPointController } from '../measuring';
426
+ import { NavigationModel } from '../navigation/NavigationModel';
427
+ import { Models } from '../procoregl/Models';
428
+ import { ShortestDistanceController } from './ShortestDistanceController';
429
+ import { ColorServices } from '../procoregl/ColorServices';
430
+ import { ObjectTree } from '../procoregl/ObjectTree';
@@ -28,6 +28,7 @@ export class RenderControllerProxy {
28
28
  logInitializationTimes: any;
29
29
  projectId: any;
30
30
  baseUrl: any;
31
+ featureFlags: any;
31
32
  nodeUrl: any;
32
33
  meshnodeUrl: any;
33
34
  meshUrl: any;
@@ -127,6 +128,7 @@ export class RenderControllerProxy {
127
128
  };
128
129
  onSingleClick(...params: any[]): void | Promise<any>;
129
130
  onMouseMove(...params: any[]): void | Promise<any>;
131
+ onWheel(...params: any[]): void | Promise<any>;
130
132
  resizeScene(...params: any[]): void;
131
133
  onDoubleClick(...params: any[]): void | Promise<any>;
132
134
  onRightClick(...params: any[]): void | Promise<any>;
@@ -281,16 +283,16 @@ export class RenderControllerProxy {
281
283
  }
282
284
  export namespace RenderControllerProxy {
283
285
  namespace NAVIGATION_MODE {
284
- const NONE: number;
285
- const GENERAL: number;
286
- const WALK: number;
287
- const ORBIT: number;
288
- const MEASURE: number;
286
+ let NONE: number;
287
+ let GENERAL: number;
288
+ let WALK: number;
289
+ let ORBIT: number;
290
+ let MEASURE: number;
289
291
  }
290
292
  }
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";
293
+ import { PubSubController } from './PubSubController';
294
+ import { NavigationManager } from '../navigation/NavigationManager';
295
+ import { Hotkeys } from '../navigation/Hotkeys';
296
+ import { RenderController } from './RenderController';
297
+ import { RenderControllerWorker } from './RenderControllerWorker';
298
+ import { PWFCache } from '../pwfreader/PWFCache';
@@ -40,6 +40,7 @@ export class RenderControllerWorker {
40
40
  getContextMenuData(evt: any): Promise<any>;
41
41
  onSingleClick(evt: any): Promise<any>;
42
42
  onMouseMove(evt: any): Promise<any>;
43
+ onWheel(evt: any): Promise<any>;
43
44
  resizeScene(...params: any[]): Promise<any>;
44
45
  onDoubleClick(evt: any): Promise<any>;
45
46
  onRightClick(evt: any): Promise<any>;
@@ -1,6 +1,6 @@
1
1
  export namespace RenderStatusType {
2
- const MOVE: number;
3
- const VIEW: number;
4
- const SECTION: number;
5
- const HIDE: number;
2
+ let MOVE: number;
3
+ let VIEW: number;
4
+ let SECTION: number;
5
+ let HIDE: number;
6
6
  }
@@ -1,2 +1,5 @@
1
- import { PublicNode } from '../../types/PublicNode';
1
+ import type { MeshnodeObject } from '../../pwfreader/PWFTypes';
2
+ import type { PublicNode } from '../../types/PublicNode';
2
3
  export declare const rootNode: PublicNode;
4
+ export declare const MESHNODE_WITH_INDEX_1: MeshnodeObject;
5
+ export declare const MESHNODE_WITH_NODE_ID_13: MeshnodeObject;
@@ -1,6 +1,7 @@
1
1
  import { Vector3 } from '../types/Math';
2
2
  import type { SettingsController } from '../controllers/SettingsController';
3
3
  import { CssColor } from '../components/Markup/SvgRenderer';
4
+ import './styles.css';
4
5
  export type DistanceLine = {
5
6
  start: Vector3;
6
7
  end: Vector3;
@@ -1,6 +1,7 @@
1
1
  import { MeasurementInterface } from './MeasurementInterface';
2
2
  import { Vector3 } from '../types/Math';
3
3
  import type { ApiController } from '../controllers/ApiController';
4
+ import { MeasurementOrigin } from '../api/analytic_events';
4
5
  export declare const MEASURE_MODES: {
5
6
  POINT_TO_POINT: string;
6
7
  SHORTEST_DISTANCE: string;
@@ -20,16 +21,16 @@ export declare class MeasurementManager {
20
21
  });
21
22
  setGlobalOffset(params: Vector3): void;
22
23
  setMeasurementEnabled(params: {
23
- measurementMode: MeasureMode;
24
+ measurementMode?: MeasureMode;
24
25
  enable: boolean;
25
- origin: string;
26
+ origin: MeasurementOrigin;
26
27
  }): void;
27
28
  toggleMeasurement(params: {
28
29
  measurementMode: MeasureMode;
29
- origin: string;
30
+ origin: MeasurementOrigin;
30
31
  }): void;
31
32
  toggleCurrentMeasurement(params: {
32
- origin: string;
33
+ origin: MeasurementOrigin;
33
34
  }): void;
34
35
  handleKeydown(curKey: number): void;
35
36
  private handleESC;
@@ -2,6 +2,7 @@ import type { PickingController } from '../picking/PickingController';
2
2
  import type { Models } from '../procoregl/Models';
3
3
  import type { SnapType } from './MeasureToolUtils';
4
4
  import type { ViewerRenderer } from '../procoregl/ViewerRenderer';
5
+ import type { RenderController } from '../controllers/RenderController';
5
6
  import { Vector3 } from '../types/Math';
6
7
  export type WorldIntersectionSnapResult = {
7
8
  intersection: Vector3;
@@ -18,6 +19,7 @@ export type WorldIntersectionSnapResult = {
18
19
  meshnodeIndex: number;
19
20
  cursorRotation: Vector3;
20
21
  snapScreenPosition: Vector3;
22
+ relatedMeshnodeIndex?: number | null;
21
23
  };
22
24
  export declare class PointToPointController {
23
25
  private readonly pickingController;
@@ -31,8 +33,10 @@ export declare class PointToPointController {
31
33
  private lastWorldIntersectionSnapResult;
32
34
  private readonly debugGui;
33
35
  private readonly viewerRenderer;
36
+ private renderController;
34
37
  constructor(params: {
35
38
  pickingController: PickingController;
39
+ renderController: RenderController;
36
40
  models: Models;
37
41
  camera: THREE.PerspectiveCamera;
38
42
  globalOffset: THREE.Vector3;
@@ -42,6 +46,8 @@ export declare class PointToPointController {
42
46
  set enabled(value: boolean);
43
47
  handleMouseClick(): void;
44
48
  handleMouseMove(event: MouseEvent): void;
49
+ handleWheel(event: WheelEvent): Promise<void>;
50
+ private computeIntersectionSnapResult;
45
51
  private getWorldIntersectionSnapResult;
46
52
  private publishIntersectionSnapResult;
47
53
  private getMeshTopology;
@@ -24,6 +24,11 @@ export declare class PointToPointManager implements MeasurementInterface {
24
24
  private readonly locale;
25
25
  private cursorTooltip;
26
26
  private featureTooltip;
27
+ private surfaceCursor;
28
+ private edgeCursor;
29
+ private midPointCursor;
30
+ private endPointCursor;
31
+ private dom;
27
32
  constructor(params: {
28
33
  apiController: ApiController;
29
34
  renderControllerProxy: RenderControllerProxy;
@@ -34,6 +39,8 @@ export declare class PointToPointManager implements MeasurementInterface {
34
39
  });
35
40
  setGlobalOffset(params: Vector3): void;
36
41
  getGlobalOffset(): THREE.Vector3;
42
+ private onMouseMove;
43
+ private onWheel;
37
44
  getMeasurementProgress(): MeasurementState;
38
45
  private onCameraUpdated;
39
46
  private onNavigationChanged;
@@ -47,7 +54,13 @@ export declare class PointToPointManager implements MeasurementInterface {
47
54
  enable: boolean;
48
55
  }): Promise<void>;
49
56
  private clearDisplayElements;
50
- private removeCursors;
57
+ private removeTooltips;
51
58
  private setCameraAndNavigationControls;
52
59
  private updateSvg;
60
+ private updateCursorPosition;
61
+ private updatePointToPointCursorSize;
62
+ private managePointToPointCursorElements;
63
+ private onMeasurementObjectEnter;
64
+ private updatePointToPointCursor;
65
+ private resetCursor;
53
66
  }
@@ -1,9 +1,5 @@
1
1
  import type { WorldIntersectionSnapResult } from '../PointToPointController';
2
2
  export declare const matrixWorld: import("three").Matrix4;
3
- export declare const measurementObjectEnterObject1Payload: WorldIntersectionSnapResult;
4
- export declare const measurementObjectEnterTooComplexPayload: WorldIntersectionSnapResult;
5
- export declare const measurementObjectEnterObject2Payload: WorldIntersectionSnapResult;
6
- export declare const measurementObjectMoveMidpointPayload: WorldIntersectionSnapResult;
7
3
  export declare const measurementObjectLeaveMoveIntoObject2: {
8
4
  meshnodeIndex: number;
9
5
  relatedMeshnodeIndex: number;
@@ -26,7 +22,12 @@ export declare const measurementObjectClickPayloadSecondAnchor: {
26
22
  z: number;
27
23
  };
28
24
  };
25
+ export declare const measurementObjectEnterObject1Payload: WorldIntersectionSnapResult;
26
+ export declare const measurementObjectEnterTooComplexPayload: WorldIntersectionSnapResult;
27
+ export declare const measurementObjectEnterObject2Payload: WorldIntersectionSnapResult;
28
+ export declare const measurementObjectMoveMidpointPayload: WorldIntersectionSnapResult;
29
29
  export declare const measurementObjectMovePayload: WorldIntersectionSnapResult;
30
+ export declare const measurementObjectMoveComplexMeshPayload: WorldIntersectionSnapResult;
30
31
  export declare const svgDataObjectOutline: {
31
32
  lines: {
32
33
  stroke: string;