@cognite/reveal 3.1.0 → 4.0.0-dev.20221025
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/4ecf80bd209836dc884c.worker.js.LICENSE.txt +24 -0
- package/README.md +34 -1
- package/eptBinaryDecoder.worker.map +1 -1
- package/extensions/datasource.d.ts +9 -9
- package/extensions/datasource.js +2 -26
- package/{core/src/public/migration/RenderController.d.ts → extensions/datasource.js.LICENSE.txt} +3 -4
- package/extensions/datasource.map +1 -1
- package/index.d.ts +16 -13
- package/index.js +2 -576
- package/index.js.LICENSE.txt +19 -0
- package/index.map +1 -1
- package/package.json +9 -9
- package/packages/360-images/index.d.ts +6 -0
- package/packages/360-images/src/Image360Entity.d.ts +44 -0
- package/packages/360-images/src/Image360EntityFactory.d.ts +13 -0
- package/packages/360-images/src/Image360Facade.d.ts +20 -0
- package/packages/360-images/src/Image360Icon.d.ts +16 -0
- package/packages/api/index.d.ts +11 -0
- package/packages/api/src/api-helpers/Image360ApiHelper.d.ts +28 -0
- package/{core → packages/api}/src/public/RevealManager.d.ts +51 -52
- package/{core → packages/api}/src/public/createRevealManager.d.ts +24 -24
- package/{core → packages/api}/src/public/migration/Cognite3DViewer.d.ts +534 -498
- package/{core → packages/api}/src/public/migration/renderOptionsHelpers.d.ts +36 -29
- package/{core → packages/api}/src/public/migration/types.d.ts +182 -171
- package/{core → packages/api}/src/public/types.d.ts +32 -30
- package/{core → packages/api}/src/storage/RevealManagerHelper.d.ts +61 -60
- package/{core → packages/api}/src/utilities/Spinner.d.ts +27 -27
- package/{core → packages/api}/src/utilities/ViewStateHelper.d.ts +49 -49
- package/{core → packages/api}/src/utilities/reflection.d.ts +7 -7
- package/packages/cad-geometry-loaders/index.d.ts +9 -10
- package/packages/cad-geometry-loaders/src/CadLoadingHints.d.ts +11 -11
- package/packages/cad-geometry-loaders/src/CadManager.d.ts +46 -46
- package/packages/cad-geometry-loaders/src/CadModelBudget.d.ts +21 -21
- package/packages/cad-geometry-loaders/src/CadModelUpdateHandler.d.ts +44 -44
- package/packages/cad-geometry-loaders/src/InternalRevealCadOptions.d.ts +7 -13
- package/packages/cad-geometry-loaders/src/createCadManager.d.ts +10 -10
- package/packages/cad-geometry-loaders/src/sector/ModelStateHandler.d.ts +12 -12
- package/packages/cad-geometry-loaders/src/sector/SectorDownloadScheduler.d.ts +22 -22
- package/packages/cad-geometry-loaders/src/sector/SectorLoader.d.ts +31 -32
- package/packages/cad-geometry-loaders/src/sector/culling/ByScreenSizeSectorCuller.d.ts +23 -23
- package/packages/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +33 -33
- package/packages/cad-geometry-loaders/src/sector/culling/WeightFunctionsHelper.d.ts +51 -50
- package/packages/cad-geometry-loaders/src/sector/culling/computeNdcAreaOfBox.d.ts +12 -12
- package/packages/cad-geometry-loaders/src/sector/culling/computeSectorCost.d.ts +6 -7
- package/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenSectorMapBase.d.ts +11 -11
- package/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenV9SectorMap.d.ts +20 -20
- package/packages/cad-geometry-loaders/src/sector/culling/takensectors/index.d.ts +4 -5
- package/packages/cad-geometry-loaders/src/sector/culling/transformBoxToNDC.d.ts +5 -5
- package/packages/cad-geometry-loaders/src/sector/culling/types.d.ts +83 -83
- package/packages/cad-geometry-loaders/src/sector/rxSectorUtilities.d.ts +12 -12
- package/packages/cad-geometry-loaders/src/utilities/PromiseUtils.d.ts +28 -28
- package/packages/cad-model/index.d.ts +9 -9
- package/packages/cad-model/src/CadModelFactory.d.ts +16 -17
- package/packages/cad-model/src/batching/GeometryBatchingManager.d.ts +31 -31
- package/packages/cad-model/src/picking/PickingHandler.d.ts +36 -35
- package/packages/cad-model/src/picking/readPixelsFromTargetAsync.d.ts +17 -0
- package/packages/cad-model/src/types.d.ts +59 -59
- package/packages/cad-model/src/utilities/BoundingBoxClipper.d.ts +23 -23
- package/packages/cad-model/src/utilities/NodeIdAndTreeIndexMaps.d.ts +4 -4
- package/packages/cad-model/src/utilities/callActionWithIndicesAsync.d.ts +4 -4
- package/packages/cad-model/src/wrappers/CadNode.d.ts +47 -54
- package/packages/cad-model/src/wrappers/Cognite3DModel.d.ts +337 -337
- package/packages/cad-parsers/index.d.ts +15 -20
- package/packages/cad-parsers/src/cad/LevelOfDetail.d.ts +8 -8
- package/packages/cad-parsers/src/cad/filterPrimitivesCommon.d.ts +5 -5
- package/packages/cad-parsers/src/cad/filterPrimitivesV9.d.ts +6 -6
- package/packages/cad-parsers/src/cad/types.d.ts +44 -56
- package/packages/cad-parsers/src/metadata/CadMetadataParser.d.ts +7 -7
- package/packages/cad-parsers/src/metadata/CadModelClipper.d.ts +10 -10
- package/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +54 -54
- package/packages/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +16 -16
- package/packages/cad-parsers/src/metadata/parsers/CadMetadataParserGltf.d.ts +8 -8
- package/packages/cad-parsers/src/metadata/parsers/types.d.ts +62 -62
- package/packages/cad-parsers/src/metadata/types.d.ts +52 -53
- package/packages/cad-parsers/src/sector/RootSectorNode.d.ts +13 -13
- package/packages/cad-parsers/src/sector/SectorNode.d.ts +22 -22
- package/packages/cad-parsers/src/utilities/SectorScene.d.ts +23 -23
- package/packages/cad-parsers/src/utilities/SectorSceneFactory.d.ts +9 -9
- package/packages/cad-parsers/src/utilities/computeBoundingBoxFromAttributes.d.ts +14 -10
- package/packages/cad-parsers/src/utilities/types.d.ts +71 -71
- package/packages/cad-styling/index.d.ts +21 -20
- package/packages/cad-styling/src/AssetNodeCollection.d.ts +47 -47
- package/packages/cad-styling/src/CdfModelNodeCollectionDataProvider.d.ts +26 -26
- package/packages/cad-styling/src/CdfNodeCollectionBase.d.ts +20 -0
- package/packages/cad-styling/src/CombineNodeCollectionBase.d.ts +34 -34
- package/packages/cad-styling/src/IntersectionNodeCollection.d.ts +20 -20
- package/packages/cad-styling/src/InvertedNodeCollection.d.ts +27 -27
- package/packages/cad-styling/src/NodeAppearance.d.ts +85 -85
- package/packages/cad-styling/src/NodeAppearanceProvider.d.ts +38 -38
- package/packages/cad-styling/src/NodeCollection.d.ts +31 -26
- package/packages/cad-styling/src/NodeCollectionDeserializer.d.ts +21 -26
- package/packages/cad-styling/src/NodeIdNodeCollection.d.ts +30 -0
- package/packages/cad-styling/src/PopulateIndexSetFromPagedResponseHelper.d.ts +30 -30
- package/packages/cad-styling/src/PropertyFilterNodeCollection.d.ts +45 -57
- package/packages/cad-styling/src/SerializedNodeCollection.d.ts +8 -8
- package/packages/cad-styling/src/SinglePropertyFilterNodeCollection.d.ts +41 -53
- package/packages/cad-styling/src/TreeIndexNodeCollection.d.ts +42 -40
- package/packages/cad-styling/src/UnionNodeCollection.d.ts +19 -19
- package/packages/cad-styling/src/prioritized/AreaCollection.d.ts +39 -39
- package/packages/cad-styling/src/prioritized/BoxClusterer.d.ts +29 -29
- package/packages/cad-styling/src/prioritized/ClusteredAreaCollection.d.ts +17 -17
- package/packages/cad-styling/src/prioritized/EmptyAreaCollection.d.ts +18 -18
- package/packages/cad-styling/src/prioritized/types.d.ts +7 -7
- package/packages/camera-manager/index.d.ts +10 -8
- package/packages/camera-manager/src/CameraManager.d.ts +78 -74
- package/packages/camera-manager/src/CameraManagerHelper.d.ts +42 -42
- package/packages/camera-manager/src/ComboControls.d.ts +110 -112
- package/packages/camera-manager/src/DefaultCameraManager.d.ts +150 -136
- package/packages/camera-manager/src/Keyboard.d.ts +19 -17
- package/packages/camera-manager/src/ProxyCameraManager.d.ts +25 -0
- package/packages/camera-manager/src/StationaryCameraManager.d.ts +27 -0
- package/packages/camera-manager/src/types.d.ts +66 -66
- package/packages/data-providers/index.d.ts +21 -0
- package/packages/data-providers/src/Image360Provider.d.ts +6 -0
- package/packages/data-providers/src/ModelDataProvider.d.ts +21 -0
- package/packages/{modeldata-api → data-providers}/src/ModelIdentifier.d.ts +12 -12
- package/packages/{modeldata-api → data-providers}/src/ModelMetadataProvider.d.ts +18 -18
- package/packages/data-providers/src/PointCloudStylableObjectProvider.d.ts +8 -0
- package/packages/data-providers/src/image-360-data-providers/Cdf360ImageEventProvider.d.ts +16 -0
- package/packages/data-providers/src/image-360-data-providers/Local360ImageProvider.d.ts +8 -0
- package/packages/{modeldata-api/src → data-providers/src/metadata-providers}/CdfModelMetadataProvider.d.ts +20 -20
- package/packages/{modeldata-api/src → data-providers/src/metadata-providers}/LocalModelMetadataProvider.d.ts +16 -16
- package/packages/{modeldata-api/src → data-providers/src/model-data-providers}/CdfModelDataProvider.d.ts +16 -16
- package/packages/{modeldata-api/src → data-providers/src/model-data-providers}/LocalModelDataProvider.d.ts +8 -8
- package/packages/{modeldata-api/src → data-providers/src/model-identifiers}/CdfModelIdentifier.d.ts +15 -15
- package/packages/{modeldata-api/src → data-providers/src/model-identifiers}/LocalModelIdentifier.d.ts +14 -14
- package/packages/data-providers/src/pointcloud-stylable-object-providers/CdfPointCloudStylableObjectProvider.d.ts +14 -0
- package/packages/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +9 -0
- package/packages/data-providers/src/pointcloud-stylable-object-providers/StylableObject.d.ts +12 -0
- package/packages/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +5 -0
- package/packages/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +19 -0
- package/packages/data-providers/src/types.d.ts +44 -0
- package/packages/{modeldata-api/src → data-providers/src/utilities}/applyDefaultModelTransformation.d.ts +6 -6
- package/packages/{modeldata-api/src/utilities.d.ts → data-providers/src/utilities/fetchWithStatusCheck.d.ts} +5 -7
- package/packages/data-source/index.d.ts +6 -6
- package/packages/data-source/src/CdfDataSource.d.ts +19 -19
- package/packages/data-source/src/DataSource.d.ts +25 -25
- package/packages/data-source/src/LocalDataSource.d.ts +15 -15
- package/packages/logger/index.d.ts +5 -5
- package/packages/logger/src/Log.d.ts +5 -5
- package/packages/metrics/index.d.ts +4 -4
- package/packages/metrics/src/MetricsLogger.d.ts +34 -21
- package/packages/metrics/src/types.d.ts +7 -7
- package/packages/model-base/index.d.ts +7 -7
- package/packages/model-base/src/CogniteModelBase.d.ts +17 -17
- package/packages/model-base/src/MetadataRepository.d.ts +7 -7
- package/packages/model-base/src/SupportedModelTypes.d.ts +4 -4
- package/packages/model-base/src/types.d.ts +36 -36
- package/packages/nodes-api/index.d.ts +6 -6
- package/packages/nodes-api/src/NodesApiClient.d.ts +50 -50
- package/packages/nodes-api/src/NodesCdfClient.d.ts +24 -24
- package/packages/nodes-api/src/NodesLocalClient.d.ts +30 -30
- package/packages/nodes-api/src/types.d.ts +10 -10
- package/packages/pointcloud-styling/index.d.ts +7 -0
- package/packages/pointcloud-styling/src/AnnotationIdPointCloudObjectCollection.d.ts +13 -0
- package/packages/pointcloud-styling/src/PointCloudAppearance.d.ts +10 -0
- package/packages/pointcloud-styling/src/PointCloudObjectCollection.d.ts +23 -0
- package/packages/pointcloud-styling/src/StyledPointCloudObjectCollection.d.ts +13 -0
- package/packages/pointclouds/index.d.ts +18 -15
- package/packages/pointclouds/src/CognitePointCloudModel.d.ts +182 -131
- package/packages/pointclouds/src/PointCloudBudget.d.ts +14 -14
- package/packages/pointclouds/src/PointCloudFactory.d.ts +18 -13
- package/packages/pointclouds/src/PointCloudIntersection.d.ts +30 -26
- package/packages/pointclouds/src/PointCloudManager.d.ts +38 -37
- package/packages/pointclouds/src/PointCloudMetadata.d.ts +15 -14
- package/packages/pointclouds/src/PointCloudMetadataRepository.d.ts +14 -14
- package/packages/pointclouds/src/PointCloudNode.d.ts +78 -69
- package/packages/pointclouds/src/{picking.d.ts → PointCloudPickingHandler.d.ts} +40 -29
- package/packages/pointclouds/src/PotreeGroupWrapper.d.ts +46 -46
- package/packages/pointclouds/src/PotreeNodeWrapper.d.ts +52 -36
- package/packages/pointclouds/src/PotreePnextLoader.d.ts +4 -4
- package/packages/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts +8 -0
- package/packages/pointclouds/src/classificationsProviders/LocalPointClassificationsProvider.d.ts +9 -0
- package/packages/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts +12 -0
- package/packages/pointclouds/src/constants.d.ts +5 -0
- package/packages/pointclouds/src/createPointCloudManager.d.ts +9 -7
- package/packages/pointclouds/src/decomposeStylableObjects.d.ts +5 -0
- package/packages/pointclouds/src/potree-three-loader/Potree.d.ts +38 -46
- package/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometry.d.ts +10 -10
- package/packages/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometryNode.d.ts +11 -11
- package/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometry.d.ts +45 -50
- package/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts +64 -63
- package/packages/pointclouds/src/potree-three-loader/geometry/translationUtils.d.ts +7 -7
- package/packages/pointclouds/src/potree-three-loader/index.d.ts +9 -10
- package/packages/pointclouds/src/potree-three-loader/loading/ClassificationInfo.d.ts +15 -0
- package/packages/pointclouds/src/potree-three-loader/loading/EptBinaryLoader.d.ts +15 -12
- package/packages/pointclouds/src/potree-three-loader/loading/EptJson.d.ts +25 -0
- package/packages/pointclouds/src/potree-three-loader/loading/EptLoader.d.ts +5 -5
- package/packages/pointclouds/src/potree-three-loader/loading/ILoader.d.ts +4 -4
- package/packages/pointclouds/src/potree-three-loader/loading/globalLoadingCounter.d.ts +5 -5
- package/packages/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNode.d.ts +7 -7
- package/packages/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNodeBase.d.ts +18 -18
- package/packages/pointclouds/src/potree-three-loader/tree/PointAttributes.d.ts +52 -52
- package/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctree.d.ts +48 -48
- package/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreeNode.d.ts +27 -27
- package/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePicker.d.ts +14 -11
- package/packages/pointclouds/src/potree-three-loader/tree/PointCloudOctreePickerHelper.d.ts +57 -57
- package/packages/pointclouds/src/potree-three-loader/tree/PointCloudTree.d.ts +6 -6
- package/packages/pointclouds/src/potree-three-loader/types/IPotree.d.ts +11 -11
- package/packages/pointclouds/src/potree-three-loader/types/IVisibilityUpdateResult.d.ts +18 -18
- package/packages/pointclouds/src/potree-three-loader/types/type-predicates.d.ts +6 -6
- package/packages/pointclouds/src/potree-three-loader/types/types.d.ts +14 -14
- package/packages/pointclouds/src/potree-three-loader/utils/BinaryHeap.d.ts +11 -11
- package/packages/pointclouds/src/potree-three-loader/utils/WorkerPool.d.ts +31 -31
- package/packages/pointclouds/src/potree-three-loader/utils/async-blocking-queue.d.ts +8 -8
- package/packages/pointclouds/src/potree-three-loader/utils/bounds.d.ts +6 -6
- package/packages/pointclouds/src/potree-three-loader/utils/box3-helper.d.ts +13 -13
- package/packages/pointclouds/src/potree-three-loader/utils/createObjectIdMaps.d.ts +6 -0
- package/packages/pointclouds/src/potree-three-loader/utils/lru.d.ts +32 -32
- package/packages/pointclouds/src/potree-three-loader/utils/utils.d.ts +12 -8
- package/packages/pointclouds/src/potree-three-loader/version.d.ts +9 -9
- package/packages/pointclouds/src/potree-three-loader/workers/assignPointsToObjectsWithWasm.d.ts +5 -0
- package/packages/pointclouds/src/potree-three-loader/workers/eptBinaryDecoder.worker.d.ts +7 -18
- package/packages/pointclouds/src/potree-three-loader/workers/parseEpt.d.ts +4 -0
- package/packages/pointclouds/src/potree-three-loader/workers/types.d.ts +33 -0
- package/packages/pointclouds/src/types.d.ts +84 -84
- package/packages/pointclouds/wasm/index.d.ts +18 -0
- package/packages/rendering/index.d.ts +22 -17
- package/packages/rendering/src/CadMaterialManager.d.ts +39 -39
- package/packages/rendering/src/PointCloudMaterialManager.d.ts +19 -0
- package/packages/rendering/src/RenderPass.d.ts +15 -15
- package/packages/rendering/src/RenderPipelineExecutor.d.ts +13 -12
- package/packages/rendering/src/RenderPipelineProvider.d.ts +15 -15
- package/packages/rendering/src/pipeline-executors/BasicPipelineExecutor.d.ts +22 -11
- package/packages/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +121 -0
- package/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +30 -0
- package/packages/rendering/src/pointcloud-rendering/PointCloudObjectIdMaps.d.ts +7 -0
- package/packages/rendering/src/pointcloud-rendering/classification.d.ts +2 -0
- package/packages/rendering/src/pointcloud-rendering/constants.d.ts +17 -0
- package/packages/rendering/src/pointcloud-rendering/enums.d.ts +24 -0
- package/packages/{pointclouds/src/potree-three-loader/rendering → rendering/src/pointcloud-rendering}/gradients/SpectralGradient.d.ts +2 -2
- package/packages/rendering/src/pointcloud-rendering/index.d.ts +8 -0
- package/packages/rendering/src/pointcloud-rendering/texture-generation.d.ts +8 -0
- package/packages/{pointclouds/src/potree-three-loader/rendering → rendering/src/pointcloud-rendering}/types.d.ts +18 -10
- package/packages/rendering/src/render-passes/GeometryPass.d.ts +16 -16
- package/packages/rendering/src/render-passes/PointCloudEffectsPass.d.ts +11 -0
- package/packages/rendering/src/render-passes/PostProcessingPass.d.ts +22 -24
- package/packages/rendering/src/render-passes/SSAOPass.d.ts +14 -14
- package/packages/rendering/src/render-passes/types.d.ts +68 -31
- package/packages/rendering/src/render-pipeline-providers/CadGeometryRenderModePipelineProvider.d.ts +23 -23
- package/packages/rendering/src/render-pipeline-providers/CadGeometryRenderPipelineProvider.d.ts +25 -25
- package/packages/rendering/src/render-pipeline-providers/DefaultRenderPipelineProvider.d.ts +38 -34
- package/packages/rendering/src/render-pipeline-providers/PointCloudRenderPipelineProvider.d.ts +25 -0
- package/packages/rendering/src/render-pipeline-providers/types.d.ts +23 -19
- package/packages/rendering/src/rendering/NodeAppearanceTextureBuilder.d.ts +51 -51
- package/packages/rendering/src/rendering/RenderMode.d.ts +15 -15
- package/packages/rendering/src/rendering/matCapTextureData.d.ts +5 -5
- package/packages/rendering/src/rendering/materials.d.ts +23 -23
- package/packages/rendering/src/rendering/shaders.d.ts +104 -87
- package/packages/rendering/src/rendering/types.d.ts +88 -76
- package/packages/rendering/src/transform/NodeTransformProvider.d.ts +13 -13
- package/packages/rendering/src/transform/NodeTransformTextureBuilder.d.ts +24 -23
- package/packages/rendering/src/transform/TransformOverrideBuffer.d.ts +21 -21
- package/packages/rendering/src/utilities/renderUtilities.d.ts +31 -26
- package/packages/rendering/src/utilities/types.d.ts +26 -26
- package/packages/sector-loader/index.d.ts +5 -6
- package/packages/sector-loader/src/GltfSectorLoader.d.ts +12 -12
- package/packages/sector-loader/src/GltfSectorRepository.d.ts +19 -19
- package/packages/sector-loader/src/SectorRepository.d.ts +10 -10
- package/packages/sector-parser/index.d.ts +5 -5
- package/packages/sector-parser/src/DracoDecoderHelper.d.ts +32 -32
- package/packages/sector-parser/src/GltfSectorParser.d.ts +19 -19
- package/packages/sector-parser/src/constants.d.ts +6 -6
- package/packages/sector-parser/src/lib/draco_decoder_gltf.d.ts +5 -0
- package/packages/sector-parser/src/reveal-glb-parser/GlbMetadataParser.d.ts +14 -14
- package/packages/sector-parser/src/reveal-glb-parser/primitiveGeometries.d.ts +12 -12
- package/packages/sector-parser/src/types.d.ts +106 -106
- package/packages/tools/index.d.ts +15 -15
- package/packages/tools/src/AxisView/AxisViewTool.d.ts +31 -31
- package/packages/tools/src/AxisView/types.d.ts +98 -98
- package/packages/tools/src/Cognite3DViewerToolBase.d.ts +25 -25
- package/packages/tools/src/DebugCameraTool.d.ts +20 -20
- package/packages/tools/src/ExplodedViewTool.d.ts +12 -12
- package/packages/tools/src/HtmlOverlay/BucketGrid2D.d.ts +28 -28
- package/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +166 -160
- package/packages/tools/src/Measurement/MeasurementLabels.d.ts +18 -0
- package/packages/tools/src/Measurement/MeasurementLine.d.ts +44 -0
- package/packages/tools/src/Measurement/MeasurementManager.d.ts +66 -0
- package/packages/tools/src/Measurement/MeasurementTool.d.ts +183 -0
- package/packages/tools/src/Measurement/types.d.ts +38 -0
- package/packages/tools/src/Timeline/Keyframe.d.ts +39 -39
- package/packages/tools/src/Timeline/TimelineTool.d.ts +79 -79
- package/packages/tools/src/Timeline/types.d.ts +13 -13
- package/packages/tools/src/types.d.ts +4 -4
- package/packages/utilities/index.d.ts +39 -36
- package/packages/utilities/src/CameraConfiguration.d.ts +10 -10
- package/packages/utilities/src/DeferredPromise.d.ts +17 -17
- package/packages/utilities/src/IndexSet.d.ts +1 -1
- package/packages/utilities/src/NumericRange.d.ts +22 -22
- package/packages/utilities/src/RandomColors.d.ts +34 -34
- package/packages/utilities/src/SceneHandler.d.ts +28 -21
- package/packages/utilities/src/WebGLRendererStateHelper.d.ts +29 -27
- package/packages/utilities/src/assertNever.d.ts +7 -7
- package/packages/utilities/src/cache/MemoryRequestCache.d.ts +24 -24
- package/packages/utilities/src/cache/MostFrequentlyUsedCache.d.ts +19 -19
- package/packages/utilities/src/cache/RequestCache.d.ts +13 -13
- package/packages/utilities/src/calculateVolumeOfMesh.d.ts +4 -4
- package/packages/utilities/src/counterMap.d.ts +5 -5
- package/packages/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts +33 -33
- package/packages/utilities/src/determinePowerOfTwoDimensions.d.ts +11 -11
- package/packages/utilities/src/device.d.ts +10 -10
- package/packages/utilities/src/disposeAttributeArrayOnUpload.d.ts +17 -17
- package/packages/utilities/src/events/EventTrigger.d.ts +13 -13
- package/packages/utilities/src/events/InputHandler.d.ts +30 -30
- package/packages/utilities/src/events/clickOrTouchEventOffset.d.ts +13 -13
- package/packages/utilities/src/events/index.d.ts +7 -7
- package/packages/utilities/src/events/types.d.ts +40 -27
- package/packages/utilities/src/indexset/IndexSet.d.ts +26 -26
- package/packages/utilities/src/indexset/IntermediateIndexNode.d.ts +26 -26
- package/packages/utilities/src/indexset/LeafIndexNode.d.ts +16 -16
- package/packages/utilities/src/isMobileOrTablet.d.ts +5 -5
- package/packages/utilities/src/linalg.d.ts +11 -0
- package/packages/utilities/src/objectTraversal.d.ts +8 -8
- package/packages/utilities/src/shapes/Box.d.ts +12 -0
- package/packages/utilities/src/shapes/CompositeShape.d.ts +13 -0
- package/packages/utilities/src/shapes/Cylinder.d.ts +14 -0
- package/packages/utilities/src/shapes/ISerializableShape.d.ts +11 -0
- package/packages/utilities/src/shapes/IShape.d.ts +9 -0
- package/packages/utilities/src/shapes/SerializableBox.d.ts +8 -0
- package/packages/utilities/src/shapes/SerializableCompositeShape.d.ts +7 -0
- package/packages/utilities/src/shapes/SerializableCylinder.d.ts +10 -0
- package/packages/utilities/src/shapes/index.d.ts +11 -0
- package/packages/utilities/src/three/AutoDisposeGroup.d.ts +17 -17
- package/packages/utilities/src/three/BoundingBoxLOD.d.ts +27 -27
- package/packages/utilities/src/three/createDistinctColors.d.ts +5 -0
- package/packages/utilities/src/three/createFullScreenTriangleGeometry.d.ts +5 -5
- package/packages/utilities/src/three/fitCameraToBoundingBox.d.ts +15 -0
- package/packages/utilities/src/three/fromThreeVector3.d.ts +5 -0
- package/packages/utilities/src/three/isBox3OnPositiveSideOfPlane.d.ts +10 -10
- package/packages/utilities/src/three/toThreeBox3.d.ts +6 -6
- package/packages/utilities/src/three/unionBoxes.d.ts +5 -5
- package/packages/utilities/src/three/visitBox3CornerPoints.d.ts +12 -12
- package/packages/utilities/src/transformCameraConfiguration.d.ts +6 -6
- package/packages/utilities/src/types.d.ts +11 -11
- package/packages/utilities/src/workers/workerize-transferable/index.d.ts +7 -0
- package/packages/utilities/src/workers/workerize-transferable/message-types.d.ts +4 -0
- package/packages/utilities/src/workers/workerize-transferable/on-main.d.ts +13 -0
- package/packages/utilities/src/workers/workerize-transferable/on-worker.d.ts +14 -0
- package/packages/utilities/src/workers/workerize-transferable/util.d.ts +10 -0
- package/packages/utilities/src/worldToViewport.d.ts +34 -30
- package/tools.d.ts +7 -7
- package/tools.js +2 -280
- package/tools.js.LICENSE.txt +7 -0
- package/tools.map +1 -1
- package/core/cad.d.ts +0 -4
- package/core/index.d.ts +0 -6
- package/core/src/index.d.ts +0 -13
- package/core/src/internals.d.ts +0 -10
- package/core/src/public/migration/NotSupportedInMigrationWrapperError.d.ts +0 -11
- package/core/src/utilities/index.d.ts +0 -6
- package/core/utilities.d.ts +0 -4
- package/packages/cad-geometry-loaders/src/sector/culling/ByVisibilityGpuSectorCuller.d.ts +0 -51
- package/packages/cad-geometry-loaders/src/sector/culling/OrderSectorsByVisibilityCoverage.d.ts +0 -106
- package/packages/cad-geometry-loaders/src/sector/culling/RenderAlreadyLoadedGeometryProvider.d.ts +0 -11
- package/packages/cad-geometry-loaders/src/sector/culling/createV8SectorCuller.d.ts +0 -7
- package/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenV8SectorMap.d.ts +0 -17
- package/packages/cad-geometry-loaders/src/sector/culling/takensectors/TakenV8SectorTree.d.ts +0 -24
- package/packages/cad-geometry-loaders/src/utilities/rxOperations.d.ts +0 -6
- package/packages/cad-model/src/batching/InstancedMeshManager.d.ts +0 -20
- package/packages/cad-parsers/src/cad/CadSectorParser.d.ts +0 -15
- package/packages/cad-parsers/src/cad/filterInstanceMesh.d.ts +0 -6
- package/packages/cad-parsers/src/cad/filterPrimitivesV8.d.ts +0 -9
- package/packages/cad-parsers/src/cad/primitiveGeometries.d.ts +0 -30
- package/packages/cad-parsers/src/cad/triangleMeshes.d.ts +0 -6
- package/packages/cad-parsers/src/metadata/parsers/CadMetadataParserV8.d.ts +0 -6
- package/packages/cad-parsers/src/utilities/float32BufferToMatrix.d.ts +0 -12
- package/packages/modeldata-api/index.d.ts +0 -12
- package/packages/modeldata-api/src/types.d.ts +0 -43
- package/packages/pointclouds/src/createPointClassKey.d.ts +0 -5
- package/packages/pointclouds/src/potree-three-loader/rendering/PointCloudMaterial.d.ts +0 -203
- package/packages/pointclouds/src/potree-three-loader/rendering/classification.d.ts +0 -2
- package/packages/pointclouds/src/potree-three-loader/rendering/clipping.d.ts +0 -12
- package/packages/pointclouds/src/potree-three-loader/rendering/constants.d.ts +0 -14
- package/packages/pointclouds/src/potree-three-loader/rendering/enums.d.ts +0 -46
- package/packages/pointclouds/src/potree-three-loader/rendering/features.d.ts +0 -6
- package/packages/pointclouds/src/potree-three-loader/rendering/index.d.ts +0 -5
- package/packages/pointclouds/src/potree-three-loader/rendering/texture-generation.d.ts +0 -5
- package/packages/pointclouds/src/potree-three-loader/utils/math.d.ts +0 -1
- package/packages/rendering/src/rendering/createSimpleGeometryMesh.d.ts +0 -6
- package/packages/rendering/src/rendering/primitives.d.ts +0 -12
- package/packages/sector-loader/src/V8SectorRepository.d.ts +0 -26
- package/packages/sector-loader/src/v8/SimpleAndDetailedToSector3D.d.ts +0 -20
- package/packages/sector-loader/src/v8/arrays.d.ts +0 -5
- package/packages/sector-loader/src/v8/groupMeshesByNumber.d.ts +0 -8
- package/packages/sector-loader/src/v8/sectorUtilities.d.ts +0 -16
- package/packages/tools/src/DebugLoadedSectorsTool.d.ts +0 -23
- package/packages/tools/src/Geomap/Geomap.d.ts +0 -17
- package/packages/tools/src/Geomap/GeomapTool.d.ts +0 -23
- package/packages/tools/src/Geomap/MapConfig.d.ts +0 -195
- package/packages/utilities/src/networking/isTheSameDomain.d.ts +0 -11
- package/packages/utilities/src/packFloat.d.ts +0 -6
- package/packages/utilities/src/revealEnv.d.ts +0 -10
- package/packages/utilities/src/workers/WorkerPool.d.ts +0 -14
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { IndexSet } from '../../utilities';
|
|
5
|
-
import { AreaCollection } from './prioritized/AreaCollection';
|
|
6
|
-
import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider';
|
|
7
|
-
import { NodeCollection } from './NodeCollection';
|
|
8
|
-
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
9
|
-
/**
|
|
10
|
-
* Node collection that inverts the result from another node collection.
|
|
11
|
-
*/
|
|
12
|
-
export declare class InvertedNodeCollection extends NodeCollection {
|
|
13
|
-
static readonly classToken = "InvertedNodeCollection";
|
|
14
|
-
private readonly _allTreeIndicesRange;
|
|
15
|
-
private readonly _innerCollection;
|
|
16
|
-
private _cachedIndexSet?;
|
|
17
|
-
constructor(model: CdfModelNodeCollectionDataProvider, innerSet: NodeCollection);
|
|
18
|
-
get isLoading(): boolean;
|
|
19
|
-
getIndexSet(): IndexSet;
|
|
20
|
-
getAreas(): AreaCollection;
|
|
21
|
-
serialize(): SerializedNodeCollection;
|
|
22
|
-
/**
|
|
23
|
-
* Not supported.
|
|
24
|
-
* @throws Always throws an error.
|
|
25
|
-
*/
|
|
26
|
-
clear(): never;
|
|
27
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { IndexSet } from '../../utilities';
|
|
5
|
+
import { AreaCollection } from './prioritized/AreaCollection';
|
|
6
|
+
import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider';
|
|
7
|
+
import { NodeCollection } from './NodeCollection';
|
|
8
|
+
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
9
|
+
/**
|
|
10
|
+
* Node collection that inverts the result from another node collection.
|
|
11
|
+
*/
|
|
12
|
+
export declare class InvertedNodeCollection extends NodeCollection {
|
|
13
|
+
static readonly classToken = "InvertedNodeCollection";
|
|
14
|
+
private readonly _allTreeIndicesRange;
|
|
15
|
+
private readonly _innerCollection;
|
|
16
|
+
private _cachedIndexSet?;
|
|
17
|
+
constructor(model: CdfModelNodeCollectionDataProvider, innerSet: NodeCollection);
|
|
18
|
+
get isLoading(): boolean;
|
|
19
|
+
getIndexSet(): IndexSet;
|
|
20
|
+
getAreas(): AreaCollection;
|
|
21
|
+
serialize(): SerializedNodeCollection;
|
|
22
|
+
/**
|
|
23
|
+
* Not supported.
|
|
24
|
+
* @throws Always throws an error.
|
|
25
|
+
*/
|
|
26
|
+
clear(): never;
|
|
27
|
+
}
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
export declare enum NodeOutlineColor {
|
|
5
|
-
NoOutline = 0,
|
|
6
|
-
White = 1,
|
|
7
|
-
Black = 2,
|
|
8
|
-
Cyan = 3,
|
|
9
|
-
Blue = 4,
|
|
10
|
-
Green = 5,
|
|
11
|
-
Red = 6,
|
|
12
|
-
Orange = 7
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Type for defining node appearance profiles to style a 3D CAD model.
|
|
16
|
-
* @see {@link DefaultNodeAppearance}
|
|
17
|
-
*/
|
|
18
|
-
export declare type NodeAppearance = {
|
|
19
|
-
/**
|
|
20
|
-
* Overrides the default color of the node in RGB. Each component
|
|
21
|
-
* is in range [0, 255]. `[0, 0, 0]` means no override.
|
|
22
|
-
*/
|
|
23
|
-
readonly color?: [number, number, number];
|
|
24
|
-
/**
|
|
25
|
-
* Overrides the visibility of the node.
|
|
26
|
-
*/
|
|
27
|
-
readonly visible?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* When set to true, the node is rendered in front
|
|
30
|
-
* of all other nodes even if it's occluded.
|
|
31
|
-
* Note that this take precedence over {@link renderGhosted}.
|
|
32
|
-
*/
|
|
33
|
-
readonly renderInFront?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* When set to true, the node is rendered ghosted, i.e.
|
|
36
|
-
* transparent with a fixed color. This has no effect if {@link renderInFront}
|
|
37
|
-
* is `true`.
|
|
38
|
-
*/
|
|
39
|
-
readonly renderGhosted?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* When set, an outline is drawn around the
|
|
42
|
-
* node to make it stand out.
|
|
43
|
-
*/
|
|
44
|
-
readonly outlineColor?: NodeOutlineColor;
|
|
45
|
-
/**
|
|
46
|
-
* When provided, this value can be used to prioritize certain areas of the
|
|
47
|
-
* 3D model to be loaded. This can be useful to prioritize key objects in the
|
|
48
|
-
* 3D model to always be loaded.
|
|
49
|
-
*
|
|
50
|
-
* When non-zero, sectors containing geometry in the vicinity of the prioritized
|
|
51
|
-
* sectors are given an *extra* priority. Recommended values are in range 1 (somewhat
|
|
52
|
-
* higher priority to be loaded) to 10 (very likely to be loaded). Usually values around 4-5
|
|
53
|
-
* is recommended.
|
|
54
|
-
*
|
|
55
|
-
* Prioritized nodes are loaded at the expense of non-prioritized areas. There are no
|
|
56
|
-
* guarantees that the nodes are actually loaded, and the more prioritized areas/nodes
|
|
57
|
-
* provided, the less likely it is that the hint is obeyed.
|
|
58
|
-
*
|
|
59
|
-
* Extra priority doesn't accumulate when sectors are prioritized because they intersect/contain
|
|
60
|
-
* several nodes.
|
|
61
|
-
*
|
|
62
|
-
* **This is an advanced feature and not recommended for most users**
|
|
63
|
-
*
|
|
64
|
-
* @version Only works with 3D models converted later than Q4 2021.
|
|
65
|
-
*/
|
|
66
|
-
readonly prioritizedForLoadingHint?: number;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* A set of default node appearances used in Reveal.
|
|
70
|
-
*/
|
|
71
|
-
export declare const DefaultNodeAppearance: {
|
|
72
|
-
Default: NodeAppearance;
|
|
73
|
-
Outlined: NodeAppearance;
|
|
74
|
-
Hidden: NodeAppearance;
|
|
75
|
-
InFront: NodeAppearance;
|
|
76
|
-
Ghosted: NodeAppearance;
|
|
77
|
-
Highlighted: {
|
|
78
|
-
color?: [number, number, number] | undefined;
|
|
79
|
-
visible?: boolean | undefined;
|
|
80
|
-
renderInFront?: boolean | undefined;
|
|
81
|
-
renderGhosted?: boolean | undefined;
|
|
82
|
-
outlineColor?: NodeOutlineColor | undefined;
|
|
83
|
-
prioritizedForLoadingHint?: number | undefined;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
export declare enum NodeOutlineColor {
|
|
5
|
+
NoOutline = 0,
|
|
6
|
+
White = 1,
|
|
7
|
+
Black = 2,
|
|
8
|
+
Cyan = 3,
|
|
9
|
+
Blue = 4,
|
|
10
|
+
Green = 5,
|
|
11
|
+
Red = 6,
|
|
12
|
+
Orange = 7
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Type for defining node appearance profiles to style a 3D CAD model.
|
|
16
|
+
* @see {@link DefaultNodeAppearance}
|
|
17
|
+
*/
|
|
18
|
+
export declare type NodeAppearance = {
|
|
19
|
+
/**
|
|
20
|
+
* Overrides the default color of the node in RGB. Each component
|
|
21
|
+
* is in range [0, 255]. `[0, 0, 0]` means no override.
|
|
22
|
+
*/
|
|
23
|
+
readonly color?: [number, number, number];
|
|
24
|
+
/**
|
|
25
|
+
* Overrides the visibility of the node.
|
|
26
|
+
*/
|
|
27
|
+
readonly visible?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When set to true, the node is rendered in front
|
|
30
|
+
* of all other nodes even if it's occluded.
|
|
31
|
+
* Note that this take precedence over {@link renderGhosted}.
|
|
32
|
+
*/
|
|
33
|
+
readonly renderInFront?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* When set to true, the node is rendered ghosted, i.e.
|
|
36
|
+
* transparent with a fixed color. This has no effect if {@link renderInFront}
|
|
37
|
+
* is `true`.
|
|
38
|
+
*/
|
|
39
|
+
readonly renderGhosted?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* When set, an outline is drawn around the
|
|
42
|
+
* node to make it stand out.
|
|
43
|
+
*/
|
|
44
|
+
readonly outlineColor?: NodeOutlineColor;
|
|
45
|
+
/**
|
|
46
|
+
* When provided, this value can be used to prioritize certain areas of the
|
|
47
|
+
* 3D model to be loaded. This can be useful to prioritize key objects in the
|
|
48
|
+
* 3D model to always be loaded.
|
|
49
|
+
*
|
|
50
|
+
* When non-zero, sectors containing geometry in the vicinity of the prioritized
|
|
51
|
+
* sectors are given an *extra* priority. Recommended values are in range 1 (somewhat
|
|
52
|
+
* higher priority to be loaded) to 10 (very likely to be loaded). Usually values around 4-5
|
|
53
|
+
* is recommended.
|
|
54
|
+
*
|
|
55
|
+
* Prioritized nodes are loaded at the expense of non-prioritized areas. There are no
|
|
56
|
+
* guarantees that the nodes are actually loaded, and the more prioritized areas/nodes
|
|
57
|
+
* provided, the less likely it is that the hint is obeyed.
|
|
58
|
+
*
|
|
59
|
+
* Extra priority doesn't accumulate when sectors are prioritized because they intersect/contain
|
|
60
|
+
* several nodes.
|
|
61
|
+
*
|
|
62
|
+
* **This is an advanced feature and not recommended for most users**
|
|
63
|
+
*
|
|
64
|
+
* @version Only works with 3D models converted later than Q4 2021.
|
|
65
|
+
*/
|
|
66
|
+
readonly prioritizedForLoadingHint?: number;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* A set of default node appearances used in Reveal.
|
|
70
|
+
*/
|
|
71
|
+
export declare const DefaultNodeAppearance: {
|
|
72
|
+
Default: NodeAppearance;
|
|
73
|
+
Outlined: NodeAppearance;
|
|
74
|
+
Hidden: NodeAppearance;
|
|
75
|
+
InFront: NodeAppearance;
|
|
76
|
+
Ghosted: NodeAppearance;
|
|
77
|
+
Highlighted: {
|
|
78
|
+
color?: [number, number, number] | undefined;
|
|
79
|
+
visible?: boolean | undefined;
|
|
80
|
+
renderInFront?: boolean | undefined;
|
|
81
|
+
renderGhosted?: boolean | undefined;
|
|
82
|
+
outlineColor?: NodeOutlineColor | undefined;
|
|
83
|
+
prioritizedForLoadingHint?: number | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { NodeAppearance } from './NodeAppearance';
|
|
5
|
-
import { NodeCollection } from './NodeCollection';
|
|
6
|
-
import { PrioritizedArea } from './prioritized/types';
|
|
7
|
-
import { IndexSet } from '../../utilities';
|
|
8
|
-
/**
|
|
9
|
-
* Delegate for applying styles in {@see NodeStyleProvider}.
|
|
10
|
-
* @param treeIndices Set of tree indices that the style is applied to.
|
|
11
|
-
* @param appearance Style to be applied to the nodes.
|
|
12
|
-
*/
|
|
13
|
-
export declare type ApplyStyleDelegate = (treeIndices: IndexSet, appearance: NodeAppearance) => void;
|
|
14
|
-
export declare class NodeAppearanceProvider {
|
|
15
|
-
private readonly _styledCollections;
|
|
16
|
-
private _lastFiredLoadingState?;
|
|
17
|
-
private _cachedPrioritizedAreas?;
|
|
18
|
-
private readonly _events;
|
|
19
|
-
on(event: 'changed', listener: () => void): void;
|
|
20
|
-
on(event: 'loadingStateChanged', listener: (isLoading: boolean) => void): void;
|
|
21
|
-
on(event: 'prioritizedAreasChanged', listener: () => void): void;
|
|
22
|
-
off(event: 'changed', listener: () => void): void;
|
|
23
|
-
off(event: 'loadingStateChanged', listener: (isLoading: boolean) => void): void;
|
|
24
|
-
assignStyledNodeCollection(nodeCollection: NodeCollection, appearance: NodeAppearance): void;
|
|
25
|
-
unassignStyledNodeCollection(nodeCollection: NodeCollection): void;
|
|
26
|
-
applyStyles(applyCb: ApplyStyleDelegate): void;
|
|
27
|
-
getPrioritizedAreas(): PrioritizedArea[];
|
|
28
|
-
clear(): void;
|
|
29
|
-
get isLoading(): boolean;
|
|
30
|
-
private notifyChanged;
|
|
31
|
-
/**
|
|
32
|
-
* Schedules event 'changed' to trigger at the next tick.
|
|
33
|
-
*/
|
|
34
|
-
private readonly scheduleNotifyChanged;
|
|
35
|
-
private notifyLoadingStateChanged;
|
|
36
|
-
private handleNodeCollectionChanged;
|
|
37
|
-
private notifyPrioritizedAreasChanged;
|
|
38
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { NodeAppearance } from './NodeAppearance';
|
|
5
|
+
import { NodeCollection } from './NodeCollection';
|
|
6
|
+
import { PrioritizedArea } from './prioritized/types';
|
|
7
|
+
import { IndexSet } from '../../utilities';
|
|
8
|
+
/**
|
|
9
|
+
* Delegate for applying styles in {@see NodeStyleProvider}.
|
|
10
|
+
* @param treeIndices Set of tree indices that the style is applied to.
|
|
11
|
+
* @param appearance Style to be applied to the nodes.
|
|
12
|
+
*/
|
|
13
|
+
export declare type ApplyStyleDelegate = (treeIndices: IndexSet, appearance: NodeAppearance) => void;
|
|
14
|
+
export declare class NodeAppearanceProvider {
|
|
15
|
+
private readonly _styledCollections;
|
|
16
|
+
private _lastFiredLoadingState?;
|
|
17
|
+
private _cachedPrioritizedAreas?;
|
|
18
|
+
private readonly _events;
|
|
19
|
+
on(event: 'changed', listener: () => void): void;
|
|
20
|
+
on(event: 'loadingStateChanged', listener: (isLoading: boolean) => void): void;
|
|
21
|
+
on(event: 'prioritizedAreasChanged', listener: () => void): void;
|
|
22
|
+
off(event: 'changed', listener: () => void): void;
|
|
23
|
+
off(event: 'loadingStateChanged', listener: (isLoading: boolean) => void): void;
|
|
24
|
+
assignStyledNodeCollection(nodeCollection: NodeCollection, appearance: NodeAppearance): void;
|
|
25
|
+
unassignStyledNodeCollection(nodeCollection: NodeCollection): void;
|
|
26
|
+
applyStyles(applyCb: ApplyStyleDelegate): void;
|
|
27
|
+
getPrioritizedAreas(): PrioritizedArea[];
|
|
28
|
+
clear(): void;
|
|
29
|
+
get isLoading(): boolean;
|
|
30
|
+
private notifyChanged;
|
|
31
|
+
/**
|
|
32
|
+
* Schedules event 'changed' to trigger at the next tick.
|
|
33
|
+
*/
|
|
34
|
+
private readonly scheduleNotifyChanged;
|
|
35
|
+
private notifyLoadingStateChanged;
|
|
36
|
+
private handleNodeCollectionChanged;
|
|
37
|
+
private notifyPrioritizedAreasChanged;
|
|
38
|
+
}
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { AreaCollection } from './prioritized/AreaCollection';
|
|
5
|
-
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
6
|
-
import { IndexSet } from '../../utilities';
|
|
7
|
-
/**
|
|
8
|
-
* Abstract class for implementing a set of nodes to be styled.
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class NodeCollection {
|
|
11
|
-
private readonly _changedEvent;
|
|
12
|
-
private readonly _classToken;
|
|
13
|
-
protected constructor(classToken: string);
|
|
14
|
-
get classToken(): string;
|
|
15
|
-
on(event: 'changed', listener: () => void): void;
|
|
16
|
-
off(event: 'changed', listener: () => void): void;
|
|
17
|
-
abstract get isLoading(): boolean;
|
|
18
|
-
abstract getIndexSet(): IndexSet;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { AreaCollection } from './prioritized/AreaCollection';
|
|
5
|
+
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
6
|
+
import { IndexSet } from '../../utilities';
|
|
7
|
+
/**
|
|
8
|
+
* Abstract class for implementing a set of nodes to be styled.
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class NodeCollection {
|
|
11
|
+
private readonly _changedEvent;
|
|
12
|
+
private readonly _classToken;
|
|
13
|
+
protected constructor(classToken: string);
|
|
14
|
+
get classToken(): string;
|
|
15
|
+
on(event: 'changed', listener: () => void): void;
|
|
16
|
+
off(event: 'changed', listener: () => void): void;
|
|
17
|
+
abstract get isLoading(): boolean;
|
|
18
|
+
abstract getIndexSet(): IndexSet;
|
|
19
|
+
/**
|
|
20
|
+
* Returns areas surrounding the nodes in the collection. The areas
|
|
21
|
+
* are boxes in "ThreeJS coordinates". Note that not all
|
|
22
|
+
* implementations supports this.
|
|
23
|
+
*/
|
|
24
|
+
abstract getAreas(): AreaCollection;
|
|
25
|
+
abstract clear(): void;
|
|
26
|
+
abstract serialize(): SerializedNodeCollection;
|
|
27
|
+
/**
|
|
28
|
+
* Triggers the changed-event.
|
|
29
|
+
*/
|
|
30
|
+
protected notifyChanged(): void;
|
|
31
|
+
}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
-
import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider';
|
|
6
|
-
import { NodeCollection } from './NodeCollection';
|
|
7
|
-
|
|
8
|
-
export declare type NodeCollectionSerializationContext = {
|
|
9
|
-
client: CogniteClient;
|
|
10
|
-
model: CdfModelNodeCollectionDataProvider;
|
|
11
|
-
};
|
|
12
|
-
export declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
deserialize(client: CogniteClient, model: CdfModelNodeCollectionDataProvider, descriptor: NodeCollectionDescriptor): Promise<NodeCollection>;
|
|
23
|
-
private getDeserializer;
|
|
24
|
-
private registerWellKnownNodeCollectionTypes;
|
|
25
|
-
}
|
|
26
|
-
export declare function registerCustomNodeCollectionType<T extends NodeCollection>(nodeCollectionType: TypeName, deserializer: (descriptor: NodeCollectionDescriptor, context: NodeCollectionSerializationContext) => Promise<T>): void;
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
+
import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider';
|
|
6
|
+
import { NodeCollection } from './NodeCollection';
|
|
7
|
+
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
8
|
+
export declare type NodeCollectionSerializationContext = {
|
|
9
|
+
client: CogniteClient;
|
|
10
|
+
model: CdfModelNodeCollectionDataProvider;
|
|
11
|
+
};
|
|
12
|
+
export declare class NodeCollectionDeserializer {
|
|
13
|
+
static readonly Instance: NodeCollectionDeserializer;
|
|
14
|
+
private readonly _types;
|
|
15
|
+
private constructor();
|
|
16
|
+
registerNodeCollectionType<T extends NodeCollection>(nodeCollectionTypeName: string, deserializer: (descriptor: SerializedNodeCollection, context: NodeCollectionSerializationContext) => Promise<T>): void;
|
|
17
|
+
deserialize(client: CogniteClient, model: CdfModelNodeCollectionDataProvider, descriptor: SerializedNodeCollection): Promise<NodeCollection>;
|
|
18
|
+
private getDeserializer;
|
|
19
|
+
private registerWellKnownNodeCollectionTypes;
|
|
20
|
+
}
|
|
21
|
+
export declare function registerNodeCollectionType<T extends NodeCollection>(nodeCollectionTypeName: string, deserializer: (descriptor: SerializedNodeCollection, context: NodeCollectionSerializationContext) => Promise<T>): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
+
import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider';
|
|
6
|
+
import { CdfNodeCollectionBase } from './CdfNodeCollectionBase';
|
|
7
|
+
import { NodeCollectionSerializationContext } from './NodeCollectionDeserializer';
|
|
8
|
+
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
9
|
+
/**
|
|
10
|
+
* Collection that holds a set of nodes including children identified by nodeIds. Note that
|
|
11
|
+
* this involves remapping IDs to "tree indices" and subtree sized used by Reveal using
|
|
12
|
+
* the CDF API. Its often better to use one of the other node collections or {@see TreeIndexNodeCollection}
|
|
13
|
+
* whenever possible for best performance.
|
|
14
|
+
*/
|
|
15
|
+
export declare class NodeIdNodeCollection extends CdfNodeCollectionBase {
|
|
16
|
+
static readonly classToken = "NodeIdNodeCollection";
|
|
17
|
+
private readonly _client;
|
|
18
|
+
private readonly _model;
|
|
19
|
+
private _nodeIds;
|
|
20
|
+
constructor(client: CogniteClient, model: CdfModelNodeCollectionDataProvider);
|
|
21
|
+
/**
|
|
22
|
+
* Populates the collection with the nodes with the IDs provided. All children of
|
|
23
|
+
* the nodes are also included in the collection.
|
|
24
|
+
* @param nodeIds IDs of nodes to include in the collection.
|
|
25
|
+
* @returns Promise that resolves when the collection is populated.
|
|
26
|
+
*/
|
|
27
|
+
executeFilter(nodeIds: number[]): Promise<void>;
|
|
28
|
+
serialize(): SerializedNodeCollection;
|
|
29
|
+
static deserialize(descriptor: SerializedNodeCollection, context: NodeCollectionSerializationContext): Promise<NodeIdNodeCollection>;
|
|
30
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { ListResponse } from '@cognite/sdk';
|
|
6
|
-
import { IndexSet, NumericRange } from '../../utilities';
|
|
7
|
-
import { AreaCollection } from './prioritized/AreaCollection';
|
|
8
|
-
/**
|
|
9
|
-
* Helper class that populates an IndexSet based on a paged results from the Cognite SDK.
|
|
10
|
-
*/
|
|
11
|
-
export declare class PopulateIndexSetFromPagedResponseHelper<T> {
|
|
12
|
-
private readonly _itemsToTreeIndexRangesCallback;
|
|
13
|
-
private readonly _itemsToAreasCallback;
|
|
14
|
-
private readonly _notifyChangedCallback;
|
|
15
|
-
private _ongoingOperations;
|
|
16
|
-
private _interrupted;
|
|
17
|
-
private readonly _indexSet;
|
|
18
|
-
private readonly _areas;
|
|
19
|
-
constructor(itemsToTreeIndexRangesCallback: (items: T[]) => NumericRange[], itemsToAreasCallback: (items: T[]) => Promise<THREE.Box3[]>, notifySetChangedCallback: () => void);
|
|
20
|
-
interrupt(): void;
|
|
21
|
-
get isLoading(): boolean;
|
|
22
|
-
get indexSet(): IndexSet;
|
|
23
|
-
get areas(): AreaCollection;
|
|
24
|
-
/**
|
|
25
|
-
* Loops through all the pages of the provided response and populated the IndexSet provided.
|
|
26
|
-
* @param request
|
|
27
|
-
* @returns True if the operation was completed, false if it was interrupted using {@link interrupt}.
|
|
28
|
-
*/
|
|
29
|
-
pageResults(request: Promise<ListResponse<T[]>>): Promise<boolean>;
|
|
30
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
import { ListResponse } from '@cognite/sdk';
|
|
6
|
+
import { IndexSet, NumericRange } from '../../utilities';
|
|
7
|
+
import { AreaCollection } from './prioritized/AreaCollection';
|
|
8
|
+
/**
|
|
9
|
+
* Helper class that populates an IndexSet based on a paged results from the Cognite SDK.
|
|
10
|
+
*/
|
|
11
|
+
export declare class PopulateIndexSetFromPagedResponseHelper<T> {
|
|
12
|
+
private readonly _itemsToTreeIndexRangesCallback;
|
|
13
|
+
private readonly _itemsToAreasCallback;
|
|
14
|
+
private readonly _notifyChangedCallback;
|
|
15
|
+
private _ongoingOperations;
|
|
16
|
+
private _interrupted;
|
|
17
|
+
private readonly _indexSet;
|
|
18
|
+
private readonly _areas;
|
|
19
|
+
constructor(itemsToTreeIndexRangesCallback: (items: T[]) => NumericRange[], itemsToAreasCallback: (items: T[]) => Promise<THREE.Box3[]>, notifySetChangedCallback: () => void);
|
|
20
|
+
interrupt(): void;
|
|
21
|
+
get isLoading(): boolean;
|
|
22
|
+
get indexSet(): IndexSet;
|
|
23
|
+
get areas(): AreaCollection;
|
|
24
|
+
/**
|
|
25
|
+
* Loops through all the pages of the provided response and populated the IndexSet provided.
|
|
26
|
+
* @param request
|
|
27
|
+
* @returns True if the operation was completed, false if it was interrupted using {@link interrupt}.
|
|
28
|
+
*/
|
|
29
|
+
pageResults(request: Promise<ListResponse<T[]>>): Promise<boolean>;
|
|
30
|
+
}
|
|
@@ -1,57 +1,45 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
private readonly
|
|
28
|
-
private
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
[category: string]: {
|
|
47
|
-
[key: string]: string;
|
|
48
|
-
};
|
|
49
|
-
}): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Clears the node collection and interrupts any ongoing operations.
|
|
52
|
-
*/
|
|
53
|
-
clear(): void;
|
|
54
|
-
getIndexSet(): IndexSet;
|
|
55
|
-
getAreas(): AreaCollection;
|
|
56
|
-
serialize(): SerializedNodeCollection;
|
|
57
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
+
import { SerializedNodeCollection } from './SerializedNodeCollection';
|
|
6
|
+
import { CdfModelNodeCollectionDataProvider } from './CdfModelNodeCollectionDataProvider';
|
|
7
|
+
import { CdfNodeCollectionBase } from './CdfNodeCollectionBase';
|
|
8
|
+
/**
|
|
9
|
+
* Options for {@link PropertyFilterNodeCollection}.
|
|
10
|
+
*/
|
|
11
|
+
export declare type PropertyFilterNodeCollectionOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* How many partitions to split the request into. More partitions can yield better performance
|
|
14
|
+
* for queries with very large result set (in order of magnitude 100.000 plus).
|
|
15
|
+
* Defaults to 1.
|
|
16
|
+
*/
|
|
17
|
+
requestPartitions?: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Represents a set of nodes that has matching node properties to a provided filter. Note that
|
|
21
|
+
* a node is considered to match if it or a {@link NodeCollection} ancestors match the filter.
|
|
22
|
+
*/
|
|
23
|
+
export declare class PropertyFilterNodeCollection extends CdfNodeCollectionBase {
|
|
24
|
+
static readonly classToken = "PropertyFilterNodeCollection";
|
|
25
|
+
private readonly _client;
|
|
26
|
+
private readonly _model;
|
|
27
|
+
private readonly _options;
|
|
28
|
+
private readonly _filter;
|
|
29
|
+
constructor(client: CogniteClient, model: CdfModelNodeCollectionDataProvider, options?: PropertyFilterNodeCollectionOptions);
|
|
30
|
+
/**
|
|
31
|
+
* Populates the node collection with nodes matching the provided filter. This will replace
|
|
32
|
+
* the current nodes held by the filter.
|
|
33
|
+
* @param filter A filter for matching node properties.
|
|
34
|
+
* @example
|
|
35
|
+
* ```
|
|
36
|
+
* set.executeFilter({ 'PDMS': { 'Module': 'AQ550' }});
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
executeFilter(filter: {
|
|
40
|
+
[category: string]: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
serialize(): SerializedNodeCollection;
|
|
45
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2022 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
export declare type SerializedNodeCollection = {
|
|
5
|
-
token: string;
|
|
6
|
-
state: any;
|
|
7
|
-
options?: any;
|
|
8
|
-
};
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
export declare type SerializedNodeCollection = {
|
|
5
|
+
token: string;
|
|
6
|
+
state: any;
|
|
7
|
+
options?: any;
|
|
8
|
+
};
|