@cognite/reveal 4.32.2 → 4.33.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.
- package/README.md +1 -1
- package/dist/api-entry-points/core.d.ts +17 -9
- package/dist/api-entry-points/datasource.d.ts +4 -3
- package/dist/index.js +227 -255
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/index.d.ts +14 -12
- package/dist/packages/360-images/src/Image360Facade.d.ts +10 -9
- package/dist/packages/360-images/src/Image360History.d.ts +2 -2
- package/dist/packages/360-images/src/annotation/Image360Annotation.d.ts +2 -2
- package/dist/packages/360-images/src/annotation/Image360AnnotationFilter.d.ts +2 -2
- package/dist/packages/360-images/src/annotation/Image360AnnotationIntersection.d.ts +3 -3
- package/dist/packages/360-images/src/annotation/ImageAnnotationObject.d.ts +5 -4
- package/dist/packages/360-images/src/annotation/geometry/BoxAnnotationGeometryData.d.ts +4 -3
- package/dist/packages/360-images/src/annotation/geometry/DmMesh3dAnnotationGeometryData.d.ts +3 -2
- package/dist/packages/360-images/src/annotation/geometry/ImageAnnotationGeometryData.d.ts +1 -1
- package/dist/packages/360-images/src/annotation/geometry/PolygonAnnotationGeometryData.d.ts +4 -3
- package/dist/packages/360-images/src/annotation/geometry/utils.d.ts +2 -1
- package/dist/packages/360-images/src/annotation/getInstanceId.d.ts +2 -2
- package/dist/packages/360-images/src/annotation/typeGuards.d.ts +2 -2
- package/dist/packages/360-images/src/annotation/types.d.ts +3 -3
- package/dist/packages/360-images/src/cache/Image360LoadingCache.d.ts +3 -3
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +17 -11
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +9 -9
- package/dist/packages/360-images/src/collection/Image360CollectionFactory.d.ts +6 -7
- package/dist/packages/360-images/src/collection/createCollectionIdString.d.ts +1 -1
- package/dist/packages/360-images/src/entity/Image360.d.ts +6 -5
- package/dist/packages/360-images/src/entity/Image360Entity.d.ts +9 -8
- package/dist/packages/360-images/src/entity/Image360Revision.d.ts +2 -2
- package/dist/packages/360-images/src/entity/Image360RevisionEntity.d.ts +9 -9
- package/dist/packages/360-images/src/entity/Image360VisualizationBox.d.ts +4 -4
- package/dist/packages/360-images/src/icons/FlooredIconManager.d.ts +6 -3
- package/dist/packages/360-images/src/icons/IconCollection.d.ts +15 -10
- package/dist/packages/360-images/src/icons/clustering/ClusterRenderingStrategy.d.ts +9 -2
- package/dist/packages/360-images/src/icons/clustering/HtmlClusterCoordinator.d.ts +19 -0
- package/dist/packages/360-images/src/icons/clustering/HtmlClusterRenderer.d.ts +15 -12
- package/dist/packages/360-images/src/icons/clustering/index.d.ts +4 -2
- package/dist/packages/360-images/src/types.d.ts +19 -6
- package/dist/packages/3d-overlays/index.d.ts +6 -4
- package/dist/packages/3d-overlays/src/CameraChangeThrottler.d.ts +1 -1
- package/dist/packages/3d-overlays/src/IconOctree.d.ts +6 -4
- package/dist/packages/3d-overlays/src/Overlay3D.d.ts +1 -1
- package/dist/packages/3d-overlays/src/Overlay3DCollection.d.ts +4 -3
- package/dist/packages/3d-overlays/src/Overlay3DIcon.d.ts +4 -3
- package/dist/packages/3d-overlays/src/OverlayCollection.d.ts +1 -1
- package/dist/packages/3d-overlays/src/OverlayPointsObject.d.ts +2 -1
- package/dist/packages/api/index.d.ts +1 -1
- package/dist/packages/api/src/api-helpers/Image360ApiHelper.d.ts +9 -9
- package/dist/packages/api/src/public/RevealManager.d.ts +11 -11
- package/dist/packages/api/src/public/RevealOptions.d.ts +3 -3
- package/dist/packages/api/src/public/createRevealManager.d.ts +5 -5
- package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +13 -11
- package/dist/packages/api/src/public/migration/renderOptionsHelpers.d.ts +5 -4
- package/dist/packages/api/src/public/migration/types.d.ts +47 -14
- package/dist/packages/api/src/public/types.d.ts +4 -4
- package/dist/packages/api/src/storage/RevealManagerHelper.d.ts +10 -10
- package/dist/packages/api/src/utilities/Spinner.d.ts +1 -1
- package/dist/packages/api/src/utilities/ViewStateHelper.d.ts +4 -4
- package/dist/packages/api/src/utilities/utils.d.ts +4 -4
- package/dist/packages/cad-geometry-loaders/index.d.ts +4 -3
- package/dist/packages/cad-geometry-loaders/src/CadManager.d.ts +9 -8
- package/dist/packages/cad-geometry-loaders/src/CadModelUpdateHandler.d.ts +8 -8
- package/dist/packages/cad-geometry-loaders/src/InternalRevealCadOptions.d.ts +1 -1
- package/dist/packages/cad-geometry-loaders/src/createCadManager.d.ts +3 -3
- package/dist/packages/cad-geometry-loaders/src/sector/SectorDownloadScheduler.d.ts +1 -1
- package/dist/packages/cad-geometry-loaders/src/sector/SectorLoader.d.ts +4 -4
- package/dist/packages/cad-geometry-loaders/src/sector/culling/ByScreenSizeSectorCuller.d.ts +3 -3
- package/dist/packages/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +2 -2
- package/dist/packages/cad-geometry-loaders/src/sector/culling/WeightFunctionsHelper.d.ts +2 -2
- package/dist/packages/cad-geometry-loaders/src/sector/culling/computeSectorCost.d.ts +3 -2
- package/dist/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenSectorMapBase.d.ts +2 -2
- package/dist/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenV9SectorMap.d.ts +3 -3
- package/dist/packages/cad-geometry-loaders/src/sector/culling/types.d.ts +6 -6
- package/dist/packages/cad-geometry-loaders/src/sector/rxSectorUtilities.d.ts +2 -2
- package/dist/packages/cad-model/index.d.ts +1 -1
- package/dist/packages/cad-model/src/CadModelFactory.d.ts +5 -4
- package/dist/packages/cad-model/src/batching/DrawCallBatchingManager.d.ts +1 -1
- package/dist/packages/cad-model/src/batching/MultiBufferBatchingManager.d.ts +5 -5
- package/dist/packages/cad-model/src/picking/PickingHandler.d.ts +4 -4
- package/dist/packages/cad-model/src/utilities/CustomSectorBounds.d.ts +1 -1
- package/dist/packages/cad-model/src/utilities/GeometryBufferUtils.d.ts +1 -1
- package/dist/packages/cad-model/src/utilities/TreeIndexToSectorsMap.d.ts +1 -1
- package/dist/packages/cad-model/src/utilities/getShaderMaterial.d.ts +2 -2
- package/dist/packages/cad-model/src/wrappers/CadMeshManager.d.ts +5 -5
- package/dist/packages/cad-model/src/wrappers/CadNode.d.ts +11 -7
- package/dist/packages/cad-model/src/wrappers/CogniteCadModel.d.ts +6 -5
- package/dist/packages/cad-parsers/index.d.ts +4 -4
- package/dist/packages/cad-parsers/src/cad/types.d.ts +5 -5
- package/dist/packages/cad-parsers/src/metadata/CadMetadataParser.d.ts +1 -1
- package/dist/packages/cad-parsers/src/metadata/CadModelClipper.d.ts +1 -1
- package/dist/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +4 -4
- package/dist/packages/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +4 -3
- package/dist/packages/cad-parsers/src/metadata/parsers/CadMetadataParserGltf.d.ts +2 -2
- package/dist/packages/cad-parsers/src/metadata/types.d.ts +1 -1
- package/dist/packages/cad-parsers/src/sector/RootSectorNode.d.ts +1 -1
- package/dist/packages/cad-parsers/src/utilities/SectorScene.d.ts +2 -2
- package/dist/packages/cad-parsers/src/utilities/SectorSceneFactory.d.ts +2 -2
- package/dist/packages/cad-parsers/src/utilities/types.d.ts +2 -2
- package/dist/packages/cad-styling/index.d.ts +10 -7
- package/dist/packages/cad-styling/src/AssetNodeCollection.d.ts +4 -4
- package/dist/packages/cad-styling/src/CdfModelNodeCollectionDataProvider.d.ts +1 -1
- package/dist/packages/cad-styling/src/CdfNodeCollectionBase.d.ts +3 -3
- package/dist/packages/cad-styling/src/CombineNodeCollectionBase.d.ts +3 -3
- package/dist/packages/cad-styling/src/IntersectionNodeCollection.d.ts +3 -3
- package/dist/packages/cad-styling/src/InvertedNodeCollection.d.ts +3 -3
- package/dist/packages/cad-styling/src/NodeAppearanceProvider.d.ts +4 -4
- package/dist/packages/cad-styling/src/NodeCollection.d.ts +3 -3
- package/dist/packages/cad-styling/src/NodeCollectionDeserializer.d.ts +4 -4
- package/dist/packages/cad-styling/src/NodeIdNodeCollection.d.ts +4 -4
- package/dist/packages/cad-styling/src/PopulateIndexSetFromPagedResponseHelper.d.ts +5 -4
- package/dist/packages/cad-styling/src/PropertyFilterNodeCollection.d.ts +3 -3
- package/dist/packages/cad-styling/src/SinglePropertyFilterNodeCollection.d.ts +4 -4
- package/dist/packages/cad-styling/src/TreeIndexNodeCollection.d.ts +2 -2
- package/dist/packages/cad-styling/src/UnionNodeCollection.d.ts +3 -3
- package/dist/packages/cad-styling/src/nodeAppearanceSerialization.d.ts +1 -1
- package/dist/packages/cad-styling/src/prioritized/ClusteredAreaCollection.d.ts +1 -1
- package/dist/packages/cad-styling/src/prioritized/EmptyAreaCollection.d.ts +1 -1
- package/dist/packages/cad-styling/src/transform/NodeTransformProvider.d.ts +1 -1
- package/dist/packages/cad-styling/src/transform/NodeTransformTextureBuilder.d.ts +1 -1
- package/dist/packages/camera-manager/index.d.ts +8 -6
- package/dist/packages/camera-manager/src/CameraManager.d.ts +2 -2
- package/dist/packages/camera-manager/src/CameraManagerHelper.d.ts +2 -1
- package/dist/packages/camera-manager/src/ComboControls.d.ts +1 -1
- package/dist/packages/camera-manager/src/DefaultCameraManager.d.ts +4 -4
- package/dist/packages/camera-manager/src/Flexible/FlexibleCameraEventTarget.d.ts +3 -3
- package/dist/packages/camera-manager/src/Flexible/FlexibleCameraManager.d.ts +6 -5
- package/dist/packages/camera-manager/src/Flexible/FlexibleCameraMarkers.d.ts +2 -2
- package/dist/packages/camera-manager/src/Flexible/FlexibleControls.d.ts +4 -3
- package/dist/packages/camera-manager/src/Flexible/FlexibleControlsRotationHelper.d.ts +1 -1
- package/dist/packages/camera-manager/src/Flexible/FlexibleControlsTranslator.d.ts +2 -2
- package/dist/packages/camera-manager/src/Flexible/GetPickedPointByPixelCoordinates.d.ts +1 -1
- package/dist/packages/camera-manager/src/Flexible/IFlexibleCameraManager.d.ts +4 -4
- package/dist/packages/camera-manager/src/Flexible/moveCamera.d.ts +1 -1
- package/dist/packages/camera-manager/src/ProxyCameraManager.d.ts +3 -3
- package/dist/packages/camera-manager/src/StationaryCameraManager.d.ts +4 -3
- package/dist/packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.d.ts +2 -2
- package/dist/packages/data-providers/index.d.ts +19 -12
- package/dist/packages/data-providers/src/DataModelsSdk.d.ts +2 -2
- package/dist/packages/data-providers/src/DataSourceType.d.ts +5 -5
- package/dist/packages/data-providers/src/Image360Provider.d.ts +3 -3
- package/dist/packages/data-providers/src/Image360ProviderCombiner.d.ts +5 -5
- package/dist/packages/data-providers/src/ModelDataProvider.d.ts +1 -1
- package/dist/packages/data-providers/src/ModelIdentifier.d.ts +2 -2
- package/dist/packages/data-providers/src/ModelMetadataProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/PointCloudStylableObjectProvider.d.ts +2 -2
- package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageAnnotationCache.d.ts +12 -0
- package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageAnnotationProvider.d.ts +12 -12
- package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageFileProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/CdfImageFileProvider.d.ts +2 -2
- package/dist/packages/data-providers/src/image-360-data-providers/CoreDm360ImageAnnotationProvider.d.ts +4 -4
- package/dist/packages/data-providers/src/image-360-data-providers/Local360ImageProvider.d.ts +5 -5
- package/dist/packages/data-providers/src/image-360-data-providers/annotations.d.ts +2 -0
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchAnnotationsForInstance.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForCollection.d.ts +4 -4
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForRevision.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/getImage360Map.d.ts +4 -4
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/getObject3dAssetMap.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/readAnnotations.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/transformCdmAnnotations.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/transformSphericalCoordinatesToVectors.d.ts +2 -2
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/types.d.ts +4 -4
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/Cdf360CdmBatchCollectionLoader.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/Cdf360CdmDescriptorProvider.d.ts +4 -4
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/get360CdmCollectionsQuery.d.ts +1 -1
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/system-space/Cdf360DataModelsDescriptorProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/events/Cdf360BatchEventCollectionLoader.d.ts +2 -2
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/events/Cdf360EventDescriptorProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/image-360-data-providers/shared.d.ts +4 -4
- package/dist/packages/data-providers/src/metadata-providers/CdfModelMetadataProvider.d.ts +5 -4
- package/dist/packages/data-providers/src/metadata-providers/LocalModelMetadataProvider.d.ts +4 -3
- package/dist/packages/data-providers/src/model-data-providers/CachedModelDataProvider.d.ts +3 -2
- package/dist/packages/data-providers/src/model-data-providers/CdfModelDataProvider.d.ts +2 -2
- package/dist/packages/data-providers/src/model-data-providers/LocalModelDataProvider.d.ts +1 -1
- package/dist/packages/data-providers/src/model-identifiers/CdfModelIdentifier.d.ts +2 -2
- package/dist/packages/data-providers/src/model-identifiers/DMModelIdentifier.d.ts +1 -1
- package/dist/packages/data-providers/src/model-identifiers/LocalModelIdentifier.d.ts +1 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/CdfPointCloudStylableObjectProvider.d.ts +4 -4
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/StylableObject.d.ts +1 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +2 -2
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/CdfPointCloudDMStylableObjectProvider.d.ts +4 -4
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/DummyPointCloudDMStylableObjectProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudObjects.d.ts +4 -4
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudVolumeCollectionQuery.d.ts +1 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/types.d.ts +1 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/utils.d.ts +2 -2
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +5 -5
- package/dist/packages/data-providers/src/requests/fetchDMModelIdFromRevisionId.d.ts +1 -1
- package/dist/packages/data-providers/src/types.d.ts +9 -9
- package/dist/packages/data-providers/src/utilities/applyDefaultModelTransformation.d.ts +1 -1
- package/dist/packages/data-providers/src/utilities/getExternalIdFromDescriptor.d.ts +1 -1
- package/dist/packages/data-providers/src/utilities/instanceIds.d.ts +2 -2
- package/dist/packages/data-providers/src/utilities/internalAddModelOptions.d.ts +3 -3
- package/dist/packages/data-providers/src/utilities/utils.d.ts +3 -3
- package/dist/packages/data-source/index.d.ts +1 -1
- package/dist/packages/data-source/src/CdfDataSource.d.ts +4 -4
- package/dist/packages/data-source/src/DataSource.d.ts +2 -2
- package/dist/packages/data-source/src/LocalDataSource.d.ts +3 -3
- package/dist/packages/metrics/src/Fingerprint/generateAudioFingerprint.d.ts +1 -1
- package/dist/packages/metrics/src/Fingerprint/generateCanvasFingerprint.d.ts +1 -1
- package/dist/packages/metrics/src/Fingerprint/getUserFingerprint.d.ts +1 -1
- package/dist/packages/metrics/src/MetricsLogger.d.ts +1 -1
- package/dist/packages/model-base/index.d.ts +3 -3
- package/dist/packages/model-base/src/MetadataRepository.d.ts +1 -1
- package/dist/packages/model-base/src/types.d.ts +1 -1
- package/dist/packages/nodes-api/index.d.ts +1 -1
- package/dist/packages/nodes-api/src/NodesApiClient.d.ts +2 -2
- package/dist/packages/nodes-api/src/NodesCdfClient.d.ts +3 -3
- package/dist/packages/nodes-api/src/NodesLocalClient.d.ts +3 -3
- package/dist/packages/nodes-api/src/types.d.ts +1 -1
- package/dist/packages/pointcloud-styling/index.d.ts +2 -1
- package/dist/packages/pointcloud-styling/src/PointCloudDMVolumeCollection.d.ts +1 -1
- package/dist/packages/pointcloud-styling/src/StyledPointCloudVolumeCollection.d.ts +2 -2
- package/dist/packages/pointcloud-styling/src/utils.d.ts +2 -2
- package/dist/packages/pointclouds/index.d.ts +3 -3
- package/dist/packages/pointclouds/src/ClassificationHandler.d.ts +2 -2
- package/dist/packages/pointclouds/src/CognitePointCloudModel.d.ts +7 -6
- package/dist/packages/pointclouds/src/PointCloudFactory.d.ts +6 -6
- package/dist/packages/pointclouds/src/PointCloudIntersection.d.ts +3 -3
- package/dist/packages/pointclouds/src/PointCloudLoadingStateHandler.d.ts +4 -4
- package/dist/packages/pointclouds/src/PointCloudManager.d.ts +9 -9
- package/dist/packages/pointclouds/src/PointCloudMetadata.d.ts +3 -3
- package/dist/packages/pointclouds/src/PointCloudMetadataRepository.d.ts +3 -3
- package/dist/packages/pointclouds/src/PointCloudNode.d.ts +10 -8
- package/dist/packages/pointclouds/src/PointCloudPickingHandler.d.ts +4 -4
- package/dist/packages/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts +2 -2
- package/dist/packages/pointclouds/src/classificationsProviders/LocalPointClassificationsProvider.d.ts +3 -3
- package/dist/packages/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts +4 -4
- package/dist/packages/pointclouds/src/createPointCloudManager.d.ts +4 -4
- package/dist/packages/pointclouds/src/decomposeStylableObjects.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/Potree.d.ts +5 -5
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometry.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometryNode.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometry.d.ts +4 -4
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts +6 -5
- package/dist/packages/pointclouds/src/potree-three-loader/loading/EptBinaryLoader.d.ts +4 -4
- package/dist/packages/pointclouds/src/potree-three-loader/loading/EptLoader.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNode.d.ts +3 -3
- package/dist/packages/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNodeBase.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctree.d.ts +10 -9
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreeNode.d.ts +5 -4
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePicker.d.ts +5 -5
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePickerHelper.d.ts +5 -4
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudTree.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/types/IPotree.d.ts +4 -4
- package/dist/packages/pointclouds/src/potree-three-loader/types/IVisibilityUpdateResult.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/types/type-predicates.d.ts +3 -3
- package/dist/packages/pointclouds/src/potree-three-loader/types/types.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/utils/bounds.d.ts +2 -1
- package/dist/packages/pointclouds/src/potree-three-loader/utils/createObjectIdMaps.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/utils/lru.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/utils/utils.d.ts +3 -3
- package/dist/packages/pointclouds/src/potree-three-loader/workers/assignPointsToObjectsWithWasm.d.ts +1 -1
- package/dist/packages/pointclouds/src/potree-three-loader/workers/eptBinaryDecoder.worker.d.ts +3 -3
- package/dist/packages/pointclouds/src/potree-three-loader/workers/parseEpt.d.ts +3 -3
- package/dist/packages/pointclouds/src/potree-three-loader/workers/types.d.ts +1 -1
- package/dist/packages/pointclouds/src/typeGuards.d.ts +2 -2
- package/dist/packages/pointclouds/src/types.d.ts +3 -3
- package/dist/packages/pointclouds/wasm/index.d.ts +1 -1
- package/dist/packages/rendering/index.d.ts +11 -8
- package/dist/packages/rendering/src/CadMaterialManager.d.ts +4 -3
- package/dist/packages/rendering/src/PointCloudMaterialManager.d.ts +3 -3
- package/dist/packages/rendering/src/RenderPass.d.ts +1 -1
- package/dist/packages/rendering/src/RenderPipelineExecutor.d.ts +2 -2
- package/dist/packages/rendering/src/RenderPipelineProvider.d.ts +1 -1
- package/dist/packages/rendering/src/ResizeHandler.d.ts +2 -2
- package/dist/packages/rendering/src/pipeline-executors/BasicPipelineExecutor.d.ts +3 -3
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +5 -4
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +3 -3
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectIdMaps.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/classification.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/gradients/SpectralGradient.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/texture-generation.d.ts +3 -2
- package/dist/packages/rendering/src/pointcloud-rendering/types.d.ts +2 -1
- package/dist/packages/rendering/src/render-passes/GeometryPass.d.ts +3 -3
- package/dist/packages/rendering/src/render-passes/PointCloudEffectsPass.d.ts +4 -4
- package/dist/packages/rendering/src/render-passes/PostProcessingPass.d.ts +4 -4
- package/dist/packages/rendering/src/render-passes/SSAOPass.d.ts +2 -2
- package/dist/packages/rendering/src/render-passes/types.d.ts +2 -2
- package/dist/packages/rendering/src/render-pipeline-providers/CadGeometryRenderModePipelineProvider.d.ts +6 -6
- package/dist/packages/rendering/src/render-pipeline-providers/CadGeometryRenderPipelineProvider.d.ts +6 -6
- package/dist/packages/rendering/src/render-pipeline-providers/DefaultRenderPipelineProvider.d.ts +7 -7
- package/dist/packages/rendering/src/render-pipeline-providers/PointCloudRenderPipelineProvider.d.ts +6 -6
- package/dist/packages/rendering/src/render-pipeline-providers/pointCloudParameterUtils.d.ts +1 -1
- package/dist/packages/rendering/src/render-pipeline-providers/types.d.ts +2 -2
- package/dist/packages/rendering/src/utilities/renderUtilities.d.ts +4 -4
- package/dist/packages/rendering/src/utilities/types.d.ts +1 -1
- package/dist/packages/sector-loader/index.d.ts +1 -1
- package/dist/packages/sector-loader/src/GltfSectorLoader.d.ts +2 -2
- package/dist/packages/sector-loader/src/GltfSectorRepository.d.ts +3 -3
- package/dist/packages/sector-loader/src/SectorRepository.d.ts +2 -2
- package/dist/packages/sector-parser/index.d.ts +2 -1
- package/dist/packages/sector-parser/src/GltfSectorParser.d.ts +1 -1
- package/dist/packages/sector-parser/src/constants.d.ts +1 -1
- package/dist/packages/sector-parser/src/reveal-glb-parser/GlbMetadataParser.d.ts +1 -1
- package/dist/packages/tools/index.d.ts +8 -6
- package/dist/packages/tools/src/AxisGizmo/AxisGizmoTool.d.ts +2 -2
- package/dist/packages/tools/src/AxisGizmo/OneGizmoAxis.d.ts +1 -1
- package/dist/packages/tools/src/AxisView/AxisViewTool.d.ts +2 -2
- package/dist/packages/tools/src/DebugCameraTool.d.ts +2 -2
- package/dist/packages/tools/src/HtmlOverlay/BucketGrid2D.d.ts +1 -1
- package/dist/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +33 -4
- package/dist/packages/tools/src/Measurement/MeasurementManager.d.ts +2 -2
- package/dist/packages/tools/src/Measurement/MeasurementTool.d.ts +4 -4
- package/dist/packages/tools/src/Overlay3D/Overlay3DTool.d.ts +3 -3
- package/dist/packages/tools/src/Timeline/Keyframe.d.ts +2 -2
- package/dist/packages/tools/src/Timeline/TimelineTool.d.ts +2 -2
- package/dist/packages/tools/src/Timeline/types.d.ts +1 -1
- package/dist/packages/tools/src/utilities/moveCameraTo.d.ts +1 -1
- package/dist/packages/utilities/index.d.ts +11 -8
- package/dist/packages/utilities/src/SceneHandler.d.ts +1 -1
- package/dist/packages/utilities/src/assetMappings/index.d.ts +1 -1
- package/dist/packages/utilities/src/assetMappings/isCdfAssetMapping.d.ts +2 -2
- package/dist/packages/utilities/src/assetMappings/types.d.ts +1 -1
- package/dist/packages/utilities/src/cache/DataFileCacheManager.d.ts +5 -3
- package/dist/packages/utilities/src/cache/MemoryRequestCache.d.ts +1 -1
- package/dist/packages/utilities/src/customObject/CustomObject.d.ts +5 -4
- package/dist/packages/utilities/src/customObject/CustomObjectIntersectInput.d.ts +2 -1
- package/dist/packages/utilities/src/customObject/CustomObjectIntersection.d.ts +2 -2
- package/dist/packages/utilities/src/customObject/ICustomObject.d.ts +3 -3
- package/dist/packages/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts +1 -1
- package/dist/packages/utilities/src/events/InputHandler.d.ts +1 -1
- package/dist/packages/utilities/src/events/PointerEventsTarget.d.ts +1 -1
- package/dist/packages/utilities/src/events/disposeOfAllEventListeners.d.ts +1 -1
- package/dist/packages/utilities/src/fdm/index.d.ts +3 -2
- package/dist/packages/utilities/src/fdm/toKey.d.ts +1 -1
- package/dist/packages/utilities/src/fdm/typeGuards.d.ts +1 -1
- package/dist/packages/utilities/src/indexset/IndexSet.d.ts +1 -1
- package/dist/packages/utilities/src/indexset/IntermediateIndexNode.d.ts +1 -1
- package/dist/packages/utilities/src/indexset/LeafIndexNode.d.ts +1 -1
- package/dist/packages/utilities/src/projectedBounds.d.ts +2 -1
- package/dist/packages/utilities/src/shapes/Box.d.ts +4 -3
- package/dist/packages/utilities/src/shapes/CompositeShape.d.ts +2 -2
- package/dist/packages/utilities/src/shapes/Cylinder.d.ts +2 -2
- package/dist/packages/utilities/src/shapes/IShape.d.ts +2 -2
- package/dist/packages/utilities/src/shapes/SerializableBox.d.ts +2 -2
- package/dist/packages/utilities/src/shapes/SerializableCompositeShape.d.ts +1 -1
- package/dist/packages/utilities/src/shapes/SerializableCylinder.d.ts +2 -2
- package/dist/packages/utilities/src/shapes/index.d.ts +6 -5
- package/dist/packages/utilities/src/three/AttributeDataAccessor.d.ts +2 -2
- package/dist/packages/utilities/src/three/VariableWidthLine.d.ts +1 -1
- package/dist/packages/utilities/src/three/fromThreeVector3.d.ts +1 -1
- package/dist/packages/utilities/src/three/isBox3OnPositiveSideOfPlane.d.ts +1 -1
- package/dist/packages/utilities/src/three/isPointVisibleByPlanes.d.ts +1 -1
- package/dist/packages/utilities/src/three/lines/LineGeometry.d.ts +1 -1
- package/dist/packages/utilities/src/three/lines/LineSegments2.d.ts +2 -1
- package/dist/packages/utilities/src/three/lines/LineSegmentsGeometry.d.ts +2 -1
- package/dist/packages/utilities/src/three/toThreeBox3.d.ts +1 -1
- package/dist/packages/utilities/src/transformCameraConfiguration.d.ts +2 -2
- package/package.json +26 -35
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { AnnotationModel, AnnotationsTypesImagesAssetLink, AnnotationsTypesImagesInstanceLink, IdEither } from '@cognite/sdk';
|
|
5
|
-
import * as THREE from 'three';
|
|
6
|
-
import { ClassicDataSourceType, DataSourceType, DMDataSourceType } from './DataSourceType';
|
|
7
|
-
import { AssetAnnotationImage360Info, AssetHybridAnnotationImage360Info, DefaultImage360Collection, Image360AnnotationAssetQueryResult } from '../../360-images';
|
|
8
|
-
import { DMInstanceRef } from '../../utilities';
|
|
9
|
-
import { Image360AnnotationInstanceReference } from '../../360-images/src/annotation/types';
|
|
4
|
+
import type { AnnotationModel, AnnotationsTypesImagesAssetLink, AnnotationsTypesImagesInstanceLink, IdEither } from '@cognite/sdk';
|
|
5
|
+
import type * as THREE from 'three';
|
|
6
|
+
import type { ClassicDataSourceType, DataSourceType, DMDataSourceType } from './DataSourceType';
|
|
7
|
+
import type { AssetAnnotationImage360Info, AssetHybridAnnotationImage360Info, DefaultImage360Collection, Image360AnnotationAssetQueryResult, Image360AnnotationInstanceReference } from '../../360-images';
|
|
8
|
+
import type { DMInstanceRef } from '../../utilities';
|
|
10
9
|
export type Image360AnnotationFilterDelegate<T extends DataSourceType> = (annotation: T['image360AnnotationType']) => boolean;
|
|
11
10
|
export interface JsonFileProvider {
|
|
12
11
|
getJsonFile(baseUrl: string, fileName: string): Promise<any>;
|
|
@@ -85,17 +84,18 @@ export type Image360RevisionDescriptor<T extends DataSourceType> = {
|
|
|
85
84
|
collectionLabel: string | undefined;
|
|
86
85
|
transform: THREE.Matrix4;
|
|
87
86
|
};
|
|
87
|
+
export type FaceName = 'front' | 'back' | 'left' | 'right' | 'top' | 'bottom';
|
|
88
88
|
export type Image360Face = {
|
|
89
|
-
face:
|
|
89
|
+
face: FaceName;
|
|
90
90
|
mimeType: 'image/jpeg' | 'image/png';
|
|
91
91
|
data: ArrayBuffer;
|
|
92
92
|
};
|
|
93
93
|
export type Image360Texture = {
|
|
94
|
-
face:
|
|
94
|
+
face: FaceName;
|
|
95
95
|
texture: THREE.Texture;
|
|
96
96
|
};
|
|
97
97
|
export type Image360FileDescriptor = {
|
|
98
|
-
face:
|
|
98
|
+
face: FaceName;
|
|
99
99
|
mimeType: 'image/jpeg' | 'image/png';
|
|
100
100
|
/** Internal CDF file ID (numeric) */
|
|
101
101
|
fileId?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
5
|
import { File3dFormat } from '../types';
|
|
6
6
|
export declare function applyDefaultModelTransformation(matrix: THREE.Matrix4, format: File3dFormat | string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2025 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Image360FileDescriptor } from '../types';
|
|
4
|
+
import type { Image360FileDescriptor } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Gets the externalId from a file descriptor, if available.
|
|
7
7
|
* Works with both direct externalId and instanceId.externalId.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DataSourceType } from '../DataSourceType';
|
|
2
|
-
import { InstanceReference } from '../types';
|
|
1
|
+
import type { DataSourceType } from '../DataSourceType';
|
|
2
|
+
import type { InstanceReference } from '../types';
|
|
3
3
|
export declare function getInstanceKey(instanceReference: InstanceReference<DataSourceType>): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2024 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { GeometryFilter } from '../../../cad-model';
|
|
5
|
-
import { ClassicModelIdentifierType, InternalDataSourceType, LocalModelIdentifierType } from '../DataSourceType';
|
|
6
|
-
import { File3dFormat } from '../types';
|
|
4
|
+
import type { GeometryFilter } from '../../../cad-model';
|
|
5
|
+
import type { ClassicModelIdentifierType, InternalDataSourceType, LocalModelIdentifierType } from '../DataSourceType';
|
|
6
|
+
import type { File3dFormat } from '../types';
|
|
7
7
|
/**
|
|
8
8
|
* Model options common to all model types.
|
|
9
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2024 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { TableExpressionEqualsFilterV3 } from '@cognite/sdk';
|
|
5
|
-
import { PointCloudObject } from '../pointcloud-stylable-object-providers/types';
|
|
6
|
-
import { ClassicDataSourceType, DMDataSourceType, DataSourceType } from '../DataSourceType';
|
|
4
|
+
import type { TableExpressionEqualsFilterV3 } from '@cognite/sdk';
|
|
5
|
+
import type { PointCloudObject } from '../pointcloud-stylable-object-providers/types';
|
|
6
|
+
import type { ClassicDataSourceType, DMDataSourceType, DataSourceType } from '../DataSourceType';
|
|
7
7
|
/**
|
|
8
8
|
* Type guard to check if a point cloud object contains data type DMDataSourceType
|
|
9
9
|
* @param pointCloudObject - The object to check
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
-
import { DataSource } from './DataSource';
|
|
6
|
-
import { NodesApiClient } from '../../nodes-api';
|
|
7
|
-
import { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
4
|
+
import type { CogniteClient } from '@cognite/sdk';
|
|
5
|
+
import type { DataSource } from './DataSource';
|
|
6
|
+
import type { NodesApiClient } from '../../nodes-api';
|
|
7
|
+
import type { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
8
8
|
/**
|
|
9
9
|
* Data source for Cognite Data Fusion.
|
|
10
10
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { NodesApiClient } from '../../nodes-api';
|
|
5
|
-
import { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
4
|
+
import type { NodesApiClient } from '../../nodes-api';
|
|
5
|
+
import type { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
6
6
|
/**
|
|
7
7
|
* Describes how Reveal data is stored, and provides means to create custom storage providers
|
|
8
8
|
* that Reveal will fetch data from.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { NodesApiClient } from '../../nodes-api';
|
|
5
|
-
import { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
6
|
-
import { DataSource } from './DataSource';
|
|
4
|
+
import type { NodesApiClient } from '../../nodes-api';
|
|
5
|
+
import type { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
6
|
+
import type { DataSource } from './DataSource';
|
|
7
7
|
/**
|
|
8
8
|
* Data source for loading models from local storage (i.e. by URL).
|
|
9
9
|
* This implementation is meant for use in development.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2025 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PartialOfflineAudioContext } from './types';
|
|
4
|
+
import type { PartialOfflineAudioContext } from './types';
|
|
5
5
|
export declare function generateAudioFingerprint(OfflineAudioContextCtor: PartialOfflineAudioContext): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GlobalDependencies } from './types';
|
|
1
|
+
import type { GlobalDependencies } from './types';
|
|
2
2
|
export declare function getUserFingerprint(dependencies?: Partial<GlobalDependencies>): Promise<string>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { TrackedEvents, EventProps } from './types';
|
|
5
|
+
import type { TrackedEvents, EventProps } from './types';
|
|
6
6
|
export declare class MetricsLogger {
|
|
7
7
|
private readonly _sessionProps;
|
|
8
8
|
private readonly _initPromise;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { IntersectInput, LoadingState } from './src/types';
|
|
5
|
-
export { SupportedModelTypes } from './src/SupportedModelTypes';
|
|
6
|
-
export { MetadataRepository } from './src/MetadataRepository';
|
|
4
|
+
export type { IntersectInput, LoadingState } from './src/types';
|
|
5
|
+
export type { SupportedModelTypes } from './src/SupportedModelTypes';
|
|
6
|
+
export type { MetadataRepository } from './src/MetadataRepository';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { NodesApiClient } from './src/NodesApiClient';
|
|
4
|
+
export type { NodesApiClient } from './src/NodesApiClient';
|
|
5
5
|
export { NodesCdfClient } from './src/NodesCdfClient';
|
|
6
6
|
export { NodesLocalClient } from './src/NodesLocalClient';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { CogniteInternalId } from '@cognite/sdk';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { CogniteInternalId } from '@cognite/sdk';
|
|
6
6
|
/**
|
|
7
7
|
* Client for retrieving metadata information about CAD nodes.
|
|
8
8
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { CogniteClient, CogniteInternalId } from '@cognite/sdk';
|
|
6
|
-
import { NodesApiClient } from './NodesApiClient';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { CogniteClient, CogniteInternalId } from '@cognite/sdk';
|
|
6
|
+
import type { NodesApiClient } from './NodesApiClient';
|
|
7
7
|
export declare class NodesCdfClient implements NodesApiClient {
|
|
8
8
|
private static readonly MaxItemsPerRequest;
|
|
9
9
|
private readonly _client;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { NodesApiClient } from './NodesApiClient';
|
|
6
|
-
import { CogniteInternalId } from '@cognite/sdk';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { NodesApiClient } from './NodesApiClient';
|
|
6
|
+
import type { CogniteInternalId } from '@cognite/sdk';
|
|
7
7
|
export declare class NodesLocalClient implements NodesApiClient {
|
|
8
8
|
constructor();
|
|
9
9
|
mapTreeIndicesToNodeIds(_modelId: CogniteInternalId, _revisionId: CogniteInternalId, treeIndices: number[]): Promise<CogniteInternalId[]>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { CompletePointCloudAppearance, PointCloudAppearance
|
|
4
|
+
export type { CompletePointCloudAppearance, PointCloudAppearance } from './src/PointCloudAppearance';
|
|
5
|
+
export { DefaultPointCloudAppearance, applyDefaultsToPointCloudAppearance } from './src/PointCloudAppearance';
|
|
5
6
|
export { StyledPointCloudObjectCollection, StyledPointCloudVolumeCollection } from './src/StyledPointCloudVolumeCollection';
|
|
6
7
|
export { PointCloudObjectCollection, PointCloudAnnotationVolumeCollection } from './src/PointCloudObjectCollection';
|
|
7
8
|
export { AnnotationIdPointCloudObjectCollection } from './src/AnnotationIdPointCloudObjectCollection';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2024 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DMInstanceRef } from '../../utilities';
|
|
4
|
+
import type { DMInstanceRef } from '../../utilities';
|
|
5
5
|
/**
|
|
6
6
|
* A simple PointCloudDMVolumeCollection that consists of an explicitly provided list of data model instance.
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2024 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { CompletePointCloudAppearance } from './PointCloudAppearance';
|
|
5
|
-
import { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
4
|
+
import type { CompletePointCloudAppearance } from './PointCloudAppearance';
|
|
5
|
+
import type { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
6
6
|
/**
|
|
7
7
|
* Represents either an PointCloudAnnotationVolumeCollection or PointCloudDMVolumeCollection
|
|
8
8
|
* that is associated with an appearance.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2024 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointCloudDMVolumeCollection } from './PointCloudDMVolumeCollection';
|
|
5
|
-
import { PointCloudAnnotationVolumeCollection } from './PointCloudObjectCollection';
|
|
4
|
+
import type { PointCloudDMVolumeCollection } from './PointCloudDMVolumeCollection';
|
|
5
|
+
import type { PointCloudAnnotationVolumeCollection } from './PointCloudObjectCollection';
|
|
6
6
|
export declare function isPointCloudObjectCollection(collection: PointCloudAnnotationVolumeCollection | PointCloudDMVolumeCollection): collection is PointCloudAnnotationVolumeCollection;
|
|
7
7
|
export declare function isDMInstanceRefPointCloudObjectCollection(collection: PointCloudAnnotationVolumeCollection | PointCloudDMVolumeCollection): collection is PointCloudDMVolumeCollection;
|
|
@@ -6,12 +6,12 @@ export { WellKnownAsprsPointClassCodes } from './src/types';
|
|
|
6
6
|
export { PointCloudNode } from './src/PointCloudNode';
|
|
7
7
|
export { PointCloudManager } from './src/PointCloudManager';
|
|
8
8
|
export { createPointCloudManager } from './src/createPointCloudManager';
|
|
9
|
-
export { PointCloudBudget } from './src/PointCloudBudget';
|
|
10
|
-
export { PointCloudIntersection } from './src/PointCloudIntersection';
|
|
9
|
+
export type { PointCloudBudget } from './src/PointCloudBudget';
|
|
10
|
+
export type { PointCloudIntersection } from './src/PointCloudIntersection';
|
|
11
11
|
export { CognitePointCloudModel } from './src/CognitePointCloudModel';
|
|
12
12
|
export { isDMPointCloudModel, isClassicPointCloudModel } from './src/typeGuards';
|
|
13
13
|
export { PointCloudLoadingStateHandler } from './src/PointCloudLoadingStateHandler';
|
|
14
14
|
export { PointCloudFactory } from './src/PointCloudFactory';
|
|
15
|
-
export { IPointClassificationsProvider } from './src/classificationsProviders/IPointClassificationsProvider';
|
|
15
|
+
export type { IPointClassificationsProvider } from './src/classificationsProviders/IPointClassificationsProvider';
|
|
16
16
|
export { LocalPointClassificationsProvider } from './src/classificationsProviders/LocalPointClassificationsProvider';
|
|
17
17
|
export { UrlPointClassificationsProvider } from './src/classificationsProviders/UrlPointClassificationsProvider';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ClassificationInfo } from './potree-three-loader/loading/ClassificationInfo';
|
|
4
|
+
import type { ClassificationInfo } from './potree-three-loader/loading/ClassificationInfo';
|
|
5
5
|
import { WellKnownAsprsPointClassCodes } from './types';
|
|
6
|
-
import { PointCloudMaterial, PointClassification } from '../../rendering';
|
|
6
|
+
import type { PointCloudMaterial, PointClassification } from '../../rendering';
|
|
7
7
|
import { Color } from 'three';
|
|
8
8
|
export declare class ClassificationHandler {
|
|
9
9
|
private readonly _classification;
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { CameraConfiguration } from '../../utilities';
|
|
6
|
-
import { WellKnownAsprsPointClassCodes } from './types';
|
|
7
|
-
import { PointColorType, PointShape, PointSizeType } from '../../rendering';
|
|
8
|
-
import { SupportedModelTypes } from '../../model-base';
|
|
9
|
-
import { ClassicDataSourceType, DataSourceType, PointCloudObjectMetadata } from '../../data-providers';
|
|
10
|
-
import { PointCloudAppearance
|
|
5
|
+
import type { CameraConfiguration } from '../../utilities';
|
|
6
|
+
import type { WellKnownAsprsPointClassCodes } from './types';
|
|
7
|
+
import type { PointColorType, PointShape, PointSizeType } from '../../rendering';
|
|
8
|
+
import type { SupportedModelTypes } from '../../model-base';
|
|
9
|
+
import type { ClassicDataSourceType, DataSourceType, PointCloudObjectMetadata } from '../../data-providers';
|
|
10
|
+
import type { PointCloudAppearance } from '../../pointcloud-styling';
|
|
11
|
+
import { StyledPointCloudVolumeCollection } from '../../pointcloud-styling';
|
|
11
12
|
/**
|
|
12
13
|
* Represents a point clouds model loaded from CDF.
|
|
13
14
|
* @noInheritDoc
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { PointCloudNode } from './PointCloudNode';
|
|
5
|
-
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
6
|
-
import { Potree } from './potree-three-loader';
|
|
7
|
-
import { DMDataSourceType, DataSourceType, PointCloudStylableObjectProvider } from '../../data-providers';
|
|
8
|
-
import { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
9
|
-
import { PointCloudMaterialManager } from '../../rendering';
|
|
10
|
-
import { ModelIdentifier } from '../../data-providers/src/ModelIdentifier';
|
|
5
|
+
import type { PointCloudMetadata } from './PointCloudMetadata';
|
|
6
|
+
import type { Potree } from './potree-three-loader';
|
|
7
|
+
import type { DMDataSourceType, DataSourceType, PointCloudStylableObjectProvider } from '../../data-providers';
|
|
8
|
+
import type { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
9
|
+
import type { PointCloudMaterialManager } from '../../rendering';
|
|
10
|
+
import type { ModelIdentifier } from '../../data-providers/src/ModelIdentifier';
|
|
11
11
|
export declare class PointCloudFactory {
|
|
12
12
|
private readonly _potreeInstance;
|
|
13
13
|
private readonly _pointCloudObjectProvider;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { AnnotationsAssetRef } from '@cognite/sdk';
|
|
5
|
-
import { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
4
|
+
import type { AnnotationsAssetRef } from '@cognite/sdk';
|
|
5
|
+
import type { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
6
6
|
import type { Vector3 } from 'three';
|
|
7
|
-
import { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
7
|
+
import type { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
8
8
|
/**
|
|
9
9
|
* An intersection with a point cloud model. Contains metadata of the first intersected volume, if any
|
|
10
10
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { LoadingState } from '../../model-base';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { PointCloudNode } from './PointCloudNode';
|
|
7
|
-
import { DataSourceType } from '../../data-providers';
|
|
4
|
+
import type { LoadingState } from '../../model-base';
|
|
5
|
+
import type { Observable } from 'rxjs';
|
|
6
|
+
import type { PointCloudNode } from './PointCloudNode';
|
|
7
|
+
import type { DataSourceType } from '../../data-providers';
|
|
8
8
|
/**
|
|
9
9
|
* Wrapper around Potree.Group with type information and
|
|
10
10
|
* basic functionality.
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { LoadingState } from '../../model-base';
|
|
6
|
-
import { PointCloudFactory } from './PointCloudFactory';
|
|
7
|
-
import { PointCloudNode } from './PointCloudNode';
|
|
8
|
-
import { PointCloudMetadataRepository } from './PointCloudMetadataRepository';
|
|
9
|
-
import { Potree } from './potree-three-loader';
|
|
10
|
-
import { Observable } from 'rxjs';
|
|
11
|
-
import { ModelIdentifier, AddModelOptionsWithModelRevisionId, DataSourceType } from '../../data-providers';
|
|
12
|
-
import { PointCloudMaterialManager } from '../../rendering';
|
|
13
|
-
import { Mesh } from 'three';
|
|
5
|
+
import type { LoadingState } from '../../model-base';
|
|
6
|
+
import type { PointCloudFactory } from './PointCloudFactory';
|
|
7
|
+
import type { PointCloudNode } from './PointCloudNode';
|
|
8
|
+
import type { PointCloudMetadataRepository } from './PointCloudMetadataRepository';
|
|
9
|
+
import type { Potree } from './potree-three-loader';
|
|
10
|
+
import type { Observable } from 'rxjs';
|
|
11
|
+
import type { ModelIdentifier, AddModelOptionsWithModelRevisionId, DataSourceType } from '../../data-providers';
|
|
12
|
+
import type { PointCloudMaterialManager } from '../../rendering';
|
|
13
|
+
import type { Mesh } from 'three';
|
|
14
14
|
export declare class PointCloudManager {
|
|
15
15
|
private readonly _pointCloudMetadataRepository;
|
|
16
16
|
private readonly _pointCloudFactory;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { CameraConfiguration } from '../../utilities';
|
|
6
|
-
import { File3dFormat, ModelIdentifier } from '../../data-providers';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { CameraConfiguration } from '../../utilities';
|
|
6
|
+
import type { File3dFormat, ModelIdentifier } from '../../data-providers';
|
|
7
7
|
export interface PointCloudMetadata {
|
|
8
8
|
readonly format: File3dFormat;
|
|
9
9
|
readonly formatVersion: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
5
|
-
import { MetadataRepository } from '../../model-base';
|
|
6
|
-
import { ModelDataProvider, ModelMetadataProvider, ModelIdentifier } from '../../data-providers';
|
|
4
|
+
import type { PointCloudMetadata } from './PointCloudMetadata';
|
|
5
|
+
import type { MetadataRepository } from '../../model-base';
|
|
6
|
+
import type { ModelDataProvider, ModelMetadataProvider, ModelIdentifier } from '../../data-providers';
|
|
7
7
|
export declare class PointCloudMetadataRepository implements MetadataRepository<Promise<PointCloudMetadata>> {
|
|
8
8
|
private readonly _modelMetadataProvider;
|
|
9
9
|
private readonly _modelDataProvider;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { CameraConfiguration } from '../../utilities';
|
|
5
|
-
import { ClassificationInfo, PointCloudOctree, PickPoint } from './potree-three-loader';
|
|
6
|
-
import { WellKnownAsprsPointClassCodes } from './types';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
4
|
+
import type { CameraConfiguration } from '../../utilities';
|
|
5
|
+
import type { ClassificationInfo, PointCloudOctree, PickPoint } from './potree-three-loader';
|
|
6
|
+
import type { WellKnownAsprsPointClassCodes } from './types';
|
|
7
|
+
import type { PointSizeType } from '../../rendering';
|
|
8
|
+
import { PointColorType, PointShape } from '../../rendering';
|
|
9
|
+
import type { DataSourceType, PointCloudObject, PointCloudObjectMetadata } from '../../data-providers';
|
|
10
|
+
import type { CompletePointCloudAppearance } from '../../pointcloud-styling';
|
|
11
|
+
import type { Color } from 'three';
|
|
12
|
+
import { Matrix4, Group, Box3, Vector3, type Camera, type Plane, type Ray, type WebGLRenderer } from 'three';
|
|
13
|
+
import type { StyledPointCloudVolumeCollection } from '../../pointcloud-styling';
|
|
12
14
|
export declare class PointCloudNode<T extends DataSourceType = DataSourceType> extends Group {
|
|
13
15
|
private readonly _cameraConfiguration?;
|
|
14
16
|
private readonly _octree;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { IntersectInput } from '../../model-base';
|
|
6
|
-
import { PointCloudNode } from './PointCloudNode';
|
|
7
|
-
import { DataSourceType } from '../../data-providers';
|
|
8
|
-
import { IntersectPointCloudNodeResult } from './types';
|
|
5
|
+
import type { IntersectInput } from '../../model-base';
|
|
6
|
+
import type { PointCloudNode } from './PointCloudNode';
|
|
7
|
+
import type { DataSourceType } from '../../data-providers';
|
|
8
|
+
import type { IntersectPointCloudNodeResult } from './types';
|
|
9
9
|
export declare class PointCloudPickingHandler {
|
|
10
10
|
private readonly _normalized;
|
|
11
11
|
private readonly _raycaster;
|
package/dist/packages/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointCloudMetadata } from '../PointCloudMetadata';
|
|
5
|
-
import { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
4
|
+
import type { PointCloudMetadata } from '../PointCloudMetadata';
|
|
5
|
+
import type { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
6
6
|
export interface IPointClassificationsProvider {
|
|
7
7
|
getClassifications(modelMetadata: PointCloudMetadata): Promise<ClassificationInfo>;
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { IPointClassificationsProvider } from './IPointClassificationsProvider';
|
|
5
|
-
import { PointCloudMetadata } from '../PointCloudMetadata';
|
|
6
|
-
import { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
4
|
+
import type { IPointClassificationsProvider } from './IPointClassificationsProvider';
|
|
5
|
+
import type { PointCloudMetadata } from '../PointCloudMetadata';
|
|
6
|
+
import type { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
7
7
|
export declare class LocalPointClassificationsProvider implements IPointClassificationsProvider {
|
|
8
8
|
getClassifications(_modelMetadata: PointCloudMetadata): Promise<ClassificationInfo>;
|
|
9
9
|
}
|
package/dist/packages/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ModelDataProvider } from '../../../data-providers';
|
|
5
|
-
import { IPointClassificationsProvider } from './IPointClassificationsProvider';
|
|
6
|
-
import { PointCloudMetadata } from '../PointCloudMetadata';
|
|
7
|
-
import { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
4
|
+
import type { ModelDataProvider } from '../../../data-providers';
|
|
5
|
+
import type { IPointClassificationsProvider } from './IPointClassificationsProvider';
|
|
6
|
+
import type { PointCloudMetadata } from '../PointCloudMetadata';
|
|
7
|
+
import type { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
8
8
|
export declare class UrlPointClassificationsProvider implements IPointClassificationsProvider {
|
|
9
9
|
_dataProvider: ModelDataProvider;
|
|
10
10
|
constructor(dataProvider: ModelDataProvider);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { PointCloudManager } from './PointCloudManager';
|
|
5
|
-
import * as THREE from 'three';
|
|
6
|
-
import { DMDataSourceType, ModelMetadataProvider, PointCloudStylableObjectProvider, CachedModelDataProvider } from '../../data-providers';
|
|
7
|
-
import { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
8
|
-
import { PointCloudMaterialManager } from '../../rendering';
|
|
5
|
+
import type * as THREE from 'three';
|
|
6
|
+
import type { DMDataSourceType, ModelMetadataProvider, PointCloudStylableObjectProvider, CachedModelDataProvider } from '../../data-providers';
|
|
7
|
+
import type { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
8
|
+
import type { PointCloudMaterialManager } from '../../rendering';
|
|
9
9
|
export declare function createPointCloudManager(modelMetadataProvider: ModelMetadataProvider, pointCloudStylableObjectProvider: PointCloudStylableObjectProvider, classificationsProvider: IPointClassificationsProvider, pointCloudDMProvider: PointCloudStylableObjectProvider<DMDataSourceType>, pointCloudMaterialManager: PointCloudMaterialManager, cachedProvider: CachedModelDataProvider, scene: THREE.Scene, renderer: THREE.WebGLRenderer): PointCloudManager;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Camera, WebGLRenderer } from 'three';
|
|
2
|
-
import { PointCloudMaterialManager } from '../../../rendering';
|
|
1
|
+
import type { Camera, WebGLRenderer } from 'three';
|
|
2
|
+
import type { PointCloudMaterialManager } from '../../../rendering';
|
|
3
3
|
import { PointCloudOctree } from './tree/PointCloudOctree';
|
|
4
|
-
import { IPotree } from './types/IPotree';
|
|
5
|
-
import { IPointCloudTreeNodeBase } from './tree/IPointCloudTreeNodeBase';
|
|
4
|
+
import type { IPotree } from './types/IPotree';
|
|
5
|
+
import type { IPointCloudTreeNodeBase } from './tree/IPointCloudTreeNodeBase';
|
|
6
6
|
import { LRU } from './utils/lru';
|
|
7
|
-
import { ModelDataProvider, StylableObject } from '../../../data-providers';
|
|
7
|
+
import type { ModelDataProvider, StylableObject } from '../../../data-providers';
|
|
8
8
|
export declare class QueueItem {
|
|
9
9
|
pointCloudIndex: number;
|
|
10
10
|
weight: number;
|
package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
|
-
import * as THREE from 'three';
|
|
1
|
+
import type { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
|
+
import type * as THREE from 'three';
|
|
3
3
|
export interface IPointCloudTreeGeometry {
|
|
4
4
|
root: IPointCloudTreeNodeBase | undefined;
|
|
5
5
|
boundingBox: THREE.Box3;
|