@loaders.gl/i3s 4.2.0-alpha.6 → 4.2.0-beta.1

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 (39) hide show
  1. package/dist/arcgis-webscene-loader.d.ts +19 -2
  2. package/dist/arcgis-webscene-loader.d.ts.map +1 -1
  3. package/dist/arcgis-webscene-loader.js +3 -1
  4. package/dist/dist.dev.js +139 -100
  5. package/dist/dist.min.js +1 -1
  6. package/dist/i3s-attribute-loader.d.ts +14 -3
  7. package/dist/i3s-attribute-loader.d.ts.map +1 -1
  8. package/dist/i3s-attribute-loader.js +3 -1
  9. package/dist/i3s-building-scene-layer-loader.d.ts +15 -3
  10. package/dist/i3s-building-scene-layer-loader.d.ts.map +1 -1
  11. package/dist/i3s-building-scene-layer-loader.js +3 -1
  12. package/dist/i3s-content-loader.d.ts +18 -2
  13. package/dist/i3s-content-loader.d.ts.map +1 -1
  14. package/dist/i3s-content-loader.js +6 -1
  15. package/dist/i3s-content-worker-node.js +48 -48
  16. package/dist/i3s-content-worker-node.js.map +4 -4
  17. package/dist/i3s-content-worker.js +1720 -1686
  18. package/dist/i3s-loader.d.ts +30 -2
  19. package/dist/i3s-loader.d.ts.map +1 -1
  20. package/dist/i3s-loader.js +6 -1
  21. package/dist/i3s-node-page-loader.d.ts +17 -3
  22. package/dist/i3s-node-page-loader.d.ts.map +1 -1
  23. package/dist/i3s-node-page-loader.js +6 -1
  24. package/dist/i3s-slpk-loader.d.ts +13 -2
  25. package/dist/i3s-slpk-loader.d.ts.map +1 -1
  26. package/dist/i3s-slpk-loader.js +6 -1
  27. package/dist/index.cjs +21 -7
  28. package/dist/index.cjs.map +2 -2
  29. package/dist/lib/parsers/parse-i3s-tile-content.d.ts.map +1 -1
  30. package/dist/lib/parsers/parse-i3s-tile-content.js +0 -1
  31. package/package.json +12 -12
  32. package/src/arcgis-webscene-loader.ts +4 -6
  33. package/src/i3s-attribute-loader.ts +4 -2
  34. package/src/i3s-building-scene-layer-loader.ts +6 -6
  35. package/src/i3s-content-loader.ts +9 -2
  36. package/src/i3s-loader.ts +9 -2
  37. package/src/i3s-node-page-loader.ts +9 -2
  38. package/src/i3s-slpk-loader.ts +9 -2
  39. package/src/lib/parsers/parse-i3s-tile-content.ts +3 -4
@@ -1,5 +1,6 @@
1
- import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils';
1
+ import type { LoaderOptions } from '@loaders.gl/loader-utils';
2
2
  import type { I3STilesetHeader } from "./types.js";
3
+ import { COORDINATE_SYSTEM } from "./lib/parsers/constants.js";
3
4
  import { I3SParseOptions } from "./types.js";
4
5
  export type I3SLoaderOptions = LoaderOptions & {
5
6
  i3s?: I3SParseOptions;
@@ -7,5 +8,32 @@ export type I3SLoaderOptions = LoaderOptions & {
7
8
  /**
8
9
  * Loader for I3S - Indexed 3D Scene Layer
9
10
  */
10
- export declare const I3SLoader: LoaderWithParser<I3STilesetHeader, never, LoaderOptions>;
11
+ export declare const I3SLoader: {
12
+ readonly dataType: I3STilesetHeader;
13
+ readonly batchType: never;
14
+ readonly name: "I3S (Indexed Scene Layers)";
15
+ readonly id: "i3s";
16
+ readonly module: "i3s";
17
+ readonly version: any;
18
+ readonly mimeTypes: ["application/octet-stream"];
19
+ readonly parse: typeof parseI3S;
20
+ readonly extensions: ["bin"];
21
+ readonly options: {
22
+ readonly i3s: {
23
+ readonly token: null;
24
+ readonly isTileset: "auto";
25
+ readonly isTileHeader: "auto";
26
+ readonly tile: null;
27
+ readonly tileset: null;
28
+ readonly _tileOptions: null;
29
+ readonly _tilesetOptions: null;
30
+ readonly useDracoGeometry: true;
31
+ readonly useCompressedTextures: true;
32
+ readonly decodeTextures: true;
33
+ readonly coordinateSystem: COORDINATE_SYSTEM.METER_OFFSETS;
34
+ };
35
+ };
36
+ };
37
+ declare function parseI3S(data: any, options: I3SLoaderOptions | undefined, context: any): Promise<I3STilesetHeader>;
38
+ export {};
11
39
  //# sourceMappingURL=i3s-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i3s-loader.d.ts","sourceRoot":"","sources":["../src/i3s-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAE9E,OAAO,KAAK,EAAC,gBAAgB,EAAC,mBAAgB;AAI9C,OAAO,EAAC,eAAe,EAAC,mBAAgB;AAaxC,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,gBAAgB,CAAC,gBAAgB,EAAE,KAAK,EAAE,aAAa,CAuB9E,CAAC"}
1
+ {"version":3,"file":"i3s-loader.d.ts","sourceRoot":"","sources":["../src/i3s-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAmB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAE9E,OAAO,KAAK,EAAC,gBAAgB,EAAC,mBAAgB;AAG9C,OAAO,EAAC,iBAAiB,EAAC,mCAAgC;AAC1D,OAAO,EAAC,eAAe,EAAC,mBAAgB;AAaxC,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CA0BuD,CAAC;AAE9E,iBAAe,QAAQ,CAAC,IAAI,KAAA,EAAE,OAAO,8BAAuB,EAAE,OAAO,KAAA,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoChG"}
@@ -1,3 +1,6 @@
1
+ // loaders.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright vis.gl contributors
1
4
  import { parse } from '@loaders.gl/core';
2
5
  import { I3SContentLoader } from "./i3s-content-loader.js";
3
6
  import { normalizeTileData, normalizeTilesetData } from "./lib/parsers/parse-i3s.js";
@@ -5,7 +8,7 @@ import { COORDINATE_SYSTEM } from "./lib/parsers/constants.js";
5
8
  import { getUrlWithoutParams } from "./lib/utils/url-utils.js";
6
9
  // __VERSION__ is injected by babel-plugin-version-inline
7
10
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
8
- const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest';
11
+ const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
9
12
  const TILESET_REGEX = /layers\/[0-9]+$/;
10
13
  const LOCAL_SLPK_REGEX = /\.slpk$/;
11
14
  const TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
@@ -15,6 +18,8 @@ const POINT_CLOUD = 'PointCloud';
15
18
  * Loader for I3S - Indexed 3D Scene Layer
16
19
  */
17
20
  export const I3SLoader = {
21
+ dataType: null,
22
+ batchType: null,
18
23
  name: 'I3S (Indexed Scene Layers)',
19
24
  id: 'i3s',
20
25
  module: 'i3s',
@@ -1,8 +1,22 @@
1
- import type { LoaderWithParser } from '@loaders.gl/loader-utils';
2
- import type { I3SLoaderOptions } from "./i3s-loader.js";
1
+ import type { LoaderOptions } from '@loaders.gl/loader-utils';
3
2
  import type { NodePage } from "./types.js";
4
3
  /**
5
4
  * Loader for I3S node pages
6
5
  */
7
- export declare const I3SNodePageLoader: LoaderWithParser<NodePage, never, I3SLoaderOptions>;
6
+ export declare const I3SNodePageLoader: {
7
+ readonly dataType: NodePage;
8
+ readonly batchType: never;
9
+ readonly name: "I3S Node Page";
10
+ readonly id: "i3s-node-page";
11
+ readonly module: "i3s";
12
+ readonly version: any;
13
+ readonly mimeTypes: ["application/json"];
14
+ readonly parse: typeof parseNodePage;
15
+ readonly extensions: ["json"];
16
+ readonly options: {
17
+ readonly i3s: {};
18
+ };
19
+ };
20
+ declare function parseNodePage(data: ArrayBuffer, options?: LoaderOptions): Promise<NodePage>;
21
+ export {};
8
22
  //# sourceMappingURL=i3s-node-page-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i3s-node-page-loader.d.ts","sourceRoot":"","sources":["../src/i3s-node-page-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,gBAAgB,EAAC,wBAAqB;AACnD,OAAO,KAAK,EAAC,QAAQ,EAAC,mBAAgB;AAMtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,gBAAgB,CAWjF,CAAC"}
1
+ {"version":3,"file":"i3s-node-page-loader.d.ts","sourceRoot":"","sources":["../src/i3s-node-page-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAmB,MAAM,0BAA0B,CAAC;AAE9E,OAAO,KAAK,EAAC,QAAQ,EAAC,mBAAgB;AAMtC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAc0C,CAAC;AAEzE,iBAAe,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAE1F"}
@@ -1,10 +1,15 @@
1
+ // loaders.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright vis.gl contributors
1
4
  // __VERSION__ is injected by babel-plugin-version-inline
2
5
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
3
- const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest';
6
+ const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
4
7
  /**
5
8
  * Loader for I3S node pages
6
9
  */
7
10
  export const I3SNodePageLoader = {
11
+ dataType: null,
12
+ batchType: null,
8
13
  name: 'I3S Node Page',
9
14
  id: 'i3s-node-page',
10
15
  module: 'i3s',
@@ -1,4 +1,4 @@
1
- import type { LoaderOptions, LoaderWithParser } from '@loaders.gl/loader-utils';
1
+ import type { LoaderOptions } from '@loaders.gl/loader-utils';
2
2
  /** options to load data from SLPK */
3
3
  export type SLPKLoaderOptions = LoaderOptions & {
4
4
  slpk?: {
@@ -13,5 +13,16 @@ export type SLPKLoaderOptions = LoaderOptions & {
13
13
  * @todo - this reloads the entire archive for every tile, should be optimized
14
14
  * @todo - this should be updated to use `parseFile` and ReadableFile
15
15
  */
16
- export declare const SLPKLoader: LoaderWithParser<ArrayBuffer, never, SLPKLoaderOptions>;
16
+ export declare const SLPKLoader: {
17
+ readonly dataType: ArrayBuffer;
18
+ readonly batchType: never;
19
+ readonly name: "I3S SLPK (Scene Layer Package)";
20
+ readonly id: "slpk";
21
+ readonly module: "i3s";
22
+ readonly version: any;
23
+ readonly mimeTypes: ["application/octet-stream"];
24
+ readonly extensions: ["slpk"];
25
+ readonly options: {};
26
+ readonly parse: (data: ArrayBuffer, options?: SLPKLoaderOptions) => Promise<ArrayBuffer>;
27
+ };
17
28
  //# sourceMappingURL=i3s-slpk-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i3s-slpk-loader.d.ts","sourceRoot":"","sources":["../src/i3s-slpk-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAQ9E,qCAAqC;AACrC,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE;QACL,mCAAmC;QACnC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,uBAAuB;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,WAAW,EAAE,KAAK,EAAE,iBAAiB,CAY9E,CAAC"}
1
+ {"version":3,"file":"i3s-slpk-loader.d.ts","sourceRoot":"","sources":["../src/i3s-slpk-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAmB,MAAM,0BAA0B,CAAC;AAQ9E,qCAAqC;AACrC,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE;QACL,mCAAmC;QACnC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,uBAAuB;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;2BAWD,WAAW,YAAW,iBAAiB,KAAQ,QAAQ,WAAW,CAAC;CAIb,CAAC"}
@@ -1,14 +1,19 @@
1
+ // loaders.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // Copyright vis.gl contributors
1
4
  import { DataViewFile } from '@loaders.gl/loader-utils';
2
5
  import { parseSLPKArchive } from "./lib/parsers/parse-slpk/parse-slpk.js";
3
6
  // __VERSION__ is injected by babel-plugin-version-inline
4
7
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
5
- const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest';
8
+ const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
6
9
  /**
7
10
  * Loader for SLPK - Scene Layer Package (Archive I3S format)
8
11
  * @todo - this reloads the entire archive for every tile, should be optimized
9
12
  * @todo - this should be updated to use `parseFile` and ReadableFile
10
13
  */
11
14
  export const SLPKLoader = {
15
+ dataType: null,
16
+ batchType: null,
12
17
  name: 'I3S SLPK (Scene Layer Package)',
13
18
  id: 'slpk',
14
19
  module: 'i3s',
package/dist/index.cjs CHANGED
@@ -517,8 +517,10 @@ function getFeatureIdsFromFeatureIndexMetadata(featureIndex) {
517
517
  }
518
518
 
519
519
  // dist/i3s-content-loader.js
520
- var VERSION = true ? "4.2.0-alpha.5" : "latest";
520
+ var VERSION = true ? "4.2.0-alpha.6" : "latest";
521
521
  var I3SContentLoader = {
522
+ dataType: null,
523
+ batchType: null,
522
524
  name: "I3S Content (Indexed Scene Layers)",
523
525
  id: "i3s-content",
524
526
  module: "i3s",
@@ -552,8 +554,10 @@ var import_core3 = require("@loaders.gl/core");
552
554
  var import_textures2 = require("@loaders.gl/textures");
553
555
 
554
556
  // dist/i3s-node-page-loader.js
555
- var VERSION2 = true ? "4.2.0-alpha.5" : "latest";
557
+ var VERSION2 = true ? "4.2.0-alpha.6" : "latest";
556
558
  var I3SNodePageLoader = {
559
+ dataType: null,
560
+ batchType: null,
557
561
  name: "I3S Node Page",
558
562
  id: "i3s-node-page",
559
563
  module: "i3s",
@@ -896,13 +900,15 @@ async function normalizeTilesetData(tileset, options, context) {
896
900
  }
897
901
 
898
902
  // dist/i3s-loader.js
899
- var VERSION3 = true ? "4.2.0-alpha.5" : "latest";
903
+ var VERSION3 = true ? "4.2.0-alpha.6" : "latest";
900
904
  var TILESET_REGEX = /layers\/[0-9]+$/;
901
905
  var LOCAL_SLPK_REGEX = /\.slpk$/;
902
906
  var TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
903
907
  var SLPK_HEX = "504b0304";
904
908
  var POINT_CLOUD = "PointCloud";
905
909
  var I3SLoader = {
910
+ dataType: null,
911
+ batchType: null,
906
912
  name: "I3S (Indexed Scene Layers)",
907
913
  id: "i3s",
908
914
  module: "i3s",
@@ -1143,8 +1149,10 @@ async function parseSLPKArchive(fileProvider, cb, fileName) {
1143
1149
  }
1144
1150
 
1145
1151
  // dist/i3s-slpk-loader.js
1146
- var VERSION4 = true ? "4.2.0-alpha.5" : "latest";
1152
+ var VERSION4 = true ? "4.2.0-alpha.6" : "latest";
1147
1153
  var SLPKLoader = {
1154
+ dataType: null,
1155
+ batchType: null,
1148
1156
  name: "I3S SLPK (Scene Layer Package)",
1149
1157
  id: "slpk",
1150
1158
  module: "i3s",
@@ -1220,10 +1228,12 @@ function parseStringsAttribute(arrayBuffer) {
1220
1228
  }
1221
1229
 
1222
1230
  // dist/i3s-attribute-loader.js
1223
- var VERSION5 = true ? "4.2.0-alpha.5" : "latest";
1231
+ var VERSION5 = true ? "4.2.0-alpha.6" : "latest";
1224
1232
  var EMPTY_VALUE = "";
1225
1233
  var REJECTED_STATUS = "rejected";
1226
1234
  var I3SAttributeLoader = {
1235
+ dataType: null,
1236
+ batchType: null,
1227
1237
  name: "I3S Attribute",
1228
1238
  id: "i3s-attribute",
1229
1239
  module: "i3s",
@@ -1358,8 +1368,10 @@ function parseSublayersTree(sublayers, url) {
1358
1368
  }
1359
1369
 
1360
1370
  // dist/i3s-building-scene-layer-loader.js
1361
- var VERSION6 = true ? "4.2.0-alpha.5" : "latest";
1371
+ var VERSION6 = true ? "4.2.0-alpha.6" : "latest";
1362
1372
  var I3SBuildingSceneLayerLoader = {
1373
+ dataType: null,
1374
+ batchType: null,
1363
1375
  name: "I3S Building Scene Layer",
1364
1376
  id: "i3s-building-scene-layer",
1365
1377
  module: "i3s",
@@ -1450,8 +1462,10 @@ async function checkSupportedIndexCRS(layer) {
1450
1462
  }
1451
1463
 
1452
1464
  // dist/arcgis-webscene-loader.js
1453
- var VERSION7 = true ? "4.2.0-alpha.5" : "latest";
1465
+ var VERSION7 = true ? "4.2.0-alpha.6" : "latest";
1454
1466
  var ArcGISWebSceneLoader = {
1467
+ dataType: null,
1468
+ batchType: null,
1455
1469
  name: "ArcGIS Web Scene Loader",
1456
1470
  id: "arcgis-web-scene",
1457
1471
  module: "i3s",