@cognite/reveal 2.1.0 → 2.1.2
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/core/cad.d.ts +2 -2
- package/core/src/datamodels/base/index.d.ts +1 -1
- package/core/src/datamodels/cad/CadManager.d.ts +2 -7
- package/core/src/datamodels/cad/CadModelFactory.d.ts +2 -3
- package/core/src/datamodels/cad/createCadManager.d.ts +5 -8
- package/core/src/datamodels/cad/picking.d.ts +1 -1
- package/core/src/datamodels/cad/rendering/RenderAlreadyLoadedGeometryProvider.d.ts +1 -2
- package/core/src/datamodels/cad/sector/CadModelClipper.d.ts +1 -1
- package/core/src/datamodels/cad/styling/AssetNodeCollection.d.ts +3 -3
- package/core/src/datamodels/cad/styling/InvertedNodeCollection.d.ts +2 -2
- package/core/src/datamodels/cad/styling/NodeCollectionDeserializer.d.ts +1 -1
- package/core/src/datamodels/cad/styling/PopulateIndexSetFromPagedResponseHelper.d.ts +1 -2
- package/core/src/datamodels/cad/styling/PropertyFilterNodeCollection.d.ts +2 -2
- package/core/src/datamodels/cad/styling/SinglePropertyFilterNodeCollection.d.ts +3 -3
- package/core/src/datamodels/cad/styling/index.d.ts +2 -7
- package/core/src/datamodels/pointcloud/PointCloudFactory.d.ts +1 -1
- package/core/src/datamodels/pointcloud/PointCloudManager.d.ts +1 -1
- package/core/src/datamodels/pointcloud/PointCloudMetadata.d.ts +1 -1
- package/core/src/datamodels/pointcloud/PointCloudMetadataRepository.d.ts +3 -2
- package/core/src/datamodels/pointcloud/PointCloudNode.d.ts +1 -1
- package/core/src/datamodels/pointcloud/PotreeGroupWrapper.d.ts +1 -1
- package/core/src/datamodels/pointcloud/createPointCloudManager.d.ts +4 -6
- package/core/src/index.d.ts +5 -6
- package/core/src/public/RevealManager.d.ts +4 -5
- package/core/src/public/createRevealManager.d.ts +2 -2
- package/core/src/public/migration/Cognite3DModel.d.ts +4 -4
- package/core/src/public/migration/Cognite3DViewer.d.ts +3 -3
- package/core/src/public/migration/RevealManagerHelper.d.ts +3 -3
- package/core/src/public/migration/types.d.ts +1 -1
- package/core/src/public/types.d.ts +2 -78
- package/core/src/utilities/ViewStateHelper.d.ts +2 -2
- package/core/src/utilities/index.d.ts +3 -9
- package/core/src/utilities/reflection.d.ts +0 -6
- package/index.d.ts +1 -0
- package/index.js +160 -122
- package/index.map +1 -1
- package/package.json +3 -3
- package/packages/cad-geometry-loaders/index.d.ts +20 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/CadLoadingHints.d.ts +0 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/CadModelSectorBudget.d.ts +0 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/CadModelUpdateHandler.d.ts +2 -2
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/CadNode.d.ts +5 -8
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/InstancedMeshManager.d.ts +2 -2
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/cameraconfig.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/CadMaterialManager.d.ts +4 -5
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/rendering/EffectRenderManager.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/rendering/createSimpleGeometryMesh.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/rendering/filterInstanceMesh.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/rendering/triangleMeshes.d.ts +1 -1
- package/packages/cad-geometry-loaders/src/material-manager/rendering/types.d.ts +76 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/styling/NodeAppearanceTextureBuilder.d.ts +2 -3
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/styling/NodeTransformProvider.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/styling/NodeTransformTextureBuilder.d.ts +0 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src/material-manager}/styling/TransformOverrideBuffer.d.ts +0 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/CachedRepository.d.ts +3 -4
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/ModelStateHandler.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/Repository.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/RootSectorNode.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/SectorLoader.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/SectorNode.d.ts +2 -2
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/SimpleAndDetailedToSector3D.d.ts +4 -4
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/culling/ByVisibilityGpuSectorCuller.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/culling/OccludingGeometryProvider.d.ts +0 -0
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/culling/OrderSectorsByVisibilityCoverage.d.ts +1 -2
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/culling/SectorCuller.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/culling/TakenSectorTree.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/culling/types.d.ts +1 -3
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/rxSectorUtilities.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-geometry-loaders/src}/sector/sectorUtilities.d.ts +3 -4
- package/{core → packages/cad-geometry-loaders}/src/utilities/PromiseUtils.d.ts +0 -0
- package/{core → packages/cad-geometry-loaders}/src/utilities/arrays.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-geometry-loaders/src/utilities}/float32BufferToMatrix.d.ts +0 -0
- package/{core/src/datamodels/cad/sector → packages/cad-geometry-loaders/src/utilities}/groupMeshesByNumber.d.ts +0 -0
- package/{core → packages/cad-geometry-loaders}/src/utilities/rxOperations.d.ts +0 -0
- package/{core → packages/cad-geometry-loaders}/src/utilities/types.d.ts +0 -19
- package/packages/cad-parsers/index.d.ts +20 -0
- package/{core/src/datamodels/cad/sector → packages/cad-parsers/src/cad}/CadSectorParser.d.ts +2 -3
- package/{core/src/datamodels/cad/sector → packages/cad-parsers/src/cad}/LevelOfDetail.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/RenderMode.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/computeBoundingBoxFromAttributes.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/filterPrimitives.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/matCapTextureData.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/materials.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/primitiveGeometries.d.ts +0 -0
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/primitives.d.ts +3 -3
- package/{core/src/datamodels/cad/rendering → packages/cad-parsers/src/cad}/shaders.d.ts +0 -0
- package/packages/cad-parsers/src/cad/types.d.ts +56 -0
- package/{core/src/datamodels/cad/parsers → packages/cad-parsers/src/metadata}/CadMetadataParser.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-parsers/src/metadata}/CadModelMetadata.d.ts +2 -2
- package/{core/src/datamodels/cad → packages/cad-parsers/src/metadata}/CadModelMetadataRepository.d.ts +5 -4
- package/{core/src/datamodels/base → packages/cad-parsers/src/metadata}/MetadataRepository.d.ts +0 -0
- package/{core/src/datamodels/cad → packages/cad-parsers/src/metadata}/parsers/CadMetadataParserV8.d.ts +1 -1
- package/packages/cad-parsers/src/metadata/types.d.ts +41 -0
- package/{core/src/datamodels/cad/sector → packages/cad-parsers/src/utilities}/SectorScene.d.ts +2 -2
- package/packages/cad-parsers/src/utilities/SectorSceneFactory.d.ts +12 -0
- package/packages/cad-parsers/src/utilities/types.d.ts +48 -0
- package/packages/cad-styling/index.d.ts +9 -0
- package/{core/src/datamodels/cad/styling → packages/cad-styling/src}/CombineNodeCollectionBase.d.ts +1 -1
- package/{core/src/datamodels/cad/styling → packages/cad-styling/src}/IntersectionNodeCollection.d.ts +1 -1
- package/{core/src/datamodels/cad → packages/cad-styling/src}/NodeAppearance.d.ts +1 -7
- package/{core/src/datamodels/cad/styling → packages/cad-styling/src}/NodeAppearanceProvider.d.ts +2 -2
- package/{core/src/datamodels/cad/styling → packages/cad-styling/src}/NodeCollectionBase.d.ts +1 -1
- package/{core/src/datamodels/cad/styling → packages/cad-styling/src}/TreeIndexNodeCollection.d.ts +1 -2
- package/{core/src/datamodels/cad/styling → packages/cad-styling/src}/UnionNodeCollection.d.ts +1 -1
- package/packages/modeldata-api/index.d.ts +8 -0
- package/packages/modeldata-api/src/CdfModelDataClient.d.ts +17 -0
- package/{core/src/utilities/networking/CdfModelDataClient.d.ts → packages/modeldata-api/src/CdfModelMetadataProvider.d.ts} +14 -23
- package/packages/modeldata-api/src/LocalModelDataClient.d.ts +10 -0
- package/packages/modeldata-api/src/LocalModelMetadataProvider.d.ts +19 -0
- package/{core/src/utilities/networking → packages/modeldata-api/src}/Model3DOutputList.d.ts +1 -2
- package/{core/src/utilities/networking → packages/modeldata-api/src}/applyDefaultModelTransformation.d.ts +1 -1
- package/{core/src/utilities/networking → packages/modeldata-api/src}/types.d.ts +27 -9
- package/packages/modeldata-api/src/utilities.d.ts +7 -0
- package/packages/tools/src/AxisView/AxisViewTool.d.ts +1 -1
- package/packages/tools/src/DebugCameraTool.d.ts +1 -1
- package/packages/tools/src/DebugLoadedSectorsTool.d.ts +1 -1
- package/packages/tools/src/ExplodedViewTool.d.ts +1 -1
- package/packages/tools/src/Geomap/Geomap.d.ts +1 -1
- package/packages/tools/src/Geomap/GeomapTool.d.ts +1 -1
- package/packages/tools/src/HtmlOverlayTool.d.ts +1 -1
- package/packages/utilities/index.d.ts +24 -0
- package/packages/utilities/src/CameraConfiguration.d.ts +10 -0
- package/{core/src/utilities → packages/utilities/src}/IndexSet.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/NumericRange.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/WebGLRendererStateHelper.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/assertNever.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/cache/MemoryRequestCache.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src/cache}/MostFrequentlyUsedCache.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/cache/RequestCache.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/datastructures/DynamicDefragmentedBuffer.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/determinePowerOfTwoDimensions.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/disposeAttributeArrayOnUpload.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/events/EventTrigger.d.ts +0 -0
- package/packages/utilities/src/events/clickOrTouchEventOffset.d.ts +13 -0
- package/{core/src/utilities → packages/utilities/src}/events/index.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/indexset/IndexSet.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/indexset/IntermediateIndexNode.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/indexset/LeafIndexNode.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/isMobileOrTablet.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/metrics.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/networking/isTheSameDomain.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/objectTraversal.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/packFloat.d.ts +0 -0
- package/{core → packages/utilities}/src/revealEnv.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/three/AutoDisposeGroup.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/three/BoundingBoxLOD.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/three/getBox3CornerPoints.d.ts +0 -0
- package/{core/src/utilities → packages/utilities/src}/transformCameraConfiguration.d.ts +1 -1
- package/packages/utilities/src/types.d.ts +10 -0
- package/{core/src/utilities → packages/utilities/src}/workers/WorkerPool.d.ts +0 -0
- package/tools.js +242 -15
- package/tools.map +1 -1
- package/core/src/datamodels/cad/index.d.ts +0 -8
- package/core/src/datamodels/cad/rendering/types.d.ts +0 -25
- package/core/src/datamodels/cad/sector/types.d.ts +0 -115
- package/core/src/datamodels/pointcloud/index.d.ts +0 -5
- package/core/src/internals.d.ts +0 -27
- package/core/src/utilities/events/clickOrTouchEventOffset.d.ts +0 -4
- package/core/src/utilities/networking/HttpHeadersProvider.d.ts +0 -7
- package/core/src/utilities/networking/LocalModelDataClient.d.ts +0 -23
- package/core/src/utilities/networking/utilities.d.ts +0 -13
- package/core/src/utilities/three/dumpRendererToImage.d.ts +0 -5
- package/core/src/utilities/three/index.d.ts +0 -7
package/core/cad.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { LevelOfDetail } from '
|
|
5
|
-
export { SectorNode } from '
|
|
4
|
+
export { LevelOfDetail } from '../packages/cad-parsers';
|
|
5
|
+
export { SectorNode } from '../packages/cad-geometry-loaders';
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import {
|
|
5
|
+
import { CadModelMetadataRepository, RenderMode } from '../../../../packages/cad-parsers';
|
|
6
|
+
import { CadNode, CadModelUpdateHandler, CadMaterialManager, CadModelSectorBudget, LoadingState } from '../../../../packages/cad-geometry-loaders';
|
|
6
7
|
import { CadModelFactory } from './CadModelFactory';
|
|
7
|
-
import { CadModelMetadataRepository } from './CadModelMetadataRepository';
|
|
8
|
-
import { CadModelUpdateHandler } from './CadModelUpdateHandler';
|
|
9
|
-
import { CadMaterialManager } from './CadMaterialManager';
|
|
10
|
-
import { RenderMode } from './rendering/RenderMode';
|
|
11
|
-
import { LoadingState } from '../../utilities';
|
|
12
|
-
import { CadModelSectorBudget } from './CadModelSectorBudget';
|
|
13
8
|
import { CadModelSectorLoadStatistics } from './CadModelSectorLoadStatistics';
|
|
14
9
|
import { Observable } from 'rxjs';
|
|
15
10
|
import { GeometryFilter } from '../..';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CadNode } from '
|
|
2
|
-
import {
|
|
3
|
-
import { CadModelMetadata } from './CadModelMetadata';
|
|
1
|
+
import { CadMaterialManager, CadNode } from '../../../../packages/cad-geometry-loaders';
|
|
2
|
+
import { CadModelMetadata } from '../../../../packages/cad-parsers';
|
|
4
3
|
export declare class CadModelFactory {
|
|
5
4
|
private readonly _materialManager;
|
|
6
5
|
constructor(materialManager: CadMaterialManager);
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { CadManager } from './CadManager';
|
|
5
|
-
import { CadMaterialManager } from '
|
|
6
|
-
import { LocalModelDataClient } from '../../utilities/networking/LocalModelDataClient';
|
|
7
|
-
import { CdfModelDataClient } from '../../utilities/networking/CdfModelDataClient';
|
|
8
|
-
import { LocalModelIdentifier, CdfModelIdentifier, ModelDataClient } from '../../utilities/networking/types';
|
|
5
|
+
import { CadMaterialManager, OccludingGeometryProvider } from '../../../../packages/cad-geometry-loaders';
|
|
9
6
|
import { RevealOptions } from '../../public/types';
|
|
10
|
-
import {
|
|
11
|
-
export declare function createLocalCadManager(
|
|
12
|
-
export declare function createCdfCadManager(
|
|
13
|
-
export declare function createCadManager<T>(
|
|
7
|
+
import { LocalModelDataClient, LocalModelMetadataProvider, CdfModelDataClient, CdfModelMetadataProvider, LocalModelIdentifier, CdfModelIdentifier, ModelDataClient, ModelMetadataProvider } from '../../../../packages/modeldata-api';
|
|
8
|
+
export declare function createLocalCadManager(modelMetadataProvider: LocalModelMetadataProvider, modelDataClient: LocalModelDataClient, renderer: THREE.WebGLRenderer, materialManager: CadMaterialManager, alreadyLoadedGeometryProvider: OccludingGeometryProvider, options?: RevealOptions): CadManager<LocalModelIdentifier>;
|
|
9
|
+
export declare function createCdfCadManager(modelMetadataProvider: CdfModelMetadataProvider, modelDataClient: CdfModelDataClient, renderer: THREE.WebGLRenderer, materialManager: CadMaterialManager, alreadyLoadedGeometryProvider: OccludingGeometryProvider, options?: RevealOptions): CadManager<CdfModelIdentifier>;
|
|
10
|
+
export declare function createCadManager<T>(modelMetadataProvider: ModelMetadataProvider<T>, modelDataClient: ModelDataClient, renderer: THREE.WebGLRenderer, materialManager: CadMaterialManager, occludingGeometryProvider: OccludingGeometryProvider, options: RevealOptions): CadManager<T>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { CadNode } from '
|
|
5
|
+
import { CadNode } from '../../../../packages/cad-geometry-loaders';
|
|
6
6
|
import { IntersectInput } from '../base/types';
|
|
7
7
|
export interface PickingInput {
|
|
8
8
|
normalizedCoords: {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { OccludingGeometryProvider } from '
|
|
5
|
-
import { EffectRenderManager } from './EffectRenderManager';
|
|
4
|
+
import { OccludingGeometryProvider, EffectRenderManager } from '../../../../../packages/cad-geometry-loaders';
|
|
6
5
|
export declare class RenderAlreadyLoadedGeometryProvider implements OccludingGeometryProvider {
|
|
7
6
|
private readonly _renderManager;
|
|
8
7
|
constructor(renderManager: EffectRenderManager);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { CadModelMetadata } from '
|
|
5
|
+
import { CadModelMetadata } from '../../../../../packages/cad-parsers';
|
|
6
6
|
export declare class CadModelClipper {
|
|
7
7
|
private readonly _geometryClipBox;
|
|
8
8
|
constructor(geometryClipBox: THREE.Box3);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
6
5
|
import { Cognite3DModel } from '../../../public/migration/Cognite3DModel';
|
|
7
|
-
import { IndexSet } from '
|
|
8
|
-
import { NodeCollectionBase, SerializedNodeCollection } from '
|
|
6
|
+
import { IndexSet } from '../../../../../packages/utilities';
|
|
7
|
+
import { NodeCollectionBase, SerializedNodeCollection } from '../../../../../packages/cad-styling';
|
|
8
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
9
9
|
/**
|
|
10
10
|
* Represents a set of nodes associated with an [asset in Cognite Fusion]{@link https://docs.cognite.com/api/v1/#tag/Assets}
|
|
11
11
|
* linked to the 3D model using [asset mappings]{@link https://docs.cognite.com/api/v1/#tag/3D-Asset-Mapping}. A node
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { Cognite3DModel } from '../../../public/migration/Cognite3DModel';
|
|
5
|
-
import { IndexSet } from '
|
|
6
|
-
import { NodeCollectionBase, SerializedNodeCollection } from '
|
|
5
|
+
import { IndexSet } from '../../../../../packages/utilities';
|
|
6
|
+
import { NodeCollectionBase, SerializedNodeCollection } from '../../../../../packages/cad-styling';
|
|
7
7
|
/**
|
|
8
8
|
* Node collection that inverts the result from another node collection.
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { CogniteClient } from '@cognite/sdk';
|
|
5
5
|
import { Cognite3DModel } from '../../../migration';
|
|
6
|
-
import { NodeCollectionBase } from '
|
|
6
|
+
import { NodeCollectionBase } from '../../../../../packages/cad-styling';
|
|
7
7
|
export declare type TypeName = string;
|
|
8
8
|
export declare type NodeCollectionSerializationContext = {
|
|
9
9
|
client: CogniteClient;
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { ListResponse } from '@cognite/sdk';
|
|
5
|
-
import { IndexSet } from '
|
|
6
|
-
import { NumericRange } from '../../../utilities/NumericRange';
|
|
5
|
+
import { IndexSet, NumericRange } from '../../../../../packages/utilities';
|
|
7
6
|
/**
|
|
8
7
|
* Helper class that populates an IndexSet based on a paged results from the Cognite SDK.
|
|
9
8
|
*/
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
-
import { IndexSet } from '../../../utilities/IndexSet';
|
|
6
5
|
import { Cognite3DModel } from '../../../public/migration/Cognite3DModel';
|
|
7
|
-
import { NodeCollectionBase } from '
|
|
6
|
+
import { NodeCollectionBase } from '../../../../../packages/cad-styling';
|
|
7
|
+
import { IndexSet } from '../../../../../packages/utilities';
|
|
8
8
|
/**
|
|
9
9
|
* Options for {@link PropertyFilterNodeCollection}.
|
|
10
10
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
5
|
-
import { IndexSet } from '../../../utilities/IndexSet';
|
|
6
4
|
import { Cognite3DModel } from '../../../public/migration/Cognite3DModel';
|
|
7
5
|
import { PropertyFilterNodeCollectionOptions } from './PropertyFilterNodeCollection';
|
|
8
|
-
import {
|
|
6
|
+
import { IndexSet } from '../../../../../packages/utilities';
|
|
7
|
+
import { NodeCollectionBase } from '../../../../../packages/cad-styling';
|
|
8
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
9
9
|
/**
|
|
10
10
|
* Node collection that filters nodes based on a node property from a list of values, similarly to how
|
|
11
11
|
* `SELECT ... IN (...)` works. This is useful when looking up nodes based on a list of identifiers,
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { AssetNodeCollection } from './AssetNodeCollection';
|
|
5
|
-
export { PropertyFilterNodeCollection } from './PropertyFilterNodeCollection';
|
|
6
|
-
export { TreeIndexNodeCollection } from './TreeIndexNodeCollection';
|
|
7
4
|
export { InvertedNodeCollection } from './InvertedNodeCollection';
|
|
8
|
-
export { UnionNodeCollection } from './UnionNodeCollection';
|
|
9
|
-
export { IntersectionNodeCollection } from './IntersectionNodeCollection';
|
|
10
|
-
export { NodeCollectionBase, SerializedNodeCollection } from './NodeCollectionBase';
|
|
11
|
-
export { NodeAppearanceProvider } from './NodeAppearanceProvider';
|
|
12
5
|
export { SinglePropertyFilterNodeCollection } from './SinglePropertyFilterNodeCollection';
|
|
6
|
+
export { PropertyFilterNodeCollection } from './PropertyFilterNodeCollection';
|
|
7
|
+
export { AssetNodeCollection } from './AssetNodeCollection';
|
|
13
8
|
export { registerCustomNodeCollectionType, TypeName, NodeCollectionDescriptor, NodeCollectionSerializationContext } from './NodeCollectionDeserializer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PotreeNodeWrapper } from './PotreeNodeWrapper';
|
|
2
2
|
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
3
|
-
import { HttpHeadersProvider } from '
|
|
3
|
+
import { HttpHeadersProvider } from '../../../../packages/modeldata-api';
|
|
4
4
|
export declare class PointCloudFactory {
|
|
5
5
|
private readonly _httpHeadersProvider;
|
|
6
6
|
constructor(httpHeadersProvider: HttpHeadersProvider);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
+
import { LoadingState } from '../../../../packages/cad-geometry-loaders';
|
|
5
6
|
import { PointCloudFactory } from './PointCloudFactory';
|
|
6
7
|
import { PointCloudMetadataRepository } from './PointCloudMetadataRepository';
|
|
7
8
|
import { Observable } from 'rxjs';
|
|
8
|
-
import { LoadingState } from '../../utilities';
|
|
9
9
|
import { PointCloudNode } from './PointCloudNode';
|
|
10
10
|
export declare class PointCloudManager<TModelIdentifier> {
|
|
11
11
|
private readonly _pointCloudMetadataRepository;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { CameraConfiguration } from '
|
|
5
|
+
import { CameraConfiguration } from '../../../../packages/utilities';
|
|
6
6
|
export interface PointCloudMetadata {
|
|
7
7
|
modelBaseUrl: string;
|
|
8
8
|
modelMatrix: THREE.Matrix4;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
5
5
|
import { MetadataRepository } from '../base';
|
|
6
|
-
import { ModelDataClient } from '
|
|
6
|
+
import { ModelDataClient, ModelMetadataProvider } from '../../../../packages/modeldata-api';
|
|
7
7
|
export declare class PointCloudMetadataRepository<TModelIdentifier> implements MetadataRepository<TModelIdentifier, Promise<PointCloudMetadata>> {
|
|
8
8
|
private readonly _modelMetadataProvider;
|
|
9
|
+
private readonly _modelDataClient;
|
|
9
10
|
private readonly _blobFileName;
|
|
10
|
-
constructor(modelMetadataProvider:
|
|
11
|
+
constructor(modelMetadataProvider: ModelMetadataProvider<TModelIdentifier>, modelDataClient: ModelDataClient, blobFileName?: string);
|
|
11
12
|
loadData(modelIdentifier: TModelIdentifier): Promise<PointCloudMetadata>;
|
|
12
13
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
+
import { CameraConfiguration } from '../../../../packages/utilities';
|
|
5
6
|
import { PotreeGroupWrapper } from './PotreeGroupWrapper';
|
|
6
7
|
import { PotreeNodeWrapper } from './PotreeNodeWrapper';
|
|
7
|
-
import { CameraConfiguration } from '../../utilities';
|
|
8
8
|
import { PotreePointSizeType, PotreePointColorType, PotreePointShape, WellKnownAsprsPointClassCodes } from './types';
|
|
9
9
|
export declare class PointCloudNode extends THREE.Group {
|
|
10
10
|
private readonly _potreeGroup;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
+
import { LoadingState } from '../../../../packages/cad-geometry-loaders';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import * as THREE from 'three';
|
|
6
|
-
import { LoadingState } from '../../utilities';
|
|
7
7
|
import { PotreeNodeWrapper } from './PotreeNodeWrapper';
|
|
8
8
|
/**
|
|
9
9
|
* Wrapper around Potree.Group with type information and
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import { PointCloudManager } from './PointCloudManager';
|
|
5
|
-
import { CdfModelDataClient } from '
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function createCdfPointCloudManager(client: CdfModelDataClient): PointCloudManager<CdfModelIdentifier>;
|
|
10
|
-
export declare function createPointCloudManager<T>(client: ModelDataClient<T>): PointCloudManager<T>;
|
|
5
|
+
import { CdfModelDataClient, LocalModelDataClient, CdfModelIdentifier, LocalModelIdentifier, ModelDataClient, LocalModelMetadataProvider, ModelMetadataProvider, CdfModelMetadataProvider } from '../../../../packages/modeldata-api';
|
|
6
|
+
export declare function createLocalPointCloudManager(modelMetadataProvider: LocalModelMetadataProvider, modelDataClient: LocalModelDataClient): PointCloudManager<LocalModelIdentifier>;
|
|
7
|
+
export declare function createCdfPointCloudManager(modelMetadataProvider: CdfModelMetadataProvider, modelDataClient: CdfModelDataClient): PointCloudManager<CdfModelIdentifier>;
|
|
8
|
+
export declare function createPointCloudManager<T>(modelMetadataProvider: ModelMetadataProvider<T>, modelDataClient: ModelDataClient): PointCloudManager<T>;
|
package/core/src/index.d.ts
CHANGED
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @module @cognite/reveal
|
|
6
6
|
*/
|
|
7
|
+
export { NodeAppearanceProvider, NodeAppearance, NodeOutlineColor } from '../../packages/cad-styling';
|
|
8
|
+
export { NodeCollectionBase, TreeIndexNodeCollection, IntersectionNodeCollection, UnionNodeCollection, SerializedNodeCollection } from '../../packages/cad-styling';
|
|
9
|
+
export { revealEnv, IndexSet, NumericRange } from '../../packages/utilities';
|
|
7
10
|
export * from './public/migration/Cognite3DViewer';
|
|
8
|
-
export * from './revealEnv';
|
|
9
11
|
export { BoundingBoxClipper } from './utilities';
|
|
10
12
|
export { Cognite3DModel } from './public/migration/Cognite3DModel';
|
|
11
13
|
export { Cognite3DViewer } from './public/migration/Cognite3DViewer';
|
|
12
14
|
export { CognitePointCloudModel } from './public/migration/CognitePointCloudModel';
|
|
15
|
+
export { ViewerState, ModelState } from './utilities/ViewStateHelper';
|
|
13
16
|
export * from './public/types';
|
|
14
|
-
export {
|
|
15
|
-
export { NodeCollectionBase, PropertyFilterNodeCollection, SinglePropertyFilterNodeCollection, TreeIndexNodeCollection, AssetNodeCollection, IntersectionNodeCollection, UnionNodeCollection, InvertedNodeCollection, NodeAppearanceProvider } from './datamodels/cad/styling';
|
|
16
|
-
export { IndexSet } from './utilities/IndexSet';
|
|
17
|
-
export { NumericRange } from './utilities/NumericRange';
|
|
18
|
-
export { registerCustomNodeCollectionType, TypeName, NodeCollectionDescriptor, NodeCollectionSerializationContext, SerializedNodeCollection } from './datamodels/cad/styling';
|
|
17
|
+
export { PropertyFilterNodeCollection, SinglePropertyFilterNodeCollection, AssetNodeCollection, InvertedNodeCollection, registerCustomNodeCollectionType, TypeName, NodeCollectionDescriptor, NodeCollectionSerializationContext } from './datamodels/cad/styling';
|
|
19
18
|
import * as THREE from 'three';
|
|
20
19
|
export { THREE };
|
|
@@ -5,13 +5,12 @@ import * as THREE from 'three';
|
|
|
5
5
|
import { CadManager } from '../datamodels/cad/CadManager';
|
|
6
6
|
import { PointCloudManager } from '../datamodels/pointcloud/PointCloudManager';
|
|
7
7
|
import { LoadingStateChangeListener, PointCloudBudget } from './types';
|
|
8
|
-
import { CadNode } from '../datamodels/cad';
|
|
9
|
-
import { RenderMode } from '../datamodels/cad/rendering/RenderMode';
|
|
10
|
-
import { EffectRenderManager } from '../datamodels/cad/rendering/EffectRenderManager';
|
|
11
8
|
import { PointCloudNode } from '../datamodels/pointcloud/PointCloudNode';
|
|
12
|
-
import { CadModelSectorBudget } from '../datamodels/cad/CadModelSectorBudget';
|
|
13
9
|
import { CadModelSectorLoadStatistics } from '../datamodels/cad/CadModelSectorLoadStatistics';
|
|
14
|
-
import { GeometryFilter
|
|
10
|
+
import { GeometryFilter } from '..';
|
|
11
|
+
import { RenderMode } from '../../../packages/cad-parsers';
|
|
12
|
+
import { RenderOptions, CadModelSectorBudget, EffectRenderManager, CadNode } from '../../../packages/cad-geometry-loaders';
|
|
13
|
+
import { NodeAppearanceProvider } from '../../../packages/cad-styling';
|
|
15
14
|
export declare type AddCadModelOptions = {
|
|
16
15
|
nodeAppearanceProvider?: NodeAppearanceProvider;
|
|
17
16
|
geometryFilter?: GeometryFilter;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { LocalModelIdentifier, CdfModelIdentifier } from '../utilities/networking/types';
|
|
6
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
7
5
|
import { RevealManager } from './RevealManager';
|
|
8
6
|
import { RevealOptions } from './types';
|
|
7
|
+
import { LocalModelIdentifier, CdfModelIdentifier } from '../../../packages/modeldata-api';
|
|
8
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
9
9
|
/**
|
|
10
10
|
* Used to create an instance of reveal manager that works with localhost.
|
|
11
11
|
* @param renderer
|
|
@@ -5,10 +5,10 @@ import * as THREE from 'three';
|
|
|
5
5
|
import { CogniteInternalId } from '@cognite/sdk';
|
|
6
6
|
import { CameraConfiguration } from './types';
|
|
7
7
|
import { CogniteModelBase } from './CogniteModelBase';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { NodeAppearance } from '
|
|
8
|
+
import { SupportedModelTypes } from '../types';
|
|
9
|
+
import { WellKnownUnit } from './types';
|
|
10
|
+
import { NumericRange } from '../../../../packages/utilities';
|
|
11
|
+
import { NodeCollectionBase, NodeAppearance } from '../../../../packages/cad-styling';
|
|
12
12
|
/**
|
|
13
13
|
* Represents a single 3D CAD model loaded from CDF.
|
|
14
14
|
* @noInheritDoc
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { AddModelOptions, Cognite3DViewerOptions, Intersection, CameraChangeDelegate, PointerEventDelegate, CadModelBudget } from './types';
|
|
5
|
+
import { AddModelOptions, Cognite3DViewerOptions, Intersection, CameraChangeDelegate, PointerEventDelegate, CadModelBudget, PointCloudBudget } from './types';
|
|
6
6
|
import { CogniteModelBase } from './CogniteModelBase';
|
|
7
7
|
import { Cognite3DModel } from './Cognite3DModel';
|
|
8
8
|
import { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
9
|
-
import { DisposedDelegate,
|
|
9
|
+
import { DisposedDelegate, SceneRenderedDelegate } from '../types';
|
|
10
10
|
import { SupportedModelTypes } from '../../datamodels/base';
|
|
11
11
|
import { IntersectionFromPixelOptions } from '../..';
|
|
12
|
-
import ComboControls from '@reveal/camera-manager';
|
|
13
12
|
import { ViewerState } from '../../utilities/ViewStateHelper';
|
|
13
|
+
import ComboControls from '../../../../packages/camera-manager';
|
|
14
14
|
/**
|
|
15
15
|
* @example
|
|
16
16
|
* ```js
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { CogniteClient } from '@cognite/sdk';
|
|
6
5
|
import { AddModelOptions } from './types';
|
|
7
6
|
import { RevealManager } from '../RevealManager';
|
|
8
|
-
import { CdfModelIdentifier, LocalModelIdentifier } from '../../utilities/networking/types';
|
|
9
7
|
import { RevealOptions } from '../..';
|
|
10
|
-
import { CadNode } from '../../datamodels/cad';
|
|
11
8
|
import { PointCloudNode } from '../../datamodels/pointcloud/PointCloudNode';
|
|
9
|
+
import { CdfModelIdentifier, LocalModelIdentifier } from '../../../../packages/modeldata-api';
|
|
10
|
+
import { CadNode } from '../../../../packages/cad-geometry-loaders';
|
|
11
|
+
import { CogniteClient } from '@cognite/sdk';
|
|
12
12
|
/**
|
|
13
13
|
* Helper for {@link RevealManager} for creating a uniform interface for
|
|
14
14
|
* working with instances that fetch models from CDF or instances that fetch
|
|
@@ -160,7 +160,7 @@ export declare type Intersection = CadIntersection | PointCloudIntersection;
|
|
|
160
160
|
/**
|
|
161
161
|
* @module @cognite/reveal
|
|
162
162
|
*/
|
|
163
|
-
export { CameraConfiguration } from '
|
|
163
|
+
export { CameraConfiguration } from '../../../../packages/utilities';
|
|
164
164
|
/**
|
|
165
165
|
* Delegate for pointer events.
|
|
166
166
|
* @module @cognite/reveal
|
|
@@ -1,82 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SectorCuller } from '../internals';
|
|
7
|
-
import { LoadingState } from '../utilities';
|
|
8
|
-
/**
|
|
9
|
-
* Anti-aliasing modes supported by Reveal.
|
|
10
|
-
*/
|
|
11
|
-
export declare enum AntiAliasingMode {
|
|
12
|
-
/**
|
|
13
|
-
* No anti-aliasing (0).
|
|
14
|
-
*/
|
|
15
|
-
NoAA = 0,
|
|
16
|
-
/**
|
|
17
|
-
* Fast-approximate anti-aliasing (FXAA) (1).
|
|
18
|
-
*/
|
|
19
|
-
FXAA = 1
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* SSAO rendering quality modes supported by Reveal.
|
|
23
|
-
*/
|
|
24
|
-
export declare enum SsaoSampleQuality {
|
|
25
|
-
Medium = 32,
|
|
26
|
-
High = 64,
|
|
27
|
-
VeryHigh = 128,
|
|
28
|
-
None = 1,
|
|
29
|
-
Default = 32
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Edge detection parameters supported by Reveal.
|
|
33
|
-
*/
|
|
34
|
-
export declare type EdgeDetectionParameters = {
|
|
35
|
-
enabled: boolean;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Screen-space ambient occlusion parameters supported by Reveal.
|
|
39
|
-
*/
|
|
40
|
-
export declare type SsaoParameters = {
|
|
41
|
-
/**
|
|
42
|
-
* Quality (Number of samples) to estimate occlusion factor.
|
|
43
|
-
*/
|
|
44
|
-
sampleSize: SsaoSampleQuality;
|
|
45
|
-
/**
|
|
46
|
-
* Maximum length of sample vector.
|
|
47
|
-
*/
|
|
48
|
-
sampleRadius: number;
|
|
49
|
-
/**
|
|
50
|
-
* Applied bias when depth testing to reduce output noise.
|
|
51
|
-
*/
|
|
52
|
-
depthCheckBias: number;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Options and hints for how the Reveal viewer applies rendering effects.
|
|
56
|
-
*/
|
|
57
|
-
export declare type RenderOptions = {
|
|
58
|
-
/**
|
|
59
|
-
* Anti-aliasing mode used to avoid aliasing effects in the rendered view.
|
|
60
|
-
*/
|
|
61
|
-
antiAliasing?: AntiAliasingMode;
|
|
62
|
-
/**
|
|
63
|
-
* When provided, Reveal will use multi-sampling to reduce aliasing effects when WebGL 2 is
|
|
64
|
-
* available. Ignored if using WebGL 1.
|
|
65
|
-
*/
|
|
66
|
-
multiSampleCountHint?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Determines the parameters used for ambient occlusion heuristic shading.
|
|
69
|
-
*/
|
|
70
|
-
ssaoRenderParameters?: SsaoParameters;
|
|
71
|
-
/**
|
|
72
|
-
* Determines the parameters used for visualizing edges of the geometry.
|
|
73
|
-
*/
|
|
74
|
-
edgeDetectionParameters?: EdgeDetectionParameters;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Defaults for {@ref RevealRenderOptions}.
|
|
78
|
-
*/
|
|
79
|
-
export declare const defaultRenderOptions: Required<RenderOptions>;
|
|
4
|
+
import { SectorQuads, RenderOptions, LoadingState, SectorCuller } from '../../../packages/cad-geometry-loaders';
|
|
5
|
+
import { SectorGeometry } from '../../../packages/cad-parsers';
|
|
80
6
|
/**
|
|
81
7
|
* @property logMetrics Might be used to disable usage statistics.
|
|
82
8
|
* @property nodeAppearanceProvider Style node by tree-index.
|
|
@@ -116,6 +42,4 @@ export interface GeometryFilter {
|
|
|
116
42
|
export declare type LoadingStateChangeListener = (loadingState: LoadingState) => any;
|
|
117
43
|
export * from '../datamodels/pointcloud/types';
|
|
118
44
|
export * from './migration/types';
|
|
119
|
-
export { CadLoadingHints } from '../datamodels/cad/CadLoadingHints';
|
|
120
45
|
export { SupportedModelTypes } from '../datamodels/base';
|
|
121
|
-
export { CadModelMetadata } from '../datamodels/cad/CadModelMetadata';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as THREE from 'three';
|
|
5
5
|
import { Cognite3DViewer } from '../public/migration/Cognite3DViewer';
|
|
6
|
+
import { NodeAppearance } from '../../../packages/cad-styling';
|
|
6
7
|
import { CogniteClient } from '@cognite/sdk';
|
|
7
|
-
import * as THREE from 'three';
|
|
8
8
|
export declare type ViewerState = {
|
|
9
9
|
camera: {
|
|
10
10
|
position: THREE.Vector3;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
export { File3dFormat, CameraConfiguration, CogniteColors, LoadingState } from './types';
|
|
5
|
-
export { LocalModelIdentifier, CdfModelIdentifier } from './networking/types';
|
|
6
|
-
export { createOffsetsArray } from './arrays';
|
|
7
4
|
export { worldToViewportCoordinates, worldToNormalizedViewportCoordinates } from './worldToViewport';
|
|
8
5
|
export { BoundingBoxClipper } from './BoundingBoxClipper';
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export { assertNever } from './assertNever';
|
|
13
|
-
export { traverseDepthFirst } from './objectTraversal';
|
|
14
|
-
export * from './events';
|
|
6
|
+
export { assertNever, EventTrigger } from '../../../packages/utilities';
|
|
7
|
+
export { LoadingState } from '../../../packages/cad-geometry-loaders';
|
|
8
|
+
export { LocalModelIdentifier, CdfModelIdentifier } from '../../../packages/modeldata-api';
|
|
@@ -5,9 +5,3 @@
|
|
|
5
5
|
* Retrieves the property type of a single property of a type.
|
|
6
6
|
*/
|
|
7
7
|
export declare type PropType<TObj, TProp extends keyof TObj> = TObj[TProp];
|
|
8
|
-
/**
|
|
9
|
-
* Removes the readonly modifier for a property.
|
|
10
|
-
*/
|
|
11
|
-
export declare type Mutable<T> = {
|
|
12
|
-
-readonly [P in keyof T]: T[P];
|
|
13
|
-
};
|
package/index.d.ts
CHANGED