@procore/bim-webviewer-sdk 7.9.0 → 8.0.0-BIM-2909.1
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 +23 -0
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/public/devEnvironmentScripts/authorization.d.ts +9 -0
- package/dist/public/devEnvironmentScripts/initializeViewer.d.ts +7 -0
- package/dist/public/devEnvironmentScripts/main.d.ts +4 -0
- package/dist/public/devEnvironmentScripts/memoryProfiler.d.ts +1 -0
- package/dist/public/devEnvironmentScripts/stats.d.ts +18 -0
- package/dist/src/Webviewer/Webviewer.d.ts +245 -0
- package/dist/src/api/HttpClient.d.ts +12 -0
- package/dist/src/api/bim_file_extractions.d.ts +36 -0
- package/dist/src/api/bim_model_revision_viewpoints.d.ts +4 -0
- package/dist/src/api/bim_model_revisions.d.ts +20 -0
- package/dist/src/api/bim_view_folders.d.ts +4 -0
- package/dist/src/api/cacheHandler.d.ts +2 -0
- package/dist/src/api/types/BimObject.d.ts +10 -0
- package/dist/src/api/types/FileExtraction.d.ts +40 -0
- package/dist/src/api/types/Model.d.ts +6 -0
- package/dist/src/api/types/Project.d.ts +3 -0
- package/dist/src/components/CoachmarkManagerComponent/CoachmarkComponent.d.ts +12 -0
- package/dist/src/components/CoachmarkManagerComponent/CoachmarkFovComponent.d.ts +8 -0
- package/dist/src/components/CoachmarkManagerComponent/CoachmarkHiddenComponent.d.ts +10 -0
- package/dist/src/components/CoachmarkManagerComponent/CoachmarkManagerComponent.d.ts +6 -0
- package/dist/src/components/CoachmarkManagerComponent/CoachmarkSectioningComponent.d.ts +9 -0
- package/dist/src/components/CoachmarkManagerComponent/Coachmarks.d.ts +16 -0
- package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkComponent.test.d.ts +1 -0
- package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkFovComponent.test.d.ts +1 -0
- package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkHiddenComponent.test.d.ts +1 -0
- package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkManagerComponent.test.d.ts +1 -0
- package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkSectioningComponent.test.d.ts +1 -0
- package/dist/src/components/CoachmarkManagerComponent/index.d.ts +1 -0
- package/dist/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +57 -0
- package/dist/src/components/ContextMenuComponent/__tests__/helper.test.d.ts +1 -0
- package/dist/src/components/ContextMenuComponent/helper.d.ts +13 -0
- package/dist/src/components/ContextMenuComponent/index.d.ts +2 -0
- package/dist/src/components/DisabledPropertiesState.d.ts +4 -0
- package/dist/src/components/DropdownComponent/Dropdown.d.ts +22 -0
- package/dist/src/components/DropdownComponent/MenuOptions/MenuOption.d.ts +14 -0
- package/dist/src/components/DropdownComponent/MenuOptions/MenuOptionResetPlane.d.ts +9 -0
- package/dist/src/components/DropdownComponent/MenuOptions/MenuOptionTooltip.d.ts +4 -0
- package/dist/src/components/DropdownComponent/MenuOptions/MenuOptionVisible.d.ts +7 -0
- package/dist/src/components/DropdownComponent/MenuOptions/__tests__/MenuOption.test.d.ts +1 -0
- package/dist/src/components/DropdownComponent/MenuOptions/__tests__/MenuOptionResetPlane.test.d.ts +1 -0
- package/dist/src/components/DropdownComponent/MenuOptions/__tests__/MenuOptionVisible.test.d.ts +1 -0
- package/dist/src/components/DropdownComponent/SectionToolDropdown/SectionToolDropdown.d.ts +17 -0
- package/dist/src/components/DropdownComponent/SectionToolDropdown/__tests__/SectionToolDropdown.test.d.ts +1 -0
- package/dist/src/components/DropdownComponent/__tests__/Dropdown.test.d.ts +1 -0
- package/dist/src/components/DropdownComponent/index.d.ts +4 -0
- package/dist/src/components/FloorPlanComponent.d.ts +85 -0
- package/dist/src/components/LoadingComponent/LoadingComponent.d.ts +32 -0
- package/dist/src/components/LoadingComponent/index.d.ts +1 -0
- package/dist/src/components/Markup.d.ts +31 -0
- package/dist/src/components/PropertiesCardComponent/PropertiesCardComponent.d.ts +33 -0
- package/dist/src/components/PropertiesCardComponent/index.d.ts +1 -0
- package/dist/src/components/RootComponent.d.ts +19 -0
- package/dist/src/components/SearchInput/SearchInput.d.ts +29 -0
- package/dist/src/components/SearchInput/__tests__/SearchInput.test.d.ts +1 -0
- package/dist/src/components/SearchInput/index.d.ts +1 -0
- package/dist/src/components/ShortestDistanceComponent.d.ts +49 -0
- package/dist/src/components/TabsComponent/TabsComponent.d.ts +17 -0
- package/dist/src/components/TabsComponent/index.d.ts +1 -0
- package/dist/src/components/ToolBarComponent.d.ts +41 -0
- package/dist/src/components/ToolBarTools.d.ts +16 -0
- package/dist/src/components/ToolEnum.d.ts +4 -0
- package/dist/src/components/ToolStatus.d.ts +22 -0
- package/dist/src/components/WindowAlertComponent.d.ts +7 -0
- package/dist/src/components/WindowComponent.d.ts +73 -0
- package/dist/src/components/WindowModelObjectComponent/VirtualizedList.d.ts +33 -0
- package/dist/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +91 -0
- package/dist/src/components/WindowModelObjectComponent/__tests__/VirtualizedList.test.d.ts +1 -0
- package/dist/src/components/WindowModelObjectComponent/__tests__/helper.test.d.ts +1 -0
- package/dist/src/components/WindowModelObjectComponent/helper.d.ts +5 -0
- package/dist/src/components/WindowModelObjectComponent/index.d.ts +2 -0
- package/dist/src/components/WindowSettingsComponent.d.ts +8 -0
- package/dist/src/components/WindowTreeComponent.d.ts +9 -0
- package/dist/src/components/WindowTreeViewComponent.d.ts +38 -0
- package/dist/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +35 -0
- package/dist/src/components/WindowViewPropertiesComponent/escapeRegexpSpecialChars.d.ts +1 -0
- package/dist/src/components/WindowViewPropertiesComponent/filterProperties.d.ts +2 -0
- package/dist/src/components/WindowViewPropertiesComponent/highlightSearchTerm.d.ts +1 -0
- package/dist/src/components/WindowViewPropertiesComponent/index.d.ts +1 -0
- package/dist/src/controllers/ApiController/ApiController.d.ts +25 -0
- package/dist/src/controllers/ApiController/__tests__/ApiController.test.d.ts +1 -0
- package/dist/src/controllers/ApiController/index.d.ts +1 -0
- package/dist/src/controllers/BrowserSettingsController.d.ts +8 -0
- package/dist/src/controllers/CacheController.d.ts +21 -0
- package/dist/src/controllers/DatabaseController.d.ts +20 -0
- package/dist/src/controllers/DomController.d.ts +21 -0
- package/dist/src/controllers/PubSubController.d.ts +95 -0
- package/dist/src/controllers/RenderController.d.ts +394 -0
- package/dist/src/controllers/RenderStatusType.d.ts +6 -0
- package/dist/src/controllers/RenderWrapperController.d.ts +290 -0
- package/dist/src/controllers/SettingsController.d.ts +14 -0
- package/dist/src/controllers/StatusTrackingController.d.ts +25 -0
- package/dist/src/controllers/WorkerRenderController.d.ts +113 -0
- package/dist/src/messages.d.ts +18 -0
- package/dist/src/navigation/DefaultControl.d.ts +21 -0
- package/dist/src/navigation/FixedOrbitControl.d.ts +17 -0
- package/dist/src/navigation/FixedZoomControl.d.ts +9 -0
- package/dist/src/navigation/FlyControl.d.ts +16 -0
- package/dist/src/navigation/Hotkeys.d.ts +15 -0
- package/dist/src/navigation/NavigationManager.d.ts +42 -0
- package/dist/src/navigation/NavigationModel.d.ts +81 -0
- package/dist/src/navigation/NavigationModes.d.ts +9 -0
- package/dist/src/navigation/Orbit/__tests__/TestSnapshot.d.ts +5 -0
- package/dist/src/navigation/Orbit/__tests__/calcNewPosition.snapshot.d.ts +5 -0
- package/dist/src/navigation/Orbit/__tests__/calcNewPosition.test.d.ts +1 -0
- package/dist/src/navigation/Orbit/__tests__/calcThetaRanges.snapshot.d.ts +5 -0
- package/dist/src/navigation/Orbit/__tests__/calcThetaRanges.test.d.ts +1 -0
- package/dist/src/navigation/Orbit/calcNewPosition.d.ts +9 -0
- package/dist/src/navigation/Orbit/calcThetaRanges.d.ts +9 -0
- package/dist/src/navigation/Orbit/getQuatToCylinderSpace.d.ts +11 -0
- package/dist/src/navigation/Orbit/index.d.ts +3 -0
- package/dist/src/navigation/Orbit/log.d.ts +1 -0
- package/dist/src/navigation/OrbitControl.d.ts +15 -0
- package/dist/src/navigation/PanControl.d.ts +19 -0
- package/dist/src/navigation/PitchControl.d.ts +5 -0
- package/dist/src/navigation/StrafeControl.d.ts +13 -0
- package/dist/src/navigation/WASDEQAndArrowControl.d.ts +8 -0
- package/dist/src/navigation/ZoomControl.d.ts +8 -0
- package/dist/src/navigation/__tests__/NavigationManager.test.d.ts +1 -0
- package/dist/src/navigation/index.d.ts +1 -0
- package/dist/src/navigation/types.d.ts +15 -0
- package/dist/src/procoregl/BVHTree.d.ts +7 -0
- package/dist/src/procoregl/ColorServices/ColorServices.d.ts +29 -0
- package/dist/src/procoregl/ColorServices/__tests__/ColorService.test.d.ts +1 -0
- package/dist/src/procoregl/ColorServices/index.d.ts +1 -0
- package/dist/src/procoregl/GeoNode.d.ts +7 -0
- package/dist/src/procoregl/GeometryFactory.d.ts +22 -0
- package/dist/src/procoregl/GetNextRenderingStage.d.ts +15 -0
- package/dist/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +26 -0
- package/dist/src/procoregl/HiddenNodeServices/__tests__/HiddenNodeServices.test.d.ts +1 -0
- package/dist/src/procoregl/HiddenNodeServices/index.d.ts +1 -0
- package/dist/src/procoregl/KDTree.d.ts +27 -0
- package/dist/src/procoregl/KDTreeNode.d.ts +25 -0
- package/dist/src/procoregl/MeshGeometry.d.ts +16 -0
- package/dist/src/procoregl/NodeConstants.d.ts +57 -0
- package/dist/src/procoregl/ObjectTree/ObjectTree.d.ts +27 -0
- package/dist/src/procoregl/ObjectTree/__tests__/ObjectTree.test.d.ts +1 -0
- package/dist/src/procoregl/ObjectTree/index.d.ts +1 -0
- package/dist/src/procoregl/ProcoreGeometries/ProcoreArrow.d.ts +2 -0
- package/dist/src/procoregl/ProcoreGeometries/StubbyArrow.d.ts +2 -0
- package/dist/src/procoregl/ProcoreRenderPass.d.ts +11 -0
- package/dist/src/procoregl/ProcoreRenderer.d.ts +92 -0
- package/dist/src/procoregl/RelevantMeshnodesSet/RelevantMeshnodesSet.d.ts +30 -0
- package/dist/src/procoregl/SectionBackFaceFragment.d.ts +1 -0
- package/dist/src/procoregl/SectionBackFaceVertex.d.ts +1 -0
- package/dist/src/procoregl/SectionDisplay/SectionBoxDisplay.d.ts +36 -0
- package/dist/src/procoregl/SectionDisplay/SectionControlArrow.d.ts +22 -0
- package/dist/src/procoregl/SectionDisplay/SectionRenderPass.d.ts +11 -0
- package/dist/src/procoregl/SectionDisplay/__tests__/SectionBoxDisplay.test.d.ts +1 -0
- package/dist/src/procoregl/SectionDisplay/__tests__/getCursorDirectionFromCameraToPlane.test.d.ts +1 -0
- package/dist/src/procoregl/SectionDisplay/createSectionBoxDisplayDebugGui.d.ts +2 -0
- package/dist/src/procoregl/SectionDisplay/getCursorDirectionFromCameraToPlane.d.ts +2 -0
- package/dist/src/procoregl/SectionDisplay/index.d.ts +1 -0
- package/dist/src/procoregl/SelectedNodeServices/SelectedNodeServices.d.ts +42 -0
- package/dist/src/procoregl/SelectedNodeServices/__tests__/SelectedNodeServices.test.d.ts +1 -0
- package/dist/src/procoregl/SelectedNodeServices/index.d.ts +1 -0
- package/dist/src/procoregl/StreamedGeometryFactory.d.ts +11 -0
- package/dist/src/procoregl/StreamedMeshGeometry.d.ts +14 -0
- package/dist/src/procoregl/WASMTree.d.ts +10 -0
- package/dist/src/procoregl/__tests__/GetNextRenderingStage.test.d.ts +1 -0
- package/dist/src/pwfreader/PWF.d.ts +78 -0
- package/dist/src/pwfreader/__tests__/PWF.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/PWFMesh.d.ts +8 -0
- package/dist/src/pwfreader/pwf/PWFMeshObject.d.ts +7 -0
- package/dist/src/pwfreader/pwf/PWFMeshnode.d.ts +13 -0
- package/dist/src/pwfreader/pwf/PWFMeshnodeObject.d.ts +11 -0
- package/dist/src/pwfreader/pwf/PWFModel.d.ts +14 -0
- package/dist/src/pwfreader/pwf/PWFModelParser.d.ts +12 -0
- package/dist/src/pwfreader/pwf/PWFNode.d.ts +11 -0
- package/dist/src/pwfreader/pwf/PWFNodeObject.d.ts +10 -0
- package/dist/src/pwfreader/pwf/__tests__/PWFModelParser.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/PWFMeshFactory.d.ts +7 -0
- package/dist/src/pwfreader/pwf/impl/PWFMeshnodeFactory.d.ts +7 -0
- package/dist/src/pwfreader/pwf/impl/PWFNodeFactory.d.ts +7 -0
- package/dist/src/pwfreader/pwf/impl/__tests__/PWFMeshFactory.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/__tests__/PWFMeshnodeFactory.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/__tests__/PWFNodeFactory.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/bufferReader/MeshBufferReader.d.ts +9 -0
- package/dist/src/pwfreader/pwf/impl/bufferReader/MeshnodeBufferReader.d.ts +15 -0
- package/dist/src/pwfreader/pwf/impl/bufferReader/NodeBufferReader.d.ts +11 -0
- package/dist/src/pwfreader/pwf/impl/bufferReader/__tests__/MeshBufferReader.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/bufferReader/__tests__/MeshnodeBufferReader.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/bufferReader/__tests__/NodeBufferReader.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfCached/PWFMeshCached.d.ts +17 -0
- package/dist/src/pwfreader/pwf/impl/pwfCached/PWFMeshnodeCached.d.ts +27 -0
- package/dist/src/pwfreader/pwf/impl/pwfCached/PWFNodeCached.d.ts +23 -0
- package/dist/src/pwfreader/pwf/impl/pwfCached/__tests__/PWFMeshCached.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfCached/__tests__/PWFMeshnodeCached.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfCached/__tests__/PWFNodeCached.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfNoCache/PWFMeshNoCache.d.ts +12 -0
- package/dist/src/pwfreader/pwf/impl/pwfNoCache/PWFMeshnodeNoCache.d.ts +18 -0
- package/dist/src/pwfreader/pwf/impl/pwfNoCache/PWFNodeNoCache.d.ts +15 -0
- package/dist/src/pwfreader/pwf/impl/pwfNoCache/__tests__/PWFMeshNoCache.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfNoCache/__tests__/PWFMeshnodeNoCache.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfNoCache/__tests__/PWFNodeNoCache.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfResolved/PWFMeshResolved.d.ts +18 -0
- package/dist/src/pwfreader/pwf/impl/pwfResolved/PWFMeshnodeResolved.d.ts +27 -0
- package/dist/src/pwfreader/pwf/impl/pwfResolved/PWFNodeResolved.d.ts +23 -0
- package/dist/src/pwfreader/pwf/impl/pwfResolved/__tests__/PWFMeshResolved.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfResolved/__tests__/PWFMeshnodeResolved.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/pwfResolved/__tests__/PWFNodeResolved.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/PWFMeshDataReader.d.ts +11 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/PWFMeshReader.d.ts +9 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/PWFMeshnodeReader.d.ts +11 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/PWFNodeReader.d.ts +10 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/Primitives.d.ts +14 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFMeshDataReader.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFMeshReader.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFMeshnodeReader.test.d.ts +1 -0
- package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFNodeReader.test.d.ts +1 -0
- package/dist/src/pwfreader/shared/Mesh.d.ts +16 -0
- package/dist/src/pwfreader/shared/MeshServices.d.ts +31 -0
- package/dist/src/pwfreader/shared/Meshnode.d.ts +50 -0
- package/dist/src/pwfreader/shared/MeshnodeServices.d.ts +15 -0
- package/dist/src/pwfreader/shared/Node.d.ts +50 -0
- package/dist/src/pwfreader/shared/NodeServices.d.ts +29 -0
- package/dist/src/pwfreader/shared/index.d.ts +3 -0
- package/dist/src/pwfreader/streaming/StreamedMeshServices.d.ts +22 -0
- package/dist/src/pwfreader/streaming/StreamedMeshnode.d.ts +17 -0
- package/dist/src/pwfreader/streaming/StreamedMeshnodeServices.d.ts +6 -0
- package/dist/src/pwfreader/streaming/index.d.ts +2 -0
- package/dist/src/pwfreader/v1/MeshServices.d.ts +3 -0
- package/dist/src/pwfreader/v1/MeshnodeServices.d.ts +3 -0
- package/dist/src/pwfreader/v1/NodeServices.d.ts +3 -0
- package/dist/src/pwfreader/v1/index.d.ts +3 -0
- package/dist/src/pwfreader/v2/Manifest.d.ts +11 -0
- package/dist/src/pwfreader/v2/MeshServices.d.ts +8 -0
- package/dist/src/pwfreader/v2/MeshnodeServices.d.ts +13 -0
- package/dist/src/pwfreader/v2/NodeServices.d.ts +8 -0
- package/dist/src/pwfreader/v2/index.d.ts +3 -0
- package/dist/src/sdk.d.ts +9 -0
- package/dist/src/sectioning/SectionController.d.ts +105 -0
- package/dist/src/sectioning/__tests__/SectionController.test.d.ts +1 -0
- package/dist/src/sectioning/__tests__/fixtures.d.ts +7 -0
- package/dist/src/sectioning/index.d.ts +1 -0
- package/dist/src/sectioning/utils.d.ts +7 -0
- package/dist/src/threeShaking.d.ts +96 -0
- package/dist/src/types/BcfCamera.d.ts +50 -0
- package/dist/src/types/EventPayload.d.ts +4 -0
- package/dist/src/types/Math.d.ts +17 -0
- package/dist/src/types/Palette.d.ts +18 -0
- package/dist/src/types/PublicNode.d.ts +15 -0
- package/dist/src/types/Utils.d.ts +1 -0
- package/dist/src/types/WebviewerOptions.d.ts +107 -0
- package/dist/src/unit_util.d.ts +29 -0
- package/dist/src/util.d.ts +105 -0
- package/dist/src/utils/ApiMetaData/ApiMetaData.d.ts +30 -0
- package/dist/src/utils/ApiMetaData/__tests__/ApiMetaData.test.d.ts +1 -0
- package/dist/src/utils/ApiMetaData/__tests__/mocks.d.ts +40 -0
- package/dist/src/utils/ApiMetaData/index.d.ts +7 -0
- package/dist/src/utils/Benchmark/Benchmark.d.ts +2 -0
- package/dist/src/utils/Benchmark/BenchmarkReporter.d.ts +11 -0
- package/dist/src/utils/Benchmark/MainThreadBenchmark.d.ts +20 -0
- package/dist/src/utils/Benchmark/TestRoutineRecorder.d.ts +24 -0
- package/dist/src/utils/Benchmark/WorkerBenchmark.d.ts +15 -0
- package/dist/src/utils/Benchmark/index.d.ts +4 -0
- package/dist/src/utils/Benchmark/types.d.ts +7 -0
- package/dist/src/utils/ClosedRange.d.ts +6 -0
- package/dist/src/utils/DebugGui/DebugGui.d.ts +2 -0
- package/dist/src/utils/DebugGui/DebugGuiStore.d.ts +26 -0
- package/dist/src/utils/DebugGui/DeepProxy.d.ts +11 -0
- package/dist/src/utils/DebugGui/MainThreadDebugGui.d.ts +9 -0
- package/dist/src/utils/DebugGui/WorkerDebugGui.d.ts +17 -0
- package/dist/src/utils/DebugGui/guifyObject.d.ts +6 -0
- package/dist/src/utils/DebugGui/index.d.ts +4 -0
- package/dist/src/utils/DebugMode.d.ts +4 -0
- package/dist/src/utils/Downloader.d.ts +24 -0
- package/dist/src/utils/Enums.d.ts +55 -0
- package/dist/src/utils/Keyhold/Keyhold.d.ts +8 -0
- package/dist/src/utils/Keyhold/KeyholdListener.d.ts +6 -0
- package/dist/src/utils/Keyhold/__tests__/Keyhold.test.d.ts +1 -0
- package/dist/src/utils/Keyhold/__tests__/KeyholdListener.test.d.ts +1 -0
- package/dist/src/utils/Keyhold/index.d.ts +2 -0
- package/dist/src/utils/ModifierKeyNames.d.ts +5 -0
- package/dist/src/utils/Queue.d.ts +7 -0
- package/dist/src/utils/Scaling/scaleFarPlane.d.ts +7 -0
- package/dist/src/utils/Stack.d.ts +6 -0
- package/dist/src/utils/ZoomExtents/__tests__/computePoseToFitBoxFromPosition.test.d.ts +3 -0
- package/dist/src/utils/ZoomExtents/__tests__/computePoseToFitBoxWithAngles.test.d.ts +1 -0
- package/dist/src/utils/ZoomExtents/__tests__/computeRefinedBbox.test.d.ts +1 -0
- package/dist/src/utils/ZoomExtents/computePoseToFitBoxFromPosition.d.ts +9 -0
- package/dist/src/utils/ZoomExtents/computePoseToFitBoxWithAngles.d.ts +11 -0
- package/dist/src/utils/ZoomExtents/computeRefinedBbox.d.ts +8 -0
- package/dist/src/utils/ZoomExtents/constants.d.ts +3 -0
- package/dist/src/utils/ZoomExtents/createZoomExtentsDebugGui.d.ts +10 -0
- package/dist/src/utils/ZoomExtents/index.d.ts +4 -0
- package/dist/src/utils/ZoomExtents/utils.d.ts +9 -0
- package/dist/src/utils/constants.d.ts +4 -0
- package/dist/src/utils/fullColorHex.d.ts +1 -0
- package/dist/src/utils/i18n.d.ts +5 -0
- package/dist/src/utils/isRunningInWorker.d.ts +1 -0
- package/dist/src/utils/memoryUsed.d.ts +7 -0
- package/dist/src/utils/singletons.d.ts +2 -0
- package/dist/src/validateOptions/__tests__/checkTools.test.d.ts +1 -0
- package/dist/src/validateOptions/__tests__/validateOptions.test.d.ts +1 -0
- package/dist/src/validateOptions/checkTools.d.ts +7 -0
- package/dist/src/validateOptions/index.d.ts +1 -0
- package/dist/src/validateOptions/validateOptions.d.ts +15 -0
- package/dist/src/viewer copy.d.ts +21 -0
- package/dist/src/workers/render_engine.worker.d.ts +1 -0
- package/dist/test/Benchmark/BenchmarkReporter.test.d.ts +1 -0
- package/dist/test/Benchmark/MainThreadBenchmark.test.d.ts +1 -0
- package/dist/test/Benchmark/WorkerBenchmark.test.d.ts +1 -0
- package/dist/test/CameraNamespace.test.d.ts +1 -0
- package/dist/test/ClosedRange.test.d.ts +1 -0
- package/dist/test/ContextMenuComponent.test.d.ts +1 -0
- package/dist/test/DomController.test.d.ts +1 -0
- package/dist/test/Downloader.test.d.ts +1 -0
- package/dist/test/EventsNamespace.test.d.ts +1 -0
- package/dist/test/HttpClient.test.d.ts +1 -0
- package/dist/test/ModifierKeyNames.test.d.ts +1 -0
- package/dist/test/RenderController.test.d.ts +1 -0
- package/dist/test/Sdk.test.d.ts +1 -0
- package/dist/test/Utils.test.d.ts +1 -0
- package/dist/test/WindowAlertComponent.test.d.ts +1 -0
- package/dist/test/WindowViewPropertiesComponent/filterProperties.test.d.ts +1 -0
- package/dist/test/WindowViewPropertiesComponent/highlightSearchTerm.test.d.ts +1 -0
- package/dist/test/globalBefore.d.ts +1 -0
- package/dist/test/i18n.test.d.ts +1 -0
- package/dist/test/index.d.ts +1 -0
- package/dist/test/test-samples/measurements_coord.d.ts +5 -0
- package/dist/test/utils/MeshnodeDescriptor.d.ts +4 -0
- package/dist/test/utils/MockMeshnode.d.ts +16 -0
- package/dist/test/utils/MockNode.d.ts +20 -0
- package/dist/test/utils/MockPWF.d.ts +17 -0
- package/dist/test/utils/NodeDescriptor.d.ts +10 -0
- package/package.json +2 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export function quaternionToCameraDirection(quaternion: any): import("three").Vector3;
|
|
2
|
+
export function debounce(func: any, delay: any): (...args: any[]) => void;
|
|
3
|
+
export function createThreeMatrix(matrix: any): import("three").Matrix4;
|
|
4
|
+
export function modelItemToThreeGeometry(modelItem: any): import("three").BufferGeometry;
|
|
5
|
+
/**
|
|
6
|
+
* Get Faces from Face Normals
|
|
7
|
+
* Summary: Use face normals to detect if the face is relevant in our
|
|
8
|
+
* shortest distance calculation.
|
|
9
|
+
*
|
|
10
|
+
* Detail: The first iteration of improving shortest distance
|
|
11
|
+
* calculation. Consider ObjectA and ObjectB are two different objects
|
|
12
|
+
* that we want to find the shortest distance for. This method will
|
|
13
|
+
* get the world direction vector of an object placed at the center of
|
|
14
|
+
* objectA and is looking at the center of ObjectB. Then the dot product
|
|
15
|
+
* of the world direction vector against every face normal on ObjectB.
|
|
16
|
+
* If the dot product results in a negative number, than the face normal
|
|
17
|
+
* is facing ObjectA and we will consider this a relevant face for calculating
|
|
18
|
+
* shortest distance.
|
|
19
|
+
*
|
|
20
|
+
* Caveats: Very accurate but can include faces that face ObjectA but are not
|
|
21
|
+
* necessarily the closest. For instance faces that are obstructed by other
|
|
22
|
+
* closer faces to ObjectA.
|
|
23
|
+
*/
|
|
24
|
+
export function getRelevant(geomForCamera: any, geomToSimplify: any): {
|
|
25
|
+
vertices: any[];
|
|
26
|
+
} | null;
|
|
27
|
+
/**
|
|
28
|
+
* Get Faces From GL Read Pixels
|
|
29
|
+
* Summary: This method boils down to using a another
|
|
30
|
+
* webgl context to render an image of one object from the point of
|
|
31
|
+
* view of the other object. The faces rendered are the ones relevant
|
|
32
|
+
* to our calculations in finding the shortest distance.
|
|
33
|
+
*
|
|
34
|
+
* Detail: Let ObjectA and ObjectB be two different objects in 3D that we want
|
|
35
|
+
* to find the shortest distance for. ObjectA and ObjectB need to be
|
|
36
|
+
* constructed with modelItemToThreeGeometry so that each face on each object
|
|
37
|
+
* is assigned a unique color. This method will position a camera at the center
|
|
38
|
+
* of the bounding box of ObjectA and look at the center of the bounding box of
|
|
39
|
+
* ObjectB. If ObjectB does not fit in the cameras frustum, then early out and
|
|
40
|
+
* return null. Otherwise a new webgl context is used to project ObjectB using
|
|
41
|
+
* the camera. When rendered, only the faces closest and facing ObjectA are
|
|
42
|
+
* shown, and since each face is given a unique color, we can trace this color
|
|
43
|
+
* back to the original face. Using `gl.readPixels` we can inspect each pixel
|
|
44
|
+
* of the rendered image and collect an array of faces to be used in the
|
|
45
|
+
* shortest distance calculation.
|
|
46
|
+
*
|
|
47
|
+
* Caveats: There are scenarios in which fitting the ObjectB in the camera's
|
|
48
|
+
* frustum can be challenging. Distance and bounding boxes of the two objects
|
|
49
|
+
* play a huge role in the accuracy of this method. This led to the early out
|
|
50
|
+
* of requiring the ObjectB to fit fully in the frustum.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export function getFacesFromGLReadPixels(geomForCamera: any, geomToSimplify: any): {
|
|
54
|
+
vertices: any[];
|
|
55
|
+
} | null;
|
|
56
|
+
export function shortestDistance(geometry1: any, geometry2: any): {
|
|
57
|
+
method: string;
|
|
58
|
+
start: import("three").Vector3;
|
|
59
|
+
end: import("three").Vector3;
|
|
60
|
+
distance: number;
|
|
61
|
+
};
|
|
62
|
+
export function computeShortestDistance(geometry1: any, geom1Relevant: null | undefined, geometry2: any, geom2Relevant?: null): {
|
|
63
|
+
method: string;
|
|
64
|
+
start: import("three").Vector3;
|
|
65
|
+
end: import("three").Vector3;
|
|
66
|
+
distance: number;
|
|
67
|
+
};
|
|
68
|
+
export function fUniqueEdgeRWhile(geomRelevant: any): any[][];
|
|
69
|
+
export function minFaceDistance(point: any, vertices: any, cp: any, triangle: any): {
|
|
70
|
+
method: string;
|
|
71
|
+
start: any;
|
|
72
|
+
end: import("three").Vector3;
|
|
73
|
+
distance: number;
|
|
74
|
+
};
|
|
75
|
+
export function closestLineToLine(s1: any, s2: any): {
|
|
76
|
+
method: string;
|
|
77
|
+
start: any;
|
|
78
|
+
end: any;
|
|
79
|
+
distance: any;
|
|
80
|
+
segment_1: any;
|
|
81
|
+
segment_2: any;
|
|
82
|
+
};
|
|
83
|
+
export function minEdgeEdgeDistance(line: any, edgesArr: any): undefined;
|
|
84
|
+
export function uuidCreator(): string;
|
|
85
|
+
export function ConvertRadiansToDegrees(radians: any): number;
|
|
86
|
+
export function validate2DPoint(point: any): boolean;
|
|
87
|
+
export function isMac(): boolean;
|
|
88
|
+
export function escapeHtml(input: any): any;
|
|
89
|
+
/**
|
|
90
|
+
* Calculates distance between two 3D positions
|
|
91
|
+
*
|
|
92
|
+
* @param {array} arrayA The first 3D position
|
|
93
|
+
* @param {array} arrayB The second 3D position
|
|
94
|
+
* @returns {number} The distance
|
|
95
|
+
*/
|
|
96
|
+
export function distanceBetween(arrayA: array, arrayB: array): number;
|
|
97
|
+
/**
|
|
98
|
+
* Splices an array into chunks
|
|
99
|
+
*
|
|
100
|
+
* @param {array} arr The array to splice
|
|
101
|
+
* @param {int} chunkSize The size of each array chunk
|
|
102
|
+
* @returns {array} An array of arrays
|
|
103
|
+
*/
|
|
104
|
+
export function chunk(arr: array, chunkSize: int): array;
|
|
105
|
+
export function getCameraKey(bcfCamera: any): "perspective_camera" | "orthogonal_camera" | "perspective" | "orthogonal" | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropertiesFile, FileVersion } from '../../api/types/FileExtraction';
|
|
2
|
+
import * as FileExtractions from '../../api/bim_file_extractions';
|
|
3
|
+
import { Options, GeometryBundle } from '../../types/WebviewerOptions';
|
|
4
|
+
type Api = {
|
|
5
|
+
getBimFileExtraction: typeof FileExtractions.GetBimFileExtraction;
|
|
6
|
+
};
|
|
7
|
+
type ApiOptions = Partial<Api>;
|
|
8
|
+
export declare const API_MODE: {
|
|
9
|
+
readonly FILE_EXTRACTION: "fileExtraction";
|
|
10
|
+
readonly MODEL_REVISION: "modelRevision";
|
|
11
|
+
};
|
|
12
|
+
export type ApiMode = (typeof API_MODE)[keyof typeof API_MODE];
|
|
13
|
+
export declare class ApiMetaData {
|
|
14
|
+
private store;
|
|
15
|
+
private api;
|
|
16
|
+
apiMode: ApiMode;
|
|
17
|
+
constructor(options: Options & ApiOptions);
|
|
18
|
+
private get fileExtractionBundle();
|
|
19
|
+
get fileVersion(): Promise<FileVersion>;
|
|
20
|
+
private geometryUrlsProvided;
|
|
21
|
+
private get geometryBundleInFileExtractionMode();
|
|
22
|
+
private get geometryBundleInModelRevisionMode();
|
|
23
|
+
get geometryBundle(): Promise<GeometryBundle>;
|
|
24
|
+
get propertyFileId(): Promise<PropertiesFile['id']>;
|
|
25
|
+
get modelRevisionId(): Promise<number>;
|
|
26
|
+
get modelId(): Promise<number>;
|
|
27
|
+
get projectId(): Promise<number>;
|
|
28
|
+
get fileExtractionId(): Promise<number>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { FileExtractionModePwfV2OverrideOptions, FileExtractionModePwfV1OverrideOptions, FileExtractionModeStreamingOverrideOptions, FileExtractionModeOptions, ModelRevisionModePwfV2Options, ModelRevisionModePwfV1Options, ModelRevisionModeStreamingOptions } from '../../../types/WebviewerOptions';
|
|
2
|
+
import { FileExtraction } from '../../../api/types/FileExtraction';
|
|
3
|
+
export declare const projectId = 4;
|
|
4
|
+
export declare const fileExtractionId = 1;
|
|
5
|
+
export declare const modelId = 2;
|
|
6
|
+
export declare const modelRevisionId = 3;
|
|
7
|
+
export declare const propertyFileId = 5;
|
|
8
|
+
export declare const fileVersion: {
|
|
9
|
+
id: number;
|
|
10
|
+
file_id: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const nodeUrl = "a node url";
|
|
13
|
+
export declare const meshnodeUrl = "a meshnode url";
|
|
14
|
+
export declare const meshUrl = "a mesh url";
|
|
15
|
+
export declare const manifestUrl = "a manifest url";
|
|
16
|
+
export declare const streamingUrlBase = "a streaming url base";
|
|
17
|
+
export declare const pwfV2Bundle: {
|
|
18
|
+
nodeUrl: string;
|
|
19
|
+
meshnodeUrl: string;
|
|
20
|
+
meshUrl: string;
|
|
21
|
+
manifestUrl: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const pwfV1Bundle: {
|
|
24
|
+
nodeUrl: string;
|
|
25
|
+
meshnodeUrl: string;
|
|
26
|
+
meshUrl: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const streamingBundle: {
|
|
29
|
+
nodeUrl: string;
|
|
30
|
+
meshnodeUrl: string;
|
|
31
|
+
streamingUrlBase: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const fileExtractionModePwfV1OverrideOptions: FileExtractionModePwfV1OverrideOptions;
|
|
34
|
+
export declare const fileExtractionModePwfV2OverrideOptions: FileExtractionModePwfV2OverrideOptions;
|
|
35
|
+
export declare const fileExtractionModeStreamingOverrideOptions: FileExtractionModeStreamingOverrideOptions;
|
|
36
|
+
export declare const fileExtractionModeOptions: FileExtractionModeOptions;
|
|
37
|
+
export declare const modelRevisionModePwfV1Options: ModelRevisionModePwfV1Options;
|
|
38
|
+
export declare const modelRevisionModePwfV2Options: ModelRevisionModePwfV2Options;
|
|
39
|
+
export declare const modelRevisionModeStreamingOptions: ModelRevisionModeStreamingOptions;
|
|
40
|
+
export declare const fileExtraction: FileExtraction;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApiMetaData as _ApiMetaData } from './ApiMetaData';
|
|
2
|
+
import { Options } from '../../types/WebviewerOptions';
|
|
3
|
+
export { API_MODE, ApiMode } from './ApiMetaData';
|
|
4
|
+
export declare namespace ApiMetaData {
|
|
5
|
+
let store: _ApiMetaData;
|
|
6
|
+
const init: (initOptions: Options) => void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MetricId } from './types';
|
|
2
|
+
export declare namespace BenchmarkReporter {
|
|
3
|
+
const result: (metricId: MetricId) => number | null;
|
|
4
|
+
const setWorker: (w: Worker) => void;
|
|
5
|
+
const report: (params: {
|
|
6
|
+
value: number;
|
|
7
|
+
metricId: MetricId;
|
|
8
|
+
}) => void;
|
|
9
|
+
const engage: <T>(metricId: MetricId, callback: Function) => Promise<T>;
|
|
10
|
+
const clear: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MetricId } from './types';
|
|
2
|
+
type OnEndCallback = (result: number) => void;
|
|
3
|
+
type OnLogCallback = (result: number) => void;
|
|
4
|
+
export declare namespace MainThreadBenchmark {
|
|
5
|
+
const engage: (params: {
|
|
6
|
+
metricId: MetricId;
|
|
7
|
+
onEnd?: OnEndCallback | undefined;
|
|
8
|
+
onLog?: OnLogCallback | undefined;
|
|
9
|
+
}) => void;
|
|
10
|
+
const isRunning: (metricId: MetricId) => boolean;
|
|
11
|
+
const hasStarted: (metricId: MetricId) => boolean;
|
|
12
|
+
const start: (metricId: MetricId) => void;
|
|
13
|
+
const end: (metricId: MetricId) => void;
|
|
14
|
+
const log: (params: {
|
|
15
|
+
metricId: MetricId;
|
|
16
|
+
value: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
const clear: () => void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type Point = {
|
|
2
|
+
position: {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
z: number;
|
|
6
|
+
};
|
|
7
|
+
lookAt: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
z: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type Camera = any;
|
|
14
|
+
export declare class TestRoutineRecorder {
|
|
15
|
+
camera: Camera;
|
|
16
|
+
points: Point[];
|
|
17
|
+
constructor(params: {
|
|
18
|
+
camera: Camera;
|
|
19
|
+
});
|
|
20
|
+
here(): any;
|
|
21
|
+
reset(): void;
|
|
22
|
+
print(): void;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MetricId } from './types';
|
|
2
|
+
export declare namespace WorkerBenchmark {
|
|
3
|
+
const engage: (params: {
|
|
4
|
+
metricId: MetricId;
|
|
5
|
+
}) => void;
|
|
6
|
+
const isRunning: (metricId: MetricId) => boolean;
|
|
7
|
+
const hasStarted: (metricId: MetricId) => boolean;
|
|
8
|
+
const start: (metricId: MetricId) => void;
|
|
9
|
+
const end: (metricId: MetricId) => void;
|
|
10
|
+
const log: (params: {
|
|
11
|
+
metricId: MetricId;
|
|
12
|
+
value: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
const clear: () => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import './style.css';
|
|
2
|
+
type ProxyId = number;
|
|
3
|
+
type Target = {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export declare namespace DebugGuiStore {
|
|
7
|
+
export const setWorker: (w: Worker) => void;
|
|
8
|
+
type AddFromWorkerParams = {
|
|
9
|
+
id: ProxyId;
|
|
10
|
+
obj: Target;
|
|
11
|
+
configureStore?: {
|
|
12
|
+
args: string;
|
|
13
|
+
body: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export const addFromWorker: ({ id, obj, configureStore, }: AddFromWorkerParams) => void;
|
|
17
|
+
type UpdateFromWorkerParams = {
|
|
18
|
+
id: ProxyId;
|
|
19
|
+
keyPath: string[];
|
|
20
|
+
value: any;
|
|
21
|
+
};
|
|
22
|
+
export const updateFromWorker: ({ id, keyPath, value, }: UpdateFromWorkerParams) => void;
|
|
23
|
+
export const destroy: () => void;
|
|
24
|
+
export {};
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class DeepProxy {
|
|
2
|
+
constructor(target: any, handler: any);
|
|
3
|
+
_preproxy: WeakMap<object, any>;
|
|
4
|
+
_handler: any;
|
|
5
|
+
makeHandler(path: any): {
|
|
6
|
+
set(target: any, key: any, value: any, receiver: any): boolean;
|
|
7
|
+
deleteProperty(target: any, key: any): boolean;
|
|
8
|
+
};
|
|
9
|
+
unproxy(obj: any, key: any): void;
|
|
10
|
+
proxify(obj: any, path: any): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GuiStore } from './guifyObject';
|
|
2
|
+
type Target = {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
export declare namespace MainThreadDebugGui {
|
|
6
|
+
const add: (obj: Target, configureStore?: ((store: GuiStore) => void) | undefined, onChange?: ((...args: any[]) => void) | undefined) => Target;
|
|
7
|
+
const destroy: () => void;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GuiStore } from './guifyObject';
|
|
2
|
+
type ProxyId = number;
|
|
3
|
+
type Target = {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export declare namespace WorkerDebugGui {
|
|
7
|
+
export const add: (obj: Target, configureStore?: ((store: GuiStore) => void) | undefined, onChange?: ((...args: any[]) => void) | undefined) => Target;
|
|
8
|
+
type UpdateParams = {
|
|
9
|
+
id: ProxyId;
|
|
10
|
+
keyPath: string[];
|
|
11
|
+
value: any;
|
|
12
|
+
};
|
|
13
|
+
export const updateFromStore: ({ id, keyPath, value, }: UpdateParams) => void;
|
|
14
|
+
export const destroy: () => void;
|
|
15
|
+
export {};
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type GuiStore = {
|
|
2
|
+
__folder?: dat.GUI;
|
|
3
|
+
[key: string]: dat.GUIController | GuiStore | dat.GUI | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare const _recursiveGuifyObject: (obj: Record<string, unknown>, parentGui: dat.GUI, rootGui: dat.GUI) => GuiStore;
|
|
6
|
+
export declare const guifyObject: (obj: Record<string, unknown>, parentGui: dat.GUI) => GuiStore;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class Downloader {
|
|
2
|
+
static maxFileSize(): number;
|
|
3
|
+
static isSupportedArchive(buffer: any): boolean;
|
|
4
|
+
static decompressArchive(buffer: any): ArrayBufferLike;
|
|
5
|
+
static decompressIfArchive(buffer: any): any;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new ReadableStream that tracks progress through
|
|
8
|
+
* the `onprogress` callback. Will report errors with the
|
|
9
|
+
* `onerror` callback.
|
|
10
|
+
*
|
|
11
|
+
* @param {Response} response The fetched response we want progress for
|
|
12
|
+
* @param {int} total The content length parsed to int
|
|
13
|
+
* @param {function} onprogress Callback for progress being made
|
|
14
|
+
* @param {function} onerror Callback for any errors
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
static ReadableStreamProgress(response: Response, total: int, onprogress: Function, onerror: Function): ReadableStream<any>;
|
|
18
|
+
xhrs: any[];
|
|
19
|
+
clientValue: import("@procore/core-http").HttpClient | undefined;
|
|
20
|
+
set client(arg: import("@procore/core-http").HttpClient | undefined);
|
|
21
|
+
get client(): import("@procore/core-http").HttpClient | undefined;
|
|
22
|
+
DownloadWithFetch(url: any, onprogress: any): Promise<any>;
|
|
23
|
+
DownloadFiles(urls: any, onprogress?: null): Promise<any>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export const keys: Readonly<{
|
|
2
|
+
NONE: -1;
|
|
3
|
+
LEFT: 37;
|
|
4
|
+
UP: 38;
|
|
5
|
+
RIGHT: 39;
|
|
6
|
+
BOTTOM: 40;
|
|
7
|
+
W: 87;
|
|
8
|
+
A: 65;
|
|
9
|
+
S: 83;
|
|
10
|
+
D: 68;
|
|
11
|
+
Q: 81;
|
|
12
|
+
E: 69;
|
|
13
|
+
SPACE: 32;
|
|
14
|
+
SHIFT: 16;
|
|
15
|
+
V: 86;
|
|
16
|
+
F: 70;
|
|
17
|
+
O: 79;
|
|
18
|
+
P: 80;
|
|
19
|
+
M: 77;
|
|
20
|
+
CTRL: 17;
|
|
21
|
+
ALT: 18;
|
|
22
|
+
ZERO: 48;
|
|
23
|
+
Z: 90;
|
|
24
|
+
Y: 89;
|
|
25
|
+
ESC: 27;
|
|
26
|
+
H: 72;
|
|
27
|
+
ArrowLeft: 37;
|
|
28
|
+
ArrowUp: 38;
|
|
29
|
+
ArrowRight: 39;
|
|
30
|
+
ArrowDown: 40;
|
|
31
|
+
WD: 200;
|
|
32
|
+
WA: 201;
|
|
33
|
+
SD: 202;
|
|
34
|
+
SA: 203;
|
|
35
|
+
X: 88;
|
|
36
|
+
}>;
|
|
37
|
+
export const Action: Readonly<{
|
|
38
|
+
NONE: -1;
|
|
39
|
+
PAN: 1;
|
|
40
|
+
KEYMOVE: 2;
|
|
41
|
+
ROTATE: 3;
|
|
42
|
+
FLY: 4;
|
|
43
|
+
ORBIT: 5;
|
|
44
|
+
STRAFE: 6;
|
|
45
|
+
}>;
|
|
46
|
+
export const UnhideObjectOrigin: Readonly<{
|
|
47
|
+
COACHMARKHIDDEN: "coachmark_hidden";
|
|
48
|
+
OBJECTTREE: "object_tree";
|
|
49
|
+
OBJECTTREE_ALLOBJECTS: "object_tree_all_objects";
|
|
50
|
+
}>;
|
|
51
|
+
export const ToolOrigin: Readonly<{
|
|
52
|
+
KEYBOARD: "keyboard";
|
|
53
|
+
TOOLBAR: "toolbar";
|
|
54
|
+
API: "api";
|
|
55
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BoundingBox, Pose } from '../../types/Math';
|
|
2
|
+
type ComputePoseToFitBoxFromPositionParams = {
|
|
3
|
+
bbox: BoundingBox;
|
|
4
|
+
position: THREE.Vector3;
|
|
5
|
+
fov: number;
|
|
6
|
+
distanceFromCenterFactor?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const computePoseToFitBoxFromPosition: (params: ComputePoseToFitBoxFromPositionParams) => Pose;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BoundingBox, Pose } from '../../types/Math';
|
|
2
|
+
type ComputePoseToFitBoxWithAnglesParams = {
|
|
3
|
+
bbox: BoundingBox;
|
|
4
|
+
up: THREE.Vector3;
|
|
5
|
+
fov: number;
|
|
6
|
+
zenith?: number;
|
|
7
|
+
azimuth?: number;
|
|
8
|
+
distanceFromCenterFactor?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const computePoseToFitBoxWithAngles: (params: ComputePoseToFitBoxWithAnglesParams) => Pose;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PWF } from '../../pwfreader/PWF';
|
|
2
|
+
type ComputeRefinedBboxParams = {
|
|
3
|
+
bbox: THREE.Box3;
|
|
4
|
+
pwf: PWF;
|
|
5
|
+
spaceJunkEliminationThreshold: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const computeRefinedBbox: ({ bbox: globalBbox, pwf, spaceJunkEliminationThreshold, }: ComputeRefinedBboxParams) => import("three").Box3;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type CreateZoomExtentsDebugGuiParams = {
|
|
2
|
+
onChange: () => void;
|
|
3
|
+
};
|
|
4
|
+
export declare const createZoomExtentsDebugGui: (params: CreateZoomExtentsDebugGuiParams) => {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const createZoomToGlobalDebugGui: (params: CreateZoomExtentsDebugGuiParams) => {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { computePoseToFitBoxWithAngles } from './computePoseToFitBoxWithAngles';
|
|
2
|
+
export { computePoseToFitBoxFromPosition } from './computePoseToFitBoxFromPosition';
|
|
3
|
+
export { createZoomExtentsDebugGui, createZoomToGlobalDebugGui, } from './createZoomExtentsDebugGui';
|
|
4
|
+
export { computeRefinedBbox } from './computeRefinedBbox';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { THREE } from '../../threeShaking';
|
|
2
|
+
import { BoundingBox } from '../../types/Math';
|
|
3
|
+
export declare const bboxToBox3: (bbox: BoundingBox) => THREE.Box3;
|
|
4
|
+
type ComputeOptimalCameraDistanceFromBboxCenterParams = {
|
|
5
|
+
bbox: THREE.Box3;
|
|
6
|
+
fov: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const computeOptimalCameraDistanceFromBboxCenter: (params: ComputeOptimalCameraDistanceFromBboxCenterParams) => number;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fullColorHex(color: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isRunningInWorker: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|