@cognite/reveal 4.0.0-dev.20221110 → 4.0.0-dev.20221114
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/{index.d.ts → dist/api-entry-points/core.d.ts} +11 -11
- package/{extensions → dist/api-entry-points}/datasource.d.ts +0 -0
- package/{tools.d.ts → dist/api-entry-points/tools.d.ts} +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +684 -0
- package/dist/index.js.map +1 -0
- package/{packages → dist/packages}/360-images/index.d.ts +0 -0
- package/{packages → dist/packages}/360-images/src/Image360Entity.d.ts +0 -0
- package/{packages → dist/packages}/360-images/src/Image360EntityFactory.d.ts +0 -0
- package/{packages → dist/packages}/360-images/src/Image360Facade.d.ts +0 -0
- package/{packages → dist/packages}/360-images/src/Image360Icon.d.ts +0 -0
- package/{packages → dist/packages}/api/index.d.ts +0 -0
- package/{packages → dist/packages}/api/src/api-helpers/Image360ApiHelper.d.ts +0 -0
- package/{packages → dist/packages}/api/src/public/RevealManager.d.ts +0 -0
- package/{packages → dist/packages}/api/src/public/createRevealManager.d.ts +0 -0
- package/{packages → dist/packages}/api/src/public/migration/Cognite3DViewer.d.ts +0 -0
- package/{packages → dist/packages}/api/src/public/migration/renderOptionsHelpers.d.ts +0 -0
- package/{packages → dist/packages}/api/src/public/migration/types.d.ts +0 -0
- package/{packages → dist/packages}/api/src/public/types.d.ts +0 -0
- package/{packages → dist/packages}/api/src/storage/RevealManagerHelper.d.ts +0 -0
- package/{packages → dist/packages}/api/src/utilities/Spinner.d.ts +0 -0
- package/{packages → dist/packages}/api/src/utilities/ViewStateHelper.d.ts +0 -0
- package/{packages → dist/packages}/api/src/utilities/reflection.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/index.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/CadLoadingHints.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/CadManager.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/CadModelBudget.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/CadModelUpdateHandler.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/InternalRevealCadOptions.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/createCadManager.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/ModelStateHandler.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/SectorDownloadScheduler.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/SectorLoader.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/ByScreenSizeSectorCuller.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/WeightFunctionsHelper.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/computeNdcAreaOfBox.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/computeSectorCost.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/takensectors/TakenSectorMapBase.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/takensectors/TakenV9SectorMap.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/takensectors/index.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/transformBoxToNDC.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/culling/types.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/sector/rxSectorUtilities.d.ts +0 -0
- package/{packages → dist/packages}/cad-geometry-loaders/src/utilities/PromiseUtils.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/index.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/CadModelFactory.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/batching/GeometryBatchingManager.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/picking/PickingHandler.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/picking/readPixelsFromTargetAsync.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/types.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/utilities/BoundingBoxClipper.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/utilities/NodeIdAndTreeIndexMaps.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/utilities/callActionWithIndicesAsync.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/wrappers/CadNode.d.ts +0 -0
- package/{packages → dist/packages}/cad-model/src/wrappers/CogniteCadModel.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/index.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/cad/LevelOfDetail.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/cad/filterPrimitivesCommon.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/cad/filterPrimitivesV9.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/cad/types.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/CadMetadataParser.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/CadModelClipper.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/CadModelMetadata.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/parsers/CadMetadataParserGltf.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/parsers/types.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/metadata/types.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/sector/RootSectorNode.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/sector/SectorNode.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/utilities/SectorScene.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/utilities/SectorSceneFactory.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/utilities/computeBoundingBoxFromAttributes.d.ts +0 -0
- package/{packages → dist/packages}/cad-parsers/src/utilities/types.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/index.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/AssetNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/CdfModelNodeCollectionDataProvider.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/CdfNodeCollectionBase.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/CombineNodeCollectionBase.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/IntersectionNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/InvertedNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/NodeAppearance.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/NodeAppearanceProvider.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/NodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/NodeCollectionDeserializer.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/NodeIdNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/PopulateIndexSetFromPagedResponseHelper.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/PropertyFilterNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/SerializedNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/SinglePropertyFilterNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/TreeIndexNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/UnionNodeCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/prioritized/AreaCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/prioritized/BoxClusterer.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/prioritized/ClusteredAreaCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/prioritized/EmptyAreaCollection.d.ts +0 -0
- package/{packages → dist/packages}/cad-styling/src/prioritized/types.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/index.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/CameraManager.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/CameraManagerHelper.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/ComboControls.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/DefaultCameraManager.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/Keyboard.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/ProxyCameraManager.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/StationaryCameraManager.d.ts +0 -0
- package/{packages → dist/packages}/camera-manager/src/types.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/index.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/Image360Provider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/ModelDataProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/ModelIdentifier.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/ModelMetadataProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/PointCloudStylableObjectProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/image-360-data-providers/Cdf360ImageEventProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/image-360-data-providers/Local360ImageProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/metadata-providers/CdfModelMetadataProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/metadata-providers/LocalModelMetadataProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/model-data-providers/CdfModelDataProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/model-data-providers/LocalModelDataProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/model-identifiers/CdfModelIdentifier.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/model-identifiers/LocalModelIdentifier.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/pointcloud-stylable-object-providers/CdfPointCloudStylableObjectProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/pointcloud-stylable-object-providers/StylableObject.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/types.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/utilities/applyDefaultModelTransformation.d.ts +0 -0
- package/{packages → dist/packages}/data-providers/src/utilities/fetchWithStatusCheck.d.ts +0 -0
- package/{packages → dist/packages}/data-source/index.d.ts +0 -0
- package/{packages → dist/packages}/data-source/src/CdfDataSource.d.ts +0 -0
- package/{packages → dist/packages}/data-source/src/DataSource.d.ts +0 -0
- package/{packages → dist/packages}/data-source/src/LocalDataSource.d.ts +0 -0
- package/{packages → dist/packages}/logger/index.d.ts +0 -0
- package/{packages → dist/packages}/logger/src/Log.d.ts +0 -0
- package/{packages → dist/packages}/metrics/index.d.ts +0 -0
- package/{packages → dist/packages}/metrics/src/MetricsLogger.d.ts +0 -0
- package/{packages → dist/packages}/metrics/src/types.d.ts +0 -0
- package/{packages → dist/packages}/model-base/index.d.ts +0 -0
- package/{packages → dist/packages}/model-base/src/MetadataRepository.d.ts +0 -0
- package/{packages → dist/packages}/model-base/src/SupportedModelTypes.d.ts +0 -0
- package/{packages → dist/packages}/model-base/src/types.d.ts +0 -0
- package/{packages → dist/packages}/nodes-api/index.d.ts +0 -0
- package/{packages → dist/packages}/nodes-api/src/NodesApiClient.d.ts +0 -0
- package/{packages → dist/packages}/nodes-api/src/NodesCdfClient.d.ts +0 -0
- package/{packages → dist/packages}/nodes-api/src/NodesLocalClient.d.ts +0 -0
- package/{packages → dist/packages}/nodes-api/src/types.d.ts +0 -0
- package/{packages → dist/packages}/pointcloud-styling/index.d.ts +0 -0
- package/{packages → dist/packages}/pointcloud-styling/src/AnnotationIdPointCloudObjectCollection.d.ts +0 -0
- package/{packages → dist/packages}/pointcloud-styling/src/PointCloudAppearance.d.ts +0 -0
- package/{packages → dist/packages}/pointcloud-styling/src/PointCloudObjectCollection.d.ts +0 -0
- package/{packages → dist/packages}/pointcloud-styling/src/StyledPointCloudObjectCollection.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/index.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/CognitePointCloudModel.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudBudget.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudFactory.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudIntersection.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudManager.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudMetadata.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudMetadataRepository.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudNode.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PointCloudPickingHandler.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PotreeGroupWrapper.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PotreeNodeWrapper.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/PotreePnextLoader.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/classificationsProviders/IPointClassificationsProvider.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/classificationsProviders/LocalPointClassificationsProvider.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/constants.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/createPointCloudManager.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/decomposeStylableObjects.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/Potree.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometry.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/geometry/IPointCloudTreeGeometryNode.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometry.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/geometry/translationUtils.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/index.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/loading/ClassificationInfo.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/loading/EptBinaryLoader.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/loading/EptJson.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/loading/EptLoader.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/loading/ILoader.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/loading/globalLoadingCounter.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNode.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/IPointCloudTreeNodeBase.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/PointAttributes.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/PointCloudOctree.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/PointCloudOctreeNode.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/PointCloudOctreePicker.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/PointCloudOctreePickerHelper.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/tree/PointCloudTree.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/types/IPotree.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/types/IVisibilityUpdateResult.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/types/type-predicates.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/types/types.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/BinaryHeap.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/WorkerPool.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/async-blocking-queue.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/bounds.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/box3-helper.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/createObjectIdMaps.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/lru.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/utils/utils.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/version.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/workers/assignPointsToObjectsWithWasm.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/workers/eptBinaryDecoder.worker.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/workers/parseEpt.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/potree-three-loader/workers/types.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/src/types.d.ts +0 -0
- package/{packages → dist/packages}/pointclouds/wasm/index.d.ts +0 -0
- package/{packages → dist/packages}/rendering/index.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/CadMaterialManager.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/PointCloudMaterialManager.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/RenderPass.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/RenderPipelineExecutor.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/RenderPipelineProvider.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pipeline-executors/BasicPipelineExecutor.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/PointCloudObjectIdMaps.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/classification.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/constants.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/enums.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/gradients/SpectralGradient.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/index.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/texture-generation.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/pointcloud-rendering/types.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-passes/GeometryPass.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-passes/PointCloudEffectsPass.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-passes/PostProcessingPass.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-passes/SSAOPass.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-passes/types.d.ts +1 -0
- package/{packages → dist/packages}/rendering/src/render-pipeline-providers/CadGeometryRenderModePipelineProvider.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-pipeline-providers/CadGeometryRenderPipelineProvider.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-pipeline-providers/DefaultRenderPipelineProvider.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-pipeline-providers/PointCloudRenderPipelineProvider.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-pipeline-providers/pointCloudParameterUtils.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/render-pipeline-providers/types.d.ts +1 -0
- package/{packages → dist/packages}/rendering/src/rendering/NodeAppearanceTextureBuilder.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/rendering/RenderMode.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/rendering/matCapTextureData.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/rendering/materials.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/rendering/shaders.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/rendering/types.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/transform/NodeTransformProvider.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/transform/NodeTransformTextureBuilder.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/transform/TransformOverrideBuffer.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/utilities/renderUtilities.d.ts +0 -0
- package/{packages → dist/packages}/rendering/src/utilities/types.d.ts +0 -0
- package/{packages → dist/packages}/sector-loader/index.d.ts +0 -0
- package/{packages → dist/packages}/sector-loader/src/GltfSectorLoader.d.ts +0 -0
- package/{packages → dist/packages}/sector-loader/src/GltfSectorRepository.d.ts +0 -0
- package/{packages → dist/packages}/sector-loader/src/SectorRepository.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/index.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/DracoDecoderHelper.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/GltfSectorParser.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/constants.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/lib/draco_decoder_gltf.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/reveal-glb-parser/GlbMetadataParser.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/reveal-glb-parser/primitiveGeometries.d.ts +0 -0
- package/{packages → dist/packages}/sector-parser/src/types.d.ts +0 -0
- package/{packages → dist/packages}/tools/index.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/AxisView/AxisViewTool.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/AxisView/types.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Cognite3DViewerToolBase.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/DebugCameraTool.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/ExplodedViewTool.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/HtmlOverlay/BucketGrid2D.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Measurement/MeasurementLabels.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Measurement/MeasurementLine.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Measurement/MeasurementManager.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Measurement/MeasurementTool.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Measurement/types.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Timeline/Keyframe.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Timeline/TimelineTool.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/Timeline/types.d.ts +0 -0
- package/{packages → dist/packages}/tools/src/types.d.ts +0 -0
- package/{packages → dist/packages}/utilities/index.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/CameraConfiguration.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/DeferredPromise.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/IndexSet.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/NumericRange.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/RandomColors.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/SceneHandler.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/WebGLRendererStateHelper.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/assertNever.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/cache/MemoryRequestCache.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/cache/MostFrequentlyUsedCache.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/cache/RequestCache.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/calculateVolumeOfMesh.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/counterMap.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/determinePowerOfTwoDimensions.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/device.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/disposeAttributeArrayOnUpload.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/events/EventTrigger.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/events/InputHandler.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/events/clickOrTouchEventOffset.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/events/index.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/events/types.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/indexset/IndexSet.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/indexset/IntermediateIndexNode.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/indexset/LeafIndexNode.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/isMobileOrTablet.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/linalg.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/objectTraversal.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/Box.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/CompositeShape.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/Cylinder.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/ISerializableShape.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/IShape.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/SerializableBox.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/SerializableCompositeShape.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/SerializableCylinder.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/shapes/index.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/AutoDisposeGroup.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/BoundingBoxLOD.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/createDistinctColors.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/createFullScreenTriangleGeometry.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/fitCameraToBoundingBox.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/fromThreeVector3.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/isBox3OnPositiveSideOfPlane.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/toThreeBox3.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/unionBoxes.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/three/visitBox3CornerPoints.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/transformCameraConfiguration.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/types.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/index.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/message-types.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/on-main.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/on-worker.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/util.d.ts +0 -0
- package/{packages → dist/packages}/utilities/src/worldToViewport.d.ts +0 -0
- package/package.json +179 -48
- package/d08137c701d843ea90a7.worker.js.LICENSE.txt +0 -24
- package/extensions/datasource.js +0 -3
- package/extensions/datasource.js.LICENSE.txt +0 -3
- package/extensions/datasource.js.map +0 -1
- package/index.js +0 -3
- package/index.js.LICENSE.txt +0 -19
- package/index.js.map +0 -1
- package/tools.js +0 -3
- package/tools.js.LICENSE.txt +0 -7
- package/tools.js.map +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -15,6 +15,7 @@ export declare type CadGeometryRenderTargets = {
|
|
|
15
15
|
inFront: THREE.WebGLRenderTarget;
|
|
16
16
|
};
|
|
17
17
|
export declare type PointCloudRenderTargets = {
|
|
18
|
+
pointCloudLogDepth: THREE.WebGLRenderTarget;
|
|
18
19
|
pointCloud: THREE.WebGLRenderTarget;
|
|
19
20
|
};
|
|
20
21
|
export declare type PostProcessingPipelineOptions = CadGeometryRenderTargets & PointCloudRenderTargets & {
|
package/{packages → dist/packages}/rendering/src/rendering/NodeAppearanceTextureBuilder.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{packages → dist/packages}/sector-parser/src/reveal-glb-parser/GlbMetadataParser.d.ts
RENAMED
|
File without changes
|
package/{packages → dist/packages}/sector-parser/src/reveal-glb-parser/primitiveGeometries.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{packages → dist/packages}/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{packages → dist/packages}/utilities/src/three/createFullScreenTriangleGeometry.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/message-types.d.ts
RENAMED
|
File without changes
|
package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/on-main.d.ts
RENAMED
|
File without changes
|
package/{packages → dist/packages}/utilities/src/workers/workerize-transferable/on-worker.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,49 +1,180 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@cognite/reveal",
|
|
3
|
+
"version": "4.0.0-dev.20221114",
|
|
4
|
+
"description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
|
|
5
|
+
"homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/cognitedata/reveal.git",
|
|
9
|
+
"directory": "viewer"
|
|
10
|
+
},
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"author": "Lars Moastuen <lars.moastuen@cognite.com>",
|
|
13
|
+
"contributors": [
|
|
14
|
+
"Joachim Bjørne <joachim.bjorne@cognite.com>",
|
|
15
|
+
"Christopher Tannum <christopher.tannum@cognite.com>",
|
|
16
|
+
"Maksim Nesterenko <maksim.nesterenko@cognite.com>"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./tools": {
|
|
23
|
+
"types": "./dist/api-entry-points/tools.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./extensions/datasource": {
|
|
27
|
+
"types": "./dist/api-entry-points/datasource.d.ts",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/api-entry-points/core.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"workspaces": [
|
|
36
|
+
"packages/*"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "yarn run clean && yarn run build:wasm && webpack --env development",
|
|
40
|
+
"build:wasm": "yarn workspaces foreach run run-wasm-pack build --target web ./wasm",
|
|
41
|
+
"build:wasm-test": "yarn workspaces foreach run run-wasm-pack build --target nodejs ./wasm",
|
|
42
|
+
"build:watch": "yarn run clean && yarn run build:wasm && webpack --env development --watch",
|
|
43
|
+
"build:prod": "yarn run clean && yarn run build:wasm && webpack --env production",
|
|
44
|
+
"clean": "shx rm -rf dist/ && shx mkdir -p dist",
|
|
45
|
+
"clean:wasm": "cargo clean --manifest-path ./Cargo.toml",
|
|
46
|
+
"retarget-types": "tsc-alias -p tsconfig.webpack.json -v true",
|
|
47
|
+
"test": "yarn run test:wasm && yarn run test:ts",
|
|
48
|
+
"test:ts": "yarn run build:wasm-test && jest --maxWorkers=4",
|
|
49
|
+
"test:wasm": "yarn workspaces foreach run run-wasm-pack test --headless --chrome ./wasm",
|
|
50
|
+
"test:visual:client": "cross-env JEST_PUPPETEER_CONFIG=visual-tests/jest-puppeteer.config.js jest --config=visual-tests/jest.config.js --verbose",
|
|
51
|
+
"test:visual:server": "webpack-dev-server --config packages/webpack.config.js",
|
|
52
|
+
"test:visual": "yarn run build:wasm && concurrently --passthrough-arguments -k -s \"first\" \"yarn run test:visual:client {@}\" \"yarn run test:visual:server\"",
|
|
53
|
+
"coverage": "yarn run build:wasm-test && jest --coverage",
|
|
54
|
+
"lint": "eslint . --ext .ts,.js --max-warnings 0 --cache",
|
|
55
|
+
"prebump": "yarn version --no-git-tag-version && yarn && cd ../documentation && yarn replace-latest-by-next",
|
|
56
|
+
"bump": " yarn bump:commit && yarn bump:tag && yarn bump:push",
|
|
57
|
+
"bump:commit": "git add -A && cross-var git commit -m \"chore(viewer): bump version $npm_package_version\"",
|
|
58
|
+
"bump:tag": "cross-var git tag $npm_package_name@$npm_package_version",
|
|
59
|
+
"bump:push": "git push -u origin head && git push --tags",
|
|
60
|
+
"release": "yarn build:prod && cd dist && yarn publish --non-interactive",
|
|
61
|
+
"ws:serve": "yarn run build:wasm && webpack-dev-server --config packages/webpack.config.js",
|
|
62
|
+
"ws:test": "cd $INIT_CWD && jest --runInBand",
|
|
63
|
+
"ws:test:wasm": "cd $INIT_CWD && wasm-pack test --chrome --headless ./wasm",
|
|
64
|
+
"ws:update-cargo-index": "cargo update --dry-run",
|
|
65
|
+
"ws:lint": "cd $INIT_CWD && eslint . --ext .ts,.js --max-warnings 0 --cache"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@tweenjs/tween.js": "18.6.4",
|
|
69
|
+
"@types/draco3dgltf": "1.4.0",
|
|
70
|
+
"@types/three": "0.146.0",
|
|
71
|
+
"assert": "2.0.0",
|
|
72
|
+
"async-mutex": "0.4.0",
|
|
73
|
+
"comlink": "4.3.1",
|
|
74
|
+
"glslify": "7.1.1",
|
|
75
|
+
"glslify-import": "3.1.0",
|
|
76
|
+
"lodash": "4.17.21",
|
|
77
|
+
"loglevel": "1.8.0",
|
|
78
|
+
"mixpanel-browser": "2.45.0",
|
|
79
|
+
"path-browserify": "1.0.1",
|
|
80
|
+
"proj4": "2.8.0",
|
|
81
|
+
"rxjs": "7.5.7",
|
|
82
|
+
"skmeans": "0.11.3",
|
|
83
|
+
"three": "0.146.0",
|
|
84
|
+
"three-stdlib": "2.17.3"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@azure/msal-browser": "2.30.0",
|
|
88
|
+
"@cognite/sdk": "7.11.0",
|
|
89
|
+
"@cognite/sdk-core": "4.4.0",
|
|
90
|
+
"@types/dat.gui": "0.7.7",
|
|
91
|
+
"@types/expect-puppeteer": "5.0.2",
|
|
92
|
+
"@types/glob": "8.0.0",
|
|
93
|
+
"@types/jest": "29.2.2",
|
|
94
|
+
"@types/jest-environment-puppeteer": "5.0.3",
|
|
95
|
+
"@types/jest-image-snapshot": "5.1.0",
|
|
96
|
+
"@types/jsdom": "20.0.0",
|
|
97
|
+
"@types/lodash": "4.14.188",
|
|
98
|
+
"@types/mixpanel-browser": "2.38.0",
|
|
99
|
+
"@types/node": "18.11.3",
|
|
100
|
+
"@types/offscreencanvas": "2019.7.0",
|
|
101
|
+
"@types/proj4": "2.5.2",
|
|
102
|
+
"@types/random-seed": "0.3.3",
|
|
103
|
+
"@types/skmeans": "0.11.3",
|
|
104
|
+
"@types/stats": "0.16.30",
|
|
105
|
+
"@types/tween.js": "18.5.1",
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "5.42.0",
|
|
107
|
+
"@typescript-eslint/parser": "5.42.0",
|
|
108
|
+
"concurrently": "7.5.0",
|
|
109
|
+
"copy-pkg-json-webpack-plugin": "0.0.40",
|
|
110
|
+
"copy-webpack-plugin": "11.0.0",
|
|
111
|
+
"core-js": "3.26.0",
|
|
112
|
+
"cross-env": "7.0.3",
|
|
113
|
+
"cross-var": "1.1.0",
|
|
114
|
+
"dat.gui": "0.7.9",
|
|
115
|
+
"eslint": "8.26.0",
|
|
116
|
+
"eslint-config-prettier": "8.5.0",
|
|
117
|
+
"eslint-plugin-header": "3.1.1",
|
|
118
|
+
"eslint-plugin-jsdoc": "39.3.13",
|
|
119
|
+
"eslint-plugin-lodash": "7.4.0",
|
|
120
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
121
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
122
|
+
"file-loader": "6.2.0",
|
|
123
|
+
"gl": "6.0.1",
|
|
124
|
+
"glob": "8.0.3",
|
|
125
|
+
"glslify-loader": "2.0.0",
|
|
126
|
+
"html-webpack-plugin": "5.5.0",
|
|
127
|
+
"husky": "8.0.1",
|
|
128
|
+
"jest": "29.2.2",
|
|
129
|
+
"jest-canvas-mock": "2.4.0",
|
|
130
|
+
"jest-environment-jsdom": "29.2.2",
|
|
131
|
+
"jest-extended": "3.1.0",
|
|
132
|
+
"jest-image-snapshot": "5.2.0",
|
|
133
|
+
"jest-puppeteer": "6.1.1",
|
|
134
|
+
"jsdom": "20.0.2",
|
|
135
|
+
"lint-staged": "13.0.3",
|
|
136
|
+
"moq.ts": "9.0.2",
|
|
137
|
+
"nock": "13.2.9",
|
|
138
|
+
"prettier": "2.7.1",
|
|
139
|
+
"process": "0.11.10",
|
|
140
|
+
"puppeteer": "19.2.2",
|
|
141
|
+
"random-seed": "0.3.0",
|
|
142
|
+
"raw-loader": "4.0.2",
|
|
143
|
+
"remove-files-webpack-plugin": "1.5.0",
|
|
144
|
+
"resize-observer-polyfill": "1.5.1",
|
|
145
|
+
"rimraf": "3.0.2",
|
|
146
|
+
"run-script-os": "1.1.6",
|
|
147
|
+
"shx": "0.3.4",
|
|
148
|
+
"stats.js": "0.17.0",
|
|
149
|
+
"ts-jest": "29.0.3",
|
|
150
|
+
"ts-loader": "9.4.1",
|
|
151
|
+
"tsc-alias": "1.7.0",
|
|
152
|
+
"typescript": "4.8.4",
|
|
153
|
+
"wasm-pack": "0.10.3",
|
|
154
|
+
"webpack": "5.74.0",
|
|
155
|
+
"webpack-bundle-analyzer": "4.6.1",
|
|
156
|
+
"webpack-cli": "4.10.0",
|
|
157
|
+
"webpack-dev-server": "4.11.1",
|
|
158
|
+
"webpack-log": "3.0.2",
|
|
159
|
+
"webpack-node-externals": "3.0.0",
|
|
160
|
+
"whatwg-fetch": "3.6.2",
|
|
161
|
+
"workerize-loader": "2.0.2"
|
|
162
|
+
},
|
|
163
|
+
"peerDependencies": {
|
|
164
|
+
"@cognite/sdk": "7.11.0",
|
|
165
|
+
"@cognite/sdk-core": "^4.1.0"
|
|
166
|
+
},
|
|
167
|
+
"glslify": {
|
|
168
|
+
"transform": [
|
|
169
|
+
"glslify-import"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"husky": {
|
|
173
|
+
"hooks": {
|
|
174
|
+
"pre-push": "yarn run lint"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"files": [
|
|
178
|
+
"./dist/*"
|
|
179
|
+
]
|
|
180
|
+
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Adopted from https://github.com/naoak/workerize-transferable
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/*!
|
|
6
|
-
* Copyright 2021 Cognite AS
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/*!
|
|
10
|
-
* Copyright 2022 Cognite AS
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/*!
|
|
14
|
-
* The buffer module from node.js, for the browser.
|
|
15
|
-
*
|
|
16
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
17
|
-
* @license MIT
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright 2010-2022 Three.js Authors
|
|
23
|
-
* SPDX-License-Identifier: MIT
|
|
24
|
-
*/
|
package/extensions/datasource.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see datasource.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@cognite/reveal"]=t():e["@cognite/reveal"]=t()}("undefined"!=typeof self?self:this,(()=>(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{CdfModelIdentifier:()=>s,File3dFormat:()=>r});class s{constructor(e,t){this.revealInternalId=Symbol(`${e}/${t}`),this.modelId=e,this.revisionId=t}toString(){return`${s.name} (${String(this.revealInternalId)})`}}const i=require("three");var r,o;(o=r||(r={})).EptPointCloud="ept-pointcloud",o.GltfCadModel="gltf-directory",o.AnyFormat="all-outputs",(new i.Matrix4).set(1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1),require("lodash/groupBy"),require("lodash/orderBy"),require("lodash/zipWith"),require("assert"),require("@cognite/sdk-core");class n{static color(e){const t=n._colors.get(e);if(void 0!==t)return t;const s=n.generateRandomColor();return n._colors.set(e,s),s}static colorRGB(e){const t=n.color(e);return[Math.floor(255*t.r),Math.floor(255*t.g),Math.floor(255*t.b)]}static colorCSS(e){const[t,s,i]=n.colorRGB(e);return`rgb(${t}, ${s}, ${i})`}static generateRandomColor(){const e=Math.random(),t=.4+.6*Math.random(),s=.3+.4*Math.random();return(new i.Color).setHSL(e,t,s)}}function a(e,t){const s=t.getBoundingClientRect();if(e instanceof MouseEvent)return{offsetX:e.clientX-s.left,offsetY:e.clientY-s.top};if(e.changedTouches.length>0){const t=e.changedTouches[0];return{offsetX:t.clientX-s.left,offsetY:t.clientY-s.top}}return{offsetX:-1,offsetY:-1}}n._colors=new Map;class l{constructor(){this._listeners=[]}subscribe(e){this._listeners.push(e)}unsubscribe(e){const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}unsubscribeAll(){this._listeners.splice(0)}fire(...e){this._listeners.forEach((t=>t(...e)))}}const h=require("lodash/debounce");var d,c,u=e.n(h);function _(e,t){throw new Error(t||"Unexpected object: "+e)}class f{constructor(e){this._events={click:new l,hover:new l},this.onHoverCallback=u()((e=>{this._events.hover.fire(a(e,this.domElement))}),100),this.domElement=e,this.setupEventListeners()}on(e,t){switch(e){case"click":this._events.click.subscribe(t);break;case"hover":this._events.hover.subscribe(t);break;default:_(e)}}off(e,t){switch(e){case"click":this._events.click.unsubscribe(t);break;case"hover":this._events.hover.unsubscribe(t);break;default:_(e)}}dispose(){!function(e){for(const t of Object.keys(e))e[t].unsubscribeAll()}(this._events)}setupEventListeners(){const{domElement:e}=this;let t=!1,s=0,r=!1;const o=new i.Vector2,n=i=>{this.handleClickEvent(i,o,t,r,s),t=!1,r=!1,e.removeEventListener("mouseup",n),e.removeEventListener("touchend",n),e.addEventListener("mousemove",this.onHoverCallback)},l=i=>{t=!0,r=!0,s=i.timeStamp;const{offsetX:l,offsetY:h}=a(i,e);o.set(l,h),e.addEventListener("mouseup",n),e.addEventListener("touchend",n),e.removeEventListener("mousemove",this.onHoverCallback)};e.addEventListener("mousedown",l),e.addEventListener("touchstart",l),e.addEventListener("mousemove",this.onHoverCallback)}isProperClick(e,t,s,i,r){const{offsetX:o,offsetY:n}=a(e,this.domElement),l=e.timeStamp-r,h=Math.abs(o-t.x)+Math.abs(n-t.y)>f.maxMoveDistance;return s&&i&&l<f.maxClickDuration&&!h}handleClickEvent(e,t,s,i,r){if(this.isProperClick(e,t,s,i,r)){const t={...a(e,this.domElement),button:e instanceof MouseEvent?e.button:void 0};this._events.click.fire(t)}}}f.maxMoveDistance=8,f.maxClickDuration=250,Math.log(2),new i.BufferGeometry;class v extends i.Group{constructor(){super(...arguments),this._isDisposed=!1,this._referenceCount=0}reference(){this.ensureNotDisposed(),this._referenceCount++}dereference(){if(this.ensureNotDisposed(),0===this._referenceCount)throw new Error("No references");0==--this._referenceCount&&this.dispose()}dispose(){this.ensureNotDisposed(),this._isDisposed=!0;for(const e of this.children)e instanceof THREE.Mesh&&void 0!==e.geometry&&(e.geometry.dispose(),e.geometry=emptyGeometry),e instanceof THREE.BufferGeometry&&e.dispose();this.clear()}ensureNotDisposed(){if(this._isDisposed)throw new Error("Already disposed/dereferenced")}}new i.Vector3,new i.Box3;class p extends i.Object3D{constructor(e){super(),this._activeLevel=0,this._levels=[],this.isLOD=!0,this.autoUpdate=!0,this._boundingBox=e.clone(),this.type="BoundingBoxLOD"}setBoundingBox(e){this._boundingBox.copy(e)}addLevel(e,t=0){this._levels.push({object:e,distance:Math.abs(t)}),this._levels.sort(((e,t)=>t.distance-e.distance)),e.visible=!1,this.add(e)}getCurrentLevel(){return this._levels.length>0?this._levels.length-this._activeLevel-1:0}update(e){this.updateCurrentLevel(e)}updateCurrentLevel(e){const t=this._levels,{camPos:s,bounds:i}=updateVars;i.copy(this._boundingBox).applyMatrix4(this.matrixWorld);const r=e instanceof THREE.PerspectiveCamera?e.zoom:1;if(t.length>0){s.setFromMatrixPosition(e.matrixWorld);const o=i.distanceToPoint(s)/r;t[this._activeLevel].object.visible=!1,this._activeLevel=t.findIndex((e=>o>=e.distance)),this._activeLevel=this._activeLevel>=0?this._activeLevel:t.length-1,t[this._activeLevel].object.visible=!0}}}new i.Vector3;class g{constructor(e){this._originalState={},this._renderer=e,this._originalState={}}setScissor(e,t,s,r){const o=this._renderer.getScissor(new i.Vector4);this._originalState={scissorData:o,...this._originalState},this._renderer.setScissor(e,t,s,r)}setScissorTest(e){this._originalState={scissorTest:this._renderer.getScissorTest(),...this._originalState},this._renderer.setScissorTest(e)}setClearColor(e,t){this._originalState={clearColor:this._renderer.getClearColor(new i.Color),clearAlpha:this._renderer.getClearAlpha(),...this._originalState},this._renderer.setClearColor(e,t)}setWebGLState(e,t=g.DefaultWebGLState){var s,i,r,o,n,a,l;if(this._originalState={webGLState:{buffers:(null==e?void 0:e.buffers)?{}:void 0},...this._originalState},null===(s=null==e?void 0:e.buffers)||void 0===s?void 0:s.depth){const s=null===(i=e.buffers.depth)||void 0===i?void 0:i.test,h=null===(r=e.buffers.depth)||void 0===r?void 0:r.mask;this._originalState.webGLState.buffers.depth={test:void 0!==s?null===(n=null===(o=t.buffers)||void 0===o?void 0:o.depth)||void 0===n?void 0:n.test:void 0,mask:void 0!==h?null===(l=null===(a=t.buffers)||void 0===a?void 0:a.depth)||void 0===l?void 0:l.mask:void 0},void 0!==h&&this._renderer.state.buffers.depth.setMask(h),void 0!==s&&this._renderer.state.buffers.depth.setTest(s)}}setSize(e,t){this._originalState={size:this._renderer.getSize(new i.Vector2),...this._originalState},this._renderer.setSize(e,t)}set localClippingEnabled(e){this._originalState={localClippingEnabled:this._renderer.localClippingEnabled,...this._originalState},this._renderer.localClippingEnabled=e}set autoClear(e){this._originalState={autoClear:this._renderer.autoClear,...this._originalState},this._renderer.autoClear=e}set autoClearDepth(e){this._originalState={autoClearDepth:this._renderer.autoClearDepth,...this._originalState},this._renderer.autoClearDepth=e}setRenderTarget(e){this._originalState={renderTarget:this._renderer.getRenderTarget(),...this._originalState},this._renderer.setRenderTarget(e)}resetState(){var e,t,s,i;if(void 0!==this._originalState.autoClear&&(this._renderer.autoClear=this._originalState.autoClear),void 0!==this._originalState.autoClearDepth&&(this._renderer.autoClearDepth=this._originalState.autoClearDepth),void 0!==this._originalState.clearColor&&this._renderer.setClearColor(this._originalState.clearColor,this._originalState.clearAlpha),void 0!==this._originalState.localClippingEnabled&&(this._renderer.localClippingEnabled=this._originalState.localClippingEnabled),void 0!==this._originalState.size&&this._renderer.setSize(this._originalState.size.width,this._originalState.size.height),void 0!==this._originalState.renderTarget&&this._renderer.setRenderTarget(this._originalState.renderTarget),void 0!==this._originalState.scissorData&&this._renderer.setScissor(this._originalState.scissorData),void 0!==this._originalState.scissorTest&&this._renderer.setScissorTest(this._originalState.scissorTest),void 0!==this._originalState.webGLState&&(this._renderer.state.reset(),null===(t=null===(e=this._originalState.webGLState)||void 0===e?void 0:e.buffers)||void 0===t?void 0:t.depth)){const e=null===(s=this._originalState.webGLState.buffers.depth)||void 0===s?void 0:s.test,t=null===(i=this._originalState.webGLState.buffers.depth)||void 0===i?void 0:i.mask;void 0!==t&&this._renderer.state.buffers.depth.setMask(t),void 0!==e&&this._renderer.state.buffers.depth.setTest(e)}this._originalState={}}}g.DefaultWebGLState={buffers:{depth:{mask:!0,test:!0}}};class b{constructor(e){this._value=e,this._lastAccessTime=Date.now()}get value(){return this.touch(),this._value}get lastAccessTime(){return this._lastAccessTime}touch(){this._lastAccessTime=Date.now()}}class m{constructor(e=50,t,s=10){this._data=new Map,this._maxElementsInCache=e,this._defaultCleanupCount=Math.max(s,1),this._removeCallback=t}has(e){return this._data.has(e)}forceInsert(e,t){this.isFull()&&this.cleanCache(this._defaultCleanupCount),this.insert(e,t)}insert(e,t){if(this._data.size<this._maxElementsInCache)this._data.set(e,new b(t));else if(this._maxElementsInCache>0)throw new Error("Cache full, please clean Cache and retry adding data")}remove(e){if(void 0!==this._removeCallback){const t=this._data.get(e);void 0!==t&&this._removeCallback(t.value)}this._data.delete(e)}get(e){const t=this._data.get(e);if(void 0!==t)return t.value;throw new Error(`Cache element ${e} does not exist`)}isFull(){return this._data.size>=this._maxElementsInCache}cleanCache(e){const t=Array.from(this._data.entries());t.sort(((e,t)=>t[1].lastAccessTime-e[1].lastAccessTime));for(let s=0;s<e;s++){const e=t.pop();if(void 0===e)return;this.remove(e[0])}}resize(e){this._maxElementsInCache=e,this._defaultCleanupCount=Math.max(e*m.CLEANUP_COUNT_TO_CAPACITY_RATIO,1),this.isFull()&&this.cleanCache(this._data.size-this._maxElementsInCache)}clear(){if(void 0!==this._removeCallback)for(const e of this._data.values())this._removeCallback(e.value);this._data.clear()}}return m.CLEANUP_COUNT_TO_CAPACITY_RATIO=.2,require("lodash/chunk"),require("lodash/map"),new i.Vector2,new i.Vector3,Symbol.toStringTag,require("lodash/remove"),function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e.g)return e.g;throw new Error("unable to locate global object")}(),(c=d||(d={}))[c.Box=0]="Box",c[c.Cylinder=1]="Cylinder",c[c.Composite=2]="Composite",t})()));
|
|
3
|
-
//# sourceMappingURL=datasource.js.map
|