@cognite/reveal 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/cad.d.ts +4 -4
- package/core/index.d.ts +7 -7
- package/core/src/datamodels/base/SupportedModelTypes.d.ts +4 -4
- package/core/src/datamodels/base/index.d.ts +6 -6
- package/core/src/datamodels/base/types.d.ts +14 -14
- package/core/src/datamodels/cad/CadManager.d.ts +45 -45
- package/core/src/datamodels/cad/CadModelFactory.d.ts +7 -7
- package/core/src/datamodels/cad/CadModelSectorLoadStatistics.d.ts +38 -38
- package/core/src/datamodels/cad/createCadManager.d.ts +9 -9
- package/core/src/datamodels/cad/picking.d.ts +28 -28
- package/core/src/datamodels/cad/rendering/RenderAlreadyLoadedGeometryProvider.d.ts +10 -10
- package/core/src/datamodels/cad/sector/CadModelClipper.d.ts +10 -10
- package/core/src/datamodels/cad/styling/AssetNodeCollection.d.ts +38 -38
- package/core/src/datamodels/cad/styling/InvertedNodeCollection.d.ts +24 -24
- package/core/src/datamodels/cad/styling/NodeCollectionDeserializer.d.ts +26 -26
- package/core/src/datamodels/cad/styling/PopulateIndexSetFromPagedResponseHelper.d.ts +24 -24
- package/core/src/datamodels/cad/styling/PropertyFilterNodeCollection.d.ts +54 -54
- package/core/src/datamodels/cad/styling/SinglePropertyFilterNodeCollection.d.ts +50 -50
- package/core/src/datamodels/cad/styling/index.d.ts +8 -8
- package/core/src/datamodels/pointcloud/PointCloudFactory.d.ts +9 -9
- package/core/src/datamodels/pointcloud/PointCloudManager.d.ts +26 -26
- package/core/src/datamodels/pointcloud/PointCloudMetadata.d.ts +11 -11
- package/core/src/datamodels/pointcloud/PointCloudMetadataRepository.d.ts +13 -13
- package/core/src/datamodels/pointcloud/PointCloudNode.d.ts +62 -62
- package/core/src/datamodels/pointcloud/PotreeGroupWrapper.d.ts +39 -39
- package/core/src/datamodels/pointcloud/PotreeNodeWrapper.d.ts +38 -38
- package/core/src/datamodels/pointcloud/createPointCloudManager.d.ts +6 -6
- package/core/src/datamodels/pointcloud/index.d.ts +5 -5
- package/core/src/datamodels/pointcloud/picking.d.ts +29 -29
- package/core/src/datamodels/pointcloud/types.d.ts +114 -114
- package/core/src/index.d.ts +19 -19
- package/core/src/internals.d.ts +15 -15
- package/core/src/migration.d.ts +8 -8
- package/core/src/public/RevealManager.d.ts +64 -64
- package/core/src/public/createRevealManager.d.ts +23 -23
- package/core/src/public/migration/Cognite3DModel.d.ts +339 -339
- package/core/src/public/migration/Cognite3DViewer.d.ts +566 -611
- package/core/src/public/migration/CogniteModelBase.d.ts +17 -17
- package/core/src/public/migration/CognitePointCloudModel.d.ts +121 -121
- package/core/src/public/migration/NodeIdAndTreeIndexMaps.d.ts +4 -4
- package/core/src/public/migration/NotSupportedInMigrationWrapperError.d.ts +11 -11
- package/core/src/public/migration/RenderController.d.ts +4 -4
- package/core/src/public/migration/types.d.ts +290 -290
- package/core/src/public/types.d.ts +46 -46
- package/core/src/storage/RevealManagerHelper.d.ts +58 -58
- package/core/src/utilities/BoundingBoxClipper.d.ts +23 -23
- package/core/src/utilities/Spinner.d.ts +27 -27
- package/core/src/utilities/ViewStateHelper.d.ts +37 -33
- package/core/src/utilities/callActionWithIndicesAsync.d.ts +4 -4
- package/core/src/utilities/index.d.ts +8 -8
- package/core/src/utilities/reflection.d.ts +7 -7
- package/core/src/utilities/worldToViewport.d.ts +30 -30
- package/core/utilities.d.ts +4 -4
- package/extensions/datasource.d.ts +9 -9
- package/extensions/datasource.js +6 -6
- package/extensions/datasource.map +1 -1
- package/index.d.ts +9 -8
- package/index.js +101 -91
- package/index.map +1 -1
- package/package.json +2 -2
- package/packages/cad-geometry-loaders/index.d.ts +14 -14
- package/packages/cad-geometry-loaders/src/CadLoadingHints.d.ts +11 -11
- package/packages/cad-geometry-loaders/src/CadModelSectorBudget.d.ts +26 -26
- package/packages/cad-geometry-loaders/src/CadModelUpdateHandler.d.ts +44 -44
- package/packages/cad-geometry-loaders/src/sector/CachedRepository.d.ts +25 -25
- package/packages/cad-geometry-loaders/src/sector/ModelStateHandler.d.ts +12 -12
- package/packages/cad-geometry-loaders/src/sector/Repository.d.ts +9 -9
- package/packages/cad-geometry-loaders/src/sector/SectorLoader.d.ts +28 -28
- package/packages/cad-geometry-loaders/src/sector/SimpleAndDetailedToSector3D.d.ts +20 -20
- package/packages/cad-geometry-loaders/src/sector/culling/ByVisibilityGpuSectorCuller.d.ts +53 -53
- package/packages/cad-geometry-loaders/src/sector/culling/OccludingGeometryProvider.d.ts +6 -6
- package/packages/cad-geometry-loaders/src/sector/culling/OrderSectorsByVisibilityCoverage.d.ts +107 -107
- package/packages/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +33 -33
- package/packages/cad-geometry-loaders/src/sector/culling/TakenSectorTree.d.ts +24 -24
- package/packages/cad-geometry-loaders/src/sector/culling/types.d.ts +71 -71
- package/packages/cad-geometry-loaders/src/sector/rxSectorUtilities.d.ts +12 -12
- package/packages/cad-geometry-loaders/src/sector/sectorUtilities.d.ts +20 -20
- package/packages/cad-geometry-loaders/src/utilities/PromiseUtils.d.ts +18 -18
- package/packages/cad-geometry-loaders/src/utilities/arrays.d.ts +5 -5
- package/packages/cad-geometry-loaders/src/utilities/groupMeshesByNumber.d.ts +8 -8
- package/packages/cad-geometry-loaders/src/utilities/rxOperations.d.ts +6 -6
- package/packages/cad-geometry-loaders/src/utilities/types.d.ts +25 -25
- package/packages/cad-parsers/index.d.ts +21 -21
- package/packages/cad-parsers/src/cad/CadSectorParser.d.ts +15 -15
- package/packages/cad-parsers/src/cad/LevelOfDetail.d.ts +8 -8
- package/packages/cad-parsers/src/cad/filterInstanceMesh.d.ts +6 -6
- package/packages/cad-parsers/src/cad/filterPrimitives.d.ts +9 -9
- package/packages/cad-parsers/src/cad/primitiveGeometries.d.ts +31 -31
- package/packages/cad-parsers/src/cad/triangleMeshes.d.ts +6 -6
- package/packages/cad-parsers/src/cad/types.d.ts +56 -56
- package/packages/cad-parsers/src/metadata/CadMetadataParser.d.ts +7 -7
- package/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +44 -44
- package/packages/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +16 -16
- package/packages/cad-parsers/src/metadata/MetadataRepository.d.ts +7 -7
- package/packages/cad-parsers/src/metadata/parsers/CadMetadataParserV8.d.ts +51 -51
- package/packages/cad-parsers/src/metadata/types.d.ts +41 -41
- package/packages/cad-parsers/src/sector/RootSectorNode.d.ts +12 -12
- package/packages/cad-parsers/src/sector/SectorNode.d.ts +21 -21
- package/packages/cad-parsers/src/utilities/SectorScene.d.ts +21 -21
- package/packages/cad-parsers/src/utilities/SectorSceneFactory.d.ts +9 -9
- package/packages/cad-parsers/src/utilities/computeBoundingBoxFromAttributes.d.ts +9 -9
- package/packages/cad-parsers/src/utilities/float32BufferToMatrix.d.ts +12 -12
- package/packages/cad-parsers/src/utilities/types.d.ts +48 -48
- package/packages/cad-styling/index.d.ts +9 -9
- package/packages/cad-styling/src/CombineNodeCollectionBase.d.ts +31 -31
- package/packages/cad-styling/src/IntersectionNodeCollection.d.ts +15 -15
- package/packages/cad-styling/src/NodeAppearance.d.ts +62 -62
- package/packages/cad-styling/src/NodeAppearanceProvider.d.ts +33 -33
- package/packages/cad-styling/src/NodeCollectionBase.d.ts +47 -47
- package/packages/cad-styling/src/TreeIndexNodeCollection.d.ts +23 -23
- package/packages/cad-styling/src/UnionNodeCollection.d.ts +15 -15
- package/packages/camera-manager/index.d.ts +6 -4
- package/packages/camera-manager/src/CameraManager.d.ts +85 -0
- package/packages/camera-manager/src/ComboControls.d.ts +102 -100
- package/packages/camera-manager/src/Keyboard.d.ts +17 -17
- package/packages/camera-manager/src/types.d.ts +64 -0
- package/packages/data-source/index.d.ts +6 -6
- package/packages/data-source/src/CdfDataSource.d.ts +19 -19
- package/packages/data-source/src/DataSource.d.ts +26 -26
- package/packages/data-source/src/LocalDataSource.d.ts +15 -15
- package/packages/logger/index.d.ts +5 -5
- package/packages/logger/src/Log.d.ts +5 -5
- package/packages/metrics/index.d.ts +5 -5
- package/packages/metrics/src/MetricsLogger.d.ts +21 -21
- package/packages/metrics/src/types.d.ts +7 -7
- package/packages/modeldata-api/index.d.ts +13 -13
- package/packages/modeldata-api/src/CdfModelDataProvider.d.ts +17 -15
- package/packages/modeldata-api/src/CdfModelIdentifier.d.ts +17 -17
- package/packages/modeldata-api/src/CdfModelMetadataProvider.d.ts +19 -19
- package/packages/modeldata-api/src/CdfModelOutputsProvider.d.ts +15 -15
- package/packages/modeldata-api/src/LocalModelDataProvider.d.ts +10 -10
- package/packages/modeldata-api/src/LocalModelIdentifier.d.ts +14 -14
- package/packages/modeldata-api/src/LocalModelMetadataProvider.d.ts +14 -14
- package/packages/modeldata-api/src/Model3DOutputList.d.ts +17 -17
- package/packages/modeldata-api/src/ModelIdentifier.d.ts +12 -12
- package/packages/modeldata-api/src/ModelMetadataProvider.d.ts +17 -17
- package/packages/modeldata-api/src/applyDefaultModelTransformation.d.ts +6 -6
- package/packages/modeldata-api/src/types.d.ts +41 -41
- package/packages/modeldata-api/src/utilities.d.ts +7 -7
- package/packages/nodes-api/index.d.ts +6 -6
- package/packages/nodes-api/src/NodesApiClient.d.ts +52 -52
- package/packages/nodes-api/src/NodesCdfClient.d.ts +24 -24
- package/packages/nodes-api/src/NodesLocalClient.d.ts +30 -30
- package/packages/nodes-api/src/types.d.ts +10 -10
- package/packages/rendering/index.d.ts +17 -17
- package/packages/rendering/src/CadMaterialManager.d.ts +37 -37
- package/packages/rendering/src/InstancedMeshManager.d.ts +20 -20
- package/packages/rendering/src/cameraconfig.d.ts +12 -12
- package/packages/rendering/src/rendering/EffectRenderManager.d.ts +99 -99
- package/packages/rendering/src/rendering/NodeAppearanceTextureBuilder.d.ts +51 -51
- package/packages/rendering/src/rendering/RenderMode.d.ts +15 -15
- package/packages/rendering/src/rendering/createSimpleGeometryMesh.d.ts +6 -6
- package/packages/rendering/src/rendering/matCapTextureData.d.ts +5 -5
- package/packages/rendering/src/rendering/materials.d.ts +23 -23
- package/packages/rendering/src/rendering/primitives.d.ts +12 -12
- package/packages/rendering/src/rendering/shaders.d.ts +101 -101
- package/packages/rendering/src/rendering/types.d.ts +76 -76
- package/packages/rendering/src/sector/CadNode.d.ts +54 -54
- package/packages/rendering/src/transform/NodeTransformProvider.d.ts +13 -13
- package/packages/rendering/src/transform/NodeTransformTextureBuilder.d.ts +23 -23
- package/packages/rendering/src/transform/TransformOverrideBuffer.d.ts +21 -21
- package/packages/rendering/src/utilities/types.d.ts +26 -26
- package/packages/tools/index.d.ts +15 -15
- package/packages/tools/src/AxisView/AxisViewTool.d.ts +32 -32
- package/packages/tools/src/AxisView/types.d.ts +98 -98
- package/packages/tools/src/Cognite3DViewerToolBase.d.ts +25 -25
- package/packages/tools/src/DebugCameraTool.d.ts +20 -20
- package/packages/tools/src/DebugLoadedSectorsTool.d.ts +23 -23
- package/packages/tools/src/ExplodedViewTool.d.ts +12 -12
- package/packages/tools/src/Geomap/Geomap.d.ts +17 -17
- package/packages/tools/src/Geomap/GeomapTool.d.ts +24 -24
- package/packages/tools/src/Geomap/MapConfig.d.ts +195 -195
- package/packages/tools/src/HtmlOverlay/BucketGrid2D.d.ts +28 -28
- package/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +159 -159
- package/packages/tools/src/Timeline/Keyframe.d.ts +38 -38
- package/packages/tools/src/Timeline/TimelineTool.d.ts +79 -79
- package/packages/tools/src/Timeline/types.d.ts +13 -13
- package/packages/tools/src/types.d.ts +4 -4
- package/packages/utilities/index.d.ts +24 -24
- package/packages/utilities/src/CameraConfiguration.d.ts +10 -10
- package/packages/utilities/src/IndexSet.d.ts +1 -1
- package/packages/utilities/src/NumericRange.d.ts +22 -22
- package/packages/utilities/src/RandomColors.d.ts +34 -34
- package/packages/utilities/src/WebGLRendererStateHelper.d.ts +15 -15
- package/packages/utilities/src/assertNever.d.ts +7 -7
- package/packages/utilities/src/cache/MemoryRequestCache.d.ts +22 -22
- package/packages/utilities/src/cache/MostFrequentlyUsedCache.d.ts +19 -19
- package/packages/utilities/src/cache/RequestCache.d.ts +13 -13
- package/packages/utilities/src/datastructures/DynamicDefragmentedBuffer.d.ts +22 -22
- package/packages/utilities/src/determinePowerOfTwoDimensions.d.ts +11 -11
- package/packages/utilities/src/disposeAttributeArrayOnUpload.d.ts +17 -17
- package/packages/utilities/src/events/EventTrigger.d.ts +13 -13
- package/packages/utilities/src/events/InputHandler.d.ts +34 -0
- package/packages/utilities/src/events/clickOrTouchEventOffset.d.ts +13 -13
- package/packages/utilities/src/events/index.d.ts +6 -5
- package/packages/utilities/src/indexset/IndexSet.d.ts +26 -26
- package/packages/utilities/src/indexset/IntermediateIndexNode.d.ts +26 -26
- package/packages/utilities/src/indexset/LeafIndexNode.d.ts +16 -16
- package/packages/utilities/src/isMobileOrTablet.d.ts +4 -4
- package/packages/utilities/src/networking/isTheSameDomain.d.ts +11 -11
- package/packages/utilities/src/objectTraversal.d.ts +8 -8
- package/packages/utilities/src/packFloat.d.ts +6 -6
- package/packages/utilities/src/revealEnv.d.ts +10 -10
- package/packages/utilities/src/three/AutoDisposeGroup.d.ts +17 -17
- package/packages/utilities/src/three/BoundingBoxLOD.d.ts +27 -27
- package/packages/utilities/src/three/getBox3CornerPoints.d.ts +5 -5
- package/packages/utilities/src/transformCameraConfiguration.d.ts +6 -6
- package/packages/utilities/src/types.d.ts +10 -10
- package/packages/utilities/src/workers/WorkerPool.d.ts +14 -14
- package/tools.d.ts +7 -7
- package/tools.js +62 -58
- package/tools.map +1 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
/**
|
|
6
|
-
* Configuration of {@link AxisViewTool}.
|
|
7
|
-
*/
|
|
8
|
-
export declare type AxisBoxConfig = {
|
|
9
|
-
/**
|
|
10
|
-
* Size in pixels of the axis tool.
|
|
11
|
-
*/
|
|
12
|
-
size?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Position, either absolute or relative.
|
|
15
|
-
*/
|
|
16
|
-
position?: AbsolutePosition | RelativePosition;
|
|
17
|
-
/**
|
|
18
|
-
* How long the camera animation lasts when
|
|
19
|
-
* clicking a face of the orientation box.
|
|
20
|
-
*/
|
|
21
|
-
animationSpeed?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Configuration for each of the faces of the orientation box.
|
|
24
|
-
* Note that Reveal uses a right-handed Y up coordinate system,
|
|
25
|
-
* which might differ from the original model space. To account
|
|
26
|
-
* for this, you might want to reassign labels of the faces.
|
|
27
|
-
*/
|
|
28
|
-
faces?: {
|
|
29
|
-
xPositiveFace?: AxisBoxFaceConfig;
|
|
30
|
-
xNegativeFace?: AxisBoxFaceConfig;
|
|
31
|
-
yPositiveFace?: AxisBoxFaceConfig;
|
|
32
|
-
yNegativeFace?: AxisBoxFaceConfig;
|
|
33
|
-
zPositiveFace?: AxisBoxFaceConfig;
|
|
34
|
-
zNegativeFace?: AxisBoxFaceConfig;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Configuration of the compass "base" of the tool.
|
|
38
|
-
*/
|
|
39
|
-
compass?: AxisBoxCompassConfig;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Absolute position in pixels.
|
|
43
|
-
*/
|
|
44
|
-
export declare type AbsolutePosition = {
|
|
45
|
-
xAbsolute: number;
|
|
46
|
-
yAbsolute: number;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Relative position from a corner of the viewer
|
|
50
|
-
* and a given padding.
|
|
51
|
-
*/
|
|
52
|
-
export declare type RelativePosition = {
|
|
53
|
-
corner: Corner;
|
|
54
|
-
padding: THREE.Vector2;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Configuration of each face of the orientation box.
|
|
58
|
-
*/
|
|
59
|
-
export declare type AxisBoxFaceConfig = {
|
|
60
|
-
/**
|
|
61
|
-
* Label of the respective face, e.g. 'X' or 'Right'.
|
|
62
|
-
*/
|
|
63
|
-
label?: string;
|
|
64
|
-
fontSize?: number;
|
|
65
|
-
fontColor?: THREE.Color;
|
|
66
|
-
outlineSize?: number;
|
|
67
|
-
outlineColor?: THREE.Color;
|
|
68
|
-
faceColor?: THREE.Color;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Configuration of the compass.
|
|
72
|
-
*/
|
|
73
|
-
export declare type AxisBoxCompassConfig = {
|
|
74
|
-
/**
|
|
75
|
-
* Label of the orientation indicator. Defaults
|
|
76
|
-
* to 'N' for north.
|
|
77
|
-
*/
|
|
78
|
-
ringLabel?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Offset in radians of the orientation indicator.
|
|
81
|
-
*/
|
|
82
|
-
labelDelta?: number;
|
|
83
|
-
fontSize?: number;
|
|
84
|
-
fontColor?: THREE.Color;
|
|
85
|
-
tickColor?: THREE.Color;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* A corner of the viewer.
|
|
89
|
-
*/
|
|
90
|
-
export declare enum Corner {
|
|
91
|
-
TopRight = 0,
|
|
92
|
-
TopLeft = 1,
|
|
93
|
-
BottomLeft = 2,
|
|
94
|
-
BottomRight = 3
|
|
95
|
-
}
|
|
96
|
-
export declare const defaultAxisBoxCompassConfig: AxisBoxCompassConfig;
|
|
97
|
-
export declare const defaultFaceConfig: AxisBoxFaceConfig;
|
|
98
|
-
export declare const defaultAxisBoxConfig: Required<AxisBoxConfig>;
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
/**
|
|
6
|
+
* Configuration of {@link AxisViewTool}.
|
|
7
|
+
*/
|
|
8
|
+
export declare type AxisBoxConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Size in pixels of the axis tool.
|
|
11
|
+
*/
|
|
12
|
+
size?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Position, either absolute or relative.
|
|
15
|
+
*/
|
|
16
|
+
position?: AbsolutePosition | RelativePosition;
|
|
17
|
+
/**
|
|
18
|
+
* How long the camera animation lasts when
|
|
19
|
+
* clicking a face of the orientation box.
|
|
20
|
+
*/
|
|
21
|
+
animationSpeed?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Configuration for each of the faces of the orientation box.
|
|
24
|
+
* Note that Reveal uses a right-handed Y up coordinate system,
|
|
25
|
+
* which might differ from the original model space. To account
|
|
26
|
+
* for this, you might want to reassign labels of the faces.
|
|
27
|
+
*/
|
|
28
|
+
faces?: {
|
|
29
|
+
xPositiveFace?: AxisBoxFaceConfig;
|
|
30
|
+
xNegativeFace?: AxisBoxFaceConfig;
|
|
31
|
+
yPositiveFace?: AxisBoxFaceConfig;
|
|
32
|
+
yNegativeFace?: AxisBoxFaceConfig;
|
|
33
|
+
zPositiveFace?: AxisBoxFaceConfig;
|
|
34
|
+
zNegativeFace?: AxisBoxFaceConfig;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Configuration of the compass "base" of the tool.
|
|
38
|
+
*/
|
|
39
|
+
compass?: AxisBoxCompassConfig;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Absolute position in pixels.
|
|
43
|
+
*/
|
|
44
|
+
export declare type AbsolutePosition = {
|
|
45
|
+
xAbsolute: number;
|
|
46
|
+
yAbsolute: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Relative position from a corner of the viewer
|
|
50
|
+
* and a given padding.
|
|
51
|
+
*/
|
|
52
|
+
export declare type RelativePosition = {
|
|
53
|
+
corner: Corner;
|
|
54
|
+
padding: THREE.Vector2;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Configuration of each face of the orientation box.
|
|
58
|
+
*/
|
|
59
|
+
export declare type AxisBoxFaceConfig = {
|
|
60
|
+
/**
|
|
61
|
+
* Label of the respective face, e.g. 'X' or 'Right'.
|
|
62
|
+
*/
|
|
63
|
+
label?: string;
|
|
64
|
+
fontSize?: number;
|
|
65
|
+
fontColor?: THREE.Color;
|
|
66
|
+
outlineSize?: number;
|
|
67
|
+
outlineColor?: THREE.Color;
|
|
68
|
+
faceColor?: THREE.Color;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Configuration of the compass.
|
|
72
|
+
*/
|
|
73
|
+
export declare type AxisBoxCompassConfig = {
|
|
74
|
+
/**
|
|
75
|
+
* Label of the orientation indicator. Defaults
|
|
76
|
+
* to 'N' for north.
|
|
77
|
+
*/
|
|
78
|
+
ringLabel?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Offset in radians of the orientation indicator.
|
|
81
|
+
*/
|
|
82
|
+
labelDelta?: number;
|
|
83
|
+
fontSize?: number;
|
|
84
|
+
fontColor?: THREE.Color;
|
|
85
|
+
tickColor?: THREE.Color;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* A corner of the viewer.
|
|
89
|
+
*/
|
|
90
|
+
export declare enum Corner {
|
|
91
|
+
TopRight = 0,
|
|
92
|
+
TopLeft = 1,
|
|
93
|
+
BottomLeft = 2,
|
|
94
|
+
BottomRight = 3
|
|
95
|
+
}
|
|
96
|
+
export declare const defaultAxisBoxCompassConfig: AxisBoxCompassConfig;
|
|
97
|
+
export declare const defaultFaceConfig: AxisBoxFaceConfig;
|
|
98
|
+
export declare const defaultAxisBoxConfig: Required<AxisBoxConfig>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Base class for tools attaching to a {@see Cognite3DViewer}.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class Cognite3DViewerToolBase {
|
|
8
|
-
private readonly _disposedEvent;
|
|
9
|
-
private _disposed;
|
|
10
|
-
/**
|
|
11
|
-
* Unregisters an event handler for the 'disposed'-event.
|
|
12
|
-
* @param event
|
|
13
|
-
* @param handler
|
|
14
|
-
*/
|
|
15
|
-
off(event: 'disposed', handler: () => void): void;
|
|
16
|
-
/**
|
|
17
|
-
* Disposes the element and triggeres the 'disposed' event before clearing the list
|
|
18
|
-
* of dipose-listeners.
|
|
19
|
-
*/
|
|
20
|
-
dispose(): void;
|
|
21
|
-
/**
|
|
22
|
-
* Throws an error if the instance has been disposed.
|
|
23
|
-
*/
|
|
24
|
-
protected ensureNotDisposed(): void;
|
|
25
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base class for tools attaching to a {@see Cognite3DViewer}.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class Cognite3DViewerToolBase {
|
|
8
|
+
private readonly _disposedEvent;
|
|
9
|
+
private _disposed;
|
|
10
|
+
/**
|
|
11
|
+
* Unregisters an event handler for the 'disposed'-event.
|
|
12
|
+
* @param event
|
|
13
|
+
* @param handler
|
|
14
|
+
*/
|
|
15
|
+
off(event: 'disposed', handler: () => void): void;
|
|
16
|
+
/**
|
|
17
|
+
* Disposes the element and triggeres the 'disposed' event before clearing the list
|
|
18
|
+
* of dipose-listeners.
|
|
19
|
+
*/
|
|
20
|
+
dispose(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Throws an error if the instance has been disposed.
|
|
23
|
+
*/
|
|
24
|
+
protected ensureNotDisposed(): void;
|
|
25
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { Cognite3DViewer } from '../../../core';
|
|
5
|
-
import { Cognite3DViewerToolBase } from './Cognite3DViewerToolBase';
|
|
6
|
-
export declare class DebugCameraTool extends Cognite3DViewerToolBase {
|
|
7
|
-
private readonly _viewer;
|
|
8
|
-
private readonly _onViewerDisposedHandler;
|
|
9
|
-
private _cameraHelper?;
|
|
10
|
-
private get viewerCamera();
|
|
11
|
-
constructor(viewer: Cognite3DViewer);
|
|
12
|
-
/**
|
|
13
|
-
* Removes all elements and detaches from the viewer.
|
|
14
|
-
* @override
|
|
15
|
-
*/
|
|
16
|
-
dispose(): void;
|
|
17
|
-
showCameraHelper(): void;
|
|
18
|
-
hideCameraHelper(): void;
|
|
19
|
-
private onViewerDisposed;
|
|
20
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { Cognite3DViewer } from '../../../core';
|
|
5
|
+
import { Cognite3DViewerToolBase } from './Cognite3DViewerToolBase';
|
|
6
|
+
export declare class DebugCameraTool extends Cognite3DViewerToolBase {
|
|
7
|
+
private readonly _viewer;
|
|
8
|
+
private readonly _onViewerDisposedHandler;
|
|
9
|
+
private _cameraHelper?;
|
|
10
|
+
private get viewerCamera();
|
|
11
|
+
constructor(viewer: Cognite3DViewer);
|
|
12
|
+
/**
|
|
13
|
+
* Removes all elements and detaches from the viewer.
|
|
14
|
+
* @override
|
|
15
|
+
*/
|
|
16
|
+
dispose(): void;
|
|
17
|
+
showCameraHelper(): void;
|
|
18
|
+
hideCameraHelper(): void;
|
|
19
|
+
private onViewerDisposed;
|
|
20
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Cognite3DViewer, Cognite3DModel } from '../../../core';
|
|
2
|
-
import { Cognite3DViewerToolBase } from './Cognite3DViewerToolBase';
|
|
3
|
-
export declare type DebugLoadedSectorsToolOptions = {
|
|
4
|
-
showSimpleSectors?: boolean;
|
|
5
|
-
showDetailedSectors?: boolean;
|
|
6
|
-
showDiscardedSectors?: boolean;
|
|
7
|
-
colorBy?: 'depth' | 'lod' | 'loadedTimestamp' | 'random';
|
|
8
|
-
leafsOnly?: boolean;
|
|
9
|
-
sectorPathFilterRegex?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare class DebugLoadedSectorsTool extends Cognite3DViewerToolBase {
|
|
12
|
-
private readonly _boundingBoxes;
|
|
13
|
-
private readonly _viewer;
|
|
14
|
-
private _options;
|
|
15
|
-
private _model?;
|
|
16
|
-
constructor(viewer: Cognite3DViewer, options?: DebugLoadedSectorsToolOptions);
|
|
17
|
-
setOptions(options: DebugLoadedSectorsToolOptions): void;
|
|
18
|
-
dispose(): void;
|
|
19
|
-
showSectorBoundingBoxes(model: Cognite3DModel): void;
|
|
20
|
-
private updateBoundingBoxes;
|
|
21
|
-
private isSectorAcceptedByCurrentFilter;
|
|
22
|
-
private createBboxNodeFor;
|
|
23
|
-
}
|
|
1
|
+
import { Cognite3DViewer, Cognite3DModel } from '../../../core';
|
|
2
|
+
import { Cognite3DViewerToolBase } from './Cognite3DViewerToolBase';
|
|
3
|
+
export declare type DebugLoadedSectorsToolOptions = {
|
|
4
|
+
showSimpleSectors?: boolean;
|
|
5
|
+
showDetailedSectors?: boolean;
|
|
6
|
+
showDiscardedSectors?: boolean;
|
|
7
|
+
colorBy?: 'depth' | 'lod' | 'loadedTimestamp' | 'random';
|
|
8
|
+
leafsOnly?: boolean;
|
|
9
|
+
sectorPathFilterRegex?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class DebugLoadedSectorsTool extends Cognite3DViewerToolBase {
|
|
12
|
+
private readonly _boundingBoxes;
|
|
13
|
+
private readonly _viewer;
|
|
14
|
+
private _options;
|
|
15
|
+
private _model?;
|
|
16
|
+
constructor(viewer: Cognite3DViewer, options?: DebugLoadedSectorsToolOptions);
|
|
17
|
+
setOptions(options: DebugLoadedSectorsToolOptions): void;
|
|
18
|
+
dispose(): void;
|
|
19
|
+
showSectorBoundingBoxes(model: Cognite3DModel): void;
|
|
20
|
+
private updateBoundingBoxes;
|
|
21
|
+
private isSectorAcceptedByCurrentFilter;
|
|
22
|
+
private createBboxNodeFor;
|
|
23
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Cognite3DModel } from '../../../core';
|
|
2
|
-
import { Cognite3DViewerToolBase } from './Cognite3DViewerToolBase';
|
|
3
|
-
export declare class ExplodedViewTool extends Cognite3DViewerToolBase {
|
|
4
|
-
private readonly _cadModel;
|
|
5
|
-
private _treeBoundingBoxdata;
|
|
6
|
-
private readonly _rootTreeIndex;
|
|
7
|
-
get readyPromise(): Promise<void>;
|
|
8
|
-
constructor(treeIndex: number, cadModel: Cognite3DModel);
|
|
9
|
-
expand(expandRadius: number): Promise<void>;
|
|
10
|
-
reset(): void;
|
|
11
|
-
private preloadBoundingBoxData;
|
|
12
|
-
}
|
|
1
|
+
import { Cognite3DModel } from '../../../core';
|
|
2
|
+
import { Cognite3DViewerToolBase } from './Cognite3DViewerToolBase';
|
|
3
|
+
export declare class ExplodedViewTool extends Cognite3DViewerToolBase {
|
|
4
|
+
private readonly _cadModel;
|
|
5
|
+
private _treeBoundingBoxdata;
|
|
6
|
+
private readonly _rootTreeIndex;
|
|
7
|
+
get readyPromise(): Promise<void>;
|
|
8
|
+
constructor(treeIndex: number, cadModel: Cognite3DModel);
|
|
9
|
+
expand(expandRadius: number): Promise<void>;
|
|
10
|
+
reset(): void;
|
|
11
|
+
private preloadBoundingBoxData;
|
|
12
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Cognite3DViewer } from '../../../../core';
|
|
2
|
-
import { LatLongPosition, MapConfig } from './MapConfig';
|
|
3
|
-
export declare class Geomap {
|
|
4
|
-
private readonly _viewer;
|
|
5
|
-
private readonly _map;
|
|
6
|
-
private _intervalId;
|
|
7
|
-
private readonly _onCameraChange;
|
|
8
|
-
constructor(viewer: Cognite3DViewer, mapConfig: MapConfig);
|
|
9
|
-
private requestRedraw;
|
|
10
|
-
private getMapProvider;
|
|
11
|
-
latLongToWorldCoordinates(latLong: LatLongPosition): {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
};
|
|
15
|
-
private handleCameraChange;
|
|
16
|
-
dispose(): void;
|
|
17
|
-
}
|
|
1
|
+
import { Cognite3DViewer } from '../../../../core';
|
|
2
|
+
import { LatLongPosition, MapConfig } from './MapConfig';
|
|
3
|
+
export declare class Geomap {
|
|
4
|
+
private readonly _viewer;
|
|
5
|
+
private readonly _map;
|
|
6
|
+
private _intervalId;
|
|
7
|
+
private readonly _onCameraChange;
|
|
8
|
+
constructor(viewer: Cognite3DViewer, mapConfig: MapConfig);
|
|
9
|
+
private requestRedraw;
|
|
10
|
+
private getMapProvider;
|
|
11
|
+
latLongToWorldCoordinates(latLong: LatLongPosition): {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
private handleCameraChange;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import { Cognite3DViewerToolBase } from '../Cognite3DViewerToolBase';
|
|
5
|
-
import { LatLongPosition, MapConfig } from './MapConfig';
|
|
6
|
-
import { Cognite3DViewer } from '../../../../core';
|
|
7
|
-
/**
|
|
8
|
-
* The `GeomapTool` is a geolocation for the models and allow the user to place them on the maps.
|
|
9
|
-
* @version New since 2.1.
|
|
10
|
-
*/
|
|
11
|
-
export declare class GeomapTool extends Cognite3DViewerToolBase {
|
|
12
|
-
private readonly _viewer;
|
|
13
|
-
private readonly _maps;
|
|
14
|
-
constructor(viewer: Cognite3DViewer, config: MapConfig);
|
|
15
|
-
/**
|
|
16
|
-
* Converts Latitude & Longitude into Vector2 World coordinates on the Map
|
|
17
|
-
* @param latLong Latitude & Longitude
|
|
18
|
-
*/
|
|
19
|
-
latLongToWorldCoordinates(latLong: LatLongPosition): {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
};
|
|
23
|
-
dispose(): void;
|
|
24
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { Cognite3DViewerToolBase } from '../Cognite3DViewerToolBase';
|
|
5
|
+
import { LatLongPosition, MapConfig } from './MapConfig';
|
|
6
|
+
import { Cognite3DViewer } from '../../../../core';
|
|
7
|
+
/**
|
|
8
|
+
* The `GeomapTool` is a geolocation for the models and allow the user to place them on the maps.
|
|
9
|
+
* @version New since 2.1.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GeomapTool extends Cognite3DViewerToolBase {
|
|
12
|
+
private readonly _viewer;
|
|
13
|
+
private readonly _maps;
|
|
14
|
+
constructor(viewer: Cognite3DViewer, config: MapConfig);
|
|
15
|
+
/**
|
|
16
|
+
* Converts Latitude & Longitude into Vector2 World coordinates on the Map
|
|
17
|
+
* @param latLong Latitude & Longitude
|
|
18
|
+
*/
|
|
19
|
+
latLongToWorldCoordinates(latLong: LatLongPosition): {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}
|