@cognite/reveal 4.33.0 → 4.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/dist/api-entry-points/core.d.ts +1 -1
- package/dist/assets/eptBinaryDecoder.worker-XgCyWWQG.js.map +1 -0
- package/dist/index.js +18112 -1000
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/Image360Facade.d.ts +9 -13
- package/dist/packages/360-images/src/Image360History.d.ts +2 -5
- package/dist/packages/360-images/src/annotation/Image360Annotation.d.ts +2 -5
- package/dist/packages/360-images/src/annotation/Image360AnnotationFilter.d.ts +2 -5
- package/dist/packages/360-images/src/annotation/Image360AnnotationIntersection.d.ts +3 -6
- package/dist/packages/360-images/src/annotation/ImageAnnotationObject.d.ts +4 -8
- package/dist/packages/360-images/src/annotation/geometry/BoxAnnotationGeometryData.d.ts +3 -7
- package/dist/packages/360-images/src/annotation/geometry/DmMesh3dAnnotationGeometryData.d.ts +2 -6
- package/dist/packages/360-images/src/annotation/geometry/ImageAnnotationGeometryData.d.ts +1 -4
- package/dist/packages/360-images/src/annotation/geometry/PolygonAnnotationGeometryData.d.ts +3 -7
- package/dist/packages/360-images/src/annotation/geometry/Vector3ArrayUtils.d.ts +0 -3
- package/dist/packages/360-images/src/annotation/geometry/createTriangleIndexesFromVectors.d.ts +0 -3
- package/dist/packages/360-images/src/annotation/geometry/utils.d.ts +1 -5
- package/dist/packages/360-images/src/annotation/getInstanceId.d.ts +2 -5
- package/dist/packages/360-images/src/annotation/typeGuards.d.ts +2 -5
- package/dist/packages/360-images/src/annotation/types.d.ts +3 -6
- package/dist/packages/360-images/src/cache/Image360LoadingCache.d.ts +3 -6
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +13 -17
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +8 -12
- package/dist/packages/360-images/src/collection/Image360CollectionFactory.d.ts +6 -9
- package/dist/packages/360-images/src/collection/createCollectionIdString.d.ts +1 -4
- package/dist/packages/360-images/src/entity/Image360.d.ts +5 -9
- package/dist/packages/360-images/src/entity/Image360Entity.d.ts +9 -13
- package/dist/packages/360-images/src/entity/Image360FaceTextureLoader.d.ts +34 -0
- package/dist/packages/360-images/src/entity/Image360Revision.d.ts +2 -5
- package/dist/packages/360-images/src/entity/Image360RevisionEntity.d.ts +9 -9
- package/dist/packages/360-images/src/entity/Image360VisualizationBox.d.ts +18 -17
- package/dist/packages/360-images/src/icons/FlooredIconManager.d.ts +3 -7
- package/dist/packages/360-images/src/icons/IconCollection.d.ts +6 -11
- package/dist/packages/360-images/src/icons/clustering/ClusterRenderingStrategy.d.ts +2 -5
- package/dist/packages/360-images/src/icons/clustering/HtmlClusterCoordinator.d.ts +2 -5
- package/dist/packages/360-images/src/icons/clustering/HtmlClusterRenderer.d.ts +3 -6
- package/dist/packages/360-images/src/typeGuards.d.ts +2 -0
- package/dist/packages/360-images/src/types.d.ts +6 -9
- package/dist/packages/360-images/src/utils/JpegDataStreamParser.d.ts +38 -0
- package/dist/packages/360-images/visual-tests/Image360.VisualTest.d.ts +12 -0
- package/dist/packages/3d-overlays/src/CameraChangeThrottler.d.ts +1 -1
- package/dist/packages/3d-overlays/src/IconOctree.d.ts +4 -9
- package/dist/packages/3d-overlays/src/Overlay3D.d.ts +1 -4
- package/dist/packages/3d-overlays/src/Overlay3DCollection.d.ts +3 -7
- package/dist/packages/3d-overlays/src/Overlay3DIcon.d.ts +3 -7
- package/dist/packages/3d-overlays/src/OverlayCollection.d.ts +2 -5
- package/dist/packages/3d-overlays/src/OverlayPointsObject.d.ts +1 -5
- package/dist/packages/api/index.d.ts +1 -2
- package/dist/packages/api/src/api-helpers/Image360ApiHelper.d.ts +7 -8
- package/dist/packages/api/src/migration.d.ts +7 -0
- package/dist/packages/api/src/public/RevealManager.d.ts +16 -19
- package/dist/packages/api/src/public/RevealOptions.d.ts +4 -7
- package/dist/packages/api/src/public/createRevealManager.d.ts +7 -10
- package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +46 -52
- package/dist/packages/api/src/public/migration/renderOptionsHelpers.d.ts +4 -8
- package/dist/packages/api/src/public/migration/types.d.ts +11 -15
- package/dist/packages/api/src/public/types.d.ts +4 -7
- package/dist/packages/api/src/storage/RevealManagerHelper.d.ts +13 -16
- package/dist/packages/api/src/utilities/Spinner.d.ts +2 -5
- package/dist/packages/api/src/utilities/ViewStateHelper.d.ts +4 -4
- package/dist/packages/api/src/utilities/utils.d.ts +4 -7
- package/dist/packages/api/src/version.d.ts +1 -0
- package/dist/packages/api/visual-tests/ClippingPointCloud.VisualTest.d.ts +5 -0
- package/dist/packages/api/visual-tests/Default.VisualTest.d.ts +4 -0
- package/dist/packages/api/visual-tests/DefaultPointCloud.VisualTest.d.ts +5 -0
- package/dist/packages/api/visual-tests/DefaultTextured.VisualTest.d.ts +5 -0
- package/dist/packages/api/visual-tests/FixedPointCloud.VisualTest.d.ts +5 -0
- package/dist/packages/api/visual-tests/HighlightedGhosted.VisualTest.d.ts +4 -0
- package/dist/packages/api/visual-tests/NodeTransform.VisualTest.d.ts +4 -0
- package/dist/packages/api/visual-tests/Outline.VisualTest.d.ts +4 -0
- package/dist/packages/api/visual-tests/ReassignNodeStyle.VisualTest.d.ts +4 -0
- package/dist/packages/api/visual-tests/StyledTextured.VisualTest.d.ts +5 -0
- package/dist/packages/api/visual-tests/TwoModels.VisualTest.d.ts +19 -0
- package/dist/packages/cad-geometry-loaders/src/CadManager.d.ts +11 -15
- package/dist/packages/cad-geometry-loaders/src/CadModelUpdateHandler.d.ts +11 -14
- package/dist/packages/cad-geometry-loaders/src/InternalRevealCadOptions.d.ts +1 -4
- package/dist/packages/cad-geometry-loaders/src/createCadManager.d.ts +3 -6
- package/dist/packages/cad-geometry-loaders/src/sector/ModelStateHandler.d.ts +0 -3
- package/dist/packages/cad-geometry-loaders/src/sector/SectorDownloadScheduler.d.ts +1 -4
- package/dist/packages/cad-geometry-loaders/src/sector/SectorLoader.d.ts +4 -7
- package/dist/packages/cad-geometry-loaders/src/sector/culling/ByScreenSizeSectorCuller.d.ts +3 -6
- package/dist/packages/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +2 -5
- package/dist/packages/cad-geometry-loaders/src/sector/culling/WeightFunctionsHelper.d.ts +11 -14
- package/dist/packages/cad-geometry-loaders/src/sector/culling/computeNdcAreaOfBox.d.ts +2 -5
- package/dist/packages/cad-geometry-loaders/src/sector/culling/computeSectorCost.d.ts +2 -6
- package/dist/packages/cad-geometry-loaders/src/sector/culling/createDetermineSectorInput.d.ts +5 -0
- package/dist/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenSectorMapBase.d.ts +2 -5
- package/dist/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenV9SectorMap.d.ts +3 -6
- package/dist/packages/cad-geometry-loaders/src/sector/culling/transformBoxToNDC.d.ts +2 -5
- package/dist/packages/cad-geometry-loaders/src/sector/culling/types.d.ts +10 -13
- package/dist/packages/cad-geometry-loaders/src/sector/rxSectorUtilities.d.ts +2 -5
- package/dist/packages/cad-geometry-loaders/src/utilities/reflection.d.ts +7 -0
- package/dist/packages/cad-model/src/CadModelFactory.d.ts +4 -5
- package/dist/packages/cad-model/src/batching/DrawCallBatchingManager.d.ts +1 -4
- package/dist/packages/cad-model/src/batching/MultiBufferBatchingManager.d.ts +5 -5
- package/dist/packages/cad-model/src/picking/PickingHandler.d.ts +8 -11
- package/dist/packages/cad-model/src/types.d.ts +1 -4
- package/dist/packages/cad-model/src/utilities/BoundingBoxClipper.d.ts +3 -6
- package/dist/packages/cad-model/src/utilities/CustomSectorBounds.d.ts +4 -7
- package/dist/packages/cad-model/src/utilities/GeometryBufferUtils.d.ts +1 -4
- package/dist/packages/cad-model/src/utilities/TreeIndexToSectorsMap.d.ts +1 -4
- package/dist/packages/cad-model/src/utilities/getShaderMaterial.d.ts +2 -5
- package/dist/packages/cad-model/src/wrappers/CadMeshManager.d.ts +8 -11
- package/dist/packages/cad-model/src/wrappers/CadNode.d.ts +7 -16
- package/dist/packages/cad-model/src/wrappers/CogniteCadModel.d.ts +24 -28
- package/dist/packages/cad-model/visual-tests/CadClipping.VisualTest.d.ts +4 -0
- package/dist/packages/cad-model/visual-tests/DebugLoadedSectorsTool.d.ts +23 -0
- package/dist/packages/cad-model/visual-tests/Rotation.VisualTest.d.ts +4 -0
- package/dist/packages/cad-model/visual-tests/Scale.VisualTest.d.ts +4 -0
- package/dist/packages/cad-model/visual-tests/SectorBoundingBoxes.VisualTest.d.ts +30 -0
- package/dist/packages/cad-parsers/src/cad/filterPrimitivesCommon.d.ts +2 -5
- package/dist/packages/cad-parsers/src/cad/filterPrimitivesV9.d.ts +2 -5
- package/dist/packages/cad-parsers/src/cad/types.d.ts +7 -10
- package/dist/packages/cad-parsers/src/metadata/CadMetadataParser.d.ts +1 -4
- package/dist/packages/cad-parsers/src/metadata/CadModelClipper.d.ts +3 -6
- package/dist/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +7 -10
- package/dist/packages/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +3 -7
- package/dist/packages/cad-parsers/src/metadata/parsers/CadMetadataParserGltf.d.ts +4 -7
- package/dist/packages/cad-parsers/src/metadata/types.d.ts +3 -6
- package/dist/packages/cad-parsers/src/sector/RootSectorNode.d.ts +4 -7
- package/dist/packages/cad-parsers/src/sector/SectorNode.d.ts +6 -9
- package/dist/packages/cad-parsers/src/utilities/SectorScene.d.ts +7 -10
- package/dist/packages/cad-parsers/src/utilities/SectorSceneFactory.d.ts +2 -2
- package/dist/packages/cad-parsers/src/utilities/computeBoundingBoxFromAttributes.d.ts +6 -9
- package/dist/packages/cad-parsers/src/utilities/types.d.ts +7 -10
- package/dist/packages/cad-styling/index.d.ts +2 -1
- package/dist/packages/cad-styling/src/AssetNodeCollection.d.ts +7 -10
- package/dist/packages/cad-styling/src/CdfModelNodeCollectionDataProvider.d.ts +3 -6
- package/dist/packages/cad-styling/src/CdfNodeCollectionBase.d.ts +3 -3
- package/dist/packages/cad-styling/src/ClippingPlanesProvider.d.ts +11 -0
- package/dist/packages/cad-styling/src/CombineNodeCollectionBase.d.ts +3 -6
- package/dist/packages/cad-styling/src/IntersectionNodeCollection.d.ts +3 -6
- package/dist/packages/cad-styling/src/InvertedNodeCollection.d.ts +3 -6
- package/dist/packages/cad-styling/src/NodeAppearance.d.ts +6 -15
- package/dist/packages/cad-styling/src/NodeAppearanceProvider.d.ts +4 -7
- package/dist/packages/cad-styling/src/NodeAppearanceTextureBuilder.d.ts +4 -7
- package/dist/packages/cad-styling/src/NodeCollection.d.ts +3 -6
- package/dist/packages/cad-styling/src/NodeCollectionDeserializer.d.ts +4 -7
- package/dist/packages/cad-styling/src/NodeIdNodeCollection.d.ts +4 -7
- package/dist/packages/cad-styling/src/PopulateIndexSetFromPagedResponseHelper.d.ts +5 -9
- package/dist/packages/cad-styling/src/PropertyFilterNodeCollection.d.ts +3 -6
- package/dist/packages/cad-styling/src/SinglePropertyFilterNodeCollection.d.ts +4 -7
- package/dist/packages/cad-styling/src/TreeIndexNodeCollection.d.ts +5 -8
- package/dist/packages/cad-styling/src/UnionNodeCollection.d.ts +3 -6
- package/dist/packages/cad-styling/src/nodeAppearanceSerialization.d.ts +1 -4
- package/dist/packages/cad-styling/src/prioritized/AreaCollection.d.ts +1 -4
- package/dist/packages/cad-styling/src/prioritized/BoxClusterer.d.ts +0 -3
- package/dist/packages/cad-styling/src/prioritized/ClusteredAreaCollection.d.ts +2 -5
- package/dist/packages/cad-styling/src/prioritized/EmptyAreaCollection.d.ts +2 -5
- package/dist/packages/cad-styling/src/prioritized/types.d.ts +1 -4
- package/dist/packages/cad-styling/src/stubs/StubNodeCollection.d.ts +19 -0
- package/dist/packages/cad-styling/src/transform/NodeTransformProvider.d.ts +1 -4
- package/dist/packages/cad-styling/src/transform/NodeTransformTextureBuilder.d.ts +4 -7
- package/dist/packages/cad-styling/src/transform/TransformOverrideBuffer.d.ts +4 -7
- package/dist/packages/cad-styling/visual-tests/CustomWithStyling.VisualTest.d.ts +4 -0
- package/dist/packages/cad-styling/visual-tests/Highlighted.VisualTest.d.ts +4 -0
- package/dist/packages/camera-manager/app/index.d.ts +1 -0
- package/dist/packages/camera-manager/src/CameraManager.d.ts +2 -5
- package/dist/packages/camera-manager/src/CameraManagerHelper.d.ts +1 -5
- package/dist/packages/camera-manager/src/ComboControls.d.ts +1 -4
- package/dist/packages/camera-manager/src/DefaultCameraManager.d.ts +9 -12
- package/dist/packages/camera-manager/src/Flexible/DampedSpherical.d.ts +0 -3
- package/dist/packages/camera-manager/src/Flexible/DampedVector3.d.ts +0 -3
- package/dist/packages/camera-manager/src/Flexible/FlexibleCameraEventTarget.d.ts +3 -6
- package/dist/packages/camera-manager/src/Flexible/FlexibleCameraManager.d.ts +5 -9
- package/dist/packages/camera-manager/src/Flexible/FlexibleCameraMarkers.d.ts +2 -5
- package/dist/packages/camera-manager/src/Flexible/FlexibleControls.d.ts +3 -7
- package/dist/packages/camera-manager/src/Flexible/FlexibleControlsOptions.d.ts +0 -3
- package/dist/packages/camera-manager/src/Flexible/FlexibleControlsRotationHelper.d.ts +1 -4
- package/dist/packages/camera-manager/src/Flexible/FlexibleControlsTranslator.d.ts +2 -5
- package/dist/packages/camera-manager/src/Flexible/GetPickedPointByPixelCoordinates.d.ts +1 -4
- package/dist/packages/camera-manager/src/Flexible/IFlexibleCameraManager.d.ts +4 -7
- package/dist/packages/camera-manager/src/Flexible/moveCamera.d.ts +1 -4
- package/dist/packages/camera-manager/src/ProxyCameraManager.d.ts +3 -6
- package/dist/packages/camera-manager/src/StationaryCameraManager.d.ts +3 -7
- package/dist/packages/camera-manager/src/types.d.ts +1 -4
- package/dist/packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.d.ts +2 -5
- package/dist/packages/data-providers/src/DataModelsSdk.d.ts +2 -5
- package/dist/packages/data-providers/src/DataSourceType.d.ts +5 -8
- package/dist/packages/data-providers/src/Image360Provider.d.ts +3 -6
- package/dist/packages/data-providers/src/Image360ProviderCombiner.d.ts +5 -8
- package/dist/packages/data-providers/src/ModelDataProvider.d.ts +1 -4
- package/dist/packages/data-providers/src/ModelIdentifier.d.ts +2 -5
- package/dist/packages/data-providers/src/ModelMetadataProvider.d.ts +6 -9
- package/dist/packages/data-providers/src/PointCloudStylableObjectProvider.d.ts +2 -5
- package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageAnnotationCache.d.ts +3 -6
- package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageAnnotationProvider.d.ts +5 -8
- 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 +3 -5
- package/dist/packages/data-providers/src/image-360-data-providers/CoreDm360ImageAnnotationProvider.d.ts +4 -7
- 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 +1 -1
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchAnnotationsForInstance.d.ts +3 -6
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForCollection.d.ts +4 -7
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForRevision.d.ts +4 -7
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/getImage360Map.d.ts +4 -7
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/getObject3dAssetMap.d.ts +3 -6
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/properties.d.ts +1 -4
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/queryNodesAndEdges.d.ts +1 -4
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/readAnnotations.d.ts +3 -6
- 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 -5
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/types.d.ts +4 -7
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/Cdf360CdmBatchCollectionLoader.d.ts +5 -8
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/Cdf360CdmDescriptorProvider.d.ts +4 -7
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/get360CdmCollectionsQuery.d.ts +1 -4
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/system-space/Cdf360DataModelsDescriptorProvider.d.ts +3 -6
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/events/Cdf360BatchEventCollectionLoader.d.ts +3 -6
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/events/Cdf360EventDescriptorProvider.d.ts +3 -6
- package/dist/packages/data-providers/src/image-360-data-providers/shared.d.ts +4 -7
- package/dist/packages/data-providers/src/metadata-providers/CdfModelMetadataProvider.d.ts +8 -12
- package/dist/packages/data-providers/src/metadata-providers/LocalModelMetadataProvider.d.ts +7 -11
- package/dist/packages/data-providers/src/model-data-providers/CachedModelDataProvider.d.ts +2 -6
- package/dist/packages/data-providers/src/model-data-providers/CdfModelDataProvider.d.ts +2 -5
- package/dist/packages/data-providers/src/model-data-providers/LocalModelDataProvider.d.ts +1 -4
- package/dist/packages/data-providers/src/model-identifiers/CdfModelIdentifier.d.ts +2 -5
- package/dist/packages/data-providers/src/model-identifiers/DMModelIdentifier.d.ts +1 -4
- package/dist/packages/data-providers/src/model-identifiers/LocalModelIdentifier.d.ts +1 -4
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/CdfPointCloudStylableObjectProvider.d.ts +4 -7
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +3 -6
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/StylableObject.d.ts +1 -4
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +2 -5
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/CdfPointCloudDMStylableObjectProvider.d.ts +4 -7
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/DummyPointCloudDMStylableObjectProvider.d.ts +3 -6
- 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 +2 -5
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/types.d.ts +1 -4
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/utils.d.ts +2 -5
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +5 -8
- package/dist/packages/data-providers/src/requests/fetchDMModelIdFromRevisionId.d.ts +1 -4
- package/dist/packages/data-providers/src/types.d.ts +9 -10
- package/dist/packages/data-providers/src/utilities/applyDefaultModelTransformation.d.ts +2 -5
- package/dist/packages/data-providers/src/utilities/getExternalIdFromDescriptor.d.ts +1 -4
- package/dist/packages/data-providers/src/utilities/instanceIds.d.ts +2 -2
- package/dist/packages/data-providers/src/utilities/internalAddModelOptions.d.ts +3 -6
- package/dist/packages/data-providers/src/utilities/utils.d.ts +3 -6
- package/dist/packages/data-source/src/CdfDataSource.d.ts +4 -7
- package/dist/packages/data-source/src/DataSource.d.ts +2 -5
- package/dist/packages/data-source/src/LocalDataSource.d.ts +3 -6
- package/dist/packages/logger/index.d.ts +1 -4
- package/dist/packages/metrics/src/Fingerprint/generateAudioFingerprint.d.ts +1 -4
- package/dist/packages/metrics/src/Fingerprint/generateCanvasFingerprint.d.ts +1 -4
- package/dist/packages/metrics/src/Fingerprint/getUserFingerprint.d.ts +1 -1
- package/dist/packages/metrics/src/MetricsLogger.d.ts +4 -7
- package/dist/packages/model-base/src/MetadataRepository.d.ts +1 -4
- package/dist/packages/model-base/src/types.d.ts +5 -8
- package/dist/packages/nodes-api/src/NodesApiClient.d.ts +3 -6
- package/dist/packages/nodes-api/src/NodesCdfClient.d.ts +4 -7
- package/dist/packages/nodes-api/src/NodesLocalClient.d.ts +4 -7
- package/dist/packages/nodes-api/src/types.d.ts +1 -4
- package/dist/packages/pointcloud-styling/src/AnnotationIdPointCloudObjectCollection.d.ts +0 -3
- package/dist/packages/pointcloud-styling/src/PointCloudAppearance.d.ts +0 -3
- package/dist/packages/pointcloud-styling/src/PointCloudDMVolumeCollection.d.ts +1 -4
- package/dist/packages/pointcloud-styling/src/StyledPointCloudVolumeCollection.d.ts +11 -6
- package/dist/packages/pointcloud-styling/src/utils.d.ts +2 -5
- package/dist/packages/pointclouds/src/ClassificationHandler.d.ts +2 -5
- package/dist/packages/pointclouds/src/CognitePointCloudModel.d.ts +25 -28
- package/dist/packages/pointclouds/src/PointCloudFactory.d.ts +6 -9
- package/dist/packages/pointclouds/src/PointCloudIntersection.d.ts +4 -7
- package/dist/packages/pointclouds/src/PointCloudLoadingStateHandler.d.ts +4 -7
- package/dist/packages/pointclouds/src/PointCloudManager.d.ts +13 -17
- package/dist/packages/pointclouds/src/PointCloudMetadata.d.ts +4 -7
- package/dist/packages/pointclouds/src/PointCloudMetadataRepository.d.ts +3 -6
- package/dist/packages/pointclouds/src/PointCloudNode.d.ts +8 -13
- package/dist/packages/pointclouds/src/PointCloudPickingHandler.d.ts +6 -9
- package/dist/packages/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts +2 -5
- package/dist/packages/pointclouds/src/classificationsProviders/LocalPointClassificationsProvider.d.ts +3 -6
- package/dist/packages/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts +4 -7
- package/dist/packages/pointclouds/src/createPointCloudManager.d.ts +5 -8
- package/dist/packages/pointclouds/src/decomposeStylableObjects.d.ts +1 -4
- package/dist/packages/pointclouds/src/index.d.ts +2 -0
- 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 +5 -5
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometryNode.d.ts +4 -4
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometry.d.ts +12 -12
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts +12 -13
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/translationUtils.d.ts +4 -7
- 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 +4 -4
- package/dist/packages/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNodeBase.d.ts +3 -3
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointAttributes.d.ts +4 -2
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctree.d.ts +9 -10
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreeNode.d.ts +4 -5
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePicker.d.ts +4 -4
- package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePickerHelper.d.ts +4 -5
- 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 +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/utils/WorkerPool.d.ts +3 -0
- package/dist/packages/pointclouds/src/potree-three-loader/utils/bounds.d.ts +1 -2
- package/dist/packages/pointclouds/src/potree-three-loader/utils/box3-helper.d.ts +13 -0
- package/dist/packages/pointclouds/src/potree-three-loader/utils/createObjectIdMaps.d.ts +2 -5
- 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 +2 -5
- package/dist/packages/pointclouds/src/potree-three-loader/workers/eptBinaryDecoder.worker.d.ts +6 -7
- 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 -4
- package/dist/packages/pointclouds/src/typeGuards.d.ts +2 -5
- package/dist/packages/pointclouds/src/types.d.ts +3 -6
- package/dist/packages/pointclouds/visual-tests/EdlPointCloud.VisualTest.d.ts +10 -0
- package/dist/packages/pointclouds/visual-tests/PointCloudColorStyling.VisualTest.d.ts +9 -0
- package/dist/packages/pointclouds/wasm/index.d.ts +1 -4
- package/dist/packages/rendering/index.d.ts +1 -1
- package/dist/packages/rendering/src/CadMaterialManager.d.ts +10 -14
- package/dist/packages/rendering/src/PointCloudMaterialManager.d.ts +3 -6
- package/dist/packages/rendering/src/RenderPass.d.ts +2 -5
- package/dist/packages/rendering/src/RenderPipelineExecutor.d.ts +3 -6
- package/dist/packages/rendering/src/RenderPipelineProvider.d.ts +2 -5
- package/dist/packages/rendering/src/ResizeHandler.d.ts +2 -5
- package/dist/packages/rendering/src/pipeline-executors/BasicPipelineExecutor.d.ts +5 -8
- package/dist/packages/rendering/src/pipeline-executors/StepPipelineExecutor.d.ts +14 -0
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +9 -13
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +6 -9
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectIdMaps.d.ts +1 -4
- package/dist/packages/rendering/src/pointcloud-rendering/classification.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/constants.d.ts +0 -3
- package/dist/packages/rendering/src/pointcloud-rendering/gradients/SpectralGradient.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/texture-generation.d.ts +2 -6
- package/dist/packages/rendering/src/pointcloud-rendering/types.d.ts +1 -5
- package/dist/packages/rendering/src/render-passes/GeometryPass.d.ts +5 -8
- package/dist/packages/rendering/src/render-passes/PointCloudEffectsPass.d.ts +6 -6
- package/dist/packages/rendering/src/render-passes/PostProcessingPass.d.ts +6 -9
- package/dist/packages/rendering/src/render-passes/SSAOPass.d.ts +5 -8
- package/dist/packages/rendering/src/render-passes/types.d.ts +21 -24
- package/dist/packages/rendering/src/render-pipeline-providers/CadGeometryRenderModePipelineProvider.d.ts +10 -13
- package/dist/packages/rendering/src/render-pipeline-providers/CadGeometryRenderPipelineProvider.d.ts +8 -11
- package/dist/packages/rendering/src/render-pipeline-providers/DefaultRenderPipelineProvider.d.ts +11 -14
- package/dist/packages/rendering/src/render-pipeline-providers/PointCloudRenderPipelineProvider.d.ts +8 -11
- package/dist/packages/rendering/src/render-pipeline-providers/pointCloudParameterUtils.d.ts +1 -4
- package/dist/packages/rendering/src/render-pipeline-providers/types.d.ts +12 -15
- package/dist/packages/rendering/src/rendering/SettableRenderTarget.d.ts +1 -4
- package/dist/packages/rendering/src/rendering/materials.d.ts +18 -21
- package/dist/packages/rendering/src/rendering/shaders.d.ts +27 -74
- package/dist/packages/rendering/src/utilities/GpuTimer.d.ts +19 -0
- package/dist/packages/rendering/src/utilities/renderUtilities.d.ts +12 -15
- package/dist/packages/rendering/src/utilities/types.d.ts +14 -17
- package/dist/packages/rendering/visual-tests/Blending.VisualTest.d.ts +5 -0
- package/dist/packages/rendering/visual-tests/RenderTarget.VisualTest.d.ts +9 -0
- package/dist/packages/rendering/visual-tests/Rendering.VisualTest.d.ts +13 -0
- package/dist/packages/rendering/visual-tests/Resize.VisualTest.d.ts +5 -0
- package/dist/packages/rendering/visual-tests/Ssao.VisualTest.d.ts +4 -0
- package/dist/packages/sector-loader/src/GltfSectorLoader.d.ts +2 -5
- package/dist/packages/sector-loader/src/GltfSectorRepository.d.ts +3 -6
- package/dist/packages/sector-loader/src/SectorRepository.d.ts +2 -5
- package/dist/packages/sector-loader/visual-tests/SectorLoader.VisualTest.d.ts +8 -0
- package/dist/packages/sector-parser/src/GltfSectorParser.d.ts +1 -1
- package/dist/packages/sector-parser/src/constants.d.ts +1 -4
- package/dist/packages/sector-parser/src/reveal-glb-parser/GlbMetadataParser.d.ts +1 -4
- package/dist/packages/sector-parser/src/reveal-glb-parser/primitiveGeometries.d.ts +8 -11
- package/dist/packages/sector-parser/src/types.d.ts +1 -4
- package/dist/packages/sector-parser/visual-tests/GeneralCylinder.VisualTest.d.ts +4 -0
- package/dist/packages/sector-parser/visual-tests/PrimitivesVisualTestFixture.d.ts +9 -0
- package/dist/packages/sector-parser/visual-tests/SectorParser.VisualTest.d.ts +6 -0
- package/dist/packages/sector-parser/visual-tests/testMaterials.d.ts +3 -0
- package/dist/packages/tools/src/AxisGizmo/AxisGizmoOptions.d.ts +2 -2
- 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 -5
- package/dist/packages/tools/src/AxisView/types.d.ts +7 -10
- package/dist/packages/tools/src/DebugCameraTool.d.ts +2 -5
- package/dist/packages/tools/src/HtmlOverlay/BucketGrid2D.d.ts +1 -1
- package/dist/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +8 -11
- package/dist/packages/tools/src/Measurement/MeasurementLine.d.ts +7 -10
- package/dist/packages/tools/src/Measurement/MeasurementManager.d.ts +7 -10
- package/dist/packages/tools/src/Measurement/MeasurementTool.d.ts +7 -10
- package/dist/packages/tools/src/Measurement/types.d.ts +1 -4
- package/dist/packages/tools/src/Overlay3D/Overlay3DTool.d.ts +8 -11
- package/dist/packages/tools/src/Timeline/Keyframe.d.ts +2 -5
- package/dist/packages/tools/src/Timeline/TimelineTool.d.ts +2 -5
- package/dist/packages/tools/src/Timeline/types.d.ts +1 -4
- package/dist/packages/tools/src/utilities/moveCameraTo.d.ts +1 -4
- package/dist/packages/tools/visual-tests/Overlay3DTool.VisualTest.d.ts +4 -0
- package/dist/packages/utilities/index.d.ts +0 -1
- package/dist/packages/utilities/src/CameraConfiguration.d.ts +1 -4
- package/dist/packages/utilities/src/ClosestGeometryFinder.d.ts +1 -4
- package/dist/packages/utilities/src/RandomColors.d.ts +4 -7
- package/dist/packages/utilities/src/SceneHandler.d.ts +11 -14
- package/dist/packages/utilities/src/WebGLRendererStateHelper.d.ts +4 -7
- package/dist/packages/utilities/src/assert.d.ts +11 -0
- package/dist/packages/utilities/src/assetMappings/isCdfAssetMapping.d.ts +2 -5
- package/dist/packages/utilities/src/assetMappings/types.d.ts +1 -4
- package/dist/packages/utilities/src/batchedDebounce.d.ts +1 -4
- package/dist/packages/utilities/src/cache/DataFileCacheManager.d.ts +1 -1
- package/dist/packages/utilities/src/cache/MemoryRequestCache.d.ts +1 -4
- package/dist/packages/utilities/src/cache/index.d.ts +6 -0
- package/dist/packages/utilities/src/constants.d.ts +0 -3
- package/dist/packages/utilities/src/customObject/CustomObject.d.ts +4 -8
- package/dist/packages/utilities/src/customObject/CustomObjectIntersectInput.d.ts +1 -5
- package/dist/packages/utilities/src/customObject/CustomObjectIntersection.d.ts +2 -5
- package/dist/packages/utilities/src/customObject/ICustomObject.d.ts +3 -6
- package/dist/packages/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts +1 -4
- 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 -4
- package/dist/packages/utilities/src/events/getPixelCoordinatesFromEvent.d.ts +0 -3
- package/dist/packages/utilities/src/events/types.d.ts +1 -4
- package/dist/packages/utilities/src/fdm/toKey.d.ts +1 -4
- package/dist/packages/utilities/src/fdm/typeGuards.d.ts +1 -4
- package/dist/packages/utilities/src/indexset/IndexSet.d.ts +1 -1
- package/dist/packages/utilities/src/indexset/IntermediateIndexNode.d.ts +1 -4
- package/dist/packages/utilities/src/indexset/LeafIndexNode.d.ts +1 -1
- package/dist/packages/utilities/src/networking/isTheSameDomain.d.ts +11 -0
- package/dist/packages/utilities/src/projectedBounds.d.ts +1 -5
- package/dist/packages/utilities/src/shapes/Box.d.ts +3 -7
- package/dist/packages/utilities/src/shapes/CompositeShape.d.ts +2 -5
- package/dist/packages/utilities/src/shapes/Cylinder.d.ts +2 -5
- package/dist/packages/utilities/src/shapes/IShape.d.ts +2 -5
- package/dist/packages/utilities/src/shapes/SerializableBox.d.ts +2 -5
- package/dist/packages/utilities/src/shapes/SerializableCompositeShape.d.ts +1 -4
- package/dist/packages/utilities/src/shapes/SerializableCylinder.d.ts +2 -5
- package/dist/packages/utilities/src/three/AttributeDataAccessor.d.ts +2 -5
- package/dist/packages/utilities/src/three/VariableWidthLine.d.ts +1 -4
- package/dist/packages/utilities/src/three/Vector3Pool.d.ts +0 -3
- package/dist/packages/utilities/src/three/createDistinctColors.d.ts +2 -5
- package/dist/packages/utilities/src/three/createFullScreenTriangleGeometry.d.ts +2 -5
- package/dist/packages/utilities/src/three/fitCameraToBoundingBox.d.ts +4 -7
- package/dist/packages/utilities/src/three/fromThreeVector3.d.ts +2 -5
- package/dist/packages/utilities/src/three/isBox3OnPositiveSideOfPlane.d.ts +2 -5
- package/dist/packages/utilities/src/three/isPointVisibleByPlanes.d.ts +1 -4
- package/dist/packages/utilities/src/three/lines/Line2.d.ts +0 -3
- package/dist/packages/utilities/src/three/lines/LineGeometry.d.ts +1 -4
- package/dist/packages/utilities/src/three/lines/LineMaterial.d.ts +1 -5
- package/dist/packages/utilities/src/three/lines/LineSegments2.d.ts +1 -5
- package/dist/packages/utilities/src/three/lines/LineSegmentsGeometry.d.ts +1 -5
- package/dist/packages/utilities/src/three/toThreeBox3.d.ts +3 -6
- package/dist/packages/utilities/src/three/unionBoxes.d.ts +2 -5
- package/dist/packages/utilities/src/three/visitBox3CornerPoints.d.ts +3 -6
- package/dist/packages/utilities/src/transformCameraConfiguration.d.ts +3 -6
- package/dist/packages/utilities/src/worldToViewport.d.ts +7 -10
- package/package.json +33 -55
- package/dist/packages/utilities/src/workers/workerize-transferable/index.d.ts +0 -7
- package/dist/packages/utilities/src/workers/workerize-transferable/message-types.d.ts +0 -4
- package/dist/packages/utilities/src/workers/workerize-transferable/on-main.d.ts +0 -13
- package/dist/packages/utilities/src/workers/workerize-transferable/on-worker.d.ts +0 -14
- package/dist/packages/utilities/src/workers/workerize-transferable/util.d.ts +0 -10
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { NodesApiClient } from '../../nodes-api';
|
|
5
|
-
import type { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
6
|
-
import type { DataSource } from './DataSource';
|
|
1
|
+
import { NodesApiClient } from '../../nodes-api';
|
|
2
|
+
import { ModelDataProvider, ModelMetadataProvider } from '../../data-providers';
|
|
3
|
+
import { DataSource } from './DataSource';
|
|
7
4
|
/**
|
|
8
5
|
* Data source for loading models from local storage (i.e. by URL).
|
|
9
6
|
* This implementation is meant for use in development.
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright 2025 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import type { PartialOfflineAudioContext } from './types';
|
|
1
|
+
import { PartialOfflineAudioContext } from './types';
|
|
5
2
|
export declare function generateAudioFingerprint(OfflineAudioContextCtor: PartialOfflineAudioContext): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GlobalDependencies } from './types';
|
|
2
2
|
export declare function getUserFingerprint(dependencies?: Partial<GlobalDependencies>): Promise<string>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import type { TrackedEvents, EventProps } from './types';
|
|
1
|
+
import { Matrix4 } from 'three';
|
|
2
|
+
import { TrackedEvents, EventProps } from './types';
|
|
6
3
|
export declare class MetricsLogger {
|
|
7
4
|
private readonly _sessionProps;
|
|
8
5
|
private readonly _initPromise;
|
|
@@ -23,13 +20,13 @@ export declare class MetricsLogger {
|
|
|
23
20
|
* @param nodeCount Number of nodes affected by the transform override
|
|
24
21
|
* @param matrix Matrix used to override the node transform
|
|
25
22
|
*/
|
|
26
|
-
static readonly trackCadNodeTransformOverridden:
|
|
23
|
+
static readonly trackCadNodeTransformOverridden: (nodeCount: number, matrix: Matrix4) => void;
|
|
27
24
|
private static trackCadNodeTransformOverriddenImpl;
|
|
28
25
|
/**
|
|
29
26
|
* Track camera navigation events. Note that the metric is throttled and will only trigger
|
|
30
27
|
* once per second.
|
|
31
28
|
*/
|
|
32
|
-
static readonly trackCameraNavigation:
|
|
29
|
+
static readonly trackCameraNavigation: (eventProps: EventProps) => void;
|
|
33
30
|
private static trackCameraNavigationImpl;
|
|
34
31
|
static trackError(error: Error, eventProps: EventProps): void;
|
|
35
32
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import type * as THREE from 'three';
|
|
1
|
+
import { PerspectiveCamera, Plane, Vector2, WebGLRenderer } from 'three';
|
|
5
2
|
export interface IntersectInput {
|
|
6
|
-
normalizedCoords:
|
|
7
|
-
camera:
|
|
8
|
-
clippingPlanes:
|
|
9
|
-
renderer:
|
|
3
|
+
normalizedCoords: Vector2;
|
|
4
|
+
camera: PerspectiveCamera;
|
|
5
|
+
clippingPlanes: Plane[];
|
|
6
|
+
renderer: WebGLRenderer;
|
|
10
7
|
domElement: HTMLElement;
|
|
11
8
|
}
|
|
12
9
|
/**
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import type * as THREE from 'three';
|
|
5
|
-
import type { CogniteInternalId } from '@cognite/sdk';
|
|
1
|
+
import { Box3 } from 'three';
|
|
2
|
+
import { CogniteInternalId } from '@cognite/sdk';
|
|
6
3
|
/**
|
|
7
4
|
* Client for retrieving metadata information about CAD nodes.
|
|
8
5
|
*/
|
|
@@ -46,5 +43,5 @@ export interface NodesApiClient {
|
|
|
46
43
|
* @param revisionId ID of 3D model revision
|
|
47
44
|
* @param nodeIds Node IDs of nodes
|
|
48
45
|
*/
|
|
49
|
-
getBoundingBoxesByNodeIds(modelId: CogniteInternalId, revisionId: CogniteInternalId, nodeIds: CogniteInternalId[]): Promise<
|
|
46
|
+
getBoundingBoxesByNodeIds(modelId: CogniteInternalId, revisionId: CogniteInternalId, nodeIds: CogniteInternalId[]): Promise<Box3[]>;
|
|
50
47
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type * as THREE from 'three';
|
|
5
|
-
import type { CogniteClient, CogniteInternalId } from '@cognite/sdk';
|
|
6
|
-
import type { NodesApiClient } from './NodesApiClient';
|
|
1
|
+
import { Box3 } from 'three';
|
|
2
|
+
import { CogniteClient, CogniteInternalId } from '@cognite/sdk';
|
|
3
|
+
import { NodesApiClient } from './NodesApiClient';
|
|
7
4
|
export declare class NodesCdfClient implements NodesApiClient {
|
|
8
5
|
private static readonly MaxItemsPerRequest;
|
|
9
6
|
private readonly _client;
|
|
@@ -18,7 +15,7 @@ export declare class NodesCdfClient implements NodesApiClient {
|
|
|
18
15
|
treeIndex: number;
|
|
19
16
|
subtreeSize: number;
|
|
20
17
|
}>;
|
|
21
|
-
getBoundingBoxesByNodeIds(modelId: CogniteInternalId, revisionId: CogniteInternalId, nodeIds: CogniteInternalId[]): Promise<
|
|
18
|
+
getBoundingBoxesByNodeIds(modelId: CogniteInternalId, revisionId: CogniteInternalId, nodeIds: CogniteInternalId[]): Promise<Box3[]>;
|
|
22
19
|
private postByTreeIndicesRequest;
|
|
23
20
|
private postByNodeIdsRequest;
|
|
24
21
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type * as THREE from 'three';
|
|
5
|
-
import type { NodesApiClient } from './NodesApiClient';
|
|
6
|
-
import type { CogniteInternalId } from '@cognite/sdk';
|
|
1
|
+
import { Box3 } from 'three';
|
|
2
|
+
import { NodesApiClient } from './NodesApiClient';
|
|
3
|
+
import { CogniteInternalId } from '@cognite/sdk';
|
|
7
4
|
export declare class NodesLocalClient implements NodesApiClient {
|
|
8
5
|
constructor();
|
|
9
6
|
mapTreeIndicesToNodeIds(_modelId: CogniteInternalId, _revisionId: CogniteInternalId, treeIndices: number[]): Promise<CogniteInternalId[]>;
|
|
@@ -26,5 +23,5 @@ export declare class NodesLocalClient implements NodesApiClient {
|
|
|
26
23
|
/**
|
|
27
24
|
* Not supported.
|
|
28
25
|
*/
|
|
29
|
-
getBoundingBoxesByNodeIds(_modelId: CogniteInternalId, _revisionId: CogniteInternalId, _nodeIds: CogniteInternalId[]): Promise<
|
|
26
|
+
getBoundingBoxesByNodeIds(_modelId: CogniteInternalId, _revisionId: CogniteInternalId, _nodeIds: CogniteInternalId[]): Promise<Box3[]>;
|
|
30
27
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright 2024 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import type { DMInstanceRef } from '../../utilities';
|
|
1
|
+
import { DMInstanceRef } from '../../utilities';
|
|
5
2
|
/**
|
|
6
3
|
* A simple PointCloudDMVolumeCollection that consists of an explicitly provided list of data model instance.
|
|
7
4
|
*/
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import type { CompletePointCloudAppearance } from './PointCloudAppearance';
|
|
5
|
-
import type { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
1
|
+
import { CompletePointCloudAppearance } from './PointCloudAppearance';
|
|
2
|
+
import { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
6
3
|
/**
|
|
7
4
|
* Represents either an PointCloudAnnotationVolumeCollection or PointCloudDMVolumeCollection
|
|
8
5
|
* that is associated with an appearance.
|
|
@@ -17,6 +14,10 @@ export declare class StyledPointCloudVolumeCollection<T extends DataSourceType>
|
|
|
17
14
|
* The appearance applied by the current StyledPointCloudVolumeCollection
|
|
18
15
|
*/
|
|
19
16
|
style: CompletePointCloudAppearance;
|
|
17
|
+
/**
|
|
18
|
+
* The importance of the styled collection - styled sets of higher importance gets applied later
|
|
19
|
+
*/
|
|
20
|
+
importance: number;
|
|
20
21
|
/**
|
|
21
22
|
* Get the volume collection for this StyledPointCloudVolumeCollection
|
|
22
23
|
*/
|
|
@@ -30,7 +31,11 @@ export declare class StyledPointCloudVolumeCollection<T extends DataSourceType>
|
|
|
30
31
|
/**
|
|
31
32
|
* The appearance applied by the current StyledPointCloudVolumeCollection
|
|
32
33
|
*/
|
|
33
|
-
style: CompletePointCloudAppearance
|
|
34
|
+
style: CompletePointCloudAppearance,
|
|
35
|
+
/**
|
|
36
|
+
* The importance of the styled collection - styled sets of higher importance gets applied later
|
|
37
|
+
*/
|
|
38
|
+
importance?: number);
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
36
41
|
* Represents either an PointCloudAnnotationVolumeCollection or PointCloudDMVolumeCollection
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import type { PointCloudDMVolumeCollection } from './PointCloudDMVolumeCollection';
|
|
5
|
-
import type { PointCloudAnnotationVolumeCollection } from './PointCloudObjectCollection';
|
|
1
|
+
import { PointCloudDMVolumeCollection } from './PointCloudDMVolumeCollection';
|
|
2
|
+
import { PointCloudAnnotationVolumeCollection } from './PointCloudObjectCollection';
|
|
6
3
|
export declare function isPointCloudObjectCollection(collection: PointCloudAnnotationVolumeCollection | PointCloudDMVolumeCollection): collection is PointCloudAnnotationVolumeCollection;
|
|
7
4
|
export declare function isDMInstanceRefPointCloudObjectCollection(collection: PointCloudAnnotationVolumeCollection | PointCloudDMVolumeCollection): collection is PointCloudDMVolumeCollection;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright 2022 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import type { ClassificationInfo } from './potree-three-loader/loading/ClassificationInfo';
|
|
1
|
+
import { ClassificationInfo } from './potree-three-loader/loading/ClassificationInfo';
|
|
5
2
|
import { WellKnownAsprsPointClassCodes } from './types';
|
|
6
|
-
import
|
|
3
|
+
import { PointCloudMaterial, PointClassification } from '../../rendering';
|
|
7
4
|
import { Color } from 'three';
|
|
8
5
|
export declare class ClassificationHandler {
|
|
9
6
|
private readonly _classification;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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';
|
|
1
|
+
import { Color, Matrix4, Plane, Box3, Vector3 } from 'three';
|
|
2
|
+
import { CameraConfiguration } from '../../utilities';
|
|
3
|
+
import { WellKnownAsprsPointClassCodes } from './types';
|
|
4
|
+
import { PointColorType, PointShape, PointSizeType } from '../../rendering';
|
|
5
|
+
import { SupportedModelTypes } from '../../model-base';
|
|
6
|
+
import { ClassicDataSourceType, DataSourceType, PointCloudObjectMetadata } from '../../data-providers';
|
|
7
|
+
import { PointCloudAppearance, StyledPointCloudVolumeCollection } from '../../pointcloud-styling';
|
|
12
8
|
/**
|
|
13
9
|
* Represents a point clouds model loaded from CDF.
|
|
14
10
|
* @noInheritDoc
|
|
@@ -40,7 +36,7 @@ export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDa
|
|
|
40
36
|
* @returns Model's bounding box.
|
|
41
37
|
* @example
|
|
42
38
|
* ```js
|
|
43
|
-
* const boundingBox = new
|
|
39
|
+
* const boundingBox = new Box3()
|
|
44
40
|
* model.getModelBoundingBox(boundingBox);
|
|
45
41
|
* // boundingBox now has the bounding box
|
|
46
42
|
*```
|
|
@@ -49,7 +45,7 @@ export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDa
|
|
|
49
45
|
* const boundingBox = model.getModelBoundingBox();
|
|
50
46
|
* ```
|
|
51
47
|
*/
|
|
52
|
-
getModelBoundingBox(outBoundingBox?:
|
|
48
|
+
getModelBoundingBox(outBoundingBox?: Box3): Box3;
|
|
53
49
|
/**
|
|
54
50
|
* Retrieves the camera position and target stored for the model. Typically this
|
|
55
51
|
* is used to store a good starting position for a model. Returns `undefined` if there
|
|
@@ -60,44 +56,44 @@ export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDa
|
|
|
60
56
|
* Sets transformation matrix of the model. This overrides the current transformation.
|
|
61
57
|
* @param transformationMatrix The new transformation matrix
|
|
62
58
|
*/
|
|
63
|
-
setModelTransformation(transformationMatrix:
|
|
59
|
+
setModelTransformation(transformationMatrix: Matrix4): void;
|
|
64
60
|
/**
|
|
65
61
|
* Gets transformation matrix that has previously been
|
|
66
62
|
* set with {@link CognitePointCloudModel.setModelTransformation}.
|
|
67
|
-
* @param out Preallocated `
|
|
63
|
+
* @param out Preallocated `Matrix4` (optional).
|
|
68
64
|
*/
|
|
69
|
-
getModelTransformation(out?:
|
|
65
|
+
getModelTransformation(out?: Matrix4): Matrix4;
|
|
70
66
|
/**
|
|
71
67
|
* Gets transformation from CDF space to ThreeJS space,
|
|
72
68
|
* which includes any additional "default" transformations assigned to this model.
|
|
73
69
|
* Does not include any custom transformations set by {@link CognitePointCloudModel.setModelTransformation}
|
|
74
|
-
* @param out Preallocated `
|
|
70
|
+
* @param out Preallocated `Matrix4` (optional)
|
|
75
71
|
*/
|
|
76
|
-
getCdfToDefaultModelTransformation(out?:
|
|
72
|
+
getCdfToDefaultModelTransformation(out?: Matrix4): Matrix4;
|
|
77
73
|
/**
|
|
78
74
|
* Retrieves all points from the point cloud that are contained within the specified bounding box.
|
|
79
|
-
* @param box The
|
|
80
|
-
* @returns Array of
|
|
75
|
+
* @param box The Box3 bounding box used to filter points, defined in local model coordinates.
|
|
76
|
+
* @returns Array of Vector3 points that are located within the provided bounding box in local model coordinates.
|
|
81
77
|
* @example
|
|
82
78
|
* ```js
|
|
83
|
-
* const boundingBox = new
|
|
79
|
+
* const boundingBox = new Box3(new Vector3(-10, -10, -10), new Vector3(10, 10, 10));
|
|
84
80
|
* const pointsInBox = model.getPointsByBoundingBox(boundingBox);
|
|
85
81
|
* console.log(`Found ${pointsInBox.length} points in the bounding box`);
|
|
86
82
|
* ```
|
|
87
83
|
*/
|
|
88
|
-
getPointsByBoundingBox(box:
|
|
84
|
+
getPointsByBoundingBox(box: Box3): Vector3[];
|
|
89
85
|
/**
|
|
90
86
|
* Map point from CDF to model space, taking the model's custom transformation into account
|
|
91
87
|
* @param point Point to compute transformation from
|
|
92
88
|
* @param out Optional pre-allocated point
|
|
93
89
|
*/
|
|
94
|
-
mapPointFromCdfToModelCoordinates(point:
|
|
90
|
+
mapPointFromCdfToModelCoordinates(point: Vector3, out?: Vector3): Vector3;
|
|
95
91
|
/**
|
|
96
92
|
* Map bounding box from CDF to model space, taking the model's custom transformation into account
|
|
97
93
|
* @param box Box to compute transformation from
|
|
98
94
|
* @param out Optional pre-allocated box
|
|
99
95
|
*/
|
|
100
|
-
mapBoxFromCdfToModelCoordinates(box:
|
|
96
|
+
mapBoxFromCdfToModelCoordinates(box: Box3, out?: Box3): Box3;
|
|
101
97
|
/**
|
|
102
98
|
* Sets a visible filter on points of a given class.
|
|
103
99
|
* @param pointClass ASPRS classification class code. Either one of the well known
|
|
@@ -129,7 +125,7 @@ export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDa
|
|
|
129
125
|
getClasses(): Array<{
|
|
130
126
|
name: string;
|
|
131
127
|
code: number | WellKnownAsprsPointClassCodes;
|
|
132
|
-
color:
|
|
128
|
+
color: Color;
|
|
133
129
|
}>;
|
|
134
130
|
/**
|
|
135
131
|
* Returns the current number of visible/loaded points.
|
|
@@ -194,11 +190,11 @@ export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDa
|
|
|
194
190
|
* Sets the clipping planes for this model. They will be combined with the
|
|
195
191
|
* global clipping planes.
|
|
196
192
|
*/
|
|
197
|
-
setModelClippingPlanes(clippingPlanes:
|
|
193
|
+
setModelClippingPlanes(clippingPlanes: Plane[]): void;
|
|
198
194
|
/**
|
|
199
195
|
* Get the clipping planes for this model.
|
|
200
196
|
*/
|
|
201
|
-
getModelClippingPlanes():
|
|
197
|
+
getModelClippingPlanes(): Plane[];
|
|
202
198
|
/**
|
|
203
199
|
* Gets default point appearance
|
|
204
200
|
*/
|
|
@@ -232,8 +228,9 @@ export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDa
|
|
|
232
228
|
* a style previously, the previous style will be replaced by the new one.
|
|
233
229
|
* @param objectCollection The object collection to assign a style to
|
|
234
230
|
* @param appearance The style to assign to the object collection
|
|
231
|
+
* @param importance The importance of the styling, used for ordering styles to apply. Collections with higher importance gets applied later
|
|
235
232
|
*/
|
|
236
|
-
assignStyledObjectCollection(objectCollection: T['pointCloudCollectionType'], appearance: PointCloudAppearance): void;
|
|
233
|
+
assignStyledObjectCollection(objectCollection: T['pointCloudCollectionType'], appearance: PointCloudAppearance, importance?: number): void;
|
|
237
234
|
/**
|
|
238
235
|
* Unassign style from an already styled object collection.
|
|
239
236
|
* @param objectCollection The object collection from which to remove the style
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
1
|
import { PointCloudNode } from './PointCloudNode';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
2
|
+
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
3
|
+
import { Potree } from './potree-three-loader';
|
|
4
|
+
import { DMDataSourceType, DataSourceType, PointCloudStylableObjectProvider } from '../../data-providers';
|
|
5
|
+
import { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
6
|
+
import { PointCloudMaterialManager } from '../../rendering';
|
|
7
|
+
import { ModelIdentifier } from '../../data-providers/src/ModelIdentifier';
|
|
11
8
|
export declare class PointCloudFactory {
|
|
12
9
|
private readonly _potreeInstance;
|
|
13
10
|
private readonly _pointCloudObjectProvider;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
6
|
-
import type { Vector3 } from 'three';
|
|
7
|
-
import type { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
1
|
+
import { AnnotationsAssetRef } from '@cognite/sdk';
|
|
2
|
+
import { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
3
|
+
import { Vector3 } from 'three';
|
|
4
|
+
import { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
8
5
|
/**
|
|
9
6
|
* An intersection with a point cloud model. Contains metadata of the first intersected volume, if any
|
|
10
7
|
*/
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { Observable } from 'rxjs';
|
|
6
|
-
import type { PointCloudNode } from './PointCloudNode';
|
|
7
|
-
import type { DataSourceType } from '../../data-providers';
|
|
1
|
+
import { LoadingState } from '../../model-base';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PointCloudNode } from './PointCloudNode';
|
|
4
|
+
import { DataSourceType } from '../../data-providers';
|
|
8
5
|
/**
|
|
9
6
|
* Wrapper around Potree.Group with type information and
|
|
10
7
|
* basic functionality.
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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';
|
|
1
|
+
import { PerspectiveCamera, Plane, Scene, WebGLRenderer, Mesh } from 'three';
|
|
2
|
+
import { LoadingState } from '../../model-base';
|
|
3
|
+
import { PointCloudFactory } from './PointCloudFactory';
|
|
4
|
+
import { PointCloudNode } from './PointCloudNode';
|
|
5
|
+
import { PointCloudMetadataRepository } from './PointCloudMetadataRepository';
|
|
6
|
+
import { Potree } from './potree-three-loader';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { ModelIdentifier, AddModelOptionsWithModelRevisionId, DataSourceType } from '../../data-providers';
|
|
9
|
+
import { PointCloudMaterialManager } from '../../rendering';
|
|
14
10
|
export declare class PointCloudManager {
|
|
15
11
|
private readonly _pointCloudMetadataRepository;
|
|
16
12
|
private readonly _pointCloudFactory;
|
|
@@ -24,16 +20,16 @@ export declare class PointCloudManager {
|
|
|
24
20
|
private readonly _budgetSubject;
|
|
25
21
|
private readonly _renderer;
|
|
26
22
|
private _needsRedraw;
|
|
27
|
-
constructor(metadataRepository: PointCloudMetadataRepository, materialManager: PointCloudMaterialManager, modelFactory: PointCloudFactory, potreeInstance: Potree, scene:
|
|
23
|
+
constructor(metadataRepository: PointCloudMetadataRepository, materialManager: PointCloudMaterialManager, modelFactory: PointCloudFactory, potreeInstance: Potree, scene: Scene, renderer: WebGLRenderer);
|
|
28
24
|
requestRedraw(): void;
|
|
29
25
|
resetRedraw(): void;
|
|
30
26
|
get pointBudget(): number;
|
|
31
27
|
set pointBudget(points: number);
|
|
32
28
|
get needsRedraw(): boolean;
|
|
33
|
-
set clippingPlanes(planes:
|
|
29
|
+
set clippingPlanes(planes: Plane[]);
|
|
34
30
|
getLoadingStateObserver(): Observable<LoadingState>;
|
|
35
|
-
updatePointClouds(camera:
|
|
36
|
-
updateCamera(camera:
|
|
31
|
+
updatePointClouds(camera: PerspectiveCamera): void;
|
|
32
|
+
updateCamera(camera: PerspectiveCamera): void;
|
|
37
33
|
addModel<T extends DataSourceType>(identifier: AddModelOptionsWithModelRevisionId<T>, modelIdentifier: ModelIdentifier): Promise<PointCloudNode<T>>;
|
|
38
34
|
removeModel<T extends DataSourceType>(node: PointCloudNode<T>): void;
|
|
39
35
|
dispose(): void;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type * as THREE from 'three';
|
|
5
|
-
import type { CameraConfiguration } from '../../utilities';
|
|
6
|
-
import type { File3dFormat, ModelIdentifier } from '../../data-providers';
|
|
1
|
+
import { Matrix4 } from 'three';
|
|
2
|
+
import { CameraConfiguration } from '../../utilities';
|
|
3
|
+
import { File3dFormat, ModelIdentifier } from '../../data-providers';
|
|
7
4
|
export interface PointCloudMetadata {
|
|
8
5
|
readonly format: File3dFormat;
|
|
9
6
|
readonly formatVersion: number;
|
|
10
7
|
readonly modelBaseUrl: string;
|
|
11
8
|
readonly modelIdentifier: ModelIdentifier;
|
|
12
|
-
readonly modelMatrix:
|
|
9
|
+
readonly modelMatrix: Matrix4;
|
|
13
10
|
readonly cameraConfiguration?: CameraConfiguration;
|
|
14
11
|
readonly scene: any;
|
|
15
12
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { PointCloudMetadata } from './PointCloudMetadata';
|
|
5
|
-
import type { MetadataRepository } from '../../model-base';
|
|
6
|
-
import type { ModelDataProvider, ModelMetadataProvider, ModelIdentifier } from '../../data-providers';
|
|
1
|
+
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
2
|
+
import { MetadataRepository } from '../../model-base';
|
|
3
|
+
import { ModelDataProvider, ModelMetadataProvider, ModelIdentifier } from '../../data-providers';
|
|
7
4
|
export declare class PointCloudMetadataRepository implements MetadataRepository<Promise<PointCloudMetadata>> {
|
|
8
5
|
private readonly _modelMetadataProvider;
|
|
9
6
|
private readonly _modelDataProvider;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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';
|
|
1
|
+
import { CameraConfiguration } from '../../utilities';
|
|
2
|
+
import { ClassificationInfo, PointCloudOctree, PickPoint } from './potree-three-loader';
|
|
3
|
+
import { WellKnownAsprsPointClassCodes } from './types';
|
|
4
|
+
import { PointSizeType, PointColorType, PointShape } from '../../rendering';
|
|
5
|
+
import { DataSourceType, PointCloudObject, PointCloudObjectMetadata } from '../../data-providers';
|
|
6
|
+
import { CompletePointCloudAppearance, StyledPointCloudVolumeCollection } from '../../pointcloud-styling';
|
|
7
|
+
import { Color, Matrix4, Group, Box3, Vector3, Camera, Plane, Ray, WebGLRenderer } from 'three';
|
|
14
8
|
export declare class PointCloudNode<T extends DataSourceType = DataSourceType> extends Group {
|
|
15
9
|
private readonly _cameraConfiguration?;
|
|
16
10
|
private readonly _octree;
|
|
@@ -89,6 +83,7 @@ export declare class PointCloudNode<T extends DataSourceType = DataSourceType> e
|
|
|
89
83
|
set defaultAppearance(appearance: CompletePointCloudAppearance);
|
|
90
84
|
set clippingPlanes(clippingPlanes: Plane[]);
|
|
91
85
|
assignStyledPointCloudObjectCollection(styledCollection: StyledPointCloudVolumeCollection<T>): void;
|
|
86
|
+
removeStyledPointCloudObjectCollection(styledCollection: StyledPointCloudVolumeCollection<T>): void;
|
|
92
87
|
removeAllStyledPointCloudObjects(): void;
|
|
93
88
|
dispose(): void;
|
|
94
89
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import type { PointCloudNode } from './PointCloudNode';
|
|
7
|
-
import type { DataSourceType } from '../../data-providers';
|
|
8
|
-
import type { IntersectPointCloudNodeResult } from './types';
|
|
1
|
+
import { WebGLRenderer } from 'three';
|
|
2
|
+
import { IntersectInput } from '../../model-base';
|
|
3
|
+
import { PointCloudNode } from './PointCloudNode';
|
|
4
|
+
import { DataSourceType } from '../../data-providers';
|
|
5
|
+
import { IntersectPointCloudNodeResult } from './types';
|
|
9
6
|
export declare class PointCloudPickingHandler {
|
|
10
7
|
private readonly _normalized;
|
|
11
8
|
private readonly _raycaster;
|
|
12
9
|
private readonly _picker;
|
|
13
10
|
private readonly _mutex;
|
|
14
11
|
private static readonly PickingWindowSize;
|
|
15
|
-
constructor(renderer:
|
|
12
|
+
constructor(renderer: WebGLRenderer);
|
|
16
13
|
dispose(): void;
|
|
17
14
|
intersectPointClouds(nodes: PointCloudNode<DataSourceType>[], input: IntersectInput): Promise<IntersectPointCloudNodeResult<DataSourceType>[]>;
|
|
18
15
|
}
|
package/dist/packages/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import type { PointCloudMetadata } from '../PointCloudMetadata';
|
|
5
|
-
import type { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
1
|
+
import { PointCloudMetadata } from '../PointCloudMetadata';
|
|
2
|
+
import { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
6
3
|
export interface IPointClassificationsProvider {
|
|
7
4
|
getClassifications(modelMetadata: PointCloudMetadata): Promise<ClassificationInfo>;
|
|
8
5
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { IPointClassificationsProvider } from './IPointClassificationsProvider';
|
|
5
|
-
import type { PointCloudMetadata } from '../PointCloudMetadata';
|
|
6
|
-
import type { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
1
|
+
import { IPointClassificationsProvider } from './IPointClassificationsProvider';
|
|
2
|
+
import { PointCloudMetadata } from '../PointCloudMetadata';
|
|
3
|
+
import { ClassificationInfo } from '../potree-three-loader/loading/ClassificationInfo';
|
|
7
4
|
export declare class LocalPointClassificationsProvider implements IPointClassificationsProvider {
|
|
8
5
|
getClassifications(_modelMetadata: PointCloudMetadata): Promise<ClassificationInfo>;
|
|
9
6
|
}
|