@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,195 +1,195 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Supported map Providers Bing, Here & Mapbox
|
|
6
|
-
*/
|
|
7
|
-
export declare enum MapProviders {
|
|
8
|
-
BingMap = "BingMap",
|
|
9
|
-
HereMap = "HereMap",
|
|
10
|
-
MapboxMap = "MapboxMap",
|
|
11
|
-
OpenStreetMap = "OpenStreetMap"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Map data for Mapbox
|
|
15
|
-
*/
|
|
16
|
-
export declare enum MapboxMode {
|
|
17
|
-
/**
|
|
18
|
-
* Access the map data using a map style. For details see https://docs.mapbox.com/api/maps/styles/
|
|
19
|
-
*/
|
|
20
|
-
Style = 100,
|
|
21
|
-
/**
|
|
22
|
-
* Access the map data using a map id or Tileset id. For details see https://docs.mapbox.com/help/glossary/tileset-id/
|
|
23
|
-
*/
|
|
24
|
-
Map_Id = 101
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Mapbox Map Style, these are pre-defined styles using map/tileset id, created in Mapbox Studio style editor.
|
|
28
|
-
* This is used when MapboxMode.Style is used for mode.
|
|
29
|
-
*/
|
|
30
|
-
export declare enum MapboxStyle {
|
|
31
|
-
Streets = "mapbox/streets-v10",
|
|
32
|
-
Outdoor = "mapbox/outdoors-v10",
|
|
33
|
-
Light = "mapbox/light-v9",
|
|
34
|
-
Dark = "mapbox/dark-v9",
|
|
35
|
-
Satellite = "mapbox/satellite-v9",
|
|
36
|
-
Satellite_Streets = "mapbox/satellite-streets-v10",
|
|
37
|
-
Navigation_Day = "mapbox/navigation-preview-day-v4",
|
|
38
|
-
Navigation_Night = "mapbox/navigation-preview-night-v4",
|
|
39
|
-
Navigation_Guide_Day = "mapbox/navigation-guidance-day-v4",
|
|
40
|
-
Navigation_Guide_Night = "mapbox/navigation-guidance-night-v4"
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A map/tileset ID is a unique identifier given to every tileset, used when MapboxMode.Map_Id is choosen for mode.
|
|
44
|
-
*/
|
|
45
|
-
export declare enum MapboxId {
|
|
46
|
-
Streets = "mapbox.mapbox-streets-v7",
|
|
47
|
-
Satellite = "mapbox.satellite",
|
|
48
|
-
Terrain = "mapbox.mapbox-terrain-v2",
|
|
49
|
-
Traffic = "mapbox.mapbox-traffic-v1",
|
|
50
|
-
TerrainRGB = "mapbox.terrain-rgb"
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Mapbox Map image tile format
|
|
54
|
-
*/
|
|
55
|
-
export declare enum MapboxImageFormat {
|
|
56
|
-
PNG = "png",
|
|
57
|
-
PNG32 = "png32",
|
|
58
|
-
PNG64 = "png64",
|
|
59
|
-
PNG128 = "png128",
|
|
60
|
-
PNG256 = "png256",
|
|
61
|
-
JPG70 = "jpg70",
|
|
62
|
-
JPG80 = "jpg80",
|
|
63
|
-
JPG90 = "jpg90",
|
|
64
|
-
PNGRAW = "pngraw"
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Bing Map View (aerial, road, bird's eye view of the map)
|
|
68
|
-
*/
|
|
69
|
-
export declare enum BingMapType {
|
|
70
|
-
Aerial = "a",
|
|
71
|
-
Road = "r",
|
|
72
|
-
Aerial_Labels = "h",
|
|
73
|
-
Oblique = "o",
|
|
74
|
-
Oblique_Labels = "b"
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Bing Map Tile Image formats
|
|
78
|
-
*/
|
|
79
|
-
export declare enum BingMapImageFormat {
|
|
80
|
-
GIF = "gif",
|
|
81
|
-
JPEG = "jpeg",
|
|
82
|
-
PNG = "png"
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Here Map types
|
|
86
|
-
*/
|
|
87
|
-
export declare enum HereMapType {
|
|
88
|
-
Aerial = "aerial",
|
|
89
|
-
Base = "base",
|
|
90
|
-
Pano = "pano",
|
|
91
|
-
Traffic = "traffic"
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Here Map View Scheme like day, night, satellite, terrain
|
|
95
|
-
*/
|
|
96
|
-
export declare enum HereMapScheme {
|
|
97
|
-
Day = "normal.day",
|
|
98
|
-
Night = "normal.night",
|
|
99
|
-
Terrain = "terrain.day",
|
|
100
|
-
Satellite = "satellite.day"
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Here Map Tiles Image Format
|
|
104
|
-
*/
|
|
105
|
-
export declare enum HereMapImageFormat {
|
|
106
|
-
PNG = "png",
|
|
107
|
-
PNG8 = "png8",
|
|
108
|
-
JPG = "jpg"
|
|
109
|
-
}
|
|
110
|
-
export declare type BingMapConfig = {
|
|
111
|
-
provider: MapProviders.BingMap;
|
|
112
|
-
/**
|
|
113
|
-
* Bing Map API Key
|
|
114
|
-
*/
|
|
115
|
-
APIKey: string;
|
|
116
|
-
/**
|
|
117
|
-
* The type of the map used.
|
|
118
|
-
*/
|
|
119
|
-
type?: BingMapType;
|
|
120
|
-
};
|
|
121
|
-
export declare type HereMapConfig = {
|
|
122
|
-
provider: MapProviders.HereMap;
|
|
123
|
-
/**
|
|
124
|
-
* Here map API Key
|
|
125
|
-
*/
|
|
126
|
-
APIKey: string;
|
|
127
|
-
/**
|
|
128
|
-
* Service application code token.
|
|
129
|
-
*/
|
|
130
|
-
appCode?: string;
|
|
131
|
-
/**
|
|
132
|
-
* The type of maps to be used.
|
|
133
|
-
*/
|
|
134
|
-
style?: HereMapType;
|
|
135
|
-
/**
|
|
136
|
-
* Specifies the view scheme
|
|
137
|
-
*/
|
|
138
|
-
scheme?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Map image tile format
|
|
141
|
-
*/
|
|
142
|
-
imageFormat?: HereMapImageFormat;
|
|
143
|
-
/**
|
|
144
|
-
Returned tile map image size.
|
|
145
|
-
The following sizes are supported:
|
|
146
|
-
- 256
|
|
147
|
-
- 512
|
|
148
|
-
- 128 (deprecated, although usage is still accepted)
|
|
149
|
-
*/
|
|
150
|
-
size?: number;
|
|
151
|
-
};
|
|
152
|
-
export declare type OpenStreetMapConfig = {
|
|
153
|
-
provider: MapProviders.OpenStreetMap;
|
|
154
|
-
};
|
|
155
|
-
export declare type MapboxConfig = {
|
|
156
|
-
provider: MapProviders.MapboxMap;
|
|
157
|
-
/**
|
|
158
|
-
* Mapbox API Key
|
|
159
|
-
*/
|
|
160
|
-
APIKey: string;
|
|
161
|
-
/**
|
|
162
|
-
* Map style or map ID if the mode is set to MAP_ID
|
|
163
|
-
*/
|
|
164
|
-
id: string;
|
|
165
|
-
/**
|
|
166
|
-
Map tile access mode
|
|
167
|
-
- MapboxMode.STYLE
|
|
168
|
-
- MapboxMode.MAP_ID
|
|
169
|
-
*/
|
|
170
|
-
mode?: MapboxMode;
|
|
171
|
-
/**
|
|
172
|
-
* Map image tile format
|
|
173
|
-
*/
|
|
174
|
-
tileFormat?: MapboxImageFormat;
|
|
175
|
-
/**
|
|
176
|
-
* Flag to indicate if should use high resolution tiles
|
|
177
|
-
*/
|
|
178
|
-
useHDPI?: boolean;
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Maps Configuration of {@link GeomapTool}.
|
|
182
|
-
*/
|
|
183
|
-
export declare type MapConfig = {
|
|
184
|
-
/**
|
|
185
|
-
* Latitude, Longitude position
|
|
186
|
-
*/
|
|
187
|
-
latlong: LatLongPosition;
|
|
188
|
-
} & (BingMapConfig | HereMapConfig | MapboxConfig | OpenStreetMapConfig);
|
|
189
|
-
/**
|
|
190
|
-
* Latitude, Longitude position.
|
|
191
|
-
*/
|
|
192
|
-
export declare type LatLongPosition = {
|
|
193
|
-
latitude: number;
|
|
194
|
-
longitude: number;
|
|
195
|
-
};
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Supported map Providers Bing, Here & Mapbox
|
|
6
|
+
*/
|
|
7
|
+
export declare enum MapProviders {
|
|
8
|
+
BingMap = "BingMap",
|
|
9
|
+
HereMap = "HereMap",
|
|
10
|
+
MapboxMap = "MapboxMap",
|
|
11
|
+
OpenStreetMap = "OpenStreetMap"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Map data for Mapbox
|
|
15
|
+
*/
|
|
16
|
+
export declare enum MapboxMode {
|
|
17
|
+
/**
|
|
18
|
+
* Access the map data using a map style. For details see https://docs.mapbox.com/api/maps/styles/
|
|
19
|
+
*/
|
|
20
|
+
Style = 100,
|
|
21
|
+
/**
|
|
22
|
+
* Access the map data using a map id or Tileset id. For details see https://docs.mapbox.com/help/glossary/tileset-id/
|
|
23
|
+
*/
|
|
24
|
+
Map_Id = 101
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Mapbox Map Style, these are pre-defined styles using map/tileset id, created in Mapbox Studio style editor.
|
|
28
|
+
* This is used when MapboxMode.Style is used for mode.
|
|
29
|
+
*/
|
|
30
|
+
export declare enum MapboxStyle {
|
|
31
|
+
Streets = "mapbox/streets-v10",
|
|
32
|
+
Outdoor = "mapbox/outdoors-v10",
|
|
33
|
+
Light = "mapbox/light-v9",
|
|
34
|
+
Dark = "mapbox/dark-v9",
|
|
35
|
+
Satellite = "mapbox/satellite-v9",
|
|
36
|
+
Satellite_Streets = "mapbox/satellite-streets-v10",
|
|
37
|
+
Navigation_Day = "mapbox/navigation-preview-day-v4",
|
|
38
|
+
Navigation_Night = "mapbox/navigation-preview-night-v4",
|
|
39
|
+
Navigation_Guide_Day = "mapbox/navigation-guidance-day-v4",
|
|
40
|
+
Navigation_Guide_Night = "mapbox/navigation-guidance-night-v4"
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A map/tileset ID is a unique identifier given to every tileset, used when MapboxMode.Map_Id is choosen for mode.
|
|
44
|
+
*/
|
|
45
|
+
export declare enum MapboxId {
|
|
46
|
+
Streets = "mapbox.mapbox-streets-v7",
|
|
47
|
+
Satellite = "mapbox.satellite",
|
|
48
|
+
Terrain = "mapbox.mapbox-terrain-v2",
|
|
49
|
+
Traffic = "mapbox.mapbox-traffic-v1",
|
|
50
|
+
TerrainRGB = "mapbox.terrain-rgb"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Mapbox Map image tile format
|
|
54
|
+
*/
|
|
55
|
+
export declare enum MapboxImageFormat {
|
|
56
|
+
PNG = "png",
|
|
57
|
+
PNG32 = "png32",
|
|
58
|
+
PNG64 = "png64",
|
|
59
|
+
PNG128 = "png128",
|
|
60
|
+
PNG256 = "png256",
|
|
61
|
+
JPG70 = "jpg70",
|
|
62
|
+
JPG80 = "jpg80",
|
|
63
|
+
JPG90 = "jpg90",
|
|
64
|
+
PNGRAW = "pngraw"
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Bing Map View (aerial, road, bird's eye view of the map)
|
|
68
|
+
*/
|
|
69
|
+
export declare enum BingMapType {
|
|
70
|
+
Aerial = "a",
|
|
71
|
+
Road = "r",
|
|
72
|
+
Aerial_Labels = "h",
|
|
73
|
+
Oblique = "o",
|
|
74
|
+
Oblique_Labels = "b"
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Bing Map Tile Image formats
|
|
78
|
+
*/
|
|
79
|
+
export declare enum BingMapImageFormat {
|
|
80
|
+
GIF = "gif",
|
|
81
|
+
JPEG = "jpeg",
|
|
82
|
+
PNG = "png"
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Here Map types
|
|
86
|
+
*/
|
|
87
|
+
export declare enum HereMapType {
|
|
88
|
+
Aerial = "aerial",
|
|
89
|
+
Base = "base",
|
|
90
|
+
Pano = "pano",
|
|
91
|
+
Traffic = "traffic"
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Here Map View Scheme like day, night, satellite, terrain
|
|
95
|
+
*/
|
|
96
|
+
export declare enum HereMapScheme {
|
|
97
|
+
Day = "normal.day",
|
|
98
|
+
Night = "normal.night",
|
|
99
|
+
Terrain = "terrain.day",
|
|
100
|
+
Satellite = "satellite.day"
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Here Map Tiles Image Format
|
|
104
|
+
*/
|
|
105
|
+
export declare enum HereMapImageFormat {
|
|
106
|
+
PNG = "png",
|
|
107
|
+
PNG8 = "png8",
|
|
108
|
+
JPG = "jpg"
|
|
109
|
+
}
|
|
110
|
+
export declare type BingMapConfig = {
|
|
111
|
+
provider: MapProviders.BingMap;
|
|
112
|
+
/**
|
|
113
|
+
* Bing Map API Key
|
|
114
|
+
*/
|
|
115
|
+
APIKey: string;
|
|
116
|
+
/**
|
|
117
|
+
* The type of the map used.
|
|
118
|
+
*/
|
|
119
|
+
type?: BingMapType;
|
|
120
|
+
};
|
|
121
|
+
export declare type HereMapConfig = {
|
|
122
|
+
provider: MapProviders.HereMap;
|
|
123
|
+
/**
|
|
124
|
+
* Here map API Key
|
|
125
|
+
*/
|
|
126
|
+
APIKey: string;
|
|
127
|
+
/**
|
|
128
|
+
* Service application code token.
|
|
129
|
+
*/
|
|
130
|
+
appCode?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The type of maps to be used.
|
|
133
|
+
*/
|
|
134
|
+
style?: HereMapType;
|
|
135
|
+
/**
|
|
136
|
+
* Specifies the view scheme
|
|
137
|
+
*/
|
|
138
|
+
scheme?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Map image tile format
|
|
141
|
+
*/
|
|
142
|
+
imageFormat?: HereMapImageFormat;
|
|
143
|
+
/**
|
|
144
|
+
Returned tile map image size.
|
|
145
|
+
The following sizes are supported:
|
|
146
|
+
- 256
|
|
147
|
+
- 512
|
|
148
|
+
- 128 (deprecated, although usage is still accepted)
|
|
149
|
+
*/
|
|
150
|
+
size?: number;
|
|
151
|
+
};
|
|
152
|
+
export declare type OpenStreetMapConfig = {
|
|
153
|
+
provider: MapProviders.OpenStreetMap;
|
|
154
|
+
};
|
|
155
|
+
export declare type MapboxConfig = {
|
|
156
|
+
provider: MapProviders.MapboxMap;
|
|
157
|
+
/**
|
|
158
|
+
* Mapbox API Key
|
|
159
|
+
*/
|
|
160
|
+
APIKey: string;
|
|
161
|
+
/**
|
|
162
|
+
* Map style or map ID if the mode is set to MAP_ID
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
/**
|
|
166
|
+
Map tile access mode
|
|
167
|
+
- MapboxMode.STYLE
|
|
168
|
+
- MapboxMode.MAP_ID
|
|
169
|
+
*/
|
|
170
|
+
mode?: MapboxMode;
|
|
171
|
+
/**
|
|
172
|
+
* Map image tile format
|
|
173
|
+
*/
|
|
174
|
+
tileFormat?: MapboxImageFormat;
|
|
175
|
+
/**
|
|
176
|
+
* Flag to indicate if should use high resolution tiles
|
|
177
|
+
*/
|
|
178
|
+
useHDPI?: boolean;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Maps Configuration of {@link GeomapTool}.
|
|
182
|
+
*/
|
|
183
|
+
export declare type MapConfig = {
|
|
184
|
+
/**
|
|
185
|
+
* Latitude, Longitude position
|
|
186
|
+
*/
|
|
187
|
+
latlong: LatLongPosition;
|
|
188
|
+
} & (BingMapConfig | HereMapConfig | MapboxConfig | OpenStreetMapConfig);
|
|
189
|
+
/**
|
|
190
|
+
* Latitude, Longitude position.
|
|
191
|
+
*/
|
|
192
|
+
export declare type LatLongPosition = {
|
|
193
|
+
latitude: number;
|
|
194
|
+
longitude: number;
|
|
195
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 Cognite AS
|
|
3
|
-
*/
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
/**
|
|
6
|
-
* Data structure that splits a 2D region into cells where each cell can contain zero to many
|
|
7
|
-
* elements. Elements can be stored in several cells. This data structure make overlap lookups
|
|
8
|
-
* efficient.
|
|
9
|
-
*
|
|
10
|
-
* Note! This class is tailored for usage with {@link HtmlOverlayTool} and has a few restrictions
|
|
11
|
-
* and assumptions associated with the usage. If used elsewhere, take care as to how this affects
|
|
12
|
-
* performance and behaviour.
|
|
13
|
-
*/
|
|
14
|
-
export declare class BucketGrid2D<T> {
|
|
15
|
-
private readonly _dimensions;
|
|
16
|
-
private readonly _bounds;
|
|
17
|
-
private readonly _cells;
|
|
18
|
-
/**
|
|
19
|
-
* Holds elements that has been removed from the collection using {@link removeOverlappingElements}.
|
|
20
|
-
* This is used to avoid expensive re-allocations of cells when removing elements.
|
|
21
|
-
*/
|
|
22
|
-
private readonly _removedElements;
|
|
23
|
-
constructor(bounds: THREE.Box2, dimensions: [width: number, height: number]);
|
|
24
|
-
insert(bounds: THREE.Box2, element: T): void;
|
|
25
|
-
overlappingElements(bounds: THREE.Box2): Generator<T>;
|
|
26
|
-
removeOverlappingElements(bounds: THREE.Box2): Generator<T>;
|
|
27
|
-
private cellsIntersecting;
|
|
28
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
/**
|
|
6
|
+
* Data structure that splits a 2D region into cells where each cell can contain zero to many
|
|
7
|
+
* elements. Elements can be stored in several cells. This data structure make overlap lookups
|
|
8
|
+
* efficient.
|
|
9
|
+
*
|
|
10
|
+
* Note! This class is tailored for usage with {@link HtmlOverlayTool} and has a few restrictions
|
|
11
|
+
* and assumptions associated with the usage. If used elsewhere, take care as to how this affects
|
|
12
|
+
* performance and behaviour.
|
|
13
|
+
*/
|
|
14
|
+
export declare class BucketGrid2D<T> {
|
|
15
|
+
private readonly _dimensions;
|
|
16
|
+
private readonly _bounds;
|
|
17
|
+
private readonly _cells;
|
|
18
|
+
/**
|
|
19
|
+
* Holds elements that has been removed from the collection using {@link removeOverlappingElements}.
|
|
20
|
+
* This is used to avoid expensive re-allocations of cells when removing elements.
|
|
21
|
+
*/
|
|
22
|
+
private readonly _removedElements;
|
|
23
|
+
constructor(bounds: THREE.Box2, dimensions: [width: number, height: number]);
|
|
24
|
+
insert(bounds: THREE.Box2, element: T): void;
|
|
25
|
+
overlappingElements(bounds: THREE.Box2): Generator<T>;
|
|
26
|
+
removeOverlappingElements(bounds: THREE.Box2): Generator<T>;
|
|
27
|
+
private cellsIntersecting;
|
|
28
|
+
}
|