@loaders.gl/i3s 3.3.0-alpha.7 → 3.3.0-alpha.8
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/dist/dist.min.js +37 -76
- package/dist/es5/arcgis-webscene-loader.js +1 -1
- package/dist/es5/i3s-attribute-loader.js +1 -1
- package/dist/es5/i3s-building-scene-layer-loader.js +1 -1
- package/dist/es5/i3s-content-loader.js +1 -1
- package/dist/es5/i3s-loader.js +1 -1
- package/dist/es5/i3s-node-page-loader.js +1 -1
- package/dist/esm/arcgis-webscene-loader.js +1 -1
- package/dist/esm/i3s-attribute-loader.js +1 -1
- package/dist/esm/i3s-building-scene-layer-loader.js +1 -1
- package/dist/esm/i3s-content-loader.js +1 -1
- package/dist/esm/i3s-loader.js +1 -1
- package/dist/esm/i3s-node-page-loader.js +1 -1
- package/dist/i3s-content-nodejs-worker.js +50 -50
- package/dist/i3s-content-nodejs-worker.js.map +3 -3
- package/dist/i3s-content-worker.js +15 -15
- package/dist/i3s-loader.d.ts +1 -1
- package/dist/i3s-loader.d.ts.map +1 -1
- package/dist/types.d.ts +89 -89
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -10
package/dist/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare enum DATA_TYPE {
|
|
|
12
12
|
Float32 = "Float32",
|
|
13
13
|
Float64 = "Float64"
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type COLOR = [number, number, number, number];
|
|
16
16
|
/**
|
|
17
17
|
* spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/3DSceneLayer.cmn.md
|
|
18
18
|
*/
|
|
@@ -22,14 +22,14 @@ export interface I3STilesetHeader extends SceneLayer3D {
|
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
}
|
|
24
24
|
/** https://github.com/Esri/i3s-spec/blob/master/docs/1.8/nodePage.cmn.md */
|
|
25
|
-
export
|
|
25
|
+
export type NodePage = {
|
|
26
26
|
/** Array of nodes. */
|
|
27
27
|
nodes: NodeInPage[];
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/mesh.cmn.md
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
type NodeMesh = {
|
|
33
33
|
/**
|
|
34
34
|
* The material definition.
|
|
35
35
|
*/
|
|
@@ -40,7 +40,7 @@ declare type NodeMesh = {
|
|
|
40
40
|
attribute: meshAttribute;
|
|
41
41
|
};
|
|
42
42
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/meshMaterial.cmn.md */
|
|
43
|
-
export
|
|
43
|
+
export type MeshMaterial = {
|
|
44
44
|
/** The index in layer.materialDefinitions array. */
|
|
45
45
|
definition: number;
|
|
46
46
|
/** Resource id for the material textures. i.e: layers/0/nodes/{material.resource}/textures/{tex_name}. Is required if material declares any textures. */
|
|
@@ -49,7 +49,7 @@ export declare type MeshMaterial = {
|
|
|
49
49
|
texelCountHint?: number;
|
|
50
50
|
};
|
|
51
51
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/meshGeometry.cmn.md */
|
|
52
|
-
export
|
|
52
|
+
export type MeshGeometry = {
|
|
53
53
|
/** The index in layer.geometryDefinitions array */
|
|
54
54
|
definition: number;
|
|
55
55
|
/** The resource locator to be used to query geometry resources: layers/0/nodes/{this.resource}/geometries/{layer.geometryDefinitions[this.definition].geometryBuffers[0 or 1]}. */
|
|
@@ -60,12 +60,12 @@ export declare type MeshGeometry = {
|
|
|
60
60
|
featureCount?: number;
|
|
61
61
|
};
|
|
62
62
|
/** https://github.com/Esri/i3s-spec/blob/master/docs/1.8/meshAttribute.cmn.md */
|
|
63
|
-
|
|
63
|
+
type meshAttribute = {
|
|
64
64
|
/** The resource identifier to be used to locate attribute resources of this mesh. i.e. layers/0/nodes/<resource id>/attributes/... */
|
|
65
65
|
resource: number;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
68
|
-
export
|
|
67
|
+
export type I3STextureFormat = 'jpg' | 'png' | 'ktx-etc2' | 'dds' | 'ktx2';
|
|
68
|
+
export type I3STileHeader = {
|
|
69
69
|
isDracoGeometry: boolean;
|
|
70
70
|
textureUrl?: string;
|
|
71
71
|
url?: string;
|
|
@@ -77,7 +77,7 @@ export declare type I3STileHeader = {
|
|
|
77
77
|
lodSelection?: LodSelection[];
|
|
78
78
|
[key: string]: any;
|
|
79
79
|
};
|
|
80
|
-
export
|
|
80
|
+
export type I3SParseOptions = {
|
|
81
81
|
/** ArcGIS access token */
|
|
82
82
|
token?: string;
|
|
83
83
|
/** Is 3DSceneLayer json expected in response */
|
|
@@ -113,7 +113,7 @@ export declare type I3SParseOptions = {
|
|
|
113
113
|
maxColor: COLOR;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
export
|
|
116
|
+
export type I3STileOptions = {
|
|
117
117
|
isDracoGeometry: boolean;
|
|
118
118
|
textureUrl?: string;
|
|
119
119
|
textureFormat?: I3STextureFormat;
|
|
@@ -122,12 +122,12 @@ export declare type I3STileOptions = {
|
|
|
122
122
|
attributeUrls: string[];
|
|
123
123
|
mbs: Mbs;
|
|
124
124
|
};
|
|
125
|
-
export
|
|
125
|
+
export type I3STilesetOptions = {
|
|
126
126
|
store: Store;
|
|
127
127
|
attributeStorageInfo: AttributeStorageInfo[];
|
|
128
128
|
fields: Field[];
|
|
129
129
|
};
|
|
130
|
-
export
|
|
130
|
+
export type I3STileContent = {
|
|
131
131
|
attributes: I3SMeshAttributes;
|
|
132
132
|
indices: TypedArray | null;
|
|
133
133
|
featureIds: number[] | TypedArray;
|
|
@@ -138,25 +138,25 @@ export declare type I3STileContent = {
|
|
|
138
138
|
texture: TileContentTexture;
|
|
139
139
|
[key: string]: any;
|
|
140
140
|
};
|
|
141
|
-
export
|
|
141
|
+
export type TileContentTexture = ArrayBuffer | {
|
|
142
142
|
compressed: boolean;
|
|
143
143
|
mipmaps: boolean;
|
|
144
144
|
width: number;
|
|
145
145
|
height: number;
|
|
146
146
|
data: TextureLevel[];
|
|
147
147
|
} | null;
|
|
148
|
-
export
|
|
148
|
+
export type BoundingVolumes = {
|
|
149
149
|
mbs: Mbs;
|
|
150
150
|
obb: Obb;
|
|
151
151
|
};
|
|
152
|
-
export
|
|
152
|
+
export type Obb = {
|
|
153
153
|
center: number[] | Vector3;
|
|
154
154
|
halfSize: number[] | Vector3;
|
|
155
155
|
quaternion: number[] | Quaternion;
|
|
156
156
|
};
|
|
157
|
-
export
|
|
157
|
+
export type Mbs = [number, number, number, number];
|
|
158
158
|
/** SceneLayer3D based on I3S specification - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/3DSceneLayer.cmn.md */
|
|
159
|
-
export
|
|
159
|
+
export type SceneLayer3D = {
|
|
160
160
|
/** Unique numeric ID of the layer. */
|
|
161
161
|
id: number;
|
|
162
162
|
/** The relative URL to the 3DSceneLayerResource. Only present as part of the SceneServiceInfo resource. */
|
|
@@ -219,19 +219,19 @@ export declare type SceneLayer3D = {
|
|
|
219
219
|
fullExtent?: FullExtent;
|
|
220
220
|
};
|
|
221
221
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/cachedDrawingInfo.cmn.md */
|
|
222
|
-
export
|
|
222
|
+
export type CachedDrawingInfo = {
|
|
223
223
|
/** If true, the drawingInfo is captured as part of the binary scene layer representation. */
|
|
224
224
|
color: boolean;
|
|
225
225
|
};
|
|
226
226
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/drawingInfo.cmn.md */
|
|
227
|
-
export
|
|
227
|
+
export type DrawingInfo = {
|
|
228
228
|
/** An object defining the symbology for the layer. See more information about supported renderer types in ArcGIS clients. */
|
|
229
229
|
renderer: any;
|
|
230
230
|
/** Scale symbols for the layer. */
|
|
231
231
|
scaleSymbols: boolean;
|
|
232
232
|
};
|
|
233
233
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/elevationInfo.cmn.md */
|
|
234
|
-
export
|
|
234
|
+
export type ElevationInfo = {
|
|
235
235
|
mode: 'relativeToGround' | 'absoluteHeight' | 'onTheGround' | 'relativeToScene';
|
|
236
236
|
/** Offset is always added to the result of the above logic except for onTheGround where offset is ignored. */
|
|
237
237
|
offset: number;
|
|
@@ -239,7 +239,7 @@ export declare type ElevationInfo = {
|
|
|
239
239
|
unit: string;
|
|
240
240
|
};
|
|
241
241
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/statisticsInfo.cmn.md */
|
|
242
|
-
export
|
|
242
|
+
export type StatisticsInfo = {
|
|
243
243
|
/** Key indicating the resource of the statistics. */
|
|
244
244
|
key: string;
|
|
245
245
|
/** Name of the field of the statistical information. */
|
|
@@ -248,7 +248,7 @@ export declare type StatisticsInfo = {
|
|
|
248
248
|
href: string;
|
|
249
249
|
};
|
|
250
250
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/nodePageDefinition.cmn.md */
|
|
251
|
-
export
|
|
251
|
+
export type NodePageDefinition = {
|
|
252
252
|
/** Number of nodes per page for this layer. Must be a power-of-two less than 4096 */
|
|
253
253
|
nodesPerPage: number;
|
|
254
254
|
/** Index of the root node. Default = 0. */
|
|
@@ -257,7 +257,7 @@ export declare type NodePageDefinition = {
|
|
|
257
257
|
lodSelectionMetricType: 'maxScreenThresholdSQ';
|
|
258
258
|
};
|
|
259
259
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/materialDefinitions.cmn.md */
|
|
260
|
-
export
|
|
260
|
+
export type I3SMaterialDefinition = {
|
|
261
261
|
/** A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. When not specified, all the default values of pbrMetallicRoughness apply. */
|
|
262
262
|
pbrMetallicRoughness: I3SPbrMetallicRoughness;
|
|
263
263
|
/** The normal texture map. */
|
|
@@ -278,7 +278,7 @@ export declare type I3SMaterialDefinition = {
|
|
|
278
278
|
cullFace?: 'none' | 'front' | 'back';
|
|
279
279
|
};
|
|
280
280
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/pbrMetallicRoughness.cmn.md */
|
|
281
|
-
export
|
|
281
|
+
export type I3SPbrMetallicRoughness = {
|
|
282
282
|
/** The material's base color factor. default=[1,1,1,1] */
|
|
283
283
|
baseColorFactor?: [number, number, number, number];
|
|
284
284
|
/** The base color texture. */
|
|
@@ -291,7 +291,7 @@ export declare type I3SPbrMetallicRoughness = {
|
|
|
291
291
|
metallicRoughnessTexture?: I3SMaterialTexture;
|
|
292
292
|
};
|
|
293
293
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/materialTexture.cmn.md */
|
|
294
|
-
export
|
|
294
|
+
export type I3SMaterialTexture = {
|
|
295
295
|
/** The index in layer.textureSetDefinitions. */
|
|
296
296
|
textureSetDefinitionId: number;
|
|
297
297
|
/** The set index of texture's TEXCOORD attribute used for texture coordinate mapping. Default is 0. Deprecated. */
|
|
@@ -300,7 +300,7 @@ export declare type I3SMaterialTexture = {
|
|
|
300
300
|
factor?: number;
|
|
301
301
|
};
|
|
302
302
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/attributeStorageInfo.cmn.md */
|
|
303
|
-
export
|
|
303
|
+
export type AttributeStorageInfo = {
|
|
304
304
|
key: string;
|
|
305
305
|
name: string;
|
|
306
306
|
header: {
|
|
@@ -313,15 +313,15 @@ export declare type AttributeStorageInfo = {
|
|
|
313
313
|
objectIds?: AttributeValue;
|
|
314
314
|
};
|
|
315
315
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/field.cmn.md */
|
|
316
|
-
export
|
|
316
|
+
export type Field = {
|
|
317
317
|
name: string;
|
|
318
318
|
type: ESRIField;
|
|
319
319
|
alias?: string;
|
|
320
320
|
domain?: Domain;
|
|
321
321
|
};
|
|
322
|
-
export
|
|
322
|
+
export type ESRIField = 'esriFieldTypeDate' | 'esriFieldTypeSingle' | 'esriFieldTypeDouble' | 'esriFieldTypeGUID' | 'esriFieldTypeGlobalID' | 'esriFieldTypeInteger' | 'esriFieldTypeOID' | 'esriFieldTypeSmallInteger' | 'esriFieldTypeString';
|
|
323
323
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/popupInfo.cmn.md */
|
|
324
|
-
export
|
|
324
|
+
export type PopupInfo = {
|
|
325
325
|
title?: string;
|
|
326
326
|
description?: string;
|
|
327
327
|
expressionInfos?: any[];
|
|
@@ -336,7 +336,7 @@ export declare type PopupInfo = {
|
|
|
336
336
|
/**
|
|
337
337
|
* Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.7/3DNodeIndexDocument.cmn.md
|
|
338
338
|
*/
|
|
339
|
-
export
|
|
339
|
+
export type Node3DIndexDocument = {
|
|
340
340
|
id: string;
|
|
341
341
|
version?: string;
|
|
342
342
|
path?: string;
|
|
@@ -358,7 +358,7 @@ export declare type Node3DIndexDocument = {
|
|
|
358
358
|
/**
|
|
359
359
|
* Minimal I3S node data is needed for loading
|
|
360
360
|
*/
|
|
361
|
-
export
|
|
361
|
+
export type I3SMinimalNodeData = {
|
|
362
362
|
id: string;
|
|
363
363
|
url?: string;
|
|
364
364
|
transform?: number[];
|
|
@@ -376,18 +376,18 @@ export declare type I3SMinimalNodeData = {
|
|
|
376
376
|
children?: NodeReference[];
|
|
377
377
|
isDracoGeometry: boolean;
|
|
378
378
|
};
|
|
379
|
-
export
|
|
379
|
+
export type LodSelection = {
|
|
380
380
|
metricType?: string;
|
|
381
381
|
maxError: number;
|
|
382
382
|
};
|
|
383
|
-
export
|
|
383
|
+
export type NodeReference = {
|
|
384
384
|
id: string;
|
|
385
385
|
version?: string;
|
|
386
386
|
mbs?: Mbs;
|
|
387
387
|
obb?: Obb;
|
|
388
388
|
href?: string;
|
|
389
389
|
};
|
|
390
|
-
export
|
|
390
|
+
export type Resource = {
|
|
391
391
|
href: string;
|
|
392
392
|
layerContent?: string[];
|
|
393
393
|
featureRange?: number[];
|
|
@@ -396,11 +396,11 @@ export declare type Resource = {
|
|
|
396
396
|
faceElements?: number[];
|
|
397
397
|
nodePath?: string;
|
|
398
398
|
};
|
|
399
|
-
export
|
|
399
|
+
export type MaxScreenThresholdSQ = {
|
|
400
400
|
maxError: number;
|
|
401
401
|
};
|
|
402
402
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/node.cmn.md */
|
|
403
|
-
export
|
|
403
|
+
export type NodeInPage = {
|
|
404
404
|
/**
|
|
405
405
|
* The index in the node array. May be different than material, geometry and attribute resource id. See mesh for more information.
|
|
406
406
|
*/
|
|
@@ -429,7 +429,7 @@ export declare type NodeInPage = {
|
|
|
429
429
|
/**
|
|
430
430
|
* https://github.com/Esri/i3s-spec/blob/master/docs/1.8/materialDefinitionInfo.cmn.md
|
|
431
431
|
*/
|
|
432
|
-
export
|
|
432
|
+
export type MaterialDefinitionInfo = {
|
|
433
433
|
/** A name for the material as assigned in the creating application. */
|
|
434
434
|
name?: string;
|
|
435
435
|
/** Indicates the material type, chosen from the supported values. */
|
|
@@ -478,7 +478,7 @@ export declare type MaterialDefinitionInfo = {
|
|
|
478
478
|
};
|
|
479
479
|
};
|
|
480
480
|
/** https://github.com/Esri/i3s-spec/blob/master/docs/1.8/sharedResource.cmn.md */
|
|
481
|
-
export
|
|
481
|
+
export type SharedResources = {
|
|
482
482
|
/** Materials describe how a Feature or a set of Features is to be rendered. */
|
|
483
483
|
materialDefinitions?: {
|
|
484
484
|
[key: string]: MaterialDefinitionInfo;
|
|
@@ -489,7 +489,7 @@ export declare type SharedResources = {
|
|
|
489
489
|
};
|
|
490
490
|
};
|
|
491
491
|
/** https://github.com/Esri/i3s-spec/blob/master/docs/1.8/image.cmn.md */
|
|
492
|
-
|
|
492
|
+
type TextureImage = {
|
|
493
493
|
/** A unique ID for each image. Generated using the BuildID function. */
|
|
494
494
|
id: string;
|
|
495
495
|
/** width of this image, in pixels. */
|
|
@@ -506,17 +506,17 @@ declare type TextureImage = {
|
|
|
506
506
|
* in the same order as the encodings. */
|
|
507
507
|
length?: number[];
|
|
508
508
|
};
|
|
509
|
-
export
|
|
510
|
-
export
|
|
511
|
-
export
|
|
509
|
+
export type Attribute = 'OBJECTID' | 'string' | 'double' | 'Int32' | string;
|
|
510
|
+
export type Extent = [number, number, number, number];
|
|
511
|
+
export type FeatureAttribute = {
|
|
512
512
|
id: AttributeValue;
|
|
513
513
|
faceRange: AttributeValue;
|
|
514
514
|
};
|
|
515
|
-
export
|
|
515
|
+
export type BuildingSceneLayerTileset = {
|
|
516
516
|
header: BuildingSceneLayer;
|
|
517
517
|
sublayers: BuildingSceneSublayer[];
|
|
518
518
|
};
|
|
519
|
-
export
|
|
519
|
+
export type BuildingSceneLayer = {
|
|
520
520
|
id: number;
|
|
521
521
|
name: string;
|
|
522
522
|
version: string;
|
|
@@ -532,7 +532,7 @@ export declare type BuildingSceneLayer = {
|
|
|
532
532
|
activeFilterID?: string;
|
|
533
533
|
statisticsHRef?: string;
|
|
534
534
|
};
|
|
535
|
-
export
|
|
535
|
+
export type BuildingSceneSublayer = {
|
|
536
536
|
id: number;
|
|
537
537
|
name: string;
|
|
538
538
|
alias?: string;
|
|
@@ -544,7 +544,7 @@ export declare type BuildingSceneSublayer = {
|
|
|
544
544
|
isEmpty?: boolean;
|
|
545
545
|
url?: string;
|
|
546
546
|
};
|
|
547
|
-
|
|
547
|
+
type Filter = {
|
|
548
548
|
id: string;
|
|
549
549
|
name: string;
|
|
550
550
|
description: string;
|
|
@@ -553,38 +553,38 @@ declare type Filter = {
|
|
|
553
553
|
filterBlocks: FilterBlock[];
|
|
554
554
|
filterAuthoringInfo?: FilterAuthoringInfo;
|
|
555
555
|
};
|
|
556
|
-
|
|
556
|
+
type FilterAuthoringInfo = {
|
|
557
557
|
type: string;
|
|
558
558
|
filterBlocks: FilterBlockAuthoringInfo[];
|
|
559
559
|
};
|
|
560
|
-
|
|
560
|
+
type FilterBlockAuthoringInfo = {
|
|
561
561
|
filterTypes: FilterType[];
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
type FilterType = {
|
|
564
564
|
filterType: string;
|
|
565
565
|
filterValues: string[];
|
|
566
566
|
};
|
|
567
|
-
|
|
567
|
+
type FilterBlock = {
|
|
568
568
|
title: string;
|
|
569
569
|
filterMode: FilterModeSolid | FilterModeWireFrame;
|
|
570
570
|
filterExpression: string;
|
|
571
571
|
};
|
|
572
|
-
|
|
572
|
+
type Edges = {
|
|
573
573
|
type: string;
|
|
574
574
|
color: number[];
|
|
575
575
|
size: number;
|
|
576
576
|
transparency: number;
|
|
577
577
|
extensionLength: number;
|
|
578
578
|
};
|
|
579
|
-
|
|
579
|
+
type FilterModeSolid = {
|
|
580
580
|
type: 'solid';
|
|
581
581
|
};
|
|
582
|
-
|
|
582
|
+
type FilterModeWireFrame = {
|
|
583
583
|
type: 'wireFrame';
|
|
584
584
|
edges: Edges;
|
|
585
585
|
};
|
|
586
586
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/spatialReference.cmn.md */
|
|
587
|
-
export
|
|
587
|
+
export type SpatialReference = {
|
|
588
588
|
/** The current WKID value of the vertical coordinate system. */
|
|
589
589
|
latestVcsWkid: number;
|
|
590
590
|
/** dentifies the current WKID value associated with the same spatial reference. */
|
|
@@ -597,7 +597,7 @@ export declare type SpatialReference = {
|
|
|
597
597
|
wkt?: string;
|
|
598
598
|
};
|
|
599
599
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/fullExtent.cmn.md */
|
|
600
|
-
export
|
|
600
|
+
export type FullExtent = {
|
|
601
601
|
/** left longitude in decimal degrees */
|
|
602
602
|
xmin: number;
|
|
603
603
|
/** right longitude in decimal degrees */
|
|
@@ -615,7 +615,7 @@ export declare type FullExtent = {
|
|
|
615
615
|
/**
|
|
616
616
|
* https://github.com/Esri/i3s-spec/blob/master/docs/1.8/textureDefinitionInfo.cmn.md
|
|
617
617
|
*/
|
|
618
|
-
export
|
|
618
|
+
export type TextureDefinitionInfo = {
|
|
619
619
|
/** MIMEtype - The encoding/content type that is used by all images in this map */
|
|
620
620
|
encoding?: string[];
|
|
621
621
|
/** UV wrapping modes, from {none, repeat, mirror}. */
|
|
@@ -630,7 +630,7 @@ export declare type TextureDefinitionInfo = {
|
|
|
630
630
|
images: TextureImage[];
|
|
631
631
|
};
|
|
632
632
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/domain.cmn.md */
|
|
633
|
-
|
|
633
|
+
type Domain = {
|
|
634
634
|
type: string;
|
|
635
635
|
name: string;
|
|
636
636
|
description?: string;
|
|
@@ -646,7 +646,7 @@ declare type Domain = {
|
|
|
646
646
|
/**
|
|
647
647
|
* spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/store.cmn.md
|
|
648
648
|
*/
|
|
649
|
-
|
|
649
|
+
type Store = {
|
|
650
650
|
id: string | number;
|
|
651
651
|
profile: string;
|
|
652
652
|
version: number | string;
|
|
@@ -665,7 +665,7 @@ declare type Store = {
|
|
|
665
665
|
/**
|
|
666
666
|
* Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/defaultGeometrySchema.cmn.md
|
|
667
667
|
*/
|
|
668
|
-
|
|
668
|
+
type DefaultGeometrySchema = {
|
|
669
669
|
geometryType?: 'triangles';
|
|
670
670
|
topology: 'PerAttributeArray' | 'Indexed';
|
|
671
671
|
header: HeaderAttribute[];
|
|
@@ -679,7 +679,7 @@ declare type DefaultGeometrySchema = {
|
|
|
679
679
|
/**
|
|
680
680
|
* spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/headerAttribute.cmn.md
|
|
681
681
|
*/
|
|
682
|
-
export
|
|
682
|
+
export type HeaderAttribute = {
|
|
683
683
|
property: HeaderAttributeProperty.vertexCount | HeaderAttributeProperty.featureCount | string;
|
|
684
684
|
type: DATA_TYPE.UInt8 | DATA_TYPE.UInt16 | DATA_TYPE.UInt32 | DATA_TYPE.UInt64 | DATA_TYPE.Int16 | DATA_TYPE.Int32 | DATA_TYPE.Int64 | DATA_TYPE.Float32 | DATA_TYPE.Float64;
|
|
685
685
|
};
|
|
@@ -687,19 +687,19 @@ export declare enum HeaderAttributeProperty {
|
|
|
687
687
|
vertexCount = "vertexCount",
|
|
688
688
|
featureCount = "featureCount"
|
|
689
689
|
}
|
|
690
|
-
export
|
|
690
|
+
export type VertexAttribute = {
|
|
691
691
|
position: GeometryAttribute;
|
|
692
692
|
normal: GeometryAttribute;
|
|
693
693
|
uv0: GeometryAttribute;
|
|
694
694
|
color: GeometryAttribute;
|
|
695
695
|
region?: GeometryAttribute;
|
|
696
696
|
};
|
|
697
|
-
export
|
|
697
|
+
export type GeometryAttribute = {
|
|
698
698
|
byteOffset?: number;
|
|
699
699
|
valueType: DATA_TYPE.UInt8 | DATA_TYPE.UInt16 | DATA_TYPE.Int16 | DATA_TYPE.Int32 | DATA_TYPE.Int64 | DATA_TYPE.Float32 | DATA_TYPE.Float64;
|
|
700
700
|
valuesPerElement: number;
|
|
701
701
|
};
|
|
702
|
-
export
|
|
702
|
+
export type I3SMeshAttributes = {
|
|
703
703
|
[key: string]: I3SMeshAttribute;
|
|
704
704
|
};
|
|
705
705
|
export interface I3SMeshAttribute extends MeshAttribute {
|
|
@@ -707,27 +707,27 @@ export interface I3SMeshAttribute extends MeshAttribute {
|
|
|
707
707
|
metadata?: any;
|
|
708
708
|
}
|
|
709
709
|
/** https://github.com/Esri/i3s-spec/blob/master/docs/1.8/heightModelInfo.cmn.md */
|
|
710
|
-
|
|
710
|
+
type HeightModelInfo = {
|
|
711
711
|
heightModel: 'gravity_related_height' | 'ellipsoidal';
|
|
712
712
|
vertCRS: string;
|
|
713
713
|
heightUnit: 'meter' | 'us-foot' | 'foot' | 'clarke-foot' | 'clarke-yard' | 'clarke-link' | 'sears-yard' | 'sears-foot' | 'sears-chain' | 'benoit-1895-b-chain' | 'indian-yard' | 'indian-1937-yard' | 'gold-coast-foot' | 'sears-1922-truncated-chain' | 'us-inch' | 'us-mile' | 'us-yard' | 'millimeter' | 'decimeter' | 'centimeter' | 'kilometer';
|
|
714
714
|
};
|
|
715
|
-
export
|
|
715
|
+
export type TextureSetDefinitionFormats = {
|
|
716
716
|
name: string;
|
|
717
717
|
format: I3STextureFormat;
|
|
718
718
|
}[];
|
|
719
719
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/textureSetDefinition.cmn.md */
|
|
720
|
-
|
|
720
|
+
type TextureSetDefinition = {
|
|
721
721
|
formats: TextureSetDefinitionFormats;
|
|
722
722
|
atlas?: boolean;
|
|
723
723
|
};
|
|
724
724
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/geometryDefinition.cmn.md */
|
|
725
|
-
|
|
725
|
+
type GeometryDefinition = {
|
|
726
726
|
topology: 'triangle' | string;
|
|
727
727
|
geometryBuffers: GeometryBuffer[];
|
|
728
728
|
};
|
|
729
729
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/geometryBuffer.cmn.md */
|
|
730
|
-
|
|
730
|
+
type GeometryBuffer = {
|
|
731
731
|
offset?: number;
|
|
732
732
|
position?: GeometryBufferItem;
|
|
733
733
|
normal?: GeometryBufferItem;
|
|
@@ -741,24 +741,24 @@ declare type GeometryBuffer = {
|
|
|
741
741
|
attributes: string[];
|
|
742
742
|
};
|
|
743
743
|
};
|
|
744
|
-
|
|
744
|
+
type GeometryBufferItem = {
|
|
745
745
|
type: string;
|
|
746
746
|
component: number;
|
|
747
747
|
encoding?: string;
|
|
748
748
|
binding: string;
|
|
749
749
|
};
|
|
750
|
-
|
|
750
|
+
type AttributeValue = {
|
|
751
751
|
valueType: string;
|
|
752
752
|
encoding?: string;
|
|
753
753
|
valuesPerElement?: number;
|
|
754
754
|
};
|
|
755
|
-
export
|
|
755
|
+
export type FieldInfo = {
|
|
756
756
|
fieldName: string;
|
|
757
757
|
visible: boolean;
|
|
758
758
|
isEditable: boolean;
|
|
759
759
|
label: string;
|
|
760
760
|
};
|
|
761
|
-
export
|
|
761
|
+
export type ArcGisWebSceneData = {
|
|
762
762
|
header: ArcGisWebScene;
|
|
763
763
|
layers: OperationalLayer[];
|
|
764
764
|
unsupportedLayers: OperationalLayer[];
|
|
@@ -766,7 +766,7 @@ export declare type ArcGisWebSceneData = {
|
|
|
766
766
|
/**
|
|
767
767
|
* ArcGis WebScene spec - https://developers.arcgis.com/web-scene-specification/objects/webscene/
|
|
768
768
|
*/
|
|
769
|
-
export
|
|
769
|
+
export type ArcGisWebScene = {
|
|
770
770
|
/**
|
|
771
771
|
* @todo add type.
|
|
772
772
|
* Spec - https://developers.arcgis.com/web-scene-specification/objects/applicationProperties/
|
|
@@ -857,7 +857,7 @@ export declare type ArcGisWebScene = {
|
|
|
857
857
|
* Operational layers contain your data. Usually, a basemap sits beneath your operational layers to give them geographic context.
|
|
858
858
|
* Spec- https://developers.arcgis.com/web-scene-specification/objects/operationalLayers/
|
|
859
859
|
*/
|
|
860
|
-
export
|
|
860
|
+
export type OperationalLayer = {
|
|
861
861
|
id: string;
|
|
862
862
|
opacity: number;
|
|
863
863
|
title: string;
|
|
@@ -872,17 +872,17 @@ export declare type OperationalLayer = {
|
|
|
872
872
|
showLegend?: boolean;
|
|
873
873
|
layers?: OperationalLayer[];
|
|
874
874
|
};
|
|
875
|
-
|
|
875
|
+
type LayerDefinition = {
|
|
876
876
|
elevationInfo: ElevationInfo;
|
|
877
877
|
drawingInfo: DrawingInfo;
|
|
878
878
|
};
|
|
879
|
-
|
|
879
|
+
type BaseMap = {
|
|
880
880
|
id: string;
|
|
881
881
|
title: string;
|
|
882
882
|
baseMapLayers: BaseMapLayer[];
|
|
883
883
|
elevationLayers: ElevationLayer[];
|
|
884
884
|
};
|
|
885
|
-
|
|
885
|
+
type BaseMapLayer = {
|
|
886
886
|
id: string;
|
|
887
887
|
opacity: number;
|
|
888
888
|
title: string;
|
|
@@ -890,7 +890,7 @@ declare type BaseMapLayer = {
|
|
|
890
890
|
visibility: boolean;
|
|
891
891
|
layerType: string;
|
|
892
892
|
};
|
|
893
|
-
|
|
893
|
+
type ElevationLayer = {
|
|
894
894
|
id: string;
|
|
895
895
|
listMode: string;
|
|
896
896
|
title: string;
|
|
@@ -898,36 +898,36 @@ declare type ElevationLayer = {
|
|
|
898
898
|
visibility: boolean;
|
|
899
899
|
layerType: string;
|
|
900
900
|
};
|
|
901
|
-
|
|
901
|
+
type Ground = {
|
|
902
902
|
layers: ElevationLayer[];
|
|
903
903
|
transparency: number;
|
|
904
904
|
navigationConstraint: NavigationConstraint;
|
|
905
905
|
};
|
|
906
|
-
|
|
906
|
+
type NavigationConstraint = {
|
|
907
907
|
type: string;
|
|
908
908
|
};
|
|
909
|
-
|
|
909
|
+
type InitialState = {
|
|
910
910
|
environment: Enviroment;
|
|
911
911
|
viewpoint: ViewPoint;
|
|
912
912
|
};
|
|
913
|
-
|
|
913
|
+
type Enviroment = {
|
|
914
914
|
lighting: Lighting;
|
|
915
915
|
atmosphereEnabled?: string;
|
|
916
916
|
starsEnabled?: string;
|
|
917
917
|
};
|
|
918
|
-
|
|
918
|
+
type Lighting = {
|
|
919
919
|
datetime?: number;
|
|
920
920
|
displayUTCOffset?: number;
|
|
921
921
|
};
|
|
922
|
-
|
|
922
|
+
type ViewPoint = {
|
|
923
923
|
camera: Camera;
|
|
924
924
|
};
|
|
925
|
-
|
|
925
|
+
type Camera = {
|
|
926
926
|
position: CameraPosition;
|
|
927
927
|
heading: number;
|
|
928
928
|
tilt: number;
|
|
929
929
|
};
|
|
930
|
-
|
|
930
|
+
type CameraPosition = {
|
|
931
931
|
spatialReference: SpatialReference;
|
|
932
932
|
x: number;
|
|
933
933
|
y: number;
|
|
@@ -936,7 +936,7 @@ declare type CameraPosition = {
|
|
|
936
936
|
/**
|
|
937
937
|
* Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/statsInfo.cmn.md
|
|
938
938
|
*/
|
|
939
|
-
export
|
|
939
|
+
export type StatsInfo = {
|
|
940
940
|
/** Represents the count of the value. */
|
|
941
941
|
totalValuesCount?: number;
|
|
942
942
|
/** Minimum attribute value for the entire layer. */
|
|
@@ -959,7 +959,7 @@ export declare type StatsInfo = {
|
|
|
959
959
|
mostFrequentValues?: ValueCount[];
|
|
960
960
|
};
|
|
961
961
|
/** Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/histogram.cmn.md */
|
|
962
|
-
export
|
|
962
|
+
export type Histogram = {
|
|
963
963
|
/** Minimum attribute value for the entire layer. */
|
|
964
964
|
minimum: number;
|
|
965
965
|
/** Maximum attribute value for the entire layer. Maximum array size for stats.histo.counts is 256. */
|
|
@@ -967,7 +967,7 @@ export declare type Histogram = {
|
|
|
967
967
|
/** Count for the entire layer. */
|
|
968
968
|
counts: number[];
|
|
969
969
|
};
|
|
970
|
-
export
|
|
970
|
+
export type ValueCount = {
|
|
971
971
|
/** Type of the attribute values after decompression, if applicable. Please note that string is not supported for point cloud scene layer attributes. */
|
|
972
972
|
value: number | string;
|
|
973
973
|
/** Count of the number of values. May exceed 32 bits. */
|