@procore/bim-webviewer-sdk 7.9.0 → 8.0.0-BIM-2909.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 (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/Procore.Bim.Webviewer.js +1 -1
  3. package/dist/public/devEnvironmentScripts/authorization.d.ts +9 -0
  4. package/dist/public/devEnvironmentScripts/initializeViewer.d.ts +7 -0
  5. package/dist/public/devEnvironmentScripts/main.d.ts +4 -0
  6. package/dist/public/devEnvironmentScripts/memoryProfiler.d.ts +1 -0
  7. package/dist/public/devEnvironmentScripts/stats.d.ts +18 -0
  8. package/dist/src/api/HttpClient.d.ts +12 -0
  9. package/dist/src/api/bim_file_extractions.d.ts +36 -0
  10. package/dist/src/api/bim_model_revision_viewpoints.d.ts +4 -0
  11. package/dist/src/api/bim_model_revisions.d.ts +20 -0
  12. package/dist/src/api/bim_view_folders.d.ts +4 -0
  13. package/dist/src/api/cacheHandler.d.ts +2 -0
  14. package/dist/src/api/types/BimObject.d.ts +10 -0
  15. package/dist/src/api/types/FileExtraction.d.ts +40 -0
  16. package/dist/src/api/types/Model.d.ts +6 -0
  17. package/dist/src/api/types/Project.d.ts +3 -0
  18. package/dist/src/components/CoachmarkManagerComponent/CoachmarkComponent.d.ts +12 -0
  19. package/dist/src/components/CoachmarkManagerComponent/CoachmarkFovComponent.d.ts +8 -0
  20. package/dist/src/components/CoachmarkManagerComponent/CoachmarkHiddenComponent.d.ts +10 -0
  21. package/dist/src/components/CoachmarkManagerComponent/CoachmarkManagerComponent.d.ts +6 -0
  22. package/dist/src/components/CoachmarkManagerComponent/CoachmarkSectioningComponent.d.ts +9 -0
  23. package/dist/src/components/CoachmarkManagerComponent/Coachmarks.d.ts +16 -0
  24. package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkComponent.test.d.ts +1 -0
  25. package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkFovComponent.test.d.ts +1 -0
  26. package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkHiddenComponent.test.d.ts +1 -0
  27. package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkManagerComponent.test.d.ts +1 -0
  28. package/dist/src/components/CoachmarkManagerComponent/__tests__/CoachmarkSectioningComponent.test.d.ts +1 -0
  29. package/dist/src/components/CoachmarkManagerComponent/index.d.ts +1 -0
  30. package/dist/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +57 -0
  31. package/dist/src/components/ContextMenuComponent/__tests__/helper.test.d.ts +1 -0
  32. package/dist/src/components/ContextMenuComponent/helper.d.ts +13 -0
  33. package/dist/src/components/ContextMenuComponent/index.d.ts +2 -0
  34. package/dist/src/components/DisabledPropertiesState.d.ts +4 -0
  35. package/dist/src/components/DropdownComponent/Dropdown.d.ts +22 -0
  36. package/dist/src/components/DropdownComponent/MenuOptions/MenuOption.d.ts +14 -0
  37. package/dist/src/components/DropdownComponent/MenuOptions/MenuOptionResetPlane.d.ts +9 -0
  38. package/dist/src/components/DropdownComponent/MenuOptions/MenuOptionTooltip.d.ts +4 -0
  39. package/dist/src/components/DropdownComponent/MenuOptions/MenuOptionVisible.d.ts +7 -0
  40. package/dist/src/components/DropdownComponent/MenuOptions/__tests__/MenuOption.test.d.ts +1 -0
  41. package/dist/src/components/DropdownComponent/MenuOptions/__tests__/MenuOptionResetPlane.test.d.ts +1 -0
  42. package/dist/src/components/DropdownComponent/MenuOptions/__tests__/MenuOptionVisible.test.d.ts +1 -0
  43. package/dist/src/components/DropdownComponent/SectionToolDropdown/SectionToolDropdown.d.ts +17 -0
  44. package/dist/src/components/DropdownComponent/SectionToolDropdown/__tests__/SectionToolDropdown.test.d.ts +1 -0
  45. package/dist/src/components/DropdownComponent/__tests__/Dropdown.test.d.ts +1 -0
  46. package/dist/src/components/DropdownComponent/index.d.ts +4 -0
  47. package/dist/src/components/FloorPlanComponent.d.ts +85 -0
  48. package/dist/src/components/LoadingComponent/LoadingComponent.d.ts +32 -0
  49. package/dist/src/components/LoadingComponent/index.d.ts +1 -0
  50. package/dist/src/components/Markup.d.ts +31 -0
  51. package/dist/src/components/PropertiesCardComponent/PropertiesCardComponent.d.ts +33 -0
  52. package/dist/src/components/PropertiesCardComponent/index.d.ts +1 -0
  53. package/dist/src/components/RootComponent.d.ts +19 -0
  54. package/dist/src/components/SearchInput/SearchInput.d.ts +29 -0
  55. package/dist/src/components/SearchInput/__tests__/SearchInput.test.d.ts +1 -0
  56. package/dist/src/components/SearchInput/index.d.ts +1 -0
  57. package/dist/src/components/ShortestDistanceComponent.d.ts +49 -0
  58. package/dist/src/components/TabsComponent/TabsComponent.d.ts +17 -0
  59. package/dist/src/components/TabsComponent/index.d.ts +1 -0
  60. package/dist/src/components/ToolBarComponent.d.ts +41 -0
  61. package/dist/src/components/ToolBarTools.d.ts +16 -0
  62. package/dist/src/components/ToolEnum.d.ts +4 -0
  63. package/dist/src/components/ToolStatus.d.ts +22 -0
  64. package/dist/src/components/WindowAlertComponent.d.ts +7 -0
  65. package/dist/src/components/WindowComponent.d.ts +73 -0
  66. package/dist/src/components/WindowModelObjectComponent/VirtualizedList.d.ts +33 -0
  67. package/dist/src/components/WindowModelObjectComponent/WindowModelObjectComponent.d.ts +91 -0
  68. package/dist/src/components/WindowModelObjectComponent/__tests__/VirtualizedList.test.d.ts +1 -0
  69. package/dist/src/components/WindowModelObjectComponent/__tests__/helper.test.d.ts +1 -0
  70. package/dist/src/components/WindowModelObjectComponent/helper.d.ts +5 -0
  71. package/dist/src/components/WindowModelObjectComponent/index.d.ts +2 -0
  72. package/dist/src/components/WindowSettingsComponent.d.ts +8 -0
  73. package/dist/src/components/WindowTreeComponent.d.ts +9 -0
  74. package/dist/src/components/WindowTreeViewComponent.d.ts +38 -0
  75. package/dist/src/components/WindowViewPropertiesComponent/WindowViewPropertiesComponent.d.ts +35 -0
  76. package/dist/src/components/WindowViewPropertiesComponent/escapeRegexpSpecialChars.d.ts +1 -0
  77. package/dist/src/components/WindowViewPropertiesComponent/filterProperties.d.ts +2 -0
  78. package/dist/src/components/WindowViewPropertiesComponent/highlightSearchTerm.d.ts +1 -0
  79. package/dist/src/components/WindowViewPropertiesComponent/index.d.ts +1 -0
  80. package/dist/src/controllers/ApiController/ApiController.d.ts +25 -0
  81. package/dist/src/controllers/ApiController/__tests__/ApiController.test.d.ts +1 -0
  82. package/dist/src/controllers/ApiController/index.d.ts +1 -0
  83. package/dist/src/controllers/BrowserSettingsController.d.ts +8 -0
  84. package/dist/src/controllers/CacheController.d.ts +21 -0
  85. package/dist/src/controllers/DatabaseController.d.ts +20 -0
  86. package/dist/src/controllers/DomController.d.ts +21 -0
  87. package/dist/src/controllers/PubSubController.d.ts +95 -0
  88. package/dist/src/controllers/RenderController.d.ts +394 -0
  89. package/dist/src/controllers/RenderStatusType.d.ts +6 -0
  90. package/dist/src/controllers/RenderWrapperController.d.ts +290 -0
  91. package/dist/src/controllers/SettingsController.d.ts +14 -0
  92. package/dist/src/controllers/StatusTrackingController.d.ts +25 -0
  93. package/dist/src/controllers/WorkerRenderController.d.ts +113 -0
  94. package/dist/src/messages.d.ts +18 -0
  95. package/dist/src/navigation/DefaultControl.d.ts +21 -0
  96. package/dist/src/navigation/FixedOrbitControl.d.ts +17 -0
  97. package/dist/src/navigation/FixedZoomControl.d.ts +9 -0
  98. package/dist/src/navigation/FlyControl.d.ts +16 -0
  99. package/dist/src/navigation/Hotkeys.d.ts +15 -0
  100. package/dist/src/navigation/NavigationManager.d.ts +42 -0
  101. package/dist/src/navigation/NavigationModel.d.ts +81 -0
  102. package/dist/src/navigation/NavigationModes.d.ts +9 -0
  103. package/dist/src/navigation/Orbit/__tests__/TestSnapshot.d.ts +5 -0
  104. package/dist/src/navigation/Orbit/__tests__/calcNewPosition.snapshot.d.ts +5 -0
  105. package/dist/src/navigation/Orbit/__tests__/calcNewPosition.test.d.ts +1 -0
  106. package/dist/src/navigation/Orbit/__tests__/calcThetaRanges.snapshot.d.ts +5 -0
  107. package/dist/src/navigation/Orbit/__tests__/calcThetaRanges.test.d.ts +1 -0
  108. package/dist/src/navigation/Orbit/calcNewPosition.d.ts +9 -0
  109. package/dist/src/navigation/Orbit/calcThetaRanges.d.ts +9 -0
  110. package/dist/src/navigation/Orbit/getQuatToCylinderSpace.d.ts +11 -0
  111. package/dist/src/navigation/Orbit/index.d.ts +3 -0
  112. package/dist/src/navigation/Orbit/log.d.ts +1 -0
  113. package/dist/src/navigation/OrbitControl.d.ts +15 -0
  114. package/dist/src/navigation/PanControl.d.ts +19 -0
  115. package/dist/src/navigation/PitchControl.d.ts +5 -0
  116. package/dist/src/navigation/StrafeControl.d.ts +13 -0
  117. package/dist/src/navigation/WASDEQAndArrowControl.d.ts +8 -0
  118. package/dist/src/navigation/ZoomControl.d.ts +8 -0
  119. package/dist/src/navigation/__tests__/NavigationManager.test.d.ts +1 -0
  120. package/dist/src/navigation/index.d.ts +1 -0
  121. package/dist/src/navigation/types.d.ts +15 -0
  122. package/dist/src/procoregl/BVHTree.d.ts +7 -0
  123. package/dist/src/procoregl/ColorServices/ColorServices.d.ts +29 -0
  124. package/dist/src/procoregl/ColorServices/__tests__/ColorService.test.d.ts +1 -0
  125. package/dist/src/procoregl/ColorServices/index.d.ts +1 -0
  126. package/dist/src/procoregl/GeoNode.d.ts +7 -0
  127. package/dist/src/procoregl/GeometryFactory.d.ts +22 -0
  128. package/dist/src/procoregl/GetNextRenderingStage.d.ts +15 -0
  129. package/dist/src/procoregl/HiddenNodeServices/HiddenNodeServices.d.ts +26 -0
  130. package/dist/src/procoregl/HiddenNodeServices/__tests__/HiddenNodeServices.test.d.ts +1 -0
  131. package/dist/src/procoregl/HiddenNodeServices/index.d.ts +1 -0
  132. package/dist/src/procoregl/KDTree.d.ts +27 -0
  133. package/dist/src/procoregl/KDTreeNode.d.ts +25 -0
  134. package/dist/src/procoregl/MeshGeometry.d.ts +16 -0
  135. package/dist/src/procoregl/NodeConstants.d.ts +57 -0
  136. package/dist/src/procoregl/ObjectTree/ObjectTree.d.ts +27 -0
  137. package/dist/src/procoregl/ObjectTree/__tests__/ObjectTree.test.d.ts +1 -0
  138. package/dist/src/procoregl/ObjectTree/index.d.ts +1 -0
  139. package/dist/src/procoregl/ProcoreGeometries/ProcoreArrow.d.ts +2 -0
  140. package/dist/src/procoregl/ProcoreGeometries/StubbyArrow.d.ts +2 -0
  141. package/dist/src/procoregl/ProcoreRenderPass.d.ts +11 -0
  142. package/dist/src/procoregl/ProcoreRenderer.d.ts +92 -0
  143. package/dist/src/procoregl/RelevantMeshnodesSet/RelevantMeshnodesSet.d.ts +30 -0
  144. package/dist/src/procoregl/SectionBackFaceFragment.d.ts +1 -0
  145. package/dist/src/procoregl/SectionBackFaceVertex.d.ts +1 -0
  146. package/dist/src/procoregl/SectionDisplay/SectionBoxDisplay.d.ts +36 -0
  147. package/dist/src/procoregl/SectionDisplay/SectionControlArrow.d.ts +22 -0
  148. package/dist/src/procoregl/SectionDisplay/SectionRenderPass.d.ts +11 -0
  149. package/dist/src/procoregl/SectionDisplay/__tests__/SectionBoxDisplay.test.d.ts +1 -0
  150. package/dist/src/procoregl/SectionDisplay/__tests__/getCursorDirectionFromCameraToPlane.test.d.ts +1 -0
  151. package/dist/src/procoregl/SectionDisplay/createSectionBoxDisplayDebugGui.d.ts +2 -0
  152. package/dist/src/procoregl/SectionDisplay/getCursorDirectionFromCameraToPlane.d.ts +2 -0
  153. package/dist/src/procoregl/SectionDisplay/index.d.ts +1 -0
  154. package/dist/src/procoregl/SelectedNodeServices/SelectedNodeServices.d.ts +43 -0
  155. package/dist/src/procoregl/SelectedNodeServices/__tests__/SelectedNodeServices.test.d.ts +1 -0
  156. package/dist/src/procoregl/SelectedNodeServices/index.d.ts +1 -0
  157. package/dist/src/procoregl/StreamedGeometryFactory.d.ts +11 -0
  158. package/dist/src/procoregl/StreamedMeshGeometry.d.ts +14 -0
  159. package/dist/src/procoregl/WASMTree.d.ts +10 -0
  160. package/dist/src/procoregl/__tests__/GetNextRenderingStage.test.d.ts +1 -0
  161. package/dist/src/pwfreader/PWF.d.ts +78 -0
  162. package/dist/src/pwfreader/__tests__/PWF.test.d.ts +1 -0
  163. package/dist/src/pwfreader/pwf/PWFMesh.d.ts +8 -0
  164. package/dist/src/pwfreader/pwf/PWFMeshObject.d.ts +7 -0
  165. package/dist/src/pwfreader/pwf/PWFMeshnode.d.ts +13 -0
  166. package/dist/src/pwfreader/pwf/PWFMeshnodeObject.d.ts +11 -0
  167. package/dist/src/pwfreader/pwf/PWFModel.d.ts +14 -0
  168. package/dist/src/pwfreader/pwf/PWFModelParser.d.ts +12 -0
  169. package/dist/src/pwfreader/pwf/PWFNode.d.ts +11 -0
  170. package/dist/src/pwfreader/pwf/PWFNodeObject.d.ts +10 -0
  171. package/dist/src/pwfreader/pwf/__tests__/PWFModelParser.test.d.ts +1 -0
  172. package/dist/src/pwfreader/pwf/impl/PWFMeshFactory.d.ts +7 -0
  173. package/dist/src/pwfreader/pwf/impl/PWFMeshnodeFactory.d.ts +7 -0
  174. package/dist/src/pwfreader/pwf/impl/PWFNodeFactory.d.ts +7 -0
  175. package/dist/src/pwfreader/pwf/impl/__tests__/PWFMeshFactory.test.d.ts +1 -0
  176. package/dist/src/pwfreader/pwf/impl/__tests__/PWFMeshnodeFactory.test.d.ts +1 -0
  177. package/dist/src/pwfreader/pwf/impl/__tests__/PWFNodeFactory.test.d.ts +1 -0
  178. package/dist/src/pwfreader/pwf/impl/bufferReader/MeshBufferReader.d.ts +9 -0
  179. package/dist/src/pwfreader/pwf/impl/bufferReader/MeshnodeBufferReader.d.ts +15 -0
  180. package/dist/src/pwfreader/pwf/impl/bufferReader/NodeBufferReader.d.ts +11 -0
  181. package/dist/src/pwfreader/pwf/impl/bufferReader/__tests__/MeshBufferReader.test.d.ts +1 -0
  182. package/dist/src/pwfreader/pwf/impl/bufferReader/__tests__/MeshnodeBufferReader.test.d.ts +1 -0
  183. package/dist/src/pwfreader/pwf/impl/bufferReader/__tests__/NodeBufferReader.test.d.ts +1 -0
  184. package/dist/src/pwfreader/pwf/impl/pwfCached/PWFMeshCached.d.ts +17 -0
  185. package/dist/src/pwfreader/pwf/impl/pwfCached/PWFMeshnodeCached.d.ts +27 -0
  186. package/dist/src/pwfreader/pwf/impl/pwfCached/PWFNodeCached.d.ts +23 -0
  187. package/dist/src/pwfreader/pwf/impl/pwfCached/__tests__/PWFMeshCached.test.d.ts +1 -0
  188. package/dist/src/pwfreader/pwf/impl/pwfCached/__tests__/PWFMeshnodeCached.test.d.ts +1 -0
  189. package/dist/src/pwfreader/pwf/impl/pwfCached/__tests__/PWFNodeCached.test.d.ts +1 -0
  190. package/dist/src/pwfreader/pwf/impl/pwfNoCache/PWFMeshNoCache.d.ts +12 -0
  191. package/dist/src/pwfreader/pwf/impl/pwfNoCache/PWFMeshnodeNoCache.d.ts +18 -0
  192. package/dist/src/pwfreader/pwf/impl/pwfNoCache/PWFNodeNoCache.d.ts +15 -0
  193. package/dist/src/pwfreader/pwf/impl/pwfNoCache/__tests__/PWFMeshNoCache.test.d.ts +1 -0
  194. package/dist/src/pwfreader/pwf/impl/pwfNoCache/__tests__/PWFMeshnodeNoCache.test.d.ts +1 -0
  195. package/dist/src/pwfreader/pwf/impl/pwfNoCache/__tests__/PWFNodeNoCache.test.d.ts +1 -0
  196. package/dist/src/pwfreader/pwf/impl/pwfResolved/PWFMeshResolved.d.ts +18 -0
  197. package/dist/src/pwfreader/pwf/impl/pwfResolved/PWFMeshnodeResolved.d.ts +27 -0
  198. package/dist/src/pwfreader/pwf/impl/pwfResolved/PWFNodeResolved.d.ts +23 -0
  199. package/dist/src/pwfreader/pwf/impl/pwfResolved/__tests__/PWFMeshResolved.test.d.ts +1 -0
  200. package/dist/src/pwfreader/pwf/impl/pwfResolved/__tests__/PWFMeshnodeResolved.test.d.ts +1 -0
  201. package/dist/src/pwfreader/pwf/impl/pwfResolved/__tests__/PWFNodeResolved.test.d.ts +1 -0
  202. package/dist/src/pwfreader/pwf/impl/recordReader/PWFMeshDataReader.d.ts +11 -0
  203. package/dist/src/pwfreader/pwf/impl/recordReader/PWFMeshReader.d.ts +9 -0
  204. package/dist/src/pwfreader/pwf/impl/recordReader/PWFMeshnodeReader.d.ts +11 -0
  205. package/dist/src/pwfreader/pwf/impl/recordReader/PWFNodeReader.d.ts +10 -0
  206. package/dist/src/pwfreader/pwf/impl/recordReader/Primitives.d.ts +14 -0
  207. package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFMeshDataReader.test.d.ts +1 -0
  208. package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFMeshReader.test.d.ts +1 -0
  209. package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFMeshnodeReader.test.d.ts +1 -0
  210. package/dist/src/pwfreader/pwf/impl/recordReader/__tests__/PWFNodeReader.test.d.ts +1 -0
  211. package/dist/src/pwfreader/shared/Mesh.d.ts +16 -0
  212. package/dist/src/pwfreader/shared/MeshServices.d.ts +31 -0
  213. package/dist/src/pwfreader/shared/Meshnode.d.ts +50 -0
  214. package/dist/src/pwfreader/shared/MeshnodeServices.d.ts +15 -0
  215. package/dist/src/pwfreader/shared/Node.d.ts +50 -0
  216. package/dist/src/pwfreader/shared/NodeServices.d.ts +29 -0
  217. package/dist/src/pwfreader/shared/index.d.ts +3 -0
  218. package/dist/src/pwfreader/streaming/StreamedMeshServices.d.ts +22 -0
  219. package/dist/src/pwfreader/streaming/StreamedMeshnode.d.ts +17 -0
  220. package/dist/src/pwfreader/streaming/StreamedMeshnodeServices.d.ts +6 -0
  221. package/dist/src/pwfreader/streaming/index.d.ts +2 -0
  222. package/dist/src/pwfreader/v1/MeshServices.d.ts +3 -0
  223. package/dist/src/pwfreader/v1/MeshnodeServices.d.ts +3 -0
  224. package/dist/src/pwfreader/v1/NodeServices.d.ts +3 -0
  225. package/dist/src/pwfreader/v1/index.d.ts +3 -0
  226. package/dist/src/pwfreader/v2/Manifest.d.ts +11 -0
  227. package/dist/src/pwfreader/v2/MeshServices.d.ts +8 -0
  228. package/dist/src/pwfreader/v2/MeshnodeServices.d.ts +13 -0
  229. package/dist/src/pwfreader/v2/NodeServices.d.ts +8 -0
  230. package/dist/src/pwfreader/v2/index.d.ts +3 -0
  231. package/dist/src/sdk.d.ts +9 -0
  232. package/dist/src/sectioning/SectionController.d.ts +105 -0
  233. package/dist/src/sectioning/__tests__/SectionController.test.d.ts +1 -0
  234. package/dist/src/sectioning/__tests__/fixtures.d.ts +7 -0
  235. package/dist/src/sectioning/index.d.ts +1 -0
  236. package/dist/src/sectioning/utils.d.ts +7 -0
  237. package/dist/src/threeShaking.d.ts +96 -0
  238. package/dist/src/types/BcfCamera.d.ts +44 -0
  239. package/dist/src/types/EventPayload.d.ts +4 -0
  240. package/dist/src/types/Math.d.ts +17 -0
  241. package/dist/src/types/Palette.d.ts +18 -0
  242. package/dist/src/types/PublicNode.d.ts +15 -0
  243. package/dist/src/types/Utils.d.ts +1 -0
  244. package/dist/src/types/WebviewerOptions.d.ts +107 -0
  245. package/dist/src/unit_util.d.ts +29 -0
  246. package/dist/src/util.d.ts +105 -0
  247. package/dist/src/utils/ApiMetaData/ApiMetaData.d.ts +30 -0
  248. package/dist/src/utils/ApiMetaData/__tests__/ApiMetaData.test.d.ts +1 -0
  249. package/dist/src/utils/ApiMetaData/__tests__/mocks.d.ts +40 -0
  250. package/dist/src/utils/ApiMetaData/index.d.ts +7 -0
  251. package/dist/src/utils/Benchmark/Benchmark.d.ts +2 -0
  252. package/dist/src/utils/Benchmark/BenchmarkReporter.d.ts +11 -0
  253. package/dist/src/utils/Benchmark/MainThreadBenchmark.d.ts +20 -0
  254. package/dist/src/utils/Benchmark/TestRoutineRecorder.d.ts +24 -0
  255. package/dist/src/utils/Benchmark/WorkerBenchmark.d.ts +15 -0
  256. package/dist/src/utils/Benchmark/index.d.ts +4 -0
  257. package/dist/src/utils/Benchmark/types.d.ts +7 -0
  258. package/dist/src/utils/ClosedRange.d.ts +6 -0
  259. package/dist/src/utils/DebugGui/DebugGui.d.ts +2 -0
  260. package/dist/src/utils/DebugGui/DebugGuiStore.d.ts +26 -0
  261. package/dist/src/utils/DebugGui/DeepProxy.d.ts +11 -0
  262. package/dist/src/utils/DebugGui/MainThreadDebugGui.d.ts +9 -0
  263. package/dist/src/utils/DebugGui/WorkerDebugGui.d.ts +17 -0
  264. package/dist/src/utils/DebugGui/guifyObject.d.ts +6 -0
  265. package/dist/src/utils/DebugGui/index.d.ts +4 -0
  266. package/dist/src/utils/DebugMode.d.ts +4 -0
  267. package/dist/src/utils/Downloader.d.ts +24 -0
  268. package/dist/src/utils/Enums.d.ts +55 -0
  269. package/dist/src/utils/Keyhold/Keyhold.d.ts +8 -0
  270. package/dist/src/utils/Keyhold/KeyholdListener.d.ts +6 -0
  271. package/dist/src/utils/Keyhold/__tests__/Keyhold.test.d.ts +1 -0
  272. package/dist/src/utils/Keyhold/__tests__/KeyholdListener.test.d.ts +1 -0
  273. package/dist/src/utils/Keyhold/index.d.ts +2 -0
  274. package/dist/src/utils/ModifierKeyNames.d.ts +5 -0
  275. package/dist/src/utils/Queue.d.ts +7 -0
  276. package/dist/src/utils/Scaling/scaleFarPlane.d.ts +7 -0
  277. package/dist/src/utils/Stack.d.ts +6 -0
  278. package/dist/src/utils/ZoomExtents/__tests__/computePoseToFitBoxFromPosition.test.d.ts +3 -0
  279. package/dist/src/utils/ZoomExtents/__tests__/computePoseToFitBoxWithAngles.test.d.ts +1 -0
  280. package/dist/src/utils/ZoomExtents/__tests__/computeRefinedBbox.test.d.ts +1 -0
  281. package/dist/src/utils/ZoomExtents/computePoseToFitBoxFromPosition.d.ts +9 -0
  282. package/dist/src/utils/ZoomExtents/computePoseToFitBoxWithAngles.d.ts +11 -0
  283. package/dist/src/utils/ZoomExtents/computeRefinedBbox.d.ts +8 -0
  284. package/dist/src/utils/ZoomExtents/constants.d.ts +3 -0
  285. package/dist/src/utils/ZoomExtents/createZoomExtentsDebugGui.d.ts +10 -0
  286. package/dist/src/utils/ZoomExtents/index.d.ts +4 -0
  287. package/dist/src/utils/ZoomExtents/utils.d.ts +9 -0
  288. package/dist/src/utils/constants.d.ts +4 -0
  289. package/dist/src/utils/fullColorHex.d.ts +1 -0
  290. package/dist/src/utils/i18n.d.ts +5 -0
  291. package/dist/src/utils/isRunningInWorker.d.ts +1 -0
  292. package/dist/src/utils/memoryUsed.d.ts +7 -0
  293. package/dist/src/utils/singletons.d.ts +2 -0
  294. package/dist/src/validateOptions/__tests__/checkTools.test.d.ts +1 -0
  295. package/dist/src/validateOptions/__tests__/validateOptions.test.d.ts +1 -0
  296. package/dist/src/validateOptions/checkTools.d.ts +7 -0
  297. package/dist/src/validateOptions/index.d.ts +1 -0
  298. package/dist/src/validateOptions/validateOptions.d.ts +15 -0
  299. package/dist/src/viewer.d.ts +21 -0
  300. package/dist/src/workers/render_engine.worker.d.ts +1 -0
  301. package/dist/test/Benchmark/BenchmarkReporter.test.d.ts +1 -0
  302. package/dist/test/Benchmark/MainThreadBenchmark.test.d.ts +1 -0
  303. package/dist/test/Benchmark/WorkerBenchmark.test.d.ts +1 -0
  304. package/dist/test/CameraNamespace.test.d.ts +1 -0
  305. package/dist/test/ClosedRange.test.d.ts +1 -0
  306. package/dist/test/ContextMenuComponent.test.d.ts +1 -0
  307. package/dist/test/DomController.test.d.ts +1 -0
  308. package/dist/test/Downloader.test.d.ts +1 -0
  309. package/dist/test/EventsNamespace.test.d.ts +1 -0
  310. package/dist/test/HttpClient.test.d.ts +1 -0
  311. package/dist/test/ModifierKeyNames.test.d.ts +1 -0
  312. package/dist/test/RenderController.test.d.ts +1 -0
  313. package/dist/test/Sdk.test.d.ts +1 -0
  314. package/dist/test/Utils.test.d.ts +1 -0
  315. package/dist/test/WindowAlertComponent.test.d.ts +1 -0
  316. package/dist/test/WindowViewPropertiesComponent/filterProperties.test.d.ts +1 -0
  317. package/dist/test/WindowViewPropertiesComponent/highlightSearchTerm.test.d.ts +1 -0
  318. package/dist/test/globalBefore.d.ts +1 -0
  319. package/dist/test/i18n.test.d.ts +1 -0
  320. package/dist/test/index.d.ts +1 -0
  321. package/dist/test/test-samples/measurements_coord.d.ts +5 -0
  322. package/dist/test/utils/MeshnodeDescriptor.d.ts +4 -0
  323. package/dist/test/utils/MockMeshnode.d.ts +16 -0
  324. package/dist/test/utils/MockNode.d.ts +20 -0
  325. package/dist/test/utils/MockPWF.d.ts +17 -0
  326. package/dist/test/utils/NodeDescriptor.d.ts +10 -0
  327. package/package.json +2 -1
@@ -0,0 +1,44 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ type BcfCameraOrthogonal = {
3
+ camera_view_point: {
4
+ x: number;
5
+ y: number;
6
+ z: number;
7
+ };
8
+ camera_direction: {
9
+ x: number;
10
+ y: number;
11
+ z: number;
12
+ };
13
+ camera_up_vector: {
14
+ x: number;
15
+ y: number;
16
+ z: number;
17
+ };
18
+ target_distance: number;
19
+ unit: string;
20
+ vertical_extent: number;
21
+ };
22
+ export declare const BcfCameraOrthogonalSchema: JSONSchemaType<BcfCameraOrthogonal>;
23
+ type BcfCameraPerspective = {
24
+ camera_view_point: {
25
+ x: number;
26
+ y: number;
27
+ z: number;
28
+ };
29
+ camera_direction: {
30
+ x: number;
31
+ y: number;
32
+ z: number;
33
+ };
34
+ camera_up_vector: {
35
+ x: number;
36
+ y: number;
37
+ z: number;
38
+ };
39
+ target_distance: number;
40
+ unit: string;
41
+ field_of_view: number;
42
+ };
43
+ export declare const BcfCameraPerspectiveSchema: JSONSchemaType<BcfCameraPerspective>;
44
+ export {};
@@ -0,0 +1,4 @@
1
+ export type SelectToolPayload = {
2
+ origin: string;
3
+ tool: number;
4
+ };
@@ -0,0 +1,17 @@
1
+ export type Vector2 = {
2
+ x: number;
3
+ y: number;
4
+ };
5
+ export type Vector3 = {
6
+ x: number;
7
+ y: number;
8
+ z: number;
9
+ };
10
+ export type BoundingBox = {
11
+ max: Vector3;
12
+ min: Vector3;
13
+ };
14
+ export type Pose = {
15
+ position: THREE.Vector3;
16
+ lookAt: THREE.Vector3;
17
+ };
@@ -0,0 +1,18 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { Node } from '../pwfreader/shared/Node';
3
+ type NodeId = ReturnType<Node['nodeId']>;
4
+ export type Color = {
5
+ color: string;
6
+ opacity: number;
7
+ };
8
+ export type Palette = {
9
+ default?: Color;
10
+ xray?: Color;
11
+ selected?: Color;
12
+ };
13
+ type PaletteParams = {
14
+ palette: Palette;
15
+ objectIds: NodeId[];
16
+ };
17
+ export declare const PaletteParamSchema: JSONSchemaType<PaletteParams[]>;
18
+ export {};
@@ -0,0 +1,15 @@
1
+ import { NodeAsObject, BoundingBox } from '../pwfreader/shared/Node';
2
+ export type NodeAsObjectWithSelectedState = {
3
+ selected: boolean;
4
+ partiallySelected: boolean;
5
+ } & NodeAsObject;
6
+ export type PublicNode = {
7
+ id: number;
8
+ bbox: BoundingBox;
9
+ nodeType: number;
10
+ hidden: boolean;
11
+ selected: boolean;
12
+ partiallySelected: boolean;
13
+ parentId?: number;
14
+ children: number[];
15
+ };
@@ -0,0 +1 @@
1
+ export type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
@@ -0,0 +1,107 @@
1
+ import { Project } from '../api/types/Project';
2
+ import { FileExtraction, GeometryFile } from '../api/types/FileExtraction';
3
+ import { Model, ModelRevision } from '../api/types/Model';
4
+ import { Vector3 } from './Math';
5
+ export type Tool = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
6
+ type SelectionTypes = 'FirstObject' | 'Geometry';
7
+ type FeatureFlags = Partial<{
8
+ enableObjectTreeSearch: boolean;
9
+ }>;
10
+ type CommonOptions = {
11
+ /**
12
+ * Always required
13
+ */
14
+ projectId: Project['id'];
15
+ parentElement: HTMLElement;
16
+ /**
17
+ * Sometimes required
18
+ */
19
+ /**
20
+ * Always optional
21
+ */
22
+ companyId?: number;
23
+ tools?: Tool[];
24
+ bcfCamera?: any;
25
+ min_boundary?: Vector3;
26
+ max_boundary?: Vector3;
27
+ rotation?: Vector3;
28
+ plans?: any[];
29
+ levels?: any[];
30
+ locale?: string;
31
+ baseUrl?: string;
32
+ accessToken?: string;
33
+ debug?: boolean;
34
+ multiselect?: boolean;
35
+ selection?: SelectionTypes;
36
+ enableWebWorker?: boolean;
37
+ featureFlags?: FeatureFlags;
38
+ };
39
+ /**
40
+ * API Configurations
41
+ *
42
+ * The Web Viewer can be configured to fetch resources (basically PWF files and
43
+ * properties) in a variety of ways. These types attempt to accurately declare
44
+ * the valid configurations that we support.
45
+ */
46
+ export type GeometryBundle = {
47
+ nodeUrl: GeometryFile['url'];
48
+ meshnodeUrl: GeometryFile['url'];
49
+ meshUrl?: GeometryFile['url'];
50
+ manifestUrl?: GeometryFile['url'];
51
+ streamingUrlBase?: GeometryFile['url'];
52
+ };
53
+ type PwfV2Bundle = {
54
+ nodeUrl: GeometryFile['url'];
55
+ meshnodeUrl: GeometryFile['url'];
56
+ meshUrl: GeometryFile['url'];
57
+ manifestUrl: GeometryFile['url'];
58
+ };
59
+ type PwfV1Bundle = {
60
+ nodeUrl: GeometryFile['url'];
61
+ meshnodeUrl: GeometryFile['url'];
62
+ meshUrl: GeometryFile['url'];
63
+ };
64
+ type PwfStreamingBundle = {
65
+ nodeUrl: GeometryFile['url'];
66
+ meshnodeUrl: GeometryFile['url'];
67
+ streamingUrlBase: GeometryFile['url'];
68
+ };
69
+ export type FileExtractionModePwfV1OverrideOptions = CommonOptions & PwfV1Bundle & {
70
+ fileExtractionId: FileExtraction['id'];
71
+ };
72
+ export type FileExtractionModePwfV2OverrideOptions = CommonOptions & PwfV2Bundle & {
73
+ fileExtractionId: FileExtraction['id'];
74
+ };
75
+ export type FileExtractionModeStreamingOverrideOptions = CommonOptions & PwfStreamingBundle & {
76
+ fileExtractionId: FileExtraction['id'];
77
+ };
78
+ export type FileExtractionModeOptions = CommonOptions & {
79
+ fileExtractionId: FileExtraction['id'];
80
+ };
81
+ export type ModelRevisionModePwfV1Options = CommonOptions & PwfV1Bundle & {
82
+ modelId: Model['id'];
83
+ modelRevisionId: ModelRevision['id'];
84
+ };
85
+ export type ModelRevisionModePwfV2Options = CommonOptions & PwfV2Bundle & {
86
+ modelId: Model['id'];
87
+ modelRevisionId: ModelRevision['id'];
88
+ };
89
+ export type ModelRevisionModeStreamingOptions = CommonOptions & PwfStreamingBundle & {
90
+ modelId: Model['id'];
91
+ modelRevisionId: ModelRevision['id'];
92
+ };
93
+ export type Options = FileExtractionModePwfV2OverrideOptions | FileExtractionModePwfV1OverrideOptions | FileExtractionModeStreamingOverrideOptions | FileExtractionModeOptions | ModelRevisionModePwfV2Options | ModelRevisionModePwfV1Options | ModelRevisionModeStreamingOptions;
94
+ export declare const isModelRevisionModePwfV1Options: (options: Options) => options is ModelRevisionModePwfV1Options;
95
+ export declare const isModelRevisionModePwfV2Options: (options: Options) => options is ModelRevisionModePwfV2Options;
96
+ export declare const isModelRevisionModeStreamingOptions: (options: Options) => options is ModelRevisionModeStreamingOptions;
97
+ export declare const isFileExtractionModePwfV1OverrideOptions: (options: Options) => options is FileExtractionModePwfV1OverrideOptions;
98
+ export declare const isFileExtractionModePwfV2OverrideOptions: (options: Options) => options is FileExtractionModePwfV2OverrideOptions;
99
+ export declare const isFileExtractionModeStreamingOverrideOptions: (options: Options) => options is FileExtractionModeStreamingOverrideOptions;
100
+ export declare const isFileExtractionModeOptions: (options: Options) => options is FileExtractionModeOptions;
101
+ export {};
102
+ /**
103
+ * Type Testing
104
+ *
105
+ * Uncomment these lines to test that the types are working as intended. If you
106
+ * create a new valid configuration, add it here to make sure it blends.
107
+ */
@@ -0,0 +1,29 @@
1
+ export namespace UnitUtil {
2
+ namespace DisplayUnit {
3
+ const METERS: number;
4
+ const MILLIMETERS: number;
5
+ const FEETINCHES: number;
6
+ }
7
+ namespace Units {
8
+ const Meters: number;
9
+ const Centimeters: number;
10
+ const Millimeters: number;
11
+ const Feet: number;
12
+ const Inches: number;
13
+ const Yards: number;
14
+ const Kilometers: number;
15
+ const Miles: number;
16
+ const Micrometers: number;
17
+ const Mils: number;
18
+ const Microinches: number;
19
+ }
20
+ const ScaleFactors: number[][];
21
+ function unitFromAbbreviation(abbv: any): number;
22
+ function unitConvert(value: any, targetUnit: any, sourceUnit: any, pow: any): number;
23
+ function vulgarFraction(frac: any): "" | "1" | "⅓" | "⅔" | "⅛" | "¼" | "⅜" | "½" | "⅝" | "¾" | "⅞";
24
+ function formatAs(value: any, displayUnit: any): string | {
25
+ entire: string;
26
+ whole: string;
27
+ fraction: string;
28
+ };
29
+ }
@@ -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,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,2 @@
1
+ import { MainThreadBenchmark } from './MainThreadBenchmark';
2
+ export declare const Benchmark: typeof MainThreadBenchmark;
@@ -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,4 @@
1
+ export { BenchmarkReporter } from './BenchmarkReporter';
2
+ export { WorkerBenchmark } from './WorkerBenchmark';
3
+ export { Benchmark } from './Benchmark';
4
+ export { TestRoutineRecorder } from './TestRoutineRecorder';
@@ -0,0 +1,7 @@
1
+ export type MetricId = string;
2
+ export type Metric = {
3
+ start: number | null;
4
+ end: number | null;
5
+ result: number | null;
6
+ logValue: any;
7
+ };
@@ -0,0 +1,6 @@
1
+ export class ClosedRange {
2
+ constructor(lower: any, upper: any);
3
+ lower: any;
4
+ upper: any;
5
+ contains(value: any): boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ import { MainThreadDebugGui } from './MainThreadDebugGui';
2
+ export declare const DebugGui: typeof MainThreadDebugGui;
@@ -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,4 @@
1
+ export { DebugGuiStore } from './DebugGuiStore';
2
+ export { DebugGui } from './DebugGui';
3
+ export { WorkerDebugGui } from './WorkerDebugGui';
4
+ export { GuiStore } from './guifyObject';
@@ -0,0 +1,4 @@
1
+ export declare namespace DebugMode {
2
+ const set: (value: boolean) => void;
3
+ const isActive: () => boolean;
4
+ }
@@ -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
+ }