@loaders.gl/i3s 4.2.0-alpha.6 → 4.2.0-beta.2
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/arcgis-webscene-loader.d.ts +19 -2
- package/dist/arcgis-webscene-loader.d.ts.map +1 -1
- package/dist/arcgis-webscene-loader.js +3 -1
- package/dist/dist.dev.js +139 -100
- package/dist/dist.min.js +1 -1
- package/dist/i3s-attribute-loader.d.ts +14 -3
- package/dist/i3s-attribute-loader.d.ts.map +1 -1
- package/dist/i3s-attribute-loader.js +3 -1
- package/dist/i3s-building-scene-layer-loader.d.ts +15 -3
- package/dist/i3s-building-scene-layer-loader.d.ts.map +1 -1
- package/dist/i3s-building-scene-layer-loader.js +3 -1
- package/dist/i3s-content-loader.d.ts +18 -2
- package/dist/i3s-content-loader.d.ts.map +1 -1
- package/dist/i3s-content-loader.js +6 -1
- package/dist/i3s-content-worker-node.js +48 -48
- package/dist/i3s-content-worker-node.js.map +4 -4
- package/dist/i3s-content-worker.js +1720 -1686
- package/dist/i3s-loader.d.ts +30 -2
- package/dist/i3s-loader.d.ts.map +1 -1
- package/dist/i3s-loader.js +6 -1
- package/dist/i3s-node-page-loader.d.ts +17 -3
- package/dist/i3s-node-page-loader.d.ts.map +1 -1
- package/dist/i3s-node-page-loader.js +6 -1
- package/dist/i3s-slpk-loader.d.ts +13 -2
- package/dist/i3s-slpk-loader.d.ts.map +1 -1
- package/dist/i3s-slpk-loader.js +6 -1
- package/dist/index.cjs +21 -7
- package/dist/index.cjs.map +2 -2
- package/dist/lib/parsers/parse-i3s-tile-content.d.ts.map +1 -1
- package/dist/lib/parsers/parse-i3s-tile-content.js +0 -1
- package/package.json +12 -12
- package/src/arcgis-webscene-loader.ts +4 -6
- package/src/i3s-attribute-loader.ts +4 -2
- package/src/i3s-building-scene-layer-loader.ts +6 -6
- package/src/i3s-content-loader.ts +9 -2
- package/src/i3s-loader.ts +9 -2
- package/src/i3s-node-page-loader.ts +9 -2
- package/src/i3s-slpk-loader.ts +9 -2
- package/src/lib/parsers/parse-i3s-tile-content.ts +3 -4
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { I3SLoaderOptions } from "./i3s-loader.js";
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
3
2
|
import type { I3STileAttributes } from "./lib/parsers/parse-i3s-attribute.js";
|
|
4
3
|
/**
|
|
5
4
|
* Loader for I3S attributes
|
|
6
5
|
*/
|
|
7
|
-
export declare const I3SAttributeLoader:
|
|
6
|
+
export declare const I3SAttributeLoader: {
|
|
7
|
+
readonly dataType: I3STileAttributes;
|
|
8
|
+
readonly batchType: never;
|
|
9
|
+
readonly name: "I3S Attribute";
|
|
10
|
+
readonly id: "i3s-attribute";
|
|
11
|
+
readonly module: "i3s";
|
|
12
|
+
readonly version: any;
|
|
13
|
+
readonly mimeTypes: ["application/binary"];
|
|
14
|
+
readonly parse: (arrayBuffer: ArrayBuffer, options?: LoaderOptions) => Promise<I3STileAttributes>;
|
|
15
|
+
readonly extensions: ["bin"];
|
|
16
|
+
readonly options: {};
|
|
17
|
+
readonly binary: true;
|
|
18
|
+
};
|
|
8
19
|
/**
|
|
9
20
|
* Load attributes based on feature id
|
|
10
21
|
* @param {Object} tile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-attribute-loader.d.ts","sourceRoot":"","sources":["../src/i3s-attribute-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"i3s-attribute-loader.d.ts","sourceRoot":"","sources":["../src/i3s-attribute-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAmB,MAAM,0BAA0B,CAAC;AAG9E,OAAO,KAAK,EAAC,iBAAiB,EAAC,6CAA0C;AAUzE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;kCAQF,WAAW,YAAY,aAAa;;;;CAIgB,CAAC;AAKlF;;;;;;GAMG;AAEH,wBAAsB,qBAAqB,CAAC,IAAI,KAAA,EAAE,SAAS,KAAA,EAAE,OAAO,KAAK,sBA+BxE;AAeD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,KAAA,OAO9C"}
|
|
@@ -3,13 +3,15 @@ import { parseI3STileAttribute } from "./lib/parsers/parse-i3s-attribute.js";
|
|
|
3
3
|
import { getUrlWithToken } from "./lib/utils/url-utils.js";
|
|
4
4
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
5
5
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
6
|
-
const VERSION = typeof "4.2.0-
|
|
6
|
+
const VERSION = typeof "4.2.0-beta.1" !== 'undefined' ? "4.2.0-beta.1" : 'latest';
|
|
7
7
|
const EMPTY_VALUE = '';
|
|
8
8
|
const REJECTED_STATUS = 'rejected';
|
|
9
9
|
/**
|
|
10
10
|
* Loader for I3S attributes
|
|
11
11
|
*/
|
|
12
12
|
export const I3SAttributeLoader = {
|
|
13
|
+
dataType: null,
|
|
14
|
+
batchType: null,
|
|
13
15
|
name: 'I3S Attribute',
|
|
14
16
|
id: 'i3s-attribute',
|
|
15
17
|
module: 'i3s',
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { I3SLoaderOptions } from "./i3s-loader.js";
|
|
1
|
+
import type { LoaderOptions, LoaderContext } from '@loaders.gl/loader-utils';
|
|
3
2
|
import type { BuildingSceneLayerTileset } from "./types.js";
|
|
4
3
|
/**
|
|
5
4
|
* Loader for I3S - Building Scene Layer
|
|
6
5
|
*/
|
|
7
|
-
export declare const I3SBuildingSceneLayerLoader:
|
|
6
|
+
export declare const I3SBuildingSceneLayerLoader: {
|
|
7
|
+
readonly dataType: BuildingSceneLayerTileset;
|
|
8
|
+
readonly batchType: never;
|
|
9
|
+
readonly name: "I3S Building Scene Layer";
|
|
10
|
+
readonly id: "i3s-building-scene-layer";
|
|
11
|
+
readonly module: "i3s";
|
|
12
|
+
readonly version: any;
|
|
13
|
+
readonly mimeTypes: ["application/json"];
|
|
14
|
+
readonly parse: typeof parse;
|
|
15
|
+
readonly extensions: ["json"];
|
|
16
|
+
readonly options: {};
|
|
17
|
+
};
|
|
18
|
+
declare function parse(data: ArrayBuffer, options?: LoaderOptions, context?: LoaderContext): Promise<BuildingSceneLayerTileset>;
|
|
19
|
+
export {};
|
|
8
20
|
//# sourceMappingURL=i3s-building-scene-layer-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-building-scene-layer-loader.d.ts","sourceRoot":"","sources":["../src/i3s-building-scene-layer-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"i3s-building-scene-layer-loader.d.ts","sourceRoot":"","sources":["../src/i3s-building-scene-layer-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,aAAa,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAE7F,OAAO,KAAK,EAAC,yBAAyB,EAAC,mBAAgB;AASvD;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;CAYiD,CAAC;AAE1F,iBAAe,KAAK,CAClB,IAAI,EAAE,WAAW,EACjB,OAAO,CAAC,EAAE,aAAa,EACvB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,yBAAyB,CAAC,CAMpC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { parseBuildingSceneLayer } from "./lib/parsers/parse-i3s-building-scene-layer.js";
|
|
2
2
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
3
3
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
4
|
-
const VERSION = typeof "4.2.0-
|
|
4
|
+
const VERSION = typeof "4.2.0-beta.1" !== 'undefined' ? "4.2.0-beta.1" : 'latest';
|
|
5
5
|
/**
|
|
6
6
|
* Loader for I3S - Building Scene Layer
|
|
7
7
|
*/
|
|
8
8
|
export const I3SBuildingSceneLayerLoader = {
|
|
9
|
+
dataType: null,
|
|
10
|
+
batchType: null,
|
|
9
11
|
name: 'I3S Building Scene Layer',
|
|
10
12
|
id: 'i3s-building-scene-layer',
|
|
11
13
|
module: 'i3s',
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoaderContext } from '@loaders.gl/loader-utils';
|
|
2
2
|
import type { I3SLoaderOptions } from "./i3s-loader.js";
|
|
3
3
|
import { I3STileContent } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Loader for I3S - Indexed 3D Scene Layer
|
|
6
6
|
*/
|
|
7
|
-
export declare const I3SContentLoader:
|
|
7
|
+
export declare const I3SContentLoader: {
|
|
8
|
+
readonly dataType: I3STileContent | null;
|
|
9
|
+
readonly batchType: never;
|
|
10
|
+
readonly name: "I3S Content (Indexed Scene Layers)";
|
|
11
|
+
readonly id: "i3s-content";
|
|
12
|
+
readonly module: "i3s";
|
|
13
|
+
readonly worker: true;
|
|
14
|
+
readonly version: any;
|
|
15
|
+
readonly mimeTypes: ["application/octet-stream"];
|
|
16
|
+
readonly parse: typeof parse;
|
|
17
|
+
readonly extensions: ["bin"];
|
|
18
|
+
readonly options: {
|
|
19
|
+
readonly 'i3s-content': {};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare function parse(data: any, options?: I3SLoaderOptions, context?: LoaderContext): Promise<I3STileContent | null>;
|
|
23
|
+
export {};
|
|
8
24
|
//# sourceMappingURL=i3s-content-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-content-loader.d.ts","sourceRoot":"","sources":["../src/i3s-content-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"i3s-content-loader.d.ts","sourceRoot":"","sources":["../src/i3s-content-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAmB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,gBAAgB,EAAC,wBAAqB;AAEnD,OAAO,EAAC,cAAc,EAAoC,mBAAgB;AAO1E;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CAewD,CAAC;AAEtF,iBAAe,KAAK,CAAC,IAAI,KAAA,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,aAAa,kCAc7E"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright vis.gl contributors
|
|
1
4
|
import { parseI3STileContent } from "./lib/parsers/parse-i3s-tile-content.js";
|
|
2
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
3
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
4
|
-
const VERSION = typeof "4.2.0-
|
|
7
|
+
const VERSION = typeof "4.2.0-beta.1" !== 'undefined' ? "4.2.0-beta.1" : 'latest';
|
|
5
8
|
/**
|
|
6
9
|
* Loader for I3S - Indexed 3D Scene Layer
|
|
7
10
|
*/
|
|
8
11
|
export const I3SContentLoader = {
|
|
12
|
+
dataType: null,
|
|
13
|
+
batchType: null,
|
|
9
14
|
name: 'I3S Content (Indexed Scene Layers)',
|
|
10
15
|
id: 'i3s-content',
|
|
11
16
|
module: 'i3s',
|