@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
package/dist/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometryNode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
|
-
import * as THREE from 'three';
|
|
1
|
+
import type { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
|
+
import type * as THREE from 'three';
|
|
3
3
|
export interface IPointCloudTreeGeometryNode extends IPointCloudTreeNodeBase {
|
|
4
4
|
geometry: THREE.BufferGeometry | undefined;
|
|
5
5
|
failed: boolean;
|
package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometry.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { EptBinaryLoader } from '../loading/EptBinaryLoader';
|
|
3
|
-
import { EptJson, EptSchemaEntry } from '../loading/EptJson';
|
|
4
|
-
import { PointCloudEptGeometryNode } from './PointCloudEptGeometryNode';
|
|
5
|
-
import { IPointCloudTreeGeometry } from './IPointCloudTreeGeometry';
|
|
6
|
-
import { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
3
|
+
import type { EptJson, EptSchemaEntry } from '../loading/EptJson';
|
|
4
|
+
import type { PointCloudEptGeometryNode } from './PointCloudEptGeometryNode';
|
|
5
|
+
import type { IPointCloudTreeGeometry } from './IPointCloudTreeGeometry';
|
|
6
|
+
import type { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
7
7
|
export declare class PointCloudEptGeometry implements IPointCloudTreeGeometry {
|
|
8
8
|
private readonly _eptScale;
|
|
9
9
|
private readonly _eptOffset;
|
package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { IPointCloudTreeGeometryNode } from './IPointCloudTreeGeometryNode';
|
|
2
|
-
import { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
import { PointCloudEptGeometry
|
|
5
|
-
import {
|
|
1
|
+
import type { IPointCloudTreeGeometryNode } from './IPointCloudTreeGeometryNode';
|
|
2
|
+
import type { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
3
|
+
import type * as THREE from 'three';
|
|
4
|
+
import type { PointCloudEptGeometry } from './PointCloudEptGeometry';
|
|
5
|
+
import { EptKey } from './PointCloudEptGeometry';
|
|
6
|
+
import type { ModelDataProvider } from '../../../../data-providers';
|
|
6
7
|
export declare class PointCloudEptGeometryNode implements IPointCloudTreeGeometryNode {
|
|
7
8
|
private readonly _id;
|
|
8
9
|
private readonly _ept;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WorkerPool } from '../utils/WorkerPool';
|
|
2
|
-
import { ILoader } from './ILoader';
|
|
3
|
-
import { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
4
|
-
import { PointCloudEptGeometryNode } from '../geometry/PointCloudEptGeometryNode';
|
|
5
|
-
import { ParsedEptData } from '../workers/types';
|
|
2
|
+
import type { ILoader } from './ILoader';
|
|
3
|
+
import type { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
4
|
+
import type { PointCloudEptGeometryNode } from '../geometry/PointCloudEptGeometryNode';
|
|
5
|
+
import type { ParsedEptData } from '../workers/types';
|
|
6
6
|
export declare class EptBinaryLoader implements ILoader {
|
|
7
7
|
private readonly _dataLoader;
|
|
8
8
|
private readonly _stylableObjectsWithBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
1
|
+
import type { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
2
2
|
import { PointCloudEptGeometry } from '../geometry/PointCloudEptGeometry';
|
|
3
3
|
export declare class EptLoader {
|
|
4
4
|
static load(baseUrl: string, fileName: string, modelDataProvider: ModelDataProvider, stylableObjects: StylableObject[]): Promise<PointCloudEptGeometry>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
2
|
-
import { IPointCloudTreeGeometryNode } from '../geometry/IPointCloudTreeGeometryNode';
|
|
3
|
-
import * as THREE from 'three';
|
|
1
|
+
import type { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
2
|
+
import type { IPointCloudTreeGeometryNode } from '../geometry/IPointCloudTreeGeometryNode';
|
|
3
|
+
import type * as THREE from 'three';
|
|
4
4
|
export interface IPointCloudTreeNode extends IPointCloudTreeNodeBase {
|
|
5
5
|
sceneNode: THREE.Points;
|
|
6
6
|
geometryNode: IPointCloudTreeGeometryNode;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Camera, Object3D, Plane, Ray, WebGLRenderer } from 'three';
|
|
2
|
+
import { Box3, Sphere } from 'three';
|
|
3
|
+
import type { IPointCloudTreeGeometry } from '../geometry/IPointCloudTreeGeometry';
|
|
4
|
+
import type { IPointCloudTreeGeometryNode } from '../geometry/IPointCloudTreeGeometryNode';
|
|
5
|
+
import type { PickParams } from './PointCloudOctreePicker';
|
|
5
6
|
import { PointCloudTree } from './PointCloudTree';
|
|
6
|
-
import { PickPoint } from '../types/types';
|
|
7
|
-
import { IPotree } from '../types/IPotree';
|
|
8
|
-
import { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
9
|
-
import { IPointCloudTreeNode } from './IPointCloudTreeNode';
|
|
10
|
-
import { PointCloudMaterial, PointSizeType } from '../../../../rendering';
|
|
7
|
+
import type { PickPoint } from '../types/types';
|
|
8
|
+
import type { IPotree } from '../types/IPotree';
|
|
9
|
+
import type { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
10
|
+
import type { IPointCloudTreeNode } from './IPointCloudTreeNode';
|
|
11
|
+
import type { PointCloudMaterial, PointSizeType } from '../../../../rendering';
|
|
11
12
|
export declare class PointCloudOctree extends PointCloudTree {
|
|
12
13
|
potree: IPotree;
|
|
13
14
|
disposed: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Box3,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Box3, Points, Sphere } from 'three';
|
|
2
|
+
import { EventDispatcher } from 'three';
|
|
3
|
+
import type { IPointCloudTreeGeometryNode } from '../geometry/IPointCloudTreeGeometryNode';
|
|
4
|
+
import type { IPointCloudTreeNode } from './IPointCloudTreeNode';
|
|
5
|
+
import type { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
5
6
|
export declare class PointCloudOctreeNode extends EventDispatcher implements IPointCloudTreeNode {
|
|
6
7
|
geometryNode: IPointCloudTreeGeometryNode;
|
|
7
8
|
sceneNode: Points;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Camera, Ray, WebGLRenderer } from 'three';
|
|
2
|
-
import { PointCloudOctree } from './PointCloudOctree';
|
|
3
|
-
import { PickPoint } from '../types/types';
|
|
4
|
-
import { PickParams } from './PointCloudOctreePickerHelper';
|
|
5
|
-
export { PickParams };
|
|
1
|
+
import type { Camera, Ray, WebGLRenderer } from 'three';
|
|
2
|
+
import type { PointCloudOctree } from './PointCloudOctree';
|
|
3
|
+
import type { PickPoint } from '../types/types';
|
|
4
|
+
import type { PickParams } from './PointCloudOctreePickerHelper';
|
|
5
|
+
export type { PickParams };
|
|
6
6
|
export declare class PointCloudOctreePicker {
|
|
7
7
|
private static readonly helperVec3;
|
|
8
8
|
private pickState;
|
package/dist/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePickerHelper.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Camera, Ray,
|
|
1
|
+
import type { Camera, Ray, WebGLRenderer } from 'three';
|
|
2
|
+
import { Scene, Vector3, WebGLRenderTarget } from 'three';
|
|
2
3
|
import { PointCloudMaterial } from '../../../../rendering';
|
|
3
|
-
import { PointCloudOctree } from './PointCloudOctree';
|
|
4
|
-
import { IPointCloudTreeNode } from './IPointCloudTreeNode';
|
|
5
|
-
import { PickPoint, PointCloudHit } from '../types/types';
|
|
4
|
+
import type { PointCloudOctree } from './PointCloudOctree';
|
|
5
|
+
import type { IPointCloudTreeNode } from './IPointCloudTreeNode';
|
|
6
|
+
import type { PickPoint, PointCloudHit } from '../types/types';
|
|
6
7
|
export interface RenderedNode {
|
|
7
8
|
node: IPointCloudTreeNode;
|
|
8
9
|
octree: PointCloudOctree;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3D } from 'three';
|
|
2
|
-
import { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
2
|
+
import type { IPointCloudTreeNodeBase } from './IPointCloudTreeNodeBase';
|
|
3
3
|
export declare class PointCloudTree extends Object3D {
|
|
4
4
|
root: IPointCloudTreeNodeBase | undefined;
|
|
5
5
|
initialized(): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Camera, WebGLRenderer } from 'three';
|
|
2
|
-
import { LRU } from '../utils/lru';
|
|
3
|
-
import { PointCloudOctree } from '../tree/PointCloudOctree';
|
|
4
|
-
import { StylableObject } from '../../../../data-providers';
|
|
1
|
+
import type { Camera, WebGLRenderer } from 'three';
|
|
2
|
+
import type { LRU } from '../utils/lru';
|
|
3
|
+
import type { PointCloudOctree } from '../tree/PointCloudOctree';
|
|
4
|
+
import type { StylableObject } from '../../../../data-providers';
|
|
5
5
|
export interface IPotree {
|
|
6
6
|
pointBudget: number;
|
|
7
7
|
maxNumNodesLoading: number;
|
package/dist/packages/pointclouds/src/potree-three-loader/types/IVisibilityUpdateResult.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
1
|
+
import type { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
2
|
export interface IVisibilityUpdateResult {
|
|
3
3
|
visibleNodes: IPointCloudTreeNodeBase[];
|
|
4
4
|
numVisiblePoints: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
|
-
import { IPointCloudTreeGeometryNode } from '../geometry/IPointCloudTreeGeometryNode';
|
|
3
|
-
import { IPointCloudTreeNode } from '../tree/IPointCloudTreeNode';
|
|
1
|
+
import type { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
2
|
+
import type { IPointCloudTreeGeometryNode } from '../geometry/IPointCloudTreeGeometryNode';
|
|
3
|
+
import type { IPointCloudTreeNode } from '../tree/IPointCloudTreeNode';
|
|
4
4
|
export declare function isGeometryNode(node?: any): node is IPointCloudTreeGeometryNode;
|
|
5
5
|
export declare function isTreeNode(node?: IPointCloudTreeNodeBase): node is IPointCloudTreeNode;
|
|
6
6
|
export declare function isOptionalTreeNode(node?: IPointCloudTreeNodeBase): node is IPointCloudTreeNode | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointCloudObject, DataSourceType } from '../../../../data-providers';
|
|
5
|
-
import { PointCloudObjectIdMaps } from '../../../../rendering';
|
|
4
|
+
import type { PointCloudObject, DataSourceType } from '../../../../data-providers';
|
|
5
|
+
import type { PointCloudObjectIdMaps } from '../../../../rendering';
|
|
6
6
|
export declare function createObjectIdMaps<T extends DataSourceType>(objects: PointCloudObject<T>[]): PointCloudObjectIdMaps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BufferGeometry, Camera, Material, Scene, WebGLRenderer } from 'three';
|
|
2
|
-
import { IPointCloudTreeNode } from '../tree/IPointCloudTreeNode';
|
|
3
|
-
import { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
1
|
+
import type { BufferGeometry, Camera, Material, Scene, WebGLRenderer } from 'three';
|
|
2
|
+
import type { IPointCloudTreeNode } from '../tree/IPointCloudTreeNode';
|
|
3
|
+
import type { IPointCloudTreeNodeBase } from '../tree/IPointCloudTreeNodeBase';
|
|
4
4
|
export declare function getIndexFromName(name: string): number;
|
|
5
5
|
/**
|
|
6
6
|
* When passed to `[].sort`, sorts the array by level and index: r, r0, r3, r4, r01, r07, r30, ...
|
package/dist/packages/pointclouds/src/potree-three-loader/workers/assignPointsToObjectsWithWasm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { SerializableStylableObject } from '../../../../data-providers';
|
|
4
|
+
import type { SerializableStylableObject } from '../../../../data-providers';
|
|
5
5
|
import type { Vector3, Box3 } from 'three';
|
|
6
6
|
export declare function assignPointsToObjectsWithWasm(points: Float32Array, objects: SerializableStylableObject[], pointOffset: Vector3, sectorBoundingBox: Box3): Promise<Uint16Array<ArrayBuffer>>;
|
package/dist/packages/pointclouds/src/potree-three-loader/workers/eptBinaryDecoder.worker.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { EptInputData, ParsedEptData } from './types';
|
|
5
|
-
import { SerializableStylableObject } from '../../../../data-providers';
|
|
6
|
-
import { AABB, Vec3 } from '../../../../utilities';
|
|
4
|
+
import type { EptInputData, ParsedEptData } from './types';
|
|
5
|
+
import type { SerializableStylableObject } from '../../../../data-providers';
|
|
6
|
+
import type { AABB, Vec3 } from '../../../../utilities';
|
|
7
7
|
export declare function parse(data: EptInputData, objects: SerializableStylableObject[], pointOffset: Vec3, boundingBox: AABB): Promise<ParsedEptData | Error>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AABB, Vec3 } from '../../../../utilities';
|
|
2
|
-
import { SerializableStylableObject } from '../../../../data-providers';
|
|
3
|
-
import { EptInputData, ParsedEptData } from './types';
|
|
1
|
+
import type { AABB, Vec3 } from '../../../../utilities';
|
|
2
|
+
import type { SerializableStylableObject } from '../../../../data-providers';
|
|
3
|
+
import type { EptInputData, ParsedEptData } from './types';
|
|
4
4
|
export declare function parseEpt(data: EptInputData, objects: SerializableStylableObject[], pointOffset: Vec3, sectorBoundingBox: AABB): Promise<ParsedEptData>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2024 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ClassicDataSourceType, DataSourceType, DMDataSourceType } from '../../data-providers';
|
|
5
|
-
import { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
4
|
+
import type { ClassicDataSourceType, DataSourceType, DMDataSourceType } from '../../data-providers';
|
|
5
|
+
import type { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
6
6
|
/**
|
|
7
7
|
* Type guard to check if a point cloud model is DMDataSourceType type.
|
|
8
8
|
* @param model - The object to check.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { Object3D, Vector3 } from 'three';
|
|
5
|
-
import { PointCloudNode } from './PointCloudNode';
|
|
6
|
-
import { DataSourceType } from '../../data-providers';
|
|
4
|
+
import type { Object3D, Vector3 } from 'three';
|
|
5
|
+
import type { PointCloudNode } from './PointCloudNode';
|
|
6
|
+
import type { DataSourceType } from '../../data-providers';
|
|
7
7
|
/**
|
|
8
8
|
* ASPRS well known point class types.
|
|
9
9
|
* @see {@link http://www.asprs.org/wp-content/uploads/2019/03/LAS_1_4_r14.pdf} (page 30)
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export type { CadMaterial } from './src/CadMaterialManager';
|
|
5
|
+
export { CadMaterialManager, createCadMaterial } from './src/CadMaterialManager';
|
|
5
6
|
export { PointCloudMaterialManager } from './src/PointCloudMaterialManager';
|
|
6
|
-
export { RenderOptions,
|
|
7
|
+
export type { RenderOptions, SsaoParameters, EdlOptions } from './src/rendering/types';
|
|
8
|
+
export { defaultRenderOptions, SsaoSampleQuality, AntiAliasingMode } from './src/rendering/types';
|
|
7
9
|
export * from './src/pointcloud-rendering/constants';
|
|
8
10
|
export * from './src/pointcloud-rendering/enums';
|
|
9
11
|
export * from './src/pointcloud-rendering/types';
|
|
@@ -11,13 +13,14 @@ export * from './src/pointcloud-rendering/PointCloudObjectIdMaps';
|
|
|
11
13
|
export { DEFAULT_CLASSIFICATION } from './src/pointcloud-rendering/classification';
|
|
12
14
|
export { RenderMode } from './src/rendering/RenderMode';
|
|
13
15
|
export { RenderLayer, setModelRenderLayers } from './src/utilities/renderUtilities';
|
|
14
|
-
export { StyledTreeIndexSets } from './src/utilities/types';
|
|
15
|
-
export { Materials } from './src/rendering/materials';
|
|
16
|
-
export {
|
|
16
|
+
export type { StyledTreeIndexSets } from './src/utilities/types';
|
|
17
|
+
export type { Materials } from './src/rendering/materials';
|
|
18
|
+
export type { OctreeMaterialParams } from './src/pointcloud-rendering';
|
|
19
|
+
export { PointCloudMaterial } from './src/pointcloud-rendering';
|
|
17
20
|
export { DefaultRenderPipelineProvider } from './src/render-pipeline-providers/DefaultRenderPipelineProvider';
|
|
18
21
|
export { CadGeometryRenderModePipelineProvider } from './src/render-pipeline-providers/CadGeometryRenderModePipelineProvider';
|
|
19
22
|
export { BasicPipelineExecutor } from './src/pipeline-executors/BasicPipelineExecutor';
|
|
20
|
-
export { RenderPipelineExecutor } from './src/RenderPipelineExecutor';
|
|
21
|
-
export { RenderPipelineProvider } from './src/RenderPipelineProvider';
|
|
23
|
+
export type { RenderPipelineExecutor } from './src/RenderPipelineExecutor';
|
|
24
|
+
export type { RenderPipelineProvider } from './src/RenderPipelineProvider';
|
|
22
25
|
export { ResizeHandler } from './src/ResizeHandler';
|
|
23
|
-
export { SettableRenderTarget } from './src/rendering/SettableRenderTarget';
|
|
26
|
+
export type { SettableRenderTarget } from './src/rendering/SettableRenderTarget';
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { Materials } from './rendering/materials';
|
|
5
|
+
import type { Materials } from './rendering/materials';
|
|
6
6
|
import { RenderMode } from './rendering/RenderMode';
|
|
7
|
-
import { NodeAppearance
|
|
8
|
-
import {
|
|
7
|
+
import type { NodeAppearance } from '../../cad-styling';
|
|
8
|
+
import { NodeAppearanceProvider, NodeAppearanceTextureBuilder, NodeTransformProvider, NodeTransformTextureBuilder } from '../../cad-styling';
|
|
9
|
+
import type { IndexSet } from '../../utilities';
|
|
9
10
|
export type CadMaterial = {
|
|
10
11
|
materials: Materials;
|
|
11
12
|
nodeAppearanceProvider: NodeAppearanceProvider;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointCloudObjectIdMaps } from './pointcloud-rendering/PointCloudObjectIdMaps';
|
|
4
|
+
import type { PointCloudObjectIdMaps } from './pointcloud-rendering/PointCloudObjectIdMaps';
|
|
5
5
|
import { PointCloudMaterial } from './pointcloud-rendering';
|
|
6
|
-
import { PointCloudMaterialParameters } from './render-passes/types';
|
|
7
|
-
import { Plane } from 'three';
|
|
6
|
+
import type { PointCloudMaterialParameters } from './render-passes/types';
|
|
7
|
+
import type { Plane } from 'three';
|
|
8
8
|
export declare class PointCloudMaterialManager {
|
|
9
9
|
private readonly _modelsMaterialsMap;
|
|
10
10
|
addModelMaterial(modelIdentifier: symbol, objectIdMaps: PointCloudObjectIdMaps): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { RenderPipelineProvider } from './RenderPipelineProvider';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { RenderPipelineProvider } from './RenderPipelineProvider';
|
|
6
6
|
/**
|
|
7
7
|
* The job of the implementor of this interface is to exectute some subset of
|
|
8
8
|
* a given pipeline from a RenderPipelineProvider.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import type { WebGLRenderer } from 'three';
|
|
5
|
-
import { RenderPass } from './RenderPass';
|
|
5
|
+
import type { RenderPass } from './RenderPass';
|
|
6
6
|
/**
|
|
7
7
|
* Defines a provider that provides a set of renderpasses
|
|
8
8
|
* in the form of a generator.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { WebGLRenderer, PerspectiveCamera } from 'three';
|
|
5
|
-
import { CameraManager } from '../../camera-manager';
|
|
4
|
+
import type { WebGLRenderer, PerspectiveCamera } from 'three';
|
|
5
|
+
import type { CameraManager } from '../../camera-manager';
|
|
6
6
|
export type ResizeHandlerOptions = {
|
|
7
7
|
renderResolutionThreshold?: number;
|
|
8
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { RenderPipelineExecutor } from '../RenderPipelineExecutor';
|
|
6
|
-
import { RenderPipelineProvider } from '../RenderPipelineProvider';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { RenderPipelineExecutor } from '../RenderPipelineExecutor';
|
|
6
|
+
import type { RenderPipelineProvider } from '../RenderPipelineProvider';
|
|
7
7
|
export declare class BasicPipelineExecutor implements RenderPipelineExecutor {
|
|
8
8
|
private readonly _renderer;
|
|
9
9
|
constructor(renderer: THREE.WebGLRenderer);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Adapted from pnext/three-loader (https://github.com/pnext/three-loader)
|
|
3
3
|
*/
|
|
4
|
-
import { Camera,
|
|
4
|
+
import type { Camera, DataTexture, WebGLRenderer } from 'three';
|
|
5
|
+
import { RawShaderMaterial, Texture } from 'three';
|
|
5
6
|
import { PointColorType, PointShape, PointSizeType } from './enums';
|
|
6
|
-
import { PointClassification, IUniform, OctreeMaterialParams } from './types';
|
|
7
|
+
import type { PointClassification, IUniform, OctreeMaterialParams } from './types';
|
|
7
8
|
import { PointCloudObjectAppearanceTexture } from './PointCloudObjectAppearanceTexture';
|
|
8
|
-
import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
9
|
+
import type { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
9
10
|
export interface IPointCloudMaterialParameters {
|
|
10
11
|
size: number;
|
|
11
12
|
minSize: number;
|
|
@@ -45,7 +46,7 @@ export declare class PointCloudMaterial extends RawShaderMaterial {
|
|
|
45
46
|
useDrawingBufferSize: boolean;
|
|
46
47
|
lights: boolean;
|
|
47
48
|
fog: boolean;
|
|
48
|
-
visibleNodesTexture:
|
|
49
|
+
visibleNodesTexture: DataTexture | undefined;
|
|
49
50
|
visibleNodeTextureOffsets: Map<string, number>;
|
|
50
51
|
private readonly _gradient;
|
|
51
52
|
private gradientTexture;
|
package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { PointCloudAnnotationVolumeCollection, CompletePointCloudAppearance, StyledPointCloudVolumeCollection } from '../../../pointcloud-styling';
|
|
6
|
-
import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
7
|
-
import { DataSourceType } from '../../../data-providers';
|
|
5
|
+
import type { PointCloudAnnotationVolumeCollection, CompletePointCloudAppearance, StyledPointCloudVolumeCollection } from '../../../pointcloud-styling';
|
|
6
|
+
import type { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
7
|
+
import type { DataSourceType } from '../../../data-providers';
|
|
8
8
|
export declare class PointCloudObjectAppearanceTexture {
|
|
9
9
|
private readonly _objectStyleTexture;
|
|
10
10
|
private _needsReconstruction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { DMInstanceKey, DMInstanceRef } from '../../../utilities';
|
|
4
|
+
import type { DMInstanceKey, DMInstanceRef } from '../../../utilities';
|
|
5
5
|
export type PointCloudObjectIdMaps = {
|
|
6
6
|
annotationToObjectIds: Map<number | DMInstanceKey, number>;
|
|
7
7
|
objectToAnnotationIds: Map<number, number | DMInstanceRef>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PointClassification } from './types';
|
|
1
|
+
import type { PointClassification } from './types';
|
|
2
2
|
export declare const DEFAULT_CLASSIFICATION: PointClassification;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IGradient } from '../types';
|
|
1
|
+
import type { IGradient } from '../types';
|
|
2
2
|
export declare const SpectralGradient: IGradient;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Adapted from pnext/three-loader (https://github.com/pnext/three-loader)
|
|
3
3
|
*/
|
|
4
|
-
import { Color,
|
|
5
|
-
import {
|
|
4
|
+
import type { Color, Texture } from 'three';
|
|
5
|
+
import { DataTexture } from 'three';
|
|
6
|
+
import type { PointClassification, IGradient } from './types';
|
|
6
7
|
export declare function generateDataTexture(width: number, height: number, color: Color, alpha: number): DataTexture;
|
|
7
8
|
export declare function generateGradientTexture(gradient: IGradient): Texture;
|
|
8
9
|
export declare function generateClassificationTexture(classification: PointClassification): Texture;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Adapted from pnext/three-loader (https://github.com/pnext/three-loader)
|
|
3
3
|
*/
|
|
4
|
-
import { Color, IUniform as IThreeUniform, Vector4
|
|
4
|
+
import type { Color, IUniform as IThreeUniform, Vector4 } from 'three';
|
|
5
|
+
import { type Box3, type Vector3 } from 'three';
|
|
5
6
|
export type IGradient = [number, Color][];
|
|
6
7
|
export interface PointClassification {
|
|
7
8
|
[value: string]: Vector4;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { CadMaterialManager } from '../CadMaterialManager';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { CadMaterialManager } from '../CadMaterialManager';
|
|
6
6
|
import { RenderMode } from '../rendering/RenderMode';
|
|
7
|
-
import { RenderPass } from '../RenderPass';
|
|
7
|
+
import type { RenderPass } from '../RenderPass';
|
|
8
8
|
export declare class GeometryPass implements RenderPass {
|
|
9
9
|
private readonly _geometryScene;
|
|
10
10
|
private readonly _materialManager;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { RenderPass } from '../RenderPass';
|
|
3
|
-
import { PointCloudPassParameters } from './types';
|
|
4
|
-
import { PointCloudMaterialManager } from '../PointCloudMaterialManager';
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
import type { RenderPass } from '../RenderPass';
|
|
3
|
+
import type { PointCloudPassParameters } from './types';
|
|
4
|
+
import type { PointCloudMaterialManager } from '../PointCloudMaterialManager';
|
|
5
5
|
export declare class PointCloudEffectsPass implements RenderPass {
|
|
6
6
|
private readonly _viewerScene;
|
|
7
7
|
private readonly _pointCloudMaterialManager;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { PostProcessingObjectsVisibilityParameters } from './types';
|
|
6
|
-
import { RenderPass } from '../RenderPass';
|
|
7
|
-
import { PostProcessingPipelineOptions } from '../render-pipeline-providers/types';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
|
+
import type { PostProcessingObjectsVisibilityParameters } from './types';
|
|
6
|
+
import type { RenderPass } from '../RenderPass';
|
|
7
|
+
import type { PostProcessingPipelineOptions } from '../render-pipeline-providers/types';
|
|
8
8
|
/**
|
|
9
9
|
* Single pass that applies post processing effects and
|
|
10
10
|
* combines results from geometry passes.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { SsaoParameters } from '../rendering/types';
|
|
6
|
-
import { RenderPass } from '../RenderPass';
|
|
5
|
+
import type { SsaoParameters } from '../rendering/types';
|
|
6
|
+
import type { RenderPass } from '../RenderPass';
|
|
7
7
|
export declare class SSAOPass implements RenderPass {
|
|
8
8
|
private readonly _fullScreenTriangle;
|
|
9
9
|
private readonly _ssaoShaderMaterial;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointShape } from '../pointcloud-rendering';
|
|
4
|
+
import type { PointShape } from '../pointcloud-rendering';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
|
-
import { EdlOptions } from '../rendering/types';
|
|
6
|
+
import type { EdlOptions } from '../rendering/types';
|
|
7
7
|
export type BlendOptions = {
|
|
8
8
|
blendDestination: THREE.BlendingDstFactor;
|
|
9
9
|
blendSource: THREE.BlendingDstFactor | THREE.BlendingSrcFactor;
|