@loaders.gl/i3s 3.1.0-alpha.4 → 3.1.0-beta.5

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.
Files changed (125) hide show
  1. package/dist/bundle.d.ts +2 -0
  2. package/dist/bundle.d.ts.map +1 -0
  3. package/dist/bundle.js +10364 -0
  4. package/dist/es5/bundle.js +1 -1
  5. package/dist/es5/bundle.js.map +1 -1
  6. package/dist/es5/i3s-attribute-loader.js +89 -138
  7. package/dist/es5/i3s-attribute-loader.js.map +1 -1
  8. package/dist/es5/i3s-building-scene-layer-loader.js +8 -36
  9. package/dist/es5/i3s-building-scene-layer-loader.js.map +1 -1
  10. package/dist/es5/i3s-content-loader.js +10 -36
  11. package/dist/es5/i3s-content-loader.js.map +1 -1
  12. package/dist/es5/i3s-loader.js +56 -176
  13. package/dist/es5/i3s-loader.js.map +1 -1
  14. package/dist/es5/i3s-node-page-loader.js +8 -51
  15. package/dist/es5/i3s-node-page-loader.js.map +1 -1
  16. package/dist/es5/index.js +13 -5
  17. package/dist/es5/index.js.map +1 -1
  18. package/dist/es5/lib/helpers/i3s-nodepages-tiles.js +172 -325
  19. package/dist/es5/lib/helpers/i3s-nodepages-tiles.js.map +1 -1
  20. package/dist/es5/lib/parsers/constants.js +71 -25
  21. package/dist/es5/lib/parsers/constants.js.map +1 -1
  22. package/dist/es5/lib/parsers/parse-i3s-attribute.js +34 -68
  23. package/dist/es5/lib/parsers/parse-i3s-attribute.js.map +1 -1
  24. package/dist/es5/lib/parsers/parse-i3s-building-scene-layer.js +28 -59
  25. package/dist/es5/lib/parsers/parse-i3s-building-scene-layer.js.map +1 -1
  26. package/dist/es5/lib/parsers/parse-i3s-tile-content.js +314 -415
  27. package/dist/es5/lib/parsers/parse-i3s-tile-content.js.map +1 -1
  28. package/dist/es5/lib/parsers/parse-i3s.js +31 -70
  29. package/dist/es5/lib/parsers/parse-i3s.js.map +1 -1
  30. package/dist/es5/lib/utils/convert-i3s-obb-to-mbs.js +4 -8
  31. package/dist/es5/lib/utils/convert-i3s-obb-to-mbs.js.map +1 -1
  32. package/dist/es5/lib/utils/url-utils.js +17 -14
  33. package/dist/es5/lib/utils/url-utils.js.map +1 -1
  34. package/dist/es5/types.js +19 -0
  35. package/dist/es5/types.js.map +1 -1
  36. package/dist/esm/i3s-attribute-loader.js +44 -14
  37. package/dist/esm/i3s-attribute-loader.js.map +1 -1
  38. package/dist/esm/i3s-building-scene-layer-loader.js +1 -1
  39. package/dist/esm/i3s-building-scene-layer-loader.js.map +1 -1
  40. package/dist/esm/i3s-content-loader.js +1 -1
  41. package/dist/esm/i3s-content-loader.js.map +1 -1
  42. package/dist/esm/i3s-loader.js +5 -2
  43. package/dist/esm/i3s-loader.js.map +1 -1
  44. package/dist/esm/i3s-node-page-loader.js +1 -1
  45. package/dist/esm/i3s-node-page-loader.js.map +1 -1
  46. package/dist/esm/index.js +1 -0
  47. package/dist/esm/index.js.map +1 -1
  48. package/dist/esm/lib/helpers/i3s-nodepages-tiles.js +3 -3
  49. package/dist/esm/lib/helpers/i3s-nodepages-tiles.js.map +1 -1
  50. package/dist/esm/lib/parsers/constants.js +55 -15
  51. package/dist/esm/lib/parsers/constants.js.map +1 -1
  52. package/dist/esm/lib/parsers/parse-i3s-attribute.js +9 -1
  53. package/dist/esm/lib/parsers/parse-i3s-attribute.js.map +1 -1
  54. package/dist/esm/lib/parsers/parse-i3s-building-scene-layer.js +3 -1
  55. package/dist/esm/lib/parsers/parse-i3s-building-scene-layer.js.map +1 -1
  56. package/dist/esm/lib/parsers/parse-i3s-tile-content.js +87 -61
  57. package/dist/esm/lib/parsers/parse-i3s-tile-content.js.map +1 -1
  58. package/dist/esm/lib/parsers/parse-i3s.js +4 -4
  59. package/dist/esm/lib/parsers/parse-i3s.js.map +1 -1
  60. package/dist/esm/lib/utils/url-utils.js +3 -3
  61. package/dist/esm/lib/utils/url-utils.js.map +1 -1
  62. package/dist/esm/types.js +13 -1
  63. package/dist/esm/types.js.map +1 -1
  64. package/dist/i3s-attribute-loader.d.ts +14 -0
  65. package/dist/i3s-attribute-loader.d.ts.map +1 -0
  66. package/dist/i3s-attribute-loader.js +177 -0
  67. package/dist/i3s-building-scene-layer-loader.d.ts +6 -0
  68. package/dist/i3s-building-scene-layer-loader.d.ts.map +1 -0
  69. package/dist/i3s-building-scene-layer-loader.js +26 -0
  70. package/dist/i3s-content-loader.d.ts +6 -0
  71. package/dist/i3s-content-loader.d.ts.map +1 -0
  72. package/dist/i3s-content-loader.js +28 -0
  73. package/dist/i3s-content-worker.js +7657 -2
  74. package/dist/i3s-loader.d.ts +6 -0
  75. package/dist/i3s-loader.d.ts.map +1 -0
  76. package/dist/i3s-loader.js +100 -0
  77. package/dist/i3s-node-page-loader.d.ts +6 -0
  78. package/dist/i3s-node-page-loader.d.ts.map +1 -0
  79. package/dist/i3s-node-page-loader.js +26 -0
  80. package/dist/index.d.ts +7 -0
  81. package/dist/index.d.ts.map +1 -0
  82. package/dist/index.js +14 -0
  83. package/dist/lib/helpers/i3s-nodepages-tiles.d.ts +73 -0
  84. package/dist/lib/helpers/i3s-nodepages-tiles.d.ts.map +1 -0
  85. package/dist/lib/helpers/i3s-nodepages-tiles.js +231 -0
  86. package/dist/lib/parsers/constants.d.ts +56 -0
  87. package/dist/lib/parsers/constants.d.ts.map +1 -0
  88. package/dist/lib/parsers/constants.js +107 -0
  89. package/dist/lib/parsers/parse-i3s-attribute.d.ts +10 -0
  90. package/dist/lib/parsers/parse-i3s-attribute.d.ts.map +1 -0
  91. package/dist/lib/parsers/parse-i3s-attribute.js +98 -0
  92. package/dist/lib/parsers/parse-i3s-building-scene-layer.d.ts +9 -0
  93. package/dist/lib/parsers/parse-i3s-building-scene-layer.d.ts.map +1 -0
  94. package/dist/lib/parsers/parse-i3s-building-scene-layer.js +46 -0
  95. package/dist/lib/parsers/parse-i3s-tile-content.d.ts +4 -0
  96. package/dist/lib/parsers/parse-i3s-tile-content.d.ts.map +1 -0
  97. package/dist/lib/parsers/parse-i3s-tile-content.js +508 -0
  98. package/dist/lib/parsers/parse-i3s.d.ts +4 -0
  99. package/dist/lib/parsers/parse-i3s.d.ts.map +1 -0
  100. package/dist/lib/parsers/parse-i3s.js +84 -0
  101. package/dist/lib/utils/convert-i3s-obb-to-mbs.d.ts +2 -0
  102. package/dist/lib/utils/convert-i3s-obb-to-mbs.d.ts.map +1 -0
  103. package/dist/lib/utils/convert-i3s-obb-to-mbs.js +20 -0
  104. package/dist/lib/utils/url-utils.d.ts +22 -0
  105. package/dist/lib/utils/url-utils.d.ts.map +1 -0
  106. package/dist/lib/utils/url-utils.js +44 -0
  107. package/dist/types.d.ts +429 -0
  108. package/dist/types.d.ts.map +1 -0
  109. package/dist/types.js +15 -0
  110. package/dist/workers/i3s-content-worker.d.ts +2 -0
  111. package/dist/workers/i3s-content-worker.d.ts.map +1 -0
  112. package/dist/workers/i3s-content-worker.js +5 -0
  113. package/package.json +14 -12
  114. package/src/i3s-attribute-loader.ts +56 -19
  115. package/src/i3s-loader.ts +4 -1
  116. package/src/index.ts +1 -0
  117. package/src/lib/parsers/constants.ts +73 -18
  118. package/src/lib/parsers/parse-i3s-attribute.ts +19 -1
  119. package/src/lib/parsers/parse-i3s-building-scene-layer.ts +2 -1
  120. package/src/lib/parsers/parse-i3s-tile-content.ts +159 -109
  121. package/src/lib/utils/url-utils.ts +1 -1
  122. package/src/types.ts +153 -22
  123. package/dist/dist.min.js +0 -2
  124. package/dist/dist.min.js.map +0 -1
  125. package/dist/i3s-content-worker.js.map +0 -1
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.normalizeTilesetData = exports.normalizeTileNonUrlData = exports.normalizeTileData = void 0;
7
+ const culling_1 = require("@math.gl/culling");
8
+ const geospatial_1 = require("@math.gl/geospatial");
9
+ const core_1 = require("@loaders.gl/core");
10
+ const tiles_1 = require("@loaders.gl/tiles");
11
+ const i3s_nodepages_tiles_1 = __importDefault(require("../helpers/i3s-nodepages-tiles"));
12
+ const url_utils_1 = require("../utils/url-utils");
13
+ function normalizeTileData(tile, options, context) {
14
+ tile.url = context.url;
15
+ if (tile.featureData) {
16
+ tile.featureUrl = `${tile.url}/${tile.featureData[0].href}`;
17
+ }
18
+ if (tile.geometryData) {
19
+ tile.contentUrl = `${tile.url}/${tile.geometryData[0].href}`;
20
+ }
21
+ if (tile.textureData) {
22
+ tile.textureUrl = `${tile.url}/${tile.textureData[0].href}`;
23
+ }
24
+ if (tile.attributeData) {
25
+ tile.attributeUrls = (0, url_utils_1.generateTileAttributeUrls)(tile);
26
+ }
27
+ return normalizeTileNonUrlData(tile);
28
+ }
29
+ exports.normalizeTileData = normalizeTileData;
30
+ function normalizeTileNonUrlData(tile) {
31
+ const box = tile.obb
32
+ ? [
33
+ ...geospatial_1.Ellipsoid.WGS84.cartographicToCartesian(tile.obb.center),
34
+ ...tile.obb.halfSize,
35
+ ...tile.obb.quaternion // quaternion
36
+ ]
37
+ : undefined;
38
+ let sphere;
39
+ if (tile.mbs) {
40
+ sphere = [
41
+ ...geospatial_1.Ellipsoid.WGS84.cartographicToCartesian(tile.mbs.slice(0, 3)),
42
+ tile.mbs[3] // radius of sphere
43
+ ];
44
+ }
45
+ else if (box) {
46
+ const obb = new culling_1.OrientedBoundingBox().fromCenterHalfSizeQuaternion(box.slice(0, 3), tile.obb.halfSize, tile.obb.quaternion);
47
+ const boundingSphere = obb.getBoundingSphere();
48
+ sphere = [...boundingSphere.center, boundingSphere.radius];
49
+ tile.mbs = [...tile.obb.center, boundingSphere.radius];
50
+ }
51
+ tile.boundingVolume = {
52
+ sphere,
53
+ box
54
+ };
55
+ tile.lodMetricType = tile.lodSelection[0].metricType;
56
+ tile.lodMetricValue = tile.lodSelection[0].maxError;
57
+ tile.transformMatrix = tile.transform;
58
+ tile.type = tiles_1.TILE_TYPE.MESH;
59
+ // TODO only support replacement for now
60
+ tile.refine = tiles_1.TILE_REFINEMENT.REPLACE;
61
+ return tile;
62
+ }
63
+ exports.normalizeTileNonUrlData = normalizeTileNonUrlData;
64
+ async function normalizeTilesetData(tileset, options, context) {
65
+ tileset.url = context.url;
66
+ if (tileset.nodePages) {
67
+ tileset.nodePagesTile = new i3s_nodepages_tiles_1.default(tileset, options);
68
+ tileset.root = await tileset.nodePagesTile.formTileFromNodePages(0);
69
+ }
70
+ else {
71
+ const rootNodeUrl = (0, url_utils_1.getUrlWithToken)(`${tileset.url}/nodes/root`, options.i3s?.token);
72
+ // eslint-disable-next-line no-use-before-define
73
+ tileset.root = await (0, core_1.load)(rootNodeUrl, tileset.loader, {
74
+ i3s: { loadContent: false, isTileHeader: true, isTileset: false }
75
+ });
76
+ }
77
+ // base path that non-absolute paths in tileset are relative to.
78
+ tileset.basePath = tileset.url;
79
+ tileset.type = tiles_1.TILESET_TYPE.I3S;
80
+ // populate from root node
81
+ tileset.lodMetricType = tileset.root.lodMetricType;
82
+ tileset.lodMetricValue = tileset.root.lodMetricValue;
83
+ }
84
+ exports.normalizeTilesetData = normalizeTilesetData;
@@ -0,0 +1,2 @@
1
+ export declare function convertI3SObbToMbs(obb: any): any[];
2
+ //# sourceMappingURL=convert-i3s-obb-to-mbs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert-i3s-obb-to-mbs.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/convert-i3s-obb-to-mbs.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,GAAG,KAAA,SAgBrC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertI3SObbToMbs = void 0;
4
+ const culling_1 = require("@math.gl/culling");
5
+ const geospatial_1 = require("@math.gl/geospatial");
6
+ function convertI3SObbToMbs(obb) {
7
+ const halfSize = obb.halfSize;
8
+ const centerCartesian = geospatial_1.Ellipsoid.WGS84.cartographicToCartesian(obb.center);
9
+ const sphere = new culling_1.BoundingSphere().fromCornerPoints([
10
+ centerCartesian[0] - halfSize[0],
11
+ centerCartesian[1] - halfSize[1],
12
+ centerCartesian[2] - halfSize[2]
13
+ ], [
14
+ centerCartesian[0] + halfSize[0],
15
+ centerCartesian[1] + halfSize[1],
16
+ centerCartesian[2] + halfSize[2]
17
+ ]);
18
+ return [...obb.center, sphere.radius];
19
+ }
20
+ exports.convertI3SObbToMbs = convertI3SObbToMbs;
@@ -0,0 +1,22 @@
1
+ import { Tile } from '../../types';
2
+ /**
3
+ * Generates url with token if it is exists.
4
+ * @param {String} url
5
+ * @param {any} token
6
+ * @returns {string}
7
+ */
8
+ export declare function getUrlWithToken(url: string, token?: null): string;
9
+ /**
10
+ * Generates attribute urls for tile.
11
+ * @param tile
12
+ * @returns list of attribute urls
13
+ */
14
+ export declare function generateTileAttributeUrls(tile: Tile): string[];
15
+ /**
16
+ * Generates attribute urls for tileset based on tileset and resource
17
+ * @param {Object} tileset
18
+ * @param {number} resource
19
+ * @returns {Array}
20
+ */
21
+ export declare function generateTilesetAttributeUrls(tileset: any, resource: any): string[];
22
+ //# sourceMappingURL=url-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/url-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAEjC;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,OAAO,GAAG,MAAM,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,CAU9D;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,YAU7D"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateTilesetAttributeUrls = exports.generateTileAttributeUrls = exports.getUrlWithToken = void 0;
4
+ /**
5
+ * Generates url with token if it is exists.
6
+ * @param {String} url
7
+ * @param {any} token
8
+ * @returns {string}
9
+ */
10
+ function getUrlWithToken(url, token = null) {
11
+ return token ? `${url}?token=${token}` : url;
12
+ }
13
+ exports.getUrlWithToken = getUrlWithToken;
14
+ /**
15
+ * Generates attribute urls for tile.
16
+ * @param tile
17
+ * @returns list of attribute urls
18
+ */
19
+ function generateTileAttributeUrls(tile) {
20
+ const { url, attributeData } = tile;
21
+ const attributeUrls = [];
22
+ for (let index = 0; index < attributeData.length; index++) {
23
+ const attributeUrl = attributeData[index].href.replace('./', '');
24
+ attributeUrls.push(`${url}/${attributeUrl}`);
25
+ }
26
+ return attributeUrls;
27
+ }
28
+ exports.generateTileAttributeUrls = generateTileAttributeUrls;
29
+ /**
30
+ * Generates attribute urls for tileset based on tileset and resource
31
+ * @param {Object} tileset
32
+ * @param {number} resource
33
+ * @returns {Array}
34
+ */
35
+ function generateTilesetAttributeUrls(tileset, resource) {
36
+ const attributeUrls = [];
37
+ const { attributeStorageInfo, url } = tileset;
38
+ for (let index = 0; index < attributeStorageInfo.length; index++) {
39
+ const fileName = attributeStorageInfo[index].key;
40
+ attributeUrls.push(`${url}/nodes/${resource}/attributes/${fileName}/0`);
41
+ }
42
+ return attributeUrls;
43
+ }
44
+ exports.generateTilesetAttributeUrls = generateTilesetAttributeUrls;
@@ -0,0 +1,429 @@
1
+ import type { GLTFMaterial } from '@loaders.gl/gltf';
2
+ import type { Matrix4, Quaternion, Vector3 } from '@math.gl/core';
3
+ import type { Mesh } from '@loaders.gl/gltf';
4
+ import type { TypedArray } from '@loaders.gl/schema';
5
+ export declare enum DATA_TYPE {
6
+ UInt8 = "UInt8",
7
+ UInt16 = "UInt16",
8
+ UInt32 = "UInt32",
9
+ UInt64 = "UInt64",
10
+ Int16 = "Int16",
11
+ Int32 = "Int32",
12
+ Int64 = "Int64",
13
+ Float32 = "Float32",
14
+ Float64 = "Float64"
15
+ }
16
+ /**
17
+ * spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/3DSceneLayer.cmn.md
18
+ */
19
+ export declare type Tileset = {
20
+ /**
21
+ * The store object describes the exact physical storage of a layer and enables the client to detect when multiple layers are served from the same store.
22
+ */
23
+ store: Store;
24
+ [key: string]: any;
25
+ };
26
+ export declare type NodePage = {
27
+ [key: string]: any;
28
+ };
29
+ export declare type Tile = {
30
+ content: TileContent;
31
+ isDracoGeometry: boolean;
32
+ textureUrl: string;
33
+ url: string;
34
+ /**
35
+ * Resource reference describing a featureData document.
36
+ */
37
+ attributeData: Resource[];
38
+ textureFormat: 'jpeg' | 'png' | 'ktx-etc2' | 'dds' | 'ktx2';
39
+ textureLoaderOptions: any;
40
+ materialDefinition: GLTFMaterial;
41
+ mbs: Mbs;
42
+ };
43
+ export declare type TileContent = {
44
+ featureData: DefaultGeometrySchema;
45
+ attributes: NormalizedAttributes;
46
+ indices: NormalizedAttribute | null;
47
+ featureIds: number[] | TypedArray;
48
+ vertexCount: number;
49
+ modelMatrix: Matrix4;
50
+ coordinateSystem: number;
51
+ byteLength: number;
52
+ texture: TileContentTexture;
53
+ [key: string]: any;
54
+ };
55
+ export declare type TileContentTexture = ArrayBuffer | {
56
+ compressed: boolean;
57
+ mipmaps: boolean;
58
+ width: number;
59
+ height: number;
60
+ data: any;
61
+ } | null;
62
+ export declare type BoundingVolumes = {
63
+ mbs: Mbs;
64
+ obb: Obb;
65
+ };
66
+ export declare type Obb = {
67
+ center: number[] | Vector3;
68
+ halfSize: number[] | Vector3;
69
+ quaternion: Quaternion;
70
+ };
71
+ export declare type Mbs = [number, number, number, number];
72
+ export declare type SceneLayer3D = {
73
+ id: number;
74
+ href?: string;
75
+ layerType: string;
76
+ spatialReference?: SpatialReference;
77
+ heightModelInfo?: HeightModelInfo;
78
+ version: string;
79
+ name?: string;
80
+ capabilities: string[];
81
+ store: Store;
82
+ nodePages?: NodePages;
83
+ materialDefinitions?: GLTFMaterial[];
84
+ textureSetDefinitions?: TextureSetDefinition[];
85
+ geometryDefinitions?: GeometryDefinitions;
86
+ attributeStorageInfo?: AttributeStorageInfo[];
87
+ fields?: Field[];
88
+ popupInfo?: PopupInfo;
89
+ };
90
+ export declare type AttributeStorageInfo = {
91
+ key: string;
92
+ name: string;
93
+ header: {
94
+ property: string;
95
+ valueType: string;
96
+ }[];
97
+ ordering?: string[];
98
+ attributeValues?: AttributeValue;
99
+ attributeByteCounts?: AttributeValue;
100
+ objectIds?: AttributeValue;
101
+ };
102
+ export declare type Field = {
103
+ name: string;
104
+ type: ESRIField;
105
+ alias?: string;
106
+ domain?: Domain;
107
+ };
108
+ export declare type ESRIField = 'esriFieldTypeDate' | 'esriFieldTypeSingle' | 'esriFieldTypeDouble' | 'esriFieldTypeGUID' | 'esriFieldTypeGlobalID' | 'esriFieldTypeInteger' | 'esriFieldTypeOID' | 'esriFieldTypeSmallInteger' | 'esriFieldTypeString';
109
+ export declare type PopupInfo = {
110
+ title?: string;
111
+ description?: string;
112
+ expressionInfos?: any[];
113
+ fieldInfos?: FieldInfo[];
114
+ mediaInfos?: any[];
115
+ popupElements?: {
116
+ text?: string;
117
+ type?: string;
118
+ fieldInfos?: FieldInfo[];
119
+ }[];
120
+ };
121
+ /**
122
+ * Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.7/3DNodeIndexDocument.cmn.md
123
+ */
124
+ export declare type Node3DIndexDocument = {
125
+ id: string;
126
+ version?: string;
127
+ path?: string;
128
+ level?: number;
129
+ mbs?: Mbs;
130
+ obb?: Obb;
131
+ lodSelection?: LodSelection;
132
+ children?: NodeReference[];
133
+ neighbors?: NodeReference[];
134
+ parentNode?: NodeReference;
135
+ sharedResource?: Resource;
136
+ featureData?: Resource[];
137
+ geometryData?: Resource[];
138
+ textureData?: Resource[];
139
+ attributeData?: Resource[];
140
+ created?: string;
141
+ expires?: string;
142
+ };
143
+ export declare type LodSelection = {
144
+ metricType?: string;
145
+ maxError: number;
146
+ };
147
+ export declare type NodeReference = {
148
+ id: string;
149
+ version?: string;
150
+ mbs?: Mbs;
151
+ obb?: Obb;
152
+ href?: string;
153
+ };
154
+ export declare type Resource = {
155
+ href: string;
156
+ layerContent?: string[];
157
+ featureRange?: number[];
158
+ multiTextureBundle?: string;
159
+ vertexElements?: number[];
160
+ faceElements?: number[];
161
+ nodePath?: string;
162
+ };
163
+ export declare type I3SGeometry = {
164
+ geometry: ArrayBuffer | null;
165
+ compressedGeometry?: ArrayBuffer | null;
166
+ texture: any | null;
167
+ sharedResources: SharedResources | null;
168
+ meshMaterial?: GLTFMaterial | null;
169
+ vertexCount: number | null;
170
+ attributes: any | null;
171
+ featureCount: number | null;
172
+ geometryBuffer?: ArrayBuffer;
173
+ };
174
+ export declare type MaxScreenThresholdSQ = {
175
+ maxError: number;
176
+ };
177
+ export declare type NodeInPage = {
178
+ index?: number;
179
+ lodThreshold: number;
180
+ obb: Obb;
181
+ children: any[];
182
+ mesh: Mesh;
183
+ };
184
+ export declare type SharedResources = {
185
+ materialDefinitions?: GLTFMaterial[];
186
+ textureDefinitions?: TextureDefinitionInfo[];
187
+ nodePath: string;
188
+ };
189
+ export declare type TextureImage = {
190
+ id: string;
191
+ size?: number;
192
+ pixelInWorldUnits?: number;
193
+ href?: string[];
194
+ byteOffset?: string[];
195
+ length?: number[];
196
+ mimeType?: string;
197
+ bufferView?: {
198
+ data: ArrayBuffer;
199
+ };
200
+ image?: {
201
+ height: number;
202
+ width: number;
203
+ };
204
+ };
205
+ export declare type Attribute = 'OBJECTID' | 'string' | 'double' | 'Int32' | string;
206
+ export declare type Extent = [number, number, number, number];
207
+ export declare type FeatureAttribute = {
208
+ id: AttributeValue;
209
+ faceRange: AttributeValue;
210
+ };
211
+ export declare type BuildingSceneLayerTileset = {
212
+ header: BuildingSceneLayer;
213
+ sublayers: BuildingSceneSublayer[];
214
+ };
215
+ export declare type BuildingSceneLayer = {
216
+ id: number;
217
+ name: string;
218
+ version: string;
219
+ alias?: string;
220
+ layerType: 'Building';
221
+ description?: string;
222
+ copyrightText?: string;
223
+ fullExtent: FullExtent;
224
+ spatialReference: SpatialReference;
225
+ heightModelInfo?: HeightModelInfo;
226
+ sublayers: BuildingSceneSublayer[];
227
+ filters?: Filter[];
228
+ activeFilterID?: string;
229
+ statisticsHRef?: string;
230
+ };
231
+ export declare type BuildingSceneSublayer = {
232
+ id: number;
233
+ name: string;
234
+ alias?: string;
235
+ discipline?: 'Mechanical' | 'Architectural' | 'Piping' | 'Electrical' | 'Structural';
236
+ modelName?: string;
237
+ layerType: 'group' | '3DObject' | 'Point';
238
+ visibility?: boolean;
239
+ sublayers?: BuildingSceneSublayer[];
240
+ isEmpty?: boolean;
241
+ url?: string;
242
+ };
243
+ declare type Filter = {
244
+ id: string;
245
+ name: string;
246
+ description: string;
247
+ isDefaultFilter?: boolean;
248
+ isVisible?: boolean;
249
+ filterBlocks: FilterBlock[];
250
+ filterAuthoringInfo?: FilterAuthoringInfo;
251
+ };
252
+ declare type FilterAuthoringInfo = {
253
+ type: string;
254
+ filterBlocks: FilterBlockAuthoringInfo[];
255
+ };
256
+ declare type FilterBlockAuthoringInfo = {
257
+ filterTypes: FilterType[];
258
+ };
259
+ declare type FilterType = {
260
+ filterType: string;
261
+ filterValues: string[];
262
+ };
263
+ declare type FilterBlock = {
264
+ title: string;
265
+ filterMode: FilterModeSolid | FilterModeWireFrame;
266
+ filterExpression: string;
267
+ };
268
+ declare type Edges = {
269
+ type: string;
270
+ color: number[];
271
+ size: number;
272
+ transparency: number;
273
+ extensionLength: number;
274
+ };
275
+ declare type FilterModeSolid = {
276
+ type: 'solid';
277
+ };
278
+ declare type FilterModeWireFrame = {
279
+ type: 'wireFrame';
280
+ edges: Edges;
281
+ };
282
+ declare type SpatialReference = {
283
+ wkid: number;
284
+ latestWkid: number;
285
+ vcsWkid: number;
286
+ latestVcsWkid: number;
287
+ wkt?: string;
288
+ };
289
+ declare type FullExtent = {
290
+ xmin: number;
291
+ xmax: number;
292
+ ymin: number;
293
+ ymax: number;
294
+ zmin: number;
295
+ zmax: number;
296
+ spatialReference?: SpatialReference;
297
+ };
298
+ declare type TextureDefinitionInfo = {
299
+ encoding: string[];
300
+ wrap?: string[];
301
+ atlas?: boolean;
302
+ uvSet?: string;
303
+ channels?: 'rbg' | 'rgba' | string;
304
+ images: TextureImage[];
305
+ };
306
+ declare type Domain = {
307
+ type: string;
308
+ name: string;
309
+ description?: string;
310
+ fieldType?: string;
311
+ range?: [number, number];
312
+ codedValues?: {
313
+ name: string;
314
+ code: string | number;
315
+ }[];
316
+ mergePolicy?: string;
317
+ splitPolicy?: string;
318
+ };
319
+ /**
320
+ * spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/store.cmn.md
321
+ */
322
+ declare type Store = {
323
+ id: string | number;
324
+ profile: string;
325
+ version: number | string;
326
+ resourcePattern: string[];
327
+ rootNode: string;
328
+ extent: number[];
329
+ indexCRS: string;
330
+ vertexCRS: string;
331
+ normalReferenceFrame: string;
332
+ attributeEncoding: string;
333
+ textureEncoding: string[];
334
+ lodType: string;
335
+ lodModel: string;
336
+ defaultGeometrySchema: DefaultGeometrySchema;
337
+ };
338
+ /**
339
+ * Spec - https://github.com/Esri/i3s-spec/blob/master/docs/1.8/defaultGeometrySchema.cmn.md
340
+ */
341
+ declare type DefaultGeometrySchema = {
342
+ geometryType?: 'triangles';
343
+ topology: 'PerAttributeArray' | 'Indexed';
344
+ header: {
345
+ property: 'vertexCount' | 'featureCount' | string;
346
+ 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;
347
+ }[];
348
+ ordering: string[];
349
+ vertexAttributes: VertexAttribute;
350
+ faces?: VertexAttribute;
351
+ featureAttributeOrder: string[];
352
+ featureAttributes: FeatureAttribute;
353
+ attributesOrder?: string[];
354
+ };
355
+ export declare type VertexAttribute = {
356
+ position: GeometryAttribute;
357
+ normal: GeometryAttribute;
358
+ uv0: GeometryAttribute;
359
+ color: GeometryAttribute;
360
+ region?: GeometryAttribute;
361
+ };
362
+ export declare type GeometryAttribute = {
363
+ byteOffset?: number;
364
+ valueType: DATA_TYPE.UInt8 | DATA_TYPE.UInt16 | DATA_TYPE.Int16 | DATA_TYPE.Int32 | DATA_TYPE.Int64 | DATA_TYPE.Float32 | DATA_TYPE.Float64;
365
+ valuesPerElement: number;
366
+ };
367
+ export declare type NormalizedAttributes = {
368
+ [key: string]: NormalizedAttribute;
369
+ };
370
+ export declare type NormalizedAttribute = {
371
+ value: number[] | TypedArray;
372
+ type: number;
373
+ size: number;
374
+ normalized?: boolean;
375
+ metadata?: any;
376
+ };
377
+ declare type HeightModelInfo = {
378
+ heightModel: 'gravity_related_height' | 'ellipsoidal';
379
+ vertCRS: string;
380
+ 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';
381
+ };
382
+ declare type NodePages = {
383
+ nodesPerPage: number;
384
+ lodSelectionMetricType: string;
385
+ };
386
+ declare type TextureSetDefinition = {
387
+ formats: {
388
+ name: string;
389
+ format: string;
390
+ }[];
391
+ atlas?: boolean;
392
+ };
393
+ declare type GeometryDefinitions = {
394
+ topology: 'triangle' | string;
395
+ geometryBuffers: GeometryBuffer[];
396
+ };
397
+ declare type GeometryBuffer = {
398
+ offset?: number;
399
+ position?: GeometryBufferItem;
400
+ normal?: GeometryBufferItem;
401
+ uv0?: GeometryBufferItem;
402
+ color?: GeometryBufferItem;
403
+ uvRegion?: GeometryBufferItem;
404
+ featureId?: GeometryBufferItem;
405
+ faceRange?: GeometryBufferItem;
406
+ compressedAttributes?: {
407
+ encoding: string;
408
+ attributes: string[];
409
+ };
410
+ };
411
+ declare type GeometryBufferItem = {
412
+ type: string;
413
+ component: number;
414
+ encoding?: string;
415
+ binding: string;
416
+ };
417
+ declare type AttributeValue = {
418
+ valueType: string;
419
+ encoding?: string;
420
+ valuesPerElement?: number;
421
+ };
422
+ declare type FieldInfo = {
423
+ fieldName: string;
424
+ visible: boolean;
425
+ isEditable: boolean;
426
+ label: string;
427
+ };
428
+ export {};
429
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAEnD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AACD;;GAEG;AAEH,oBAAY,OAAO,GAAG;IACpB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,oBAAY,QAAQ,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,CAAC;AAE5C,oBAAY,IAAI,GAAG;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG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AC,UAAU,EAAE,MAAM,EAAE,CAAA;KAAC,CAAC;CACjE,CAAC;AAEF,aAAK,kBAAkB,GAAG;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAAC;AAEhG,aAAK,cAAc,GAAG;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAExF,aAAK,SAAS,GAAG;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DATA_TYPE = void 0;
4
+ var DATA_TYPE;
5
+ (function (DATA_TYPE) {
6
+ DATA_TYPE["UInt8"] = "UInt8";
7
+ DATA_TYPE["UInt16"] = "UInt16";
8
+ DATA_TYPE["UInt32"] = "UInt32";
9
+ DATA_TYPE["UInt64"] = "UInt64";
10
+ DATA_TYPE["Int16"] = "Int16";
11
+ DATA_TYPE["Int32"] = "Int32";
12
+ DATA_TYPE["Int64"] = "Int64";
13
+ DATA_TYPE["Float32"] = "Float32";
14
+ DATA_TYPE["Float64"] = "Float64";
15
+ })(DATA_TYPE = exports.DATA_TYPE || (exports.DATA_TYPE = {}));
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i3s-content-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i3s-content-worker.d.ts","sourceRoot":"","sources":["../../src/workers/i3s-content-worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const loader_utils_1 = require("@loaders.gl/loader-utils");
4
+ const i3s_content_loader_1 = require("../i3s-content-loader");
5
+ (0, loader_utils_1.createLoaderWorker)(i3s_content_loader_1.I3SContentLoader);