@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,24 +1,26 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { Image360, Image360IconStyle } from './src/entity/Image360';
|
|
5
|
-
export { Image360Revision } from './src/entity/Image360Revision';
|
|
6
|
-
export { Image360Collection, Image360AnnotationAssetFilter, Image360AnnotationAssetQueryResult, InstanceLinkable360ImageAnnotationType, AssetAnnotationImage360Info, AssetHybridAnnotationImage360Info } from './src/collection/Image360Collection';
|
|
4
|
+
export type { Image360, Image360IconStyle } from './src/entity/Image360';
|
|
5
|
+
export type { Image360Revision } from './src/entity/Image360Revision';
|
|
6
|
+
export type { Image360Collection, Image360AnnotationAssetFilter, Image360AnnotationAssetQueryResult, InstanceLinkable360ImageAnnotationType, AssetAnnotationImage360Info, AssetHybridAnnotationImage360Info } from './src/collection/Image360Collection';
|
|
7
7
|
export { Image360Facade } from './src/Image360Facade';
|
|
8
8
|
export { Image360CollectionFactory } from './src/collection/Image360CollectionFactory';
|
|
9
9
|
export { Image360Entity } from './src/entity/Image360Entity';
|
|
10
10
|
export { Image360RevisionEntity } from './src/entity/Image360RevisionEntity';
|
|
11
|
-
export { Image360Visualization } from './src/entity/Image360Visualization';
|
|
12
|
-
export { Image360EnteredDelegate, Image360ExitedDelegate } from './src/types';
|
|
13
|
-
export { Image360AnnotationAppearance, Image360AnnotationFilterOptions, Image360AnnotationInstanceReference } from './src/annotation/types';
|
|
14
|
-
export { Image360AnnotationIntersection } from './src/annotation/Image360AnnotationIntersection';
|
|
15
|
-
export { Image360Annotation } from './src/annotation/Image360Annotation';
|
|
11
|
+
export type { Image360Visualization } from './src/entity/Image360Visualization';
|
|
12
|
+
export type { Image360EnteredDelegate, Image360ExitedDelegate, HtmlClusterRendererOptions } from './src/types';
|
|
13
|
+
export type { Image360AnnotationAppearance, Image360AnnotationFilterOptions, Image360AnnotationInstanceReference } from './src/annotation/types';
|
|
14
|
+
export type { Image360AnnotationIntersection } from './src/annotation/Image360AnnotationIntersection';
|
|
15
|
+
export type { Image360Annotation } from './src/annotation/Image360Annotation';
|
|
16
16
|
export { DefaultImage360Collection } from './src/collection/DefaultImage360Collection';
|
|
17
|
-
export { IconsOptions } from './src/icons/IconCollection';
|
|
18
|
-
export { ClusteredIconData } from './src/icons/clustering/ClusterRenderingStrategy';
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
17
|
+
export type { IconsOptions } from './src/icons/IconCollection';
|
|
18
|
+
export type { ClusteredIconData } from './src/icons/clustering/ClusterRenderingStrategy';
|
|
19
|
+
export { HtmlClusterCoordinator } from './src/icons/clustering/HtmlClusterCoordinator';
|
|
20
|
+
export type { HtmlClusterCollection } from './src/icons/clustering/HtmlClusterCoordinator';
|
|
21
|
+
export type { Image360ClusterIntersectionData, Image360CollectionSourceType, Image360IconIntersectionData } from './src/types';
|
|
21
22
|
export { Image360AnnotationFilter } from './src/annotation/Image360AnnotationFilter';
|
|
23
|
+
export { isCoreDmImage360Annotation, isImageAssetLinkAnnotation, isImageInstanceLinkAnnotation } from './src/annotation/typeGuards';
|
|
22
24
|
export { DEFAULT_IMAGE_360_OPACITY } from './src/entity/Image360VisualizationBox';
|
|
23
25
|
export { Image360Action } from './src/Image360Action';
|
|
24
26
|
export { Image360History } from './src/Image360History';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Camera,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import type { Camera, Vector2 } from 'three';
|
|
5
|
+
import { Matrix4 } from 'three';
|
|
6
|
+
import type { Image360Entity } from './entity/Image360Entity';
|
|
7
|
+
import type { Image360CollectionFactory } from './collection/Image360CollectionFactory';
|
|
8
|
+
import type { DefaultImage360Collection } from './collection/DefaultImage360Collection';
|
|
9
|
+
import type { IconCullingScheme } from './icons/IconCollection';
|
|
10
|
+
import type { Image360RevisionEntity } from './entity/Image360RevisionEntity';
|
|
11
|
+
import type { Image360AnnotationFilterOptions } from './annotation/types';
|
|
12
|
+
import type { DataSourceType } from '../../data-providers';
|
|
13
|
+
import type { Image360ClusterIntersectionData, Image360IconIntersectionData } from './types';
|
|
13
14
|
export declare class Image360Facade<T extends DataSourceType> {
|
|
14
15
|
private readonly _entityFactory;
|
|
15
16
|
private readonly _image360Collections;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DataSourceType } from '../../data-providers';
|
|
5
|
-
import { Image360 } from './entity/Image360';
|
|
4
|
+
import type { DataSourceType } from '../../data-providers';
|
|
5
|
+
import type { Image360 } from './entity/Image360';
|
|
6
6
|
import { Image360Action } from './Image360Action';
|
|
7
7
|
export declare class Image360History {
|
|
8
8
|
private readonly _images;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Color, Vector3 } from 'three';
|
|
5
|
-
import { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
4
|
+
import type { Color, Vector3 } from 'three';
|
|
5
|
+
import type { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
6
6
|
/**
|
|
7
7
|
* An annotation associated with a 360 image revision
|
|
8
8
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Image360AnnotationFilterOptions } from './types';
|
|
5
|
-
import { DataSourceType } from '../../../data-providers';
|
|
4
|
+
import type { Image360AnnotationFilterOptions } from './types';
|
|
5
|
+
import type { DataSourceType } from '../../../data-providers';
|
|
6
6
|
export declare class Image360AnnotationFilter {
|
|
7
7
|
private readonly _annotationFilter;
|
|
8
8
|
private fillDefaultAnnotationOptionValues;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
5
|
-
import { Image360Annotation } from './Image360Annotation';
|
|
6
|
-
import { Vector3 } from 'three';
|
|
4
|
+
import type { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
5
|
+
import type { Image360Annotation } from './Image360Annotation';
|
|
6
|
+
import type { Vector3 } from 'three';
|
|
7
7
|
/**
|
|
8
8
|
* Describes an intersection with a 360 image annotation
|
|
9
9
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DataSourceType, Image360FileDescriptor } from '../../../data-providers';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import type { DataSourceType, Image360FileDescriptor } from '../../../data-providers';
|
|
5
|
+
import type { Object3D, Raycaster } from 'three';
|
|
6
|
+
import { Color, Matrix4, Vector3 } from 'three';
|
|
7
|
+
import type { Image360Annotation } from './Image360Annotation';
|
|
8
|
+
import type { Image360AnnotationAppearance } from './types';
|
|
8
9
|
type FaceType = Image360FileDescriptor['face'];
|
|
9
10
|
export declare class ImageAnnotationObject<T extends DataSourceType> implements Image360Annotation<T> {
|
|
10
11
|
private readonly _annotation;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ImageAnnotationObjectGeometryData } from './ImageAnnotationGeometryData';
|
|
5
|
-
import { BufferGeometry,
|
|
6
|
-
import {
|
|
4
|
+
import type { ImageAnnotationObjectGeometryData } from './ImageAnnotationGeometryData';
|
|
5
|
+
import type { BufferGeometry, Vector3 } from 'three';
|
|
6
|
+
import { Matrix4, PlaneGeometry } from 'three';
|
|
7
|
+
import type { AnnotationsBoundingBox } from '@cognite/sdk';
|
|
7
8
|
export declare class BoxAnnotationGeometryData implements ImageAnnotationObjectGeometryData {
|
|
8
9
|
private readonly _geometry;
|
|
9
10
|
private readonly _initialTranslation;
|
package/dist/packages/360-images/src/annotation/geometry/DmMesh3dAnnotationGeometryData.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { Vector3 } from 'three';
|
|
5
|
+
import { BufferGeometry, Matrix4 } from 'three';
|
|
6
|
+
import type { ImageAnnotationObjectGeometryData } from './ImageAnnotationGeometryData';
|
|
6
7
|
export declare class DmMesh3dAnnotationGeometryData implements ImageAnnotationObjectGeometryData {
|
|
7
8
|
private readonly _geometry;
|
|
8
9
|
private readonly _outlinePoints;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { BufferGeometry, Matrix4, Vector3 } from 'three';
|
|
4
|
+
import type { BufferGeometry, Matrix4, Vector3 } from 'three';
|
|
5
5
|
export interface ImageAnnotationObjectGeometryData {
|
|
6
6
|
getGeometry(): BufferGeometry;
|
|
7
7
|
getOutlinePoints(): Vector3[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { BufferGeometry,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import type { BufferGeometry, Vector3 } from 'three';
|
|
5
|
+
import { Matrix4, ShapeGeometry } from 'three';
|
|
6
|
+
import type { AnnotationsPolygon } from '@cognite/sdk';
|
|
7
|
+
import type { ImageAnnotationObjectGeometryData } from './ImageAnnotationGeometryData';
|
|
7
8
|
export declare class PolygonAnnotationGeometryData implements ImageAnnotationObjectGeometryData {
|
|
8
9
|
private readonly _geometry;
|
|
9
10
|
private readonly _outlinePoints;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2025 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DataSourceType } from '../../../data-providers';
|
|
5
|
-
import { InstanceReference } from '../../../data-providers/src/types';
|
|
4
|
+
import type { DataSourceType } from '../../../data-providers';
|
|
5
|
+
import type { InstanceReference } from '../../../data-providers/src/types';
|
|
6
6
|
export declare function getClassicInstanceRef<T extends DataSourceType>(annotation: T['image360AnnotationType']): InstanceReference<T> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2025 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { AnnotationData, AnnotationModel, AnnotationsObjectDetection, AnnotationsTypesImagesAssetLink, AnnotationsTypesImagesInstanceLink, AnnotationType } from '@cognite/sdk';
|
|
5
|
-
import { DataSourceType, DMDataSourceType, ImageAssetLinkAnnotationInfo, ImageInstanceLinkAnnotationInfo } from '../../../data-providers';
|
|
4
|
+
import type { AnnotationData, AnnotationModel, AnnotationsObjectDetection, AnnotationsTypesImagesAssetLink, AnnotationsTypesImagesInstanceLink, AnnotationType } from '@cognite/sdk';
|
|
5
|
+
import type { DataSourceType, DMDataSourceType, ImageAssetLinkAnnotationInfo, ImageInstanceLinkAnnotationInfo } from '../../../data-providers';
|
|
6
6
|
export declare function isCoreDmImage360Annotation(annotation: DataSourceType['image360AnnotationType']): annotation is DMDataSourceType['image360AnnotationType'];
|
|
7
7
|
export declare function isAnnotationsObjectDetection(annotationType: AnnotationType, annotation: AnnotationData): annotation is AnnotationsObjectDetection;
|
|
8
8
|
export declare function isImageAssetLinkAnnotation(annotation: AnnotationModel): annotation is ImageAssetLinkAnnotationInfo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { AnnotationStatus } from '@cognite/sdk';
|
|
5
|
-
import { ClassicDataSourceType, DataSourceType, DMDataSourceType, InstanceReference } from '../../../data-providers';
|
|
6
|
-
import { Color } from 'three';
|
|
4
|
+
import type { AnnotationStatus } from '@cognite/sdk';
|
|
5
|
+
import type { ClassicDataSourceType, DataSourceType, DMDataSourceType, InstanceReference } from '../../../data-providers';
|
|
6
|
+
import type { Color } from 'three';
|
|
7
7
|
/**
|
|
8
8
|
* The appearance of a 360 image annotation
|
|
9
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Image360Entity } from '../entity/Image360Entity';
|
|
5
|
-
import { Image360RevisionEntity } from '../entity/Image360RevisionEntity';
|
|
6
|
-
import { DataSourceType } from '../../../data-providers';
|
|
4
|
+
import type { Image360Entity } from '../entity/Image360Entity';
|
|
5
|
+
import type { Image360RevisionEntity } from '../entity/Image360RevisionEntity';
|
|
6
|
+
import type { DataSourceType } from '../../../data-providers';
|
|
7
7
|
export type DownloadRequest<T extends DataSourceType> = {
|
|
8
8
|
entity: Image360Entity<T>;
|
|
9
9
|
revision: Image360RevisionEntity<T>;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
+
import type { BeforeSceneRenderedDelegate } from '../../../utilities';
|
|
4
5
|
import { EventTrigger } from '../../../utilities';
|
|
5
|
-
import { AssetAnnotationImage360Info, AssetHybridAnnotationImage360Info, Image360AnnotationAssetFilter, Image360AnnotationAssetQueryResult, Image360Collection } from './Image360Collection';
|
|
6
|
-
import { Image360Entity } from '../entity/Image360Entity';
|
|
7
|
-
import { Image360EnteredDelegate, Image360ExitedDelegate } from '../types';
|
|
8
|
-
import { ClusterIntersectionData, IconCollection, IconCullingScheme } from '../icons/IconCollection';
|
|
9
|
-
import { Overlay3DIcon } from '../../../3d-overlays';
|
|
10
|
-
import { Image360AnnotationAppearance } from '../annotation/types';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
6
|
+
import type { AssetAnnotationImage360Info, AssetHybridAnnotationImage360Info, Image360AnnotationAssetFilter, Image360AnnotationAssetQueryResult, Image360Collection } from './Image360Collection';
|
|
7
|
+
import type { Image360Entity } from '../entity/Image360Entity';
|
|
8
|
+
import type { Image360EnteredDelegate, Image360ExitedDelegate } from '../types';
|
|
9
|
+
import type { ClusterIntersectionData, IconCollection, IconCullingScheme } from '../icons/IconCollection';
|
|
10
|
+
import type { Overlay3DIcon } from '../../../3d-overlays';
|
|
11
|
+
import type { Image360AnnotationAppearance } from '../annotation/types';
|
|
12
|
+
import type { ClusterScreenInfo } from '../icons/clustering';
|
|
13
|
+
import type { HtmlClusterCollection } from '../icons/clustering/HtmlClusterCoordinator';
|
|
14
|
+
import type { ClassicDataSourceType, DataSourceType, DMDataSourceType, Image360FileDescriptor, Image360Provider } from '../../../data-providers';
|
|
15
|
+
import type { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
|
|
16
|
+
import type { Matrix4, Ray } from 'three';
|
|
17
|
+
import type { InstanceReference } from '../../../data-providers/src/types';
|
|
15
18
|
/**
|
|
16
19
|
* Default implementation of {@link Image360Collection}. Used for events when entering
|
|
17
20
|
* and exiting 360 image mode
|
|
18
21
|
*/
|
|
19
|
-
export declare class DefaultImage360Collection<T extends DataSourceType> implements Image360Collection<T
|
|
22
|
+
export declare class DefaultImage360Collection<T extends DataSourceType> implements Image360Collection<T>, HtmlClusterCollection {
|
|
20
23
|
/**
|
|
21
24
|
* A list containing all the 360 images in this set.
|
|
22
25
|
*/
|
|
@@ -131,6 +134,9 @@ export declare class DefaultImage360Collection<T extends DataSourceType> impleme
|
|
|
131
134
|
getEntitiesFromIcons(icons: Overlay3DIcon[]): Image360Entity<T>[];
|
|
132
135
|
clearHoveredCluster(): void;
|
|
133
136
|
setHoveredClusterIcon(icon: Overlay3DIcon | undefined): void;
|
|
137
|
+
getStagedHtmlClusterScreenInfos(): ClusterScreenInfo[];
|
|
138
|
+
applyHtmlClusterOcclusion(occludedIcons: Set<Overlay3DIcon>): void;
|
|
139
|
+
updateIcons(params: Parameters<BeforeSceneRenderedDelegate>[0]): void;
|
|
134
140
|
remove(entity: Image360Entity<T>): void;
|
|
135
141
|
dispose(): void;
|
|
136
142
|
get needsRedraw(): boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Image360 } from './../entity/Image360';
|
|
5
|
-
import { Image360EnteredDelegate, Image360ExitedDelegate } from '../types';
|
|
6
|
-
import { Image360AnnotationAppearance, Image360AnnotationInstanceReference } from '../annotation/types';
|
|
7
|
-
import { Image360Revision } from '../entity/Image360Revision';
|
|
8
|
-
import { IdEither } from '@cognite/sdk';
|
|
9
|
-
import { Image360Annotation } from '../annotation/Image360Annotation';
|
|
10
|
-
import { ClassicDataSourceType, DataSourceType, DMDataSourceType, ImageInstanceLinkAnnotationInfo } from '../../../data-providers';
|
|
11
|
-
import { Matrix4 } from 'three';
|
|
12
|
-
import { ImageAssetLinkAnnotationInfo } from '../../../data-providers';
|
|
4
|
+
import type { Image360 } from './../entity/Image360';
|
|
5
|
+
import type { Image360EnteredDelegate, Image360ExitedDelegate } from '../types';
|
|
6
|
+
import type { Image360AnnotationAppearance, Image360AnnotationInstanceReference } from '../annotation/types';
|
|
7
|
+
import type { Image360Revision } from '../entity/Image360Revision';
|
|
8
|
+
import type { IdEither } from '@cognite/sdk';
|
|
9
|
+
import type { Image360Annotation } from '../annotation/Image360Annotation';
|
|
10
|
+
import type { ClassicDataSourceType, DataSourceType, DMDataSourceType, ImageInstanceLinkAnnotationInfo } from '../../../data-providers';
|
|
11
|
+
import type { Matrix4 } from 'three';
|
|
12
|
+
import type { ImageAssetLinkAnnotationInfo } from '../../../data-providers';
|
|
13
13
|
/**
|
|
14
14
|
* Annotation type that may be linked to assets. Only relevant for classic annotations, where some
|
|
15
15
|
* annotation types are visible in Reveal, but not linkable to assets
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DataSourceType } from '../../../data-providers';
|
|
5
|
-
import {
|
|
4
|
+
import type { DataSourceType } from '../../../data-providers';
|
|
5
|
+
import type { DeviceDescriptor, SceneHandler } from '../../../utilities';
|
|
6
6
|
import { DefaultImage360Collection } from './DefaultImage360Collection';
|
|
7
|
-
import { IconsOptions } from '../icons/IconCollection';
|
|
7
|
+
import type { IconsOptions } from '../icons/IconCollection';
|
|
8
8
|
import { type Matrix4 } from 'three';
|
|
9
|
-
import { Image360AnnotationFilterOptions } from '../annotation/types';
|
|
10
|
-
import { Image360ProviderMap } from '../../../data-providers/src/Image360Provider';
|
|
9
|
+
import type { Image360AnnotationFilterOptions } from '../annotation/types';
|
|
10
|
+
import type { Image360ProviderMap } from '../../../data-providers/src/Image360Provider';
|
|
11
11
|
export declare class Image360CollectionFactory {
|
|
12
12
|
private readonly _image360ProviderMap;
|
|
13
13
|
private readonly _sceneHandler;
|
|
14
|
-
private readonly _onBeforeSceneRendered;
|
|
15
14
|
private readonly _iconsOptions;
|
|
16
15
|
private readonly _device;
|
|
17
16
|
private readonly _setNeedsRedraw;
|
|
18
|
-
constructor(image360ProviderMap: Image360ProviderMap, sceneHandler: SceneHandler,
|
|
17
|
+
constructor(image360ProviderMap: Image360ProviderMap, sceneHandler: SceneHandler, setNeedsRedraw: () => void, device: DeviceDescriptor, iconsOptions?: IconsOptions);
|
|
19
18
|
create<T extends DataSourceType>(image360Identifier: T['image360Identifier'], postTransform: Matrix4, preMultipliedRotation: boolean, annotationFilter: Image360AnnotationFilterOptions): Promise<DefaultImage360Collection<T>>;
|
|
20
19
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
5
|
-
import { Image360Revision } from './Image360Revision';
|
|
6
|
-
import { Image360Visualization } from './Image360Visualization';
|
|
7
|
-
import { Color
|
|
8
|
-
import {
|
|
4
|
+
import type { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
5
|
+
import type { Image360Revision } from './Image360Revision';
|
|
6
|
+
import type { Image360Visualization } from './Image360Visualization';
|
|
7
|
+
import type { Color } from 'three';
|
|
8
|
+
import { type Matrix4 } from 'three';
|
|
9
|
+
import type { Image360Id } from '../../../data-providers/src/types';
|
|
9
10
|
/**
|
|
10
11
|
* Image360 icon style
|
|
11
12
|
*/
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DeviceDescriptor, SceneHandler } from '../../../utilities';
|
|
5
|
-
import { DataSourceType, Image360Provider } from '../../../data-providers';
|
|
6
|
-
import { Image360 } from './Image360';
|
|
7
|
-
import { Historical360ImageSet, Image360RevisionId } from '../../../data-providers/src/types';
|
|
4
|
+
import type { DeviceDescriptor, SceneHandler } from '../../../utilities';
|
|
5
|
+
import type { DataSourceType, Image360Provider } from '../../../data-providers';
|
|
6
|
+
import type { Image360 } from './Image360';
|
|
7
|
+
import type { Historical360ImageSet, Image360RevisionId } from '../../../data-providers/src/types';
|
|
8
8
|
import { Image360RevisionEntity } from './Image360RevisionEntity';
|
|
9
9
|
import { Image360VisualizationBox } from './Image360VisualizationBox';
|
|
10
|
-
import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
11
|
-
import { Overlay3DIcon } from '../../../3d-overlays';
|
|
12
|
-
import { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
|
|
13
|
-
import { Color, Matrix4
|
|
10
|
+
import type { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
11
|
+
import type { Overlay3DIcon } from '../../../3d-overlays';
|
|
12
|
+
import type { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
|
|
13
|
+
import type { Color, Matrix4 } from 'three';
|
|
14
|
+
import { type Raycaster } from 'three';
|
|
14
15
|
export declare class Image360Entity<T extends DataSourceType> implements Image360<T> {
|
|
15
16
|
private readonly _revisions;
|
|
16
17
|
private readonly _imageMetadata;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Image360Annotation } from '../annotation/Image360Annotation';
|
|
5
|
-
import { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
4
|
+
import type { Image360Annotation } from '../annotation/Image360Annotation';
|
|
5
|
+
import type { ClassicDataSourceType, DataSourceType } from '../../../data-providers';
|
|
6
6
|
/**
|
|
7
7
|
* Interface used to manage historical revisions of {@link Image360}.
|
|
8
8
|
* One instance represents one specific image revision.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Image360Descriptor, DataSourceType, Image360Provider } from '../../../data-providers';
|
|
5
|
-
import { Image360Revision } from './Image360Revision';
|
|
6
|
-
import { Image360VisualizationBox } from './Image360VisualizationBox';
|
|
4
|
+
import type { Image360Descriptor, Image360RevisionId, DataSourceType, Image360Provider } from '../../../data-providers';
|
|
5
|
+
import type { Image360Revision } from './Image360Revision';
|
|
6
|
+
import type { Image360VisualizationBox } from './Image360VisualizationBox';
|
|
7
7
|
import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
8
8
|
import { type Raycaster } from 'three';
|
|
9
|
-
import { Image360AnnotationAppearance } from '../annotation/types';
|
|
10
|
-
import { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
|
|
11
|
-
import { Image360RevisionId } from '../../../data-providers/src/types';
|
|
9
|
+
import type { Image360AnnotationAppearance } from '../annotation/types';
|
|
10
|
+
import type { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
|
|
12
11
|
export declare class Image360RevisionEntity<T extends DataSourceType> implements Image360Revision<T> {
|
|
13
12
|
private readonly _imageProvider;
|
|
14
13
|
private readonly _image360Descriptor;
|
|
@@ -18,8 +17,8 @@ export declare class Image360RevisionEntity<T extends DataSourceType> implements
|
|
|
18
17
|
private _onFullResolutionCompleted;
|
|
19
18
|
private _defaultAppearance;
|
|
20
19
|
private readonly _identifier;
|
|
21
|
-
private
|
|
22
|
-
private
|
|
20
|
+
private readonly _annotationKeyToAnnotationObject;
|
|
21
|
+
private _allAnnotations;
|
|
23
22
|
private readonly _annotationFilterer;
|
|
24
23
|
constructor(imageProvider: Image360Provider<T>, image360Descriptor: Image360Descriptor<T>, image360VisualizationBox: Image360VisualizationBox, annotationFilterer: Image360AnnotationFilter);
|
|
25
24
|
/**
|
|
@@ -50,7 +49,8 @@ export declare class Image360RevisionEntity<T extends DataSourceType> implements
|
|
|
50
49
|
getPreviewThumbnailUrl(face?: 'front' | 'back' | 'left' | 'right' | 'top' | 'bottom'): Promise<string | undefined>;
|
|
51
50
|
private loadPreviewTextures;
|
|
52
51
|
private loadFullTextures;
|
|
53
|
-
private
|
|
52
|
+
private loadAndSetAllAnnotations;
|
|
53
|
+
createAndAddAnnotationObjects(annotations: T['image360AnnotationType'][]): Promise<ImageAnnotationObject<T>[]>;
|
|
54
54
|
setDefaultAppearance(appearance: Image360AnnotationAppearance): void;
|
|
55
55
|
private propagateDefaultAppearanceToAnnotations;
|
|
56
56
|
/**
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { DeviceDescriptor, SceneHandler } from '../../../utilities';
|
|
6
|
-
import { DataSourceType, Image360Face, Image360Texture } from '../../../data-providers';
|
|
7
|
-
import { Image360Visualization } from './Image360Visualization';
|
|
8
|
-
import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
5
|
+
import type { DeviceDescriptor, SceneHandler } from '../../../utilities';
|
|
6
|
+
import type { DataSourceType, Image360Face, Image360Texture } from '../../../data-providers';
|
|
7
|
+
import type { Image360Visualization } from './Image360Visualization';
|
|
8
|
+
import type { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
|
|
9
9
|
export declare const DEFAULT_IMAGE_360_OPACITY = 1;
|
|
10
10
|
export declare class Image360VisualizationBox implements Image360Visualization {
|
|
11
11
|
private readonly MAX_MOBILE_IMAGE_SIZE;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2026 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import type { Texture } from 'three';
|
|
5
|
+
import { CanvasTexture, Matrix4, Vector3 } from 'three';
|
|
6
|
+
import type { SceneHandler } from '../../../utilities';
|
|
7
|
+
import type { Overlay3DIcon } from '../../../3d-overlays';
|
|
7
8
|
/**
|
|
8
9
|
* Manages two floor disc meshes (same level, elevated) and the floor hover mesh.
|
|
9
10
|
* Encapsulates all per-frame instance placement and elevation routing.
|
|
@@ -25,6 +26,8 @@ export declare class FlooredIconManager {
|
|
|
25
26
|
private readonly _floorDiscMeshColor;
|
|
26
27
|
private readonly _sameLevelCapacity;
|
|
27
28
|
private _referenceWorldY;
|
|
29
|
+
private _prevSameLevelCount;
|
|
30
|
+
private _prevElevatedCount;
|
|
28
31
|
constructor(capacity: number, iconRadius: number, maxPixelSize: number, sameLevelTexture: Texture, hoverIconTexture: CanvasTexture, sceneHandler: SceneHandler);
|
|
29
32
|
set hoverVisible(value: boolean);
|
|
30
33
|
showMeshes(): void;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2023 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import type { Ray } from 'three';
|
|
5
|
+
import { Matrix4, Vector3 } from 'three';
|
|
6
|
+
import type { BeforeSceneRenderedDelegate, SceneHandler } from '../../../utilities';
|
|
7
|
+
import type { DefaultOverlay3DContentType } from '../../../3d-overlays';
|
|
8
|
+
import { IconOctree, Overlay3DIcon } from '../../../3d-overlays';
|
|
9
|
+
import type { PointOctant } from 'sparse-octree';
|
|
10
|
+
import type { ClusterScreenInfo } from './clustering';
|
|
11
|
+
import type { HtmlClusterRendererOptions } from '../types';
|
|
9
12
|
export type IconCullingScheme = 'clustered' | 'proximity';
|
|
10
13
|
export type IconsOptions = {
|
|
11
14
|
platformMaxPointsSize?: number;
|
|
12
15
|
htmlClusterOptions?: HtmlClusterRendererOptions;
|
|
13
|
-
clusterDistanceThreshold?: number;
|
|
14
|
-
maxOctreeDepth?: number;
|
|
15
16
|
enableHtmlClusters?: boolean;
|
|
16
17
|
enableFloorIcons?: boolean;
|
|
17
18
|
};
|
|
@@ -47,7 +48,7 @@ export declare class IconCollection {
|
|
|
47
48
|
private readonly _pointsObject;
|
|
48
49
|
private readonly _computeClustersEventHandler;
|
|
49
50
|
private readonly _computeProximityPointsEventHandler;
|
|
50
|
-
private readonly
|
|
51
|
+
private readonly _adaptiveScaleRenderSize;
|
|
51
52
|
private readonly _iconRadius;
|
|
52
53
|
private readonly _renderPositions;
|
|
53
54
|
private readonly _renderColors;
|
|
@@ -62,8 +63,8 @@ export declare class IconCollection {
|
|
|
62
63
|
private _proximityPointLimit;
|
|
63
64
|
private _clusterDistanceThreshold;
|
|
64
65
|
private _maxOctreeDepth;
|
|
65
|
-
private _activeCullingSchemeEventHandeler;
|
|
66
66
|
private _iconCullingScheme;
|
|
67
|
+
private _activeCullingHandler;
|
|
67
68
|
private readonly _floorDiscs;
|
|
68
69
|
private _floorMode;
|
|
69
70
|
private _preFloorPointsObjectVisible;
|
|
@@ -81,7 +82,7 @@ export declare class IconCollection {
|
|
|
81
82
|
getMaxOctreeDepth(): number | undefined;
|
|
82
83
|
isHtmlClustersEnabled(): boolean;
|
|
83
84
|
setMaxOctreeDepth(depth: number | undefined): void;
|
|
84
|
-
constructor(points: Vector3[], sceneHandler: SceneHandler,
|
|
85
|
+
constructor(points: Vector3[], sceneHandler: SceneHandler, iconOptions?: IconsOptions, setNeedsRedraw?: () => void);
|
|
85
86
|
setTransform(transform: Matrix4): void;
|
|
86
87
|
getTransform(out?: Matrix4): Matrix4;
|
|
87
88
|
/**
|
|
@@ -93,6 +94,8 @@ export declare class IconCollection {
|
|
|
93
94
|
intersectCluster(ray: Ray): ClusterIntersectionData | undefined;
|
|
94
95
|
setHoveredClusterIcon(icon: Overlay3DIcon | undefined): void;
|
|
95
96
|
clearHoveredCluster(): void;
|
|
97
|
+
getStagedHtmlClusterScreenInfos(): ClusterScreenInfo[];
|
|
98
|
+
applyHtmlClusterOcclusion(occludedIcons: Set<Overlay3DIcon>): void;
|
|
96
99
|
/**
|
|
97
100
|
* Get the currently visible clustered icons (for external intersection handling).
|
|
98
101
|
*/
|
|
@@ -150,6 +153,8 @@ export declare class IconCollection {
|
|
|
150
153
|
private updateIconSpritesRenderData;
|
|
151
154
|
private computeProximityPoints;
|
|
152
155
|
private initializeImage360Icons;
|
|
156
|
+
updateIcons(params: Parameters<BeforeSceneRenderedDelegate>[0]): void;
|
|
157
|
+
updateCulling(params: Parameters<BeforeSceneRenderedDelegate>[0]): void;
|
|
153
158
|
dispose(): void;
|
|
154
159
|
private createHoverSprite;
|
|
155
160
|
private createOuterRingsTexture;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2026 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Matrix4, PerspectiveCamera, Vector3, WebGLRenderer } from 'three';
|
|
5
|
-
import { Overlay3DIcon } from '../../../../3d-overlays';
|
|
4
|
+
import type { Matrix4, PerspectiveCamera, Vector3, WebGLRenderer } from 'three';
|
|
5
|
+
import type { Overlay3DIcon } from '../../../../3d-overlays';
|
|
6
6
|
export type ClusteredIconData = {
|
|
7
7
|
icon: Overlay3DIcon;
|
|
8
8
|
isCluster: boolean;
|
|
@@ -16,3 +16,10 @@ export type ClusterRenderParams = {
|
|
|
16
16
|
camera: PerspectiveCamera;
|
|
17
17
|
modelTransform: Matrix4;
|
|
18
18
|
};
|
|
19
|
+
export type ClusterScreenInfo = {
|
|
20
|
+
data: ClusteredIconData;
|
|
21
|
+
screenPos: Vector3;
|
|
22
|
+
worldPos: Vector3;
|
|
23
|
+
distance: number;
|
|
24
|
+
projectedSize: number;
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import type { Overlay3DIcon } from '../../../../3d-overlays';
|
|
5
|
+
import type { ClusterScreenInfo } from './ClusterRenderingStrategy';
|
|
6
|
+
export interface HtmlClusterCollection {
|
|
7
|
+
getStagedHtmlClusterScreenInfos(): ClusterScreenInfo[];
|
|
8
|
+
applyHtmlClusterOcclusion(occludedIcons: Set<Overlay3DIcon>): void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Coordinates HTML cluster occlusion detection across multiple Image360Collections.
|
|
12
|
+
* Gathers per-frame screen-space data from all collections and computes a single
|
|
13
|
+
* global occlusion set, then feeds it back to each collection for DOM updates.
|
|
14
|
+
*/
|
|
15
|
+
export declare class HtmlClusterCoordinator {
|
|
16
|
+
private readonly _occlusionFactor;
|
|
17
|
+
runCoordinator(collections: HtmlClusterCollection[]): void;
|
|
18
|
+
private computeGlobalOcclusion;
|
|
19
|
+
}
|