@loaders.gl/3d-tiles 4.2.0-alpha.5 → 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.
@@ -17,6 +17,8 @@ const COMPRESSION_METHODS = {
17
17
  * Class for handling information about 3tz file
18
18
  */
19
19
  export class Tiles3DArchive extends IndexedArchive {
20
+ /** hash info */
21
+ hashTable;
20
22
  /**
21
23
  * creates Tiles3DArchive handler
22
24
  * @param fileProvider - FileProvider with the whole file
@@ -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 3tz */
3
3
  export type Tiles3DArchiveFileLoaderOptions = LoaderOptions & {
4
4
  '3d-tiles-archive'?: {
@@ -9,5 +9,24 @@ export type Tiles3DArchiveFileLoaderOptions = LoaderOptions & {
9
9
  /**
10
10
  * Loader for 3tz packages
11
11
  */
12
- export declare const Tiles3DArchiveFileLoader: LoaderWithParser<ArrayBuffer, never, Tiles3DArchiveFileLoaderOptions>;
12
+ export declare const Tiles3DArchiveFileLoader: {
13
+ dataType: ArrayBuffer;
14
+ batchType: never;
15
+ name: string;
16
+ id: string;
17
+ module: string;
18
+ version: any;
19
+ mimeTypes: string[];
20
+ parse: typeof parse3DTilesArchive;
21
+ extensions: string[];
22
+ options: {};
23
+ };
24
+ /**
25
+ * returns a single file from the 3tz archive
26
+ * @param data 3tz archive data
27
+ * @param options options
28
+ * @returns requested file
29
+ */
30
+ declare function parse3DTilesArchive(data: ArrayBuffer, options?: Tiles3DArchiveFileLoaderOptions): Promise<ArrayBuffer>;
31
+ export {};
13
32
  //# sourceMappingURL=3d-tiles-archive-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"3d-tiles-archive-loader.d.ts","sourceRoot":"","sources":["../src/3d-tiles-archive-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAQ9E,oCAAoC;AACpC,MAAM,MAAM,+BAA+B,GAAG,aAAa,GAAG;IAC5D,kBAAkB,CAAC,EAAE;QACnB,kCAAkC;QAClC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CACrD,WAAW,EACX,KAAK,EACL,+BAA+B,CAUhC,CAAC"}
1
+ {"version":3,"file":"3d-tiles-archive-loader.d.ts","sourceRoot":"","sources":["../src/3d-tiles-archive-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAmB,MAAM,0BAA0B,CAAC;AAQ9E,oCAAoC;AACpC,MAAM,MAAM,+BAA+B,GAAG,aAAa,GAAG;IAC5D,kBAAkB,CAAC,EAAE;QACnB,kCAAkC;QAClC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAW4C,CAAC;AAElF;;;;;GAKG;AACH,iBAAe,mBAAmB,CAChC,IAAI,EAAE,WAAW,EACjB,OAAO,GAAE,+BAAoC,GAC5C,OAAO,CAAC,WAAW,CAAC,CAGtB"}
@@ -5,11 +5,13 @@ import { DataViewFile } from '@loaders.gl/loader-utils';
5
5
  import { parse3DTilesArchive as parse3DTilesArchiveFromProvider } from "./3d-tiles-archive/3d-tiles-archive-parser.js";
6
6
  // __VERSION__ is injected by babel-plugin-version-inline
7
7
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
8
- const VERSION = typeof "4.2.0-alpha.4" !== 'undefined' ? "4.2.0-alpha.4" : 'latest';
8
+ const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
9
9
  /**
10
10
  * Loader for 3tz packages
11
11
  */
12
12
  export const Tiles3DArchiveFileLoader = {
13
+ dataType: null,
14
+ batchType: null,
13
15
  name: '3tz',
14
16
  id: '3tz',
15
17
  module: '3d-tiles',
@@ -1,6 +1,29 @@
1
- import type { LoaderOptions, LoaderWithParser } from '@loaders.gl/loader-utils';
1
+ import type { LoaderOptions } from '@loaders.gl/loader-utils';
2
+ declare function preload(url: any, options?: {}): Promise<any>;
2
3
  /**
3
4
  * Loader for 3D tiles from Cesium ION
4
5
  */
5
- export declare const CesiumIonLoader: LoaderWithParser<unknown, never, LoaderOptions>;
6
+ export declare const CesiumIonLoader: {
7
+ readonly id: "cesium-ion";
8
+ readonly name: "Cesium Ion";
9
+ readonly preload: typeof preload;
10
+ readonly parse: (data: ArrayBuffer, options?: LoaderOptions | undefined, context?: import("@loaders.gl/loader-utils").LoaderContext | undefined) => Promise<import("./types").Tiles3DTilesetJSONPostprocessed | import("./types").Tiles3DTileContent>;
11
+ readonly options: {
12
+ readonly 'cesium-ion': {
13
+ readonly accessToken: null;
14
+ readonly loadGLTF: true;
15
+ readonly decodeQuantizedPositions: false;
16
+ readonly isTileset: "auto";
17
+ readonly assetGltfUpAxis: null;
18
+ };
19
+ };
20
+ readonly dataType: any;
21
+ readonly batchType: never;
22
+ readonly module: "3d-tiles";
23
+ readonly version: any;
24
+ readonly extensions: ["cmpt", "pnts", "b3dm", "i3dm"];
25
+ readonly mimeTypes: ["application/octet-stream"];
26
+ readonly tests: ["cmpt", "pnts", "b3dm", "i3dm"];
27
+ };
28
+ export {};
6
29
  //# sourceMappingURL=cesium-ion-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cesium-ion-loader.d.ts","sourceRoot":"","sources":["../src/cesium-ion-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAiB9E;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,aAAa,CAmB3E,CAAC"}
1
+ {"version":3,"file":"cesium-ion-loader.d.ts","sourceRoot":"","sources":["../src/cesium-ion-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,aAAa,EAAmB,MAAM,0BAA0B,CAAC;AAI9E,iBAAe,OAAO,CAAC,GAAG,KAAA,EAAE,OAAO,KAAK,gBAWvC;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAmBwC,CAAC"}