@cognite/reveal 4.33.0 → 4.34.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 (410) hide show
  1. package/dist/assets/eptBinaryDecoder.worker-DXT9usP2.js.map +1 -0
  2. package/dist/index.js +18106 -1000
  3. package/dist/index.js.map +1 -1
  4. package/dist/packages/360-images/src/Image360Facade.d.ts +9 -13
  5. package/dist/packages/360-images/src/Image360History.d.ts +2 -5
  6. package/dist/packages/360-images/src/annotation/Image360Annotation.d.ts +2 -5
  7. package/dist/packages/360-images/src/annotation/Image360AnnotationFilter.d.ts +2 -5
  8. package/dist/packages/360-images/src/annotation/Image360AnnotationIntersection.d.ts +3 -6
  9. package/dist/packages/360-images/src/annotation/ImageAnnotationObject.d.ts +4 -8
  10. package/dist/packages/360-images/src/annotation/geometry/BoxAnnotationGeometryData.d.ts +3 -7
  11. package/dist/packages/360-images/src/annotation/geometry/DmMesh3dAnnotationGeometryData.d.ts +2 -6
  12. package/dist/packages/360-images/src/annotation/geometry/ImageAnnotationGeometryData.d.ts +1 -4
  13. package/dist/packages/360-images/src/annotation/geometry/PolygonAnnotationGeometryData.d.ts +3 -7
  14. package/dist/packages/360-images/src/annotation/geometry/Vector3ArrayUtils.d.ts +0 -3
  15. package/dist/packages/360-images/src/annotation/geometry/createTriangleIndexesFromVectors.d.ts +0 -3
  16. package/dist/packages/360-images/src/annotation/geometry/utils.d.ts +1 -5
  17. package/dist/packages/360-images/src/annotation/getInstanceId.d.ts +2 -5
  18. package/dist/packages/360-images/src/annotation/typeGuards.d.ts +2 -5
  19. package/dist/packages/360-images/src/annotation/types.d.ts +3 -6
  20. package/dist/packages/360-images/src/cache/Image360LoadingCache.d.ts +3 -6
  21. package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +13 -17
  22. package/dist/packages/360-images/src/collection/Image360Collection.d.ts +8 -12
  23. package/dist/packages/360-images/src/collection/Image360CollectionFactory.d.ts +6 -9
  24. package/dist/packages/360-images/src/collection/createCollectionIdString.d.ts +1 -4
  25. package/dist/packages/360-images/src/entity/Image360.d.ts +5 -9
  26. package/dist/packages/360-images/src/entity/Image360Entity.d.ts +9 -13
  27. package/dist/packages/360-images/src/entity/Image360FaceTextureLoader.d.ts +34 -0
  28. package/dist/packages/360-images/src/entity/Image360Revision.d.ts +2 -5
  29. package/dist/packages/360-images/src/entity/Image360RevisionEntity.d.ts +9 -9
  30. package/dist/packages/360-images/src/entity/Image360VisualizationBox.d.ts +14 -10
  31. package/dist/packages/360-images/src/icons/FlooredIconManager.d.ts +3 -7
  32. package/dist/packages/360-images/src/icons/IconCollection.d.ts +6 -11
  33. package/dist/packages/360-images/src/icons/clustering/ClusterRenderingStrategy.d.ts +2 -5
  34. package/dist/packages/360-images/src/icons/clustering/HtmlClusterCoordinator.d.ts +2 -5
  35. package/dist/packages/360-images/src/icons/clustering/HtmlClusterRenderer.d.ts +3 -6
  36. package/dist/packages/360-images/src/typeGuards.d.ts +2 -0
  37. package/dist/packages/360-images/src/types.d.ts +6 -9
  38. package/dist/packages/360-images/src/utils/JpegDataStreamParser.d.ts +38 -0
  39. package/dist/packages/360-images/visual-tests/Image360.VisualTest.d.ts +12 -0
  40. package/dist/packages/3d-overlays/src/CameraChangeThrottler.d.ts +1 -1
  41. package/dist/packages/3d-overlays/src/IconOctree.d.ts +4 -9
  42. package/dist/packages/3d-overlays/src/Overlay3D.d.ts +1 -4
  43. package/dist/packages/3d-overlays/src/Overlay3DCollection.d.ts +3 -7
  44. package/dist/packages/3d-overlays/src/Overlay3DIcon.d.ts +3 -7
  45. package/dist/packages/3d-overlays/src/OverlayCollection.d.ts +2 -5
  46. package/dist/packages/3d-overlays/src/OverlayPointsObject.d.ts +1 -5
  47. package/dist/packages/api/index.d.ts +1 -2
  48. package/dist/packages/api/src/api-helpers/Image360ApiHelper.d.ts +7 -8
  49. package/dist/packages/api/src/migration.d.ts +7 -0
  50. package/dist/packages/api/src/public/RevealManager.d.ts +10 -10
  51. package/dist/packages/api/src/public/RevealOptions.d.ts +2 -2
  52. package/dist/packages/api/src/public/createRevealManager.d.ts +5 -5
  53. package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +11 -14
  54. package/dist/packages/api/src/public/migration/renderOptionsHelpers.d.ts +4 -8
  55. package/dist/packages/api/src/public/migration/types.d.ts +11 -15
  56. package/dist/packages/api/src/public/types.d.ts +4 -7
  57. package/dist/packages/api/src/storage/RevealManagerHelper.d.ts +9 -9
  58. package/dist/packages/api/src/utilities/ViewStateHelper.d.ts +4 -4
  59. package/dist/packages/api/src/utilities/utils.d.ts +4 -7
  60. package/dist/packages/api/src/version.d.ts +1 -0
  61. package/dist/packages/api/visual-tests/ClippingPointCloud.VisualTest.d.ts +5 -0
  62. package/dist/packages/api/visual-tests/Default.VisualTest.d.ts +4 -0
  63. package/dist/packages/api/visual-tests/DefaultPointCloud.VisualTest.d.ts +5 -0
  64. package/dist/packages/api/visual-tests/DefaultTextured.VisualTest.d.ts +5 -0
  65. package/dist/packages/api/visual-tests/FixedPointCloud.VisualTest.d.ts +5 -0
  66. package/dist/packages/api/visual-tests/HighlightedGhosted.VisualTest.d.ts +4 -0
  67. package/dist/packages/api/visual-tests/NodeTransform.VisualTest.d.ts +4 -0
  68. package/dist/packages/api/visual-tests/Outline.VisualTest.d.ts +4 -0
  69. package/dist/packages/api/visual-tests/ReassignNodeStyle.VisualTest.d.ts +4 -0
  70. package/dist/packages/api/visual-tests/StyledTextured.VisualTest.d.ts +5 -0
  71. package/dist/packages/api/visual-tests/TwoModels.VisualTest.d.ts +19 -0
  72. package/dist/packages/cad-geometry-loaders/src/CadManager.d.ts +7 -8
  73. package/dist/packages/cad-geometry-loaders/src/CadModelUpdateHandler.d.ts +8 -8
  74. package/dist/packages/cad-geometry-loaders/src/InternalRevealCadOptions.d.ts +1 -4
  75. package/dist/packages/cad-geometry-loaders/src/createCadManager.d.ts +3 -6
  76. package/dist/packages/cad-geometry-loaders/src/sector/ModelStateHandler.d.ts +0 -3
  77. package/dist/packages/cad-geometry-loaders/src/sector/SectorDownloadScheduler.d.ts +1 -4
  78. package/dist/packages/cad-geometry-loaders/src/sector/SectorLoader.d.ts +4 -7
  79. package/dist/packages/cad-geometry-loaders/src/sector/culling/ByScreenSizeSectorCuller.d.ts +3 -6
  80. package/dist/packages/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +2 -5
  81. package/dist/packages/cad-geometry-loaders/src/sector/culling/WeightFunctionsHelper.d.ts +2 -2
  82. package/dist/packages/cad-geometry-loaders/src/sector/culling/computeSectorCost.d.ts +2 -6
  83. package/dist/packages/cad-geometry-loaders/src/sector/culling/createDetermineSectorInput.d.ts +5 -0
  84. package/dist/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenSectorMapBase.d.ts +2 -5
  85. package/dist/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenV9SectorMap.d.ts +3 -6
  86. package/dist/packages/cad-geometry-loaders/src/sector/culling/types.d.ts +5 -5
  87. package/dist/packages/cad-geometry-loaders/src/sector/rxSectorUtilities.d.ts +2 -5
  88. package/dist/packages/cad-geometry-loaders/src/utilities/reflection.d.ts +7 -0
  89. package/dist/packages/cad-model/src/CadModelFactory.d.ts +4 -5
  90. package/dist/packages/cad-model/src/batching/DrawCallBatchingManager.d.ts +1 -4
  91. package/dist/packages/cad-model/src/batching/MultiBufferBatchingManager.d.ts +5 -5
  92. package/dist/packages/cad-model/src/picking/PickingHandler.d.ts +4 -4
  93. package/dist/packages/cad-model/src/types.d.ts +1 -4
  94. package/dist/packages/cad-model/src/utilities/CustomSectorBounds.d.ts +1 -1
  95. package/dist/packages/cad-model/src/utilities/GeometryBufferUtils.d.ts +1 -4
  96. package/dist/packages/cad-model/src/utilities/TreeIndexToSectorsMap.d.ts +1 -4
  97. package/dist/packages/cad-model/src/utilities/getShaderMaterial.d.ts +2 -5
  98. package/dist/packages/cad-model/src/wrappers/CadMeshManager.d.ts +8 -11
  99. package/dist/packages/cad-model/src/wrappers/CadNode.d.ts +7 -16
  100. package/dist/packages/cad-model/src/wrappers/CogniteCadModel.d.ts +5 -6
  101. package/dist/packages/cad-model/visual-tests/CadClipping.VisualTest.d.ts +4 -0
  102. package/dist/packages/cad-model/visual-tests/DebugLoadedSectorsTool.d.ts +26 -0
  103. package/dist/packages/cad-model/visual-tests/Rotation.VisualTest.d.ts +4 -0
  104. package/dist/packages/cad-model/visual-tests/Scale.VisualTest.d.ts +4 -0
  105. package/dist/packages/cad-model/visual-tests/SectorBoundingBoxes.VisualTest.d.ts +33 -0
  106. package/dist/packages/cad-parsers/src/cad/filterPrimitivesV9.d.ts +0 -3
  107. package/dist/packages/cad-parsers/src/cad/types.d.ts +4 -4
  108. package/dist/packages/cad-parsers/src/metadata/CadMetadataParser.d.ts +1 -4
  109. package/dist/packages/cad-parsers/src/metadata/CadModelClipper.d.ts +1 -1
  110. package/dist/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +3 -3
  111. package/dist/packages/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +3 -7
  112. package/dist/packages/cad-parsers/src/metadata/parsers/CadMetadataParserGltf.d.ts +2 -2
  113. package/dist/packages/cad-parsers/src/sector/RootSectorNode.d.ts +2 -2
  114. package/dist/packages/cad-parsers/src/sector/SectorNode.d.ts +1 -1
  115. package/dist/packages/cad-parsers/src/utilities/SectorScene.d.ts +2 -2
  116. package/dist/packages/cad-parsers/src/utilities/SectorSceneFactory.d.ts +2 -2
  117. package/dist/packages/cad-parsers/src/utilities/types.d.ts +1 -1
  118. package/dist/packages/cad-styling/index.d.ts +1 -0
  119. package/dist/packages/cad-styling/src/AssetNodeCollection.d.ts +6 -6
  120. package/dist/packages/cad-styling/src/CdfNodeCollectionBase.d.ts +3 -3
  121. package/dist/packages/cad-styling/src/ClippingPlanesProvider.d.ts +11 -0
  122. package/dist/packages/cad-styling/src/CombineNodeCollectionBase.d.ts +3 -6
  123. package/dist/packages/cad-styling/src/IntersectionNodeCollection.d.ts +3 -6
  124. package/dist/packages/cad-styling/src/InvertedNodeCollection.d.ts +3 -6
  125. package/dist/packages/cad-styling/src/NodeAppearance.d.ts +0 -3
  126. package/dist/packages/cad-styling/src/NodeAppearanceProvider.d.ts +4 -7
  127. package/dist/packages/cad-styling/src/NodeAppearanceTextureBuilder.d.ts +3 -3
  128. package/dist/packages/cad-styling/src/NodeCollection.d.ts +3 -6
  129. package/dist/packages/cad-styling/src/NodeCollectionDeserializer.d.ts +4 -7
  130. package/dist/packages/cad-styling/src/NodeIdNodeCollection.d.ts +4 -7
  131. package/dist/packages/cad-styling/src/PopulateIndexSetFromPagedResponseHelper.d.ts +3 -4
  132. package/dist/packages/cad-styling/src/PropertyFilterNodeCollection.d.ts +3 -6
  133. package/dist/packages/cad-styling/src/SinglePropertyFilterNodeCollection.d.ts +4 -7
  134. package/dist/packages/cad-styling/src/TreeIndexNodeCollection.d.ts +4 -4
  135. package/dist/packages/cad-styling/src/UnionNodeCollection.d.ts +3 -6
  136. package/dist/packages/cad-styling/src/nodeAppearanceSerialization.d.ts +1 -4
  137. package/dist/packages/cad-styling/src/prioritized/AreaCollection.d.ts +1 -4
  138. package/dist/packages/cad-styling/src/prioritized/BoxClusterer.d.ts +0 -3
  139. package/dist/packages/cad-styling/src/prioritized/ClusteredAreaCollection.d.ts +2 -5
  140. package/dist/packages/cad-styling/src/prioritized/EmptyAreaCollection.d.ts +2 -5
  141. package/dist/packages/cad-styling/src/prioritized/types.d.ts +1 -4
  142. package/dist/packages/cad-styling/src/stubs/StubNodeCollection.d.ts +19 -0
  143. package/dist/packages/cad-styling/src/transform/NodeTransformProvider.d.ts +1 -4
  144. package/dist/packages/cad-styling/src/transform/NodeTransformTextureBuilder.d.ts +1 -1
  145. package/dist/packages/cad-styling/visual-tests/CustomWithStyling.VisualTest.d.ts +4 -0
  146. package/dist/packages/cad-styling/visual-tests/Highlighted.VisualTest.d.ts +4 -0
  147. package/dist/packages/camera-manager/app/index.d.ts +1 -0
  148. package/dist/packages/camera-manager/src/CameraManager.d.ts +2 -5
  149. package/dist/packages/camera-manager/src/CameraManagerHelper.d.ts +1 -5
  150. package/dist/packages/camera-manager/src/ComboControls.d.ts +1 -4
  151. package/dist/packages/camera-manager/src/DefaultCameraManager.d.ts +4 -4
  152. package/dist/packages/camera-manager/src/Flexible/DampedSpherical.d.ts +0 -3
  153. package/dist/packages/camera-manager/src/Flexible/DampedVector3.d.ts +0 -3
  154. package/dist/packages/camera-manager/src/Flexible/FlexibleCameraEventTarget.d.ts +3 -6
  155. package/dist/packages/camera-manager/src/Flexible/FlexibleCameraManager.d.ts +5 -9
  156. package/dist/packages/camera-manager/src/Flexible/FlexibleCameraMarkers.d.ts +2 -5
  157. package/dist/packages/camera-manager/src/Flexible/FlexibleControls.d.ts +3 -7
  158. package/dist/packages/camera-manager/src/Flexible/FlexibleControlsOptions.d.ts +0 -3
  159. package/dist/packages/camera-manager/src/Flexible/FlexibleControlsRotationHelper.d.ts +1 -4
  160. package/dist/packages/camera-manager/src/Flexible/FlexibleControlsTranslator.d.ts +2 -5
  161. package/dist/packages/camera-manager/src/Flexible/GetPickedPointByPixelCoordinates.d.ts +1 -4
  162. package/dist/packages/camera-manager/src/Flexible/IFlexibleCameraManager.d.ts +4 -7
  163. package/dist/packages/camera-manager/src/Flexible/moveCamera.d.ts +1 -4
  164. package/dist/packages/camera-manager/src/ProxyCameraManager.d.ts +3 -6
  165. package/dist/packages/camera-manager/src/StationaryCameraManager.d.ts +3 -7
  166. package/dist/packages/camera-manager/src/types.d.ts +1 -4
  167. package/dist/packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.d.ts +2 -5
  168. package/dist/packages/data-providers/src/DataModelsSdk.d.ts +2 -5
  169. package/dist/packages/data-providers/src/DataSourceType.d.ts +5 -8
  170. package/dist/packages/data-providers/src/Image360Provider.d.ts +3 -6
  171. package/dist/packages/data-providers/src/Image360ProviderCombiner.d.ts +5 -8
  172. package/dist/packages/data-providers/src/ModelDataProvider.d.ts +1 -4
  173. package/dist/packages/data-providers/src/ModelIdentifier.d.ts +2 -5
  174. package/dist/packages/data-providers/src/ModelMetadataProvider.d.ts +2 -2
  175. package/dist/packages/data-providers/src/PointCloudStylableObjectProvider.d.ts +2 -5
  176. package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageAnnotationCache.d.ts +3 -6
  177. package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageAnnotationProvider.d.ts +5 -8
  178. package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageFileProvider.d.ts +3 -3
  179. package/dist/packages/data-providers/src/image-360-data-providers/CdfImageFileProvider.d.ts +3 -5
  180. package/dist/packages/data-providers/src/image-360-data-providers/CoreDm360ImageAnnotationProvider.d.ts +4 -7
  181. package/dist/packages/data-providers/src/image-360-data-providers/Local360ImageProvider.d.ts +5 -5
  182. package/dist/packages/data-providers/src/image-360-data-providers/annotations.d.ts +1 -1
  183. package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchAnnotationsForInstance.d.ts +3 -6
  184. package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForCollection.d.ts +4 -7
  185. package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForRevision.d.ts +4 -7
  186. package/dist/packages/data-providers/src/image-360-data-providers/cdm/getImage360Map.d.ts +4 -7
  187. package/dist/packages/data-providers/src/image-360-data-providers/cdm/getObject3dAssetMap.d.ts +3 -6
  188. package/dist/packages/data-providers/src/image-360-data-providers/cdm/properties.d.ts +1 -4
  189. package/dist/packages/data-providers/src/image-360-data-providers/cdm/queryNodesAndEdges.d.ts +1 -4
  190. package/dist/packages/data-providers/src/image-360-data-providers/cdm/readAnnotations.d.ts +3 -6
  191. package/dist/packages/data-providers/src/image-360-data-providers/cdm/transformCdmAnnotations.d.ts +3 -3
  192. package/dist/packages/data-providers/src/image-360-data-providers/cdm/transformSphericalCoordinatesToVectors.d.ts +2 -5
  193. package/dist/packages/data-providers/src/image-360-data-providers/cdm/types.d.ts +4 -7
  194. package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/Cdf360CdmBatchCollectionLoader.d.ts +5 -8
  195. package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/Cdf360CdmDescriptorProvider.d.ts +4 -7
  196. package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/get360CdmCollectionsQuery.d.ts +1 -4
  197. package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/system-space/Cdf360DataModelsDescriptorProvider.d.ts +3 -6
  198. package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/events/Cdf360BatchEventCollectionLoader.d.ts +3 -6
  199. package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/events/Cdf360EventDescriptorProvider.d.ts +3 -6
  200. package/dist/packages/data-providers/src/image-360-data-providers/shared.d.ts +4 -7
  201. package/dist/packages/data-providers/src/metadata-providers/CdfModelMetadataProvider.d.ts +4 -5
  202. package/dist/packages/data-providers/src/metadata-providers/LocalModelMetadataProvider.d.ts +3 -4
  203. package/dist/packages/data-providers/src/model-data-providers/CachedModelDataProvider.d.ts +2 -6
  204. package/dist/packages/data-providers/src/model-data-providers/CdfModelDataProvider.d.ts +2 -5
  205. package/dist/packages/data-providers/src/model-data-providers/LocalModelDataProvider.d.ts +1 -4
  206. package/dist/packages/data-providers/src/model-identifiers/CdfModelIdentifier.d.ts +2 -5
  207. package/dist/packages/data-providers/src/model-identifiers/DMModelIdentifier.d.ts +1 -4
  208. package/dist/packages/data-providers/src/model-identifiers/LocalModelIdentifier.d.ts +1 -4
  209. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/CdfPointCloudStylableObjectProvider.d.ts +4 -7
  210. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +3 -6
  211. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/StylableObject.d.ts +1 -4
  212. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +2 -5
  213. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/CdfPointCloudDMStylableObjectProvider.d.ts +4 -7
  214. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/DummyPointCloudDMStylableObjectProvider.d.ts +3 -6
  215. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudObjects.d.ts +4 -4
  216. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudVolumeCollectionQuery.d.ts +2 -5
  217. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/types.d.ts +1 -4
  218. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/utils.d.ts +2 -5
  219. package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +5 -8
  220. package/dist/packages/data-providers/src/requests/fetchDMModelIdFromRevisionId.d.ts +1 -4
  221. package/dist/packages/data-providers/src/types.d.ts +6 -7
  222. package/dist/packages/data-providers/src/utilities/applyDefaultModelTransformation.d.ts +1 -1
  223. package/dist/packages/data-providers/src/utilities/getExternalIdFromDescriptor.d.ts +1 -4
  224. package/dist/packages/data-providers/src/utilities/instanceIds.d.ts +2 -2
  225. package/dist/packages/data-providers/src/utilities/internalAddModelOptions.d.ts +3 -6
  226. package/dist/packages/data-providers/src/utilities/utils.d.ts +3 -6
  227. package/dist/packages/data-source/src/CdfDataSource.d.ts +4 -7
  228. package/dist/packages/data-source/src/DataSource.d.ts +2 -5
  229. package/dist/packages/data-source/src/LocalDataSource.d.ts +3 -6
  230. package/dist/packages/logger/index.d.ts +1 -4
  231. package/dist/packages/metrics/src/Fingerprint/generateAudioFingerprint.d.ts +1 -4
  232. package/dist/packages/metrics/src/Fingerprint/generateCanvasFingerprint.d.ts +1 -4
  233. package/dist/packages/metrics/src/Fingerprint/getUserFingerprint.d.ts +1 -1
  234. package/dist/packages/metrics/src/MetricsLogger.d.ts +3 -3
  235. package/dist/packages/model-base/src/MetadataRepository.d.ts +1 -4
  236. package/dist/packages/nodes-api/src/NodesApiClient.d.ts +1 -1
  237. package/dist/packages/nodes-api/src/NodesCdfClient.d.ts +2 -2
  238. package/dist/packages/nodes-api/src/NodesLocalClient.d.ts +2 -2
  239. package/dist/packages/nodes-api/src/types.d.ts +1 -4
  240. package/dist/packages/pointcloud-styling/src/AnnotationIdPointCloudObjectCollection.d.ts +0 -3
  241. package/dist/packages/pointcloud-styling/src/PointCloudAppearance.d.ts +0 -3
  242. package/dist/packages/pointcloud-styling/src/PointCloudDMVolumeCollection.d.ts +1 -4
  243. package/dist/packages/pointcloud-styling/src/StyledPointCloudVolumeCollection.d.ts +11 -6
  244. package/dist/packages/pointcloud-styling/src/utils.d.ts +2 -5
  245. package/dist/packages/pointclouds/src/ClassificationHandler.d.ts +2 -5
  246. package/dist/packages/pointclouds/src/CognitePointCloudModel.d.ts +8 -8
  247. package/dist/packages/pointclouds/src/PointCloudFactory.d.ts +6 -9
  248. package/dist/packages/pointclouds/src/PointCloudIntersection.d.ts +4 -7
  249. package/dist/packages/pointclouds/src/PointCloudLoadingStateHandler.d.ts +4 -7
  250. package/dist/packages/pointclouds/src/PointCloudManager.d.ts +9 -9
  251. package/dist/packages/pointclouds/src/PointCloudMetadata.d.ts +2 -2
  252. package/dist/packages/pointclouds/src/PointCloudMetadataRepository.d.ts +3 -6
  253. package/dist/packages/pointclouds/src/PointCloudNode.d.ts +8 -13
  254. package/dist/packages/pointclouds/src/PointCloudPickingHandler.d.ts +4 -4
  255. package/dist/packages/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts +2 -5
  256. package/dist/packages/pointclouds/src/classificationsProviders/LocalPointClassificationsProvider.d.ts +3 -6
  257. package/dist/packages/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts +4 -7
  258. package/dist/packages/pointclouds/src/createPointCloudManager.d.ts +3 -6
  259. package/dist/packages/pointclouds/src/decomposeStylableObjects.d.ts +1 -4
  260. package/dist/packages/pointclouds/src/index.d.ts +2 -0
  261. package/dist/packages/pointclouds/src/potree-three-loader/Potree.d.ts +5 -5
  262. package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometry.d.ts +1 -1
  263. package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometryNode.d.ts +1 -1
  264. package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometry.d.ts +5 -5
  265. package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts +4 -5
  266. package/dist/packages/pointclouds/src/potree-three-loader/loading/EptBinaryLoader.d.ts +4 -4
  267. package/dist/packages/pointclouds/src/potree-three-loader/loading/EptLoader.d.ts +1 -1
  268. package/dist/packages/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNode.d.ts +2 -2
  269. package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctree.d.ts +9 -10
  270. package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreeNode.d.ts +4 -5
  271. package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePicker.d.ts +4 -4
  272. package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePickerHelper.d.ts +4 -5
  273. package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudTree.d.ts +1 -1
  274. package/dist/packages/pointclouds/src/potree-three-loader/types/IPotree.d.ts +4 -4
  275. package/dist/packages/pointclouds/src/potree-three-loader/types/IVisibilityUpdateResult.d.ts +1 -1
  276. package/dist/packages/pointclouds/src/potree-three-loader/types/type-predicates.d.ts +3 -3
  277. package/dist/packages/pointclouds/src/potree-three-loader/types/types.d.ts +2 -2
  278. package/dist/packages/pointclouds/src/potree-three-loader/utils/bounds.d.ts +1 -2
  279. package/dist/packages/pointclouds/src/potree-three-loader/utils/box3-helper.d.ts +13 -0
  280. package/dist/packages/pointclouds/src/potree-three-loader/utils/createObjectIdMaps.d.ts +2 -5
  281. package/dist/packages/pointclouds/src/potree-three-loader/utils/lru.d.ts +1 -1
  282. package/dist/packages/pointclouds/src/potree-three-loader/utils/utils.d.ts +3 -3
  283. package/dist/packages/pointclouds/src/potree-three-loader/workers/assignPointsToObjectsWithWasm.d.ts +2 -5
  284. package/dist/packages/pointclouds/src/potree-three-loader/workers/eptBinaryDecoder.worker.d.ts +6 -7
  285. package/dist/packages/pointclouds/src/potree-three-loader/workers/parseEpt.d.ts +3 -3
  286. package/dist/packages/pointclouds/src/potree-three-loader/workers/types.d.ts +1 -4
  287. package/dist/packages/pointclouds/src/typeGuards.d.ts +2 -5
  288. package/dist/packages/pointclouds/src/types.d.ts +3 -6
  289. package/dist/packages/pointclouds/visual-tests/EdlPointCloud.VisualTest.d.ts +10 -0
  290. package/dist/packages/pointclouds/visual-tests/PointCloudColorStyling.VisualTest.d.ts +9 -0
  291. package/dist/packages/pointclouds/wasm/index.d.ts +1 -4
  292. package/dist/packages/rendering/index.d.ts +1 -1
  293. package/dist/packages/rendering/src/CadMaterialManager.d.ts +5 -6
  294. package/dist/packages/rendering/src/PointCloudMaterialManager.d.ts +3 -6
  295. package/dist/packages/rendering/src/RenderPipelineExecutor.d.ts +1 -1
  296. package/dist/packages/rendering/src/RenderPipelineProvider.d.ts +2 -5
  297. package/dist/packages/rendering/src/ResizeHandler.d.ts +2 -5
  298. package/dist/packages/rendering/src/pipeline-executors/BasicPipelineExecutor.d.ts +2 -2
  299. package/dist/packages/rendering/src/pipeline-executors/StepPipelineExecutor.d.ts +17 -0
  300. package/dist/packages/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +3 -7
  301. package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +4 -4
  302. package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectIdMaps.d.ts +1 -4
  303. package/dist/packages/rendering/src/pointcloud-rendering/classification.d.ts +1 -1
  304. package/dist/packages/rendering/src/pointcloud-rendering/constants.d.ts +0 -3
  305. package/dist/packages/rendering/src/pointcloud-rendering/gradients/SpectralGradient.d.ts +1 -1
  306. package/dist/packages/rendering/src/pointcloud-rendering/texture-generation.d.ts +2 -6
  307. package/dist/packages/rendering/src/pointcloud-rendering/types.d.ts +1 -5
  308. package/dist/packages/rendering/src/render-passes/GeometryPass.d.ts +3 -3
  309. package/dist/packages/rendering/src/render-passes/PointCloudEffectsPass.d.ts +3 -3
  310. package/dist/packages/rendering/src/render-passes/PostProcessingPass.d.ts +3 -3
  311. package/dist/packages/rendering/src/render-passes/SSAOPass.d.ts +2 -2
  312. package/dist/packages/rendering/src/render-passes/types.d.ts +2 -5
  313. package/dist/packages/rendering/src/render-pipeline-providers/CadGeometryRenderModePipelineProvider.d.ts +6 -6
  314. package/dist/packages/rendering/src/render-pipeline-providers/CadGeometryRenderPipelineProvider.d.ts +6 -9
  315. package/dist/packages/rendering/src/render-pipeline-providers/DefaultRenderPipelineProvider.d.ts +7 -7
  316. package/dist/packages/rendering/src/render-pipeline-providers/PointCloudRenderPipelineProvider.d.ts +6 -6
  317. package/dist/packages/rendering/src/render-pipeline-providers/pointCloudParameterUtils.d.ts +1 -4
  318. package/dist/packages/rendering/src/render-pipeline-providers/types.d.ts +1 -1
  319. package/dist/packages/rendering/src/rendering/SettableRenderTarget.d.ts +1 -4
  320. package/dist/packages/rendering/src/rendering/materials.d.ts +1 -1
  321. package/dist/packages/rendering/src/utilities/GpuTimer.d.ts +19 -0
  322. package/dist/packages/rendering/src/utilities/renderUtilities.d.ts +4 -4
  323. package/dist/packages/rendering/src/utilities/types.d.ts +1 -4
  324. package/dist/packages/rendering/visual-tests/Blending.VisualTest.d.ts +5 -0
  325. package/dist/packages/rendering/visual-tests/RenderTarget.VisualTest.d.ts +9 -0
  326. package/dist/packages/rendering/visual-tests/Rendering.VisualTest.d.ts +13 -0
  327. package/dist/packages/rendering/visual-tests/Resize.VisualTest.d.ts +5 -0
  328. package/dist/packages/rendering/visual-tests/Ssao.VisualTest.d.ts +4 -0
  329. package/dist/packages/sector-loader/src/GltfSectorLoader.d.ts +2 -5
  330. package/dist/packages/sector-loader/src/GltfSectorRepository.d.ts +3 -6
  331. package/dist/packages/sector-loader/src/SectorRepository.d.ts +2 -5
  332. package/dist/packages/sector-loader/visual-tests/SectorLoader.VisualTest.d.ts +8 -0
  333. package/dist/packages/sector-parser/src/GltfSectorParser.d.ts +1 -1
  334. package/dist/packages/sector-parser/src/constants.d.ts +1 -4
  335. package/dist/packages/sector-parser/src/reveal-glb-parser/GlbMetadataParser.d.ts +1 -4
  336. package/dist/packages/sector-parser/src/reveal-glb-parser/primitiveGeometries.d.ts +1 -1
  337. package/dist/packages/sector-parser/src/types.d.ts +1 -4
  338. package/dist/packages/sector-parser/visual-tests/GeneralCylinder.VisualTest.d.ts +4 -0
  339. package/dist/packages/sector-parser/visual-tests/PrimitivesVisualTestFixture.d.ts +9 -0
  340. package/dist/packages/sector-parser/visual-tests/SectorParser.VisualTest.d.ts +6 -0
  341. package/dist/packages/sector-parser/visual-tests/testMaterials.d.ts +6 -0
  342. package/dist/packages/tools/src/AxisGizmo/AxisGizmoTool.d.ts +2 -2
  343. package/dist/packages/tools/src/AxisGizmo/OneGizmoAxis.d.ts +1 -1
  344. package/dist/packages/tools/src/AxisView/AxisViewTool.d.ts +2 -5
  345. package/dist/packages/tools/src/AxisView/types.d.ts +1 -1
  346. package/dist/packages/tools/src/DebugCameraTool.d.ts +2 -5
  347. package/dist/packages/tools/src/HtmlOverlay/BucketGrid2D.d.ts +1 -1
  348. package/dist/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +3 -3
  349. package/dist/packages/tools/src/Measurement/MeasurementManager.d.ts +2 -2
  350. package/dist/packages/tools/src/Measurement/MeasurementTool.d.ts +4 -7
  351. package/dist/packages/tools/src/Measurement/types.d.ts +1 -4
  352. package/dist/packages/tools/src/Overlay3D/Overlay3DTool.d.ts +4 -7
  353. package/dist/packages/tools/src/Timeline/Keyframe.d.ts +2 -5
  354. package/dist/packages/tools/src/Timeline/TimelineTool.d.ts +2 -5
  355. package/dist/packages/tools/src/Timeline/types.d.ts +1 -4
  356. package/dist/packages/tools/src/utilities/moveCameraTo.d.ts +1 -4
  357. package/dist/packages/tools/visual-tests/Overlay3DTool.VisualTest.d.ts +4 -0
  358. package/dist/packages/utilities/index.d.ts +0 -1
  359. package/dist/packages/utilities/src/CameraConfiguration.d.ts +1 -4
  360. package/dist/packages/utilities/src/ClosestGeometryFinder.d.ts +1 -4
  361. package/dist/packages/utilities/src/SceneHandler.d.ts +1 -1
  362. package/dist/packages/utilities/src/assert.d.ts +11 -0
  363. package/dist/packages/utilities/src/assetMappings/isCdfAssetMapping.d.ts +2 -5
  364. package/dist/packages/utilities/src/assetMappings/types.d.ts +1 -4
  365. package/dist/packages/utilities/src/batchedDebounce.d.ts +1 -4
  366. package/dist/packages/utilities/src/cache/DataFileCacheManager.d.ts +1 -1
  367. package/dist/packages/utilities/src/cache/MemoryRequestCache.d.ts +1 -4
  368. package/dist/packages/utilities/src/cache/index.d.ts +6 -0
  369. package/dist/packages/utilities/src/constants.d.ts +0 -3
  370. package/dist/packages/utilities/src/customObject/CustomObject.d.ts +4 -8
  371. package/dist/packages/utilities/src/customObject/CustomObjectIntersectInput.d.ts +1 -5
  372. package/dist/packages/utilities/src/customObject/CustomObjectIntersection.d.ts +2 -5
  373. package/dist/packages/utilities/src/customObject/ICustomObject.d.ts +3 -6
  374. package/dist/packages/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts +1 -4
  375. package/dist/packages/utilities/src/events/InputHandler.d.ts +1 -1
  376. package/dist/packages/utilities/src/events/PointerEventsTarget.d.ts +1 -1
  377. package/dist/packages/utilities/src/events/disposeOfAllEventListeners.d.ts +1 -4
  378. package/dist/packages/utilities/src/events/getPixelCoordinatesFromEvent.d.ts +0 -3
  379. package/dist/packages/utilities/src/events/types.d.ts +1 -4
  380. package/dist/packages/utilities/src/fdm/toKey.d.ts +1 -4
  381. package/dist/packages/utilities/src/fdm/typeGuards.d.ts +1 -4
  382. package/dist/packages/utilities/src/indexset/IndexSet.d.ts +1 -1
  383. package/dist/packages/utilities/src/indexset/IntermediateIndexNode.d.ts +1 -4
  384. package/dist/packages/utilities/src/indexset/LeafIndexNode.d.ts +1 -1
  385. package/dist/packages/utilities/src/networking/isTheSameDomain.d.ts +11 -0
  386. package/dist/packages/utilities/src/projectedBounds.d.ts +1 -5
  387. package/dist/packages/utilities/src/shapes/Box.d.ts +3 -7
  388. package/dist/packages/utilities/src/shapes/CompositeShape.d.ts +2 -5
  389. package/dist/packages/utilities/src/shapes/Cylinder.d.ts +2 -5
  390. package/dist/packages/utilities/src/shapes/IShape.d.ts +2 -5
  391. package/dist/packages/utilities/src/shapes/SerializableBox.d.ts +2 -5
  392. package/dist/packages/utilities/src/shapes/SerializableCompositeShape.d.ts +1 -4
  393. package/dist/packages/utilities/src/shapes/SerializableCylinder.d.ts +2 -5
  394. package/dist/packages/utilities/src/three/AttributeDataAccessor.d.ts +2 -5
  395. package/dist/packages/utilities/src/three/VariableWidthLine.d.ts +1 -4
  396. package/dist/packages/utilities/src/three/Vector3Pool.d.ts +0 -3
  397. package/dist/packages/utilities/src/three/isPointVisibleByPlanes.d.ts +1 -4
  398. package/dist/packages/utilities/src/three/lines/Line2.d.ts +0 -3
  399. package/dist/packages/utilities/src/three/lines/LineGeometry.d.ts +1 -4
  400. package/dist/packages/utilities/src/three/lines/LineMaterial.d.ts +1 -5
  401. package/dist/packages/utilities/src/three/lines/LineSegments2.d.ts +1 -5
  402. package/dist/packages/utilities/src/three/lines/LineSegmentsGeometry.d.ts +1 -5
  403. package/dist/packages/utilities/src/three/toThreeBox3.d.ts +1 -1
  404. package/dist/packages/utilities/src/transformCameraConfiguration.d.ts +1 -1
  405. package/package.json +19 -41
  406. package/dist/packages/utilities/src/workers/workerize-transferable/index.d.ts +0 -7
  407. package/dist/packages/utilities/src/workers/workerize-transferable/message-types.d.ts +0 -4
  408. package/dist/packages/utilities/src/workers/workerize-transferable/on-main.d.ts +0 -13
  409. package/dist/packages/utilities/src/workers/workerize-transferable/on-worker.d.ts +0 -14
  410. package/dist/packages/utilities/src/workers/workerize-transferable/util.d.ts +0 -10
@@ -1,11 +1,8 @@
1
- /*!
2
- * Copyright 2023 Cognite AS
3
- */
4
- import type { Cognite3DViewer } from '../../../api';
5
- import type { DisposedDelegate } from '../../../utilities';
6
- import * as THREE from 'three';
7
- import type { OverlayInfo, DefaultOverlay3DContentType, OverlayCollection, Overlay3D } from '../../../3d-overlays';
1
+ import { Cognite3DViewer } from '../../../api';
2
+ import { DisposedDelegate } from '../../../utilities';
3
+ import { OverlayInfo, DefaultOverlay3DContentType, OverlayCollection, Overlay3D } from '../../../3d-overlays';
8
4
  import { Cognite3DViewerToolBase } from '../Cognite3DViewerToolBase';
5
+ import * as THREE from 'three';
9
6
  /**
10
7
  * Events related to overlays
11
8
  */
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { CogniteCadModel } from '../../../api';
5
- import type { NodeAppearance, NodeCollection } from '../../../cad-styling';
1
+ import { CogniteCadModel } from '../../../api';
2
+ import { NodeAppearance, NodeCollection } from '../../../cad-styling';
6
3
  /**
7
4
  * Timeline Key Frames contains parameters to access Nodes, Styles for the Timeline
8
5
  */
@@ -1,10 +1,7 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
1
  import { Cognite3DViewerToolBase } from '../Cognite3DViewerToolBase';
5
2
  import { Keyframe } from './Keyframe';
6
- import type { TimelineDateUpdateDelegate } from './types';
7
- import type { CogniteCadModel } from '../../../api';
3
+ import { TimelineDateUpdateDelegate } from './types';
4
+ import { CogniteCadModel } from '../../../api';
8
5
  /**
9
6
  * Tool to applying styles to nodes based on date to play them over in Timeline
10
7
  */
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { Keyframe } from './Keyframe';
1
+ import { Keyframe } from './Keyframe';
5
2
  /**
6
3
  * Delegate for Timeline Date update
7
4
  */
@@ -1,6 +1,3 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { CameraManager } from '../../../camera-manager';
1
+ import { CameraManager } from '../../../camera-manager';
5
2
  import { Vector3 } from 'three';
6
3
  export declare function moveCameraTo(cameraManager: CameraManager, targetAxis: Vector3, targetUpAxis: Vector3, duration: number): void;
@@ -0,0 +1,4 @@
1
+ import { ViewerTestFixtureComponents, ViewerVisualTestFixture } from '../../../visual-tests/test-fixtures/ViewerVisualTestFixture';
2
+ export default class DefaultVisualTest extends ViewerVisualTestFixture {
3
+ setup(components: ViewerTestFixtureComponents): Promise<void>;
4
+ }
@@ -61,7 +61,6 @@ export { isPointVisibleByPlanes } from './src/three/isPointVisibleByPlanes';
61
61
  export { CDF_TO_VIEWER_TRANSFORMATION } from './src/constants';
62
62
  export { createUint8View } from './src/createUint8View';
63
63
  export { isDefined } from './src/isDefined';
64
- export * from './src/workers/workerize-transferable';
65
64
  export * from './src/fdm';
66
65
  export * from './src/assetMappings';
67
66
  export * from './src/shapes';
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { Vector3 } from 'three';
1
+ import { Vector3 } from 'three';
5
2
  /**
6
3
  * Represents a camera configuration, consisting of a camera position and target.
7
4
  */
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
- import { type Vector3 } from 'three';
1
+ import { Vector3 } from 'three';
5
2
  /**
6
3
  * A utility class to find and store the closest geometry to a given origin point.
7
4
  * @template T - The type of the geometry.
@@ -1,8 +1,8 @@
1
+ import { ICustomObject } from './customObject/ICustomObject';
1
2
  /*!
2
3
  * Copyright 2022 Cognite AS
3
4
  */
4
5
  import * as THREE from 'three';
5
- import type { ICustomObject } from './customObject/ICustomObject';
6
6
  export declare class SceneHandler {
7
7
  private readonly _scene;
8
8
  private readonly _cadModels;
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright 2026 Cognite AS
3
+ */
4
+ /**
5
+ * Whatever gets passed into the condition parameter must be true if the assert returns. That means that for the rest of the scope, that condition must be truthy from the perspective of the type checker.
6
+ * Adapted from {@link https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions}
7
+ *
8
+ * @param condition - A condition which is guaranteed to be true for the rest of the calling scope after this function returns.
9
+ * @param msg - The message which should be included in the error given that the condition fails.
10
+ */
11
+ export declare function assert(condition: unknown, msg?: string): asserts condition;
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import type { AssetMapping3D } from '@cognite/sdk';
5
- import type { CdfAssetMapping } from './types';
1
+ import { AssetMapping3D } from '@cognite/sdk';
2
+ import { CdfAssetMapping } from './types';
6
3
  /**
7
4
  * Type guard checking whether the asset mapping contains treeIndex and subtreeSize
8
5
  */
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import type { CogniteInternalId, UnitDMSUniqueIdentifier } from '@cognite/sdk';
1
+ import { CogniteInternalId, UnitDMSUniqueIdentifier } from '@cognite/sdk';
5
2
  /**
6
3
  * A CAD asset mapping that is guaranteed to contain treeIndex and subtreeSize. The only CAD asset
7
4
  * mappings that don't satisfy this rule are from very old CAD models (about pre-2023).
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import debounce from 'lodash/debounce';
1
+ import { debounce } from 'lodash-es';
5
2
  export interface BatchedDebounce<T, R> {
6
3
  (item: T): Promise<R>;
7
4
  cancel: () => void;
@@ -1,4 +1,4 @@
1
- import type { CacheConfig } from './types';
1
+ import { CacheConfig } from './types';
2
2
  /**
3
3
  * Data File Cache Manager using the Browser Cache API for storing various data files
4
4
  * Supports caching of binary files (point clouds, CAD models), images (360 images), and JSON data
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { RequestCache } from './RequestCache';
1
+ import { RequestCache } from './RequestCache';
5
2
  export interface MemoryRequestCacheOptions {
6
3
  maxElementsInCache?: number;
7
4
  }
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2025 Cognite AS
3
+ */
4
+ export { DataFileCacheManager } from './DataFileCacheManager';
5
+ export type { CacheConfig } from './types';
6
+ export { BINARY_FILES_CACHE_NAME } from './constants';
@@ -1,6 +1,3 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
1
  import { Matrix4 } from 'three';
5
2
  export declare const cadFromCdfToThreeMatrix: Matrix4;
6
3
  export declare const cadFromThreeToCdfMatrix: Matrix4;
@@ -1,11 +1,7 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
- import type { Object3D, PerspectiveCamera } from 'three';
5
- import { Box3 } from 'three';
6
- import type { CustomObjectIntersection } from './CustomObjectIntersection';
7
- import type { CustomObjectIntersectInput } from './CustomObjectIntersectInput';
8
- import type { ICustomObject } from './ICustomObject';
1
+ import { Object3D, PerspectiveCamera, Box3 } from 'three';
2
+ import { CustomObjectIntersection } from './CustomObjectIntersection';
3
+ import { CustomObjectIntersectInput } from './CustomObjectIntersectInput';
4
+ import { ICustomObject } from './ICustomObject';
9
5
  /**
10
6
  * This class encasulate a Object3D, and made it possible to add flags to it.
11
7
  * It might be extended with more flags in the future.
@@ -1,8 +1,4 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
- import type { Vector3, Vector2, PerspectiveCamera, Plane } from 'three';
5
- import { Raycaster } from 'three';
1
+ import { Vector3, Vector2, PerspectiveCamera, Plane, Raycaster } from 'three';
6
2
  /**
7
3
  * This class is used as input for intersecting custom objects
8
4
  * @beta
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
- import type { Vector3, Box3 } from 'three';
5
- import type { ICustomObject } from './ICustomObject';
1
+ import { Vector3, Box3 } from 'three';
2
+ import { ICustomObject } from './ICustomObject';
6
3
  /**
7
4
  * This class is used as output intersecting custom objects
8
5
  * @beta
@@ -1,9 +1,6 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
- import type { Object3D, Box3, PerspectiveCamera } from 'three';
5
- import type { CustomObjectIntersection } from './CustomObjectIntersection';
6
- import type { CustomObjectIntersectInput } from './CustomObjectIntersectInput';
1
+ import { Object3D, Box3, PerspectiveCamera } from 'three';
2
+ import { CustomObjectIntersection } from './CustomObjectIntersection';
3
+ import { CustomObjectIntersectInput } from './CustomObjectIntersectInput';
7
4
  /**
8
5
  * This interface encasulate a Object3D, and made it possible to add flags to it.
9
6
  * It might be extended with more flags in the future.
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { TypedArray } from '../types';
1
+ import { TypedArray } from '../types';
5
2
  export declare class DynamicDefragmentedBuffer<T extends TypedArray> {
6
3
  get length(): number;
7
4
  get bufferView(): T;
@@ -1,4 +1,4 @@
1
- import type { PointerEventDelegate } from './types';
1
+ import { PointerEventDelegate } from './types';
2
2
  import { PointerEvents } from './PointerEvents';
3
3
  export declare class InputHandler extends PointerEvents {
4
4
  private readonly _domElement;
@@ -1,4 +1,4 @@
1
- import type { PointerEvents } from './PointerEvents';
1
+ import { PointerEvents } from './PointerEvents';
2
2
  /**
3
3
  * This class fires click, double click, hover end similar events at a PointerEvents
4
4
  * onClick will fired if it's a single click, and the mouse hasn't move too much
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { EventTrigger } from './EventTrigger';
1
+ import { EventTrigger } from './EventTrigger';
5
2
  export type EventCollection = {
6
3
  [eventName: string]: EventTrigger<(...args: any[]) => void>;
7
4
  };
@@ -1,6 +1,3 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
1
  import { Vector2 } from 'three';
5
2
  /**
6
3
  * Determines clicked or touched coordinate as offset
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { PerspectiveCamera, WebGLRenderer } from 'three';
1
+ import { PerspectiveCamera, WebGLRenderer } from 'three';
5
2
  /**
6
3
  * Delegate for pointer events.
7
4
  * @module @cognite/reveal
@@ -1,6 +1,3 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import type { DMExternalId, DMInstanceRef, DMSpace } from './types';
1
+ import { DMExternalId, DMInstanceRef, DMSpace } from './types';
5
2
  export type DMInstanceKey = `${DMSpace}/${DMExternalId}`;
6
3
  export declare function dmInstanceRefToKey(id: DMInstanceRef): DMInstanceKey;
@@ -1,5 +1,2 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import type { DMInstanceRef } from './types';
1
+ import { DMInstanceRef } from './types';
5
2
  export declare function isDmIdentifier(id: unknown): id is DMInstanceRef;
@@ -1,4 +1,4 @@
1
- import type { IntermediateIndexNode } from './IntermediateIndexNode';
1
+ import { IntermediateIndexNode } from './IntermediateIndexNode';
2
2
  import { LeafIndexNode } from './LeafIndexNode';
3
3
  import { NumericRange } from '../NumericRange';
4
4
  export type IndexNode = IntermediateIndexNode | LeafIndexNode;
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2021 Cognite AS
3
- */
4
- import type { IndexNode } from './IndexSet';
1
+ import { IndexNode } from './IndexSet';
5
2
  import { NumericRange } from '../NumericRange';
6
3
  export declare class IntermediateIndexNode {
7
4
  readonly range: NumericRange;
@@ -1,4 +1,4 @@
1
- import type { IndexNode } from './IndexSet';
1
+ import { IndexNode } from './IndexSet';
2
2
  import { NumericRange } from '../NumericRange';
3
3
  export declare class LeafIndexNode {
4
4
  readonly range: NumericRange;
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright 2021 Cognite AS
3
+ */
4
+ /**
5
+ * Use to determine if the strings that represent urls
6
+ * are pointing on different domains.
7
+ * @param url1
8
+ * @param url2 Optional. Default is `location.origin`. If provided then it must be
9
+ * absolute url to avoid comparison between two relative urls.
10
+ */
11
+ export declare function isTheSameDomain(url1: string, url2?: string): boolean;
@@ -1,7 +1,3 @@
1
- /*!
2
- * Copyright 2023 Cognite AS
3
- */
4
- import type { Box3, Matrix4 } from 'three';
5
- import { Box2 } from 'three';
1
+ import { Box3, Matrix4, Box2 } from 'three';
6
2
  export declare function getApproximateProjectedBounds(box: Box3, viewProjectionMatrix: Matrix4): Box2;
7
3
  export declare function getScreenArea(projectedBounds: Box2): number;
@@ -1,10 +1,6 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { Matrix4 } from 'three';
5
- import { Box3 } from 'three';
6
- import type { IShape } from './IShape';
7
- import type { SerializableBox } from './SerializableBox';
1
+ import { Matrix4, Box3 } from 'three';
2
+ import { IShape } from './IShape';
3
+ import { SerializableBox } from './SerializableBox';
8
4
  export declare class Box implements IShape {
9
5
  private readonly _invInstanceMatrix;
10
6
  constructor(instanceMatrix: Matrix4);
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { IShape } from './IShape';
5
- import type { SerializableCompositeShape } from './SerializableCompositeShape';
1
+ import { IShape } from './IShape';
2
+ import { SerializableCompositeShape } from './SerializableCompositeShape';
6
3
  import { Box3 } from 'three';
7
4
  export declare class CompositeShape implements IShape {
8
5
  private readonly _innerShapes;
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { IShape } from './IShape';
5
- import type { SerializableCylinder } from './SerializableCylinder';
1
+ import { IShape } from './IShape';
2
+ import { SerializableCylinder } from './SerializableCylinder';
6
3
  import { Box3, Vector3 } from 'three';
7
4
  export declare class Cylinder implements IShape {
8
5
  private readonly _centerA;
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { ISerializableShape } from './ISerializableShape';
5
- import type { Box3 } from 'three';
1
+ import { ISerializableShape } from './ISerializableShape';
2
+ import { Box3 } from 'three';
6
3
  export interface IShape {
7
4
  getSerializableShape(): ISerializableShape;
8
5
  createBoundingBox(): Box3;
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { ISerializableShape } from './ISerializableShape';
5
- import type { Mat4 } from '../linalg';
1
+ import { ISerializableShape } from './ISerializableShape';
2
+ import { Mat4 } from '../linalg';
6
3
  export type SerializableBox = ISerializableShape & {
7
4
  readonly invMatrix: Mat4;
8
5
  };
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { ISerializableShape } from './ISerializableShape';
1
+ import { ISerializableShape } from './ISerializableShape';
5
2
  export type SerializableCompositeShape = ISerializableShape & {
6
3
  readonly innerShapes: ISerializableShape[];
7
4
  };
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- import type { ISerializableShape } from './ISerializableShape';
5
- import type { Vec3 } from '../linalg';
1
+ import { ISerializableShape } from './ISerializableShape';
2
+ import { Vec3 } from '../linalg';
6
3
  export type SerializableCylinder = ISerializableShape & {
7
4
  centerA: Vec3;
8
5
  centerB: Vec3;
@@ -1,8 +1,5 @@
1
- /*!
2
- * Copyright 2023 Cognite AS
3
- */
4
- import type { BufferAttribute } from 'three';
5
- import type { TypedArray } from '../types';
1
+ import { BufferAttribute } from 'three';
2
+ import { TypedArray } from '../types';
6
3
  export declare class AttributeDataAccessor<T extends TypedArray> {
7
4
  private readonly _dataView;
8
5
  private readonly _attribute;
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2023 Cognite AS
3
- */
4
- import type { Color, Object3D, Vector3 } from 'three';
1
+ import { Color, Object3D, Vector3 } from 'three';
5
2
  export declare class VariableWidthLine {
6
3
  private readonly _geometry;
7
4
  private readonly _lineMaterial;
@@ -1,6 +1,3 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
1
  import { Vector3 } from 'three';
5
2
  /**
6
3
  * Represents a pool of Vector3 objects that can be reused.
@@ -1,7 +1,4 @@
1
- /*!
2
- * Copyright 2024 Cognite AS
3
- */
4
- import type { Vector3, Plane } from 'three';
1
+ import { Vector3, Plane } from 'three';
5
2
  /**
6
3
  * Determines if a point is visible by a set of planes.
7
4
  *
@@ -1,6 +1,3 @@
1
- /*!
2
- * Adapted from threejs examples
3
- */
4
1
  import { LineSegments2 } from './LineSegments2';
5
2
  import { LineGeometry } from './LineGeometry';
6
3
  import { LineMaterial } from './LineMaterial';
@@ -1,7 +1,4 @@
1
- /*!
2
- * Adapted from threejs examples
3
- */
4
- import type { Line } from 'three';
1
+ import { Line } from 'three';
5
2
  import { LineSegmentsGeometry } from './LineSegmentsGeometry';
6
3
  declare class LineGeometry extends LineSegmentsGeometry {
7
4
  type: string;
@@ -1,8 +1,4 @@
1
- /*!
2
- * Adapted from threejs examples
3
- */
4
- import { ShaderMaterial, Vector2, Color } from 'three';
5
- import type { ShaderMaterialParameters } from 'three';
1
+ import { ShaderMaterial, Vector2, Color, ShaderMaterialParameters } from 'three';
6
2
  export type ColorOptions = Color | string | number;
7
3
  export interface LineMaterialParameters extends ShaderMaterialParameters {
8
4
  color?: ColorOptions;
@@ -1,8 +1,4 @@
1
- /*!
2
- * Adapted from threejs examples
3
- */
4
- import type { Raycaster, Intersection } from 'three';
5
- import { Mesh, Vector3 } from 'three';
1
+ import { Raycaster, Intersection, Mesh, Vector3 } from 'three';
6
2
  import { LineSegmentsGeometry } from './LineSegmentsGeometry';
7
3
  import { LineMaterial } from './LineMaterial';
8
4
  declare class LineSegments2 extends Mesh<LineSegmentsGeometry, LineMaterial> {
@@ -1,8 +1,4 @@
1
- /*!
2
- * Adapted from threejs examples
3
- */
4
- import type { BufferGeometry, LineSegments, Matrix4, Mesh } from 'three';
5
- import { Box3, InstancedBufferGeometry, Sphere } from 'three';
1
+ import { BufferGeometry, LineSegments, Matrix4, Mesh, Box3, InstancedBufferGeometry, Sphere } from 'three';
6
2
  declare class LineSegmentsGeometry extends InstancedBufferGeometry {
7
3
  readonly isLineSegmentsGeometry = true;
8
4
  type: string;
@@ -1,6 +1,6 @@
1
+ import { BoundingBox3D } from '@cognite/sdk';
1
2
  /*!
2
3
  * Copyright 2021 Cognite AS
3
4
  */
4
5
  import * as THREE from 'three';
5
- import type { BoundingBox3D } from '@cognite/sdk';
6
6
  export declare function toThreeBox3(boundingBox: BoundingBox3D, out?: THREE.Box3): THREE.Box3;
@@ -1,6 +1,6 @@
1
+ import { CameraConfiguration } from './CameraConfiguration';
1
2
  /*!
2
3
  * Copyright 2021 Cognite AS
3
4
  */
4
5
  import type * as THREE from 'three';
5
- import type { CameraConfiguration } from './CameraConfiguration';
6
6
  export declare function transformCameraConfiguration(cameraConfiguration: CameraConfiguration | undefined, modelMatrix: THREE.Matrix4): CameraConfiguration | undefined;