@loaders.gl/gltf 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.
- package/dist/dist.dev.js +90 -62
- package/dist/dist.min.js +1 -1
- package/dist/glb-loader.d.ts +22 -2
- package/dist/glb-loader.d.ts.map +1 -1
- package/dist/glb-loader.js +2 -0
- package/dist/glb-writer.d.ts +17 -2
- package/dist/glb-writer.d.ts.map +1 -1
- package/dist/gltf-loader.d.ts +24 -2
- package/dist/gltf-loader.d.ts.map +1 -1
- package/dist/gltf-loader.js +2 -0
- package/dist/gltf-writer.d.ts +2 -18
- package/dist/gltf-writer.d.ts.map +1 -1
- package/dist/gltf-writer.js +2 -2
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +2 -2
- package/dist/lib/utils/version.js +1 -1
- package/package.json +7 -7
- package/src/glb-loader.ts +4 -2
- package/src/glb-writer.ts +2 -2
- package/src/gltf-loader.ts +4 -2
- package/src/gltf-writer.ts +5 -5
package/dist/glb-writer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glb-writer.d.ts","sourceRoot":"","sources":["../src/glb-writer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"glb-writer.d.ts","sourceRoot":"","sources":["../src/glb-writer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAC,GAAG,EAAC,iCAA8B;AAC/C,OAAO,KAAK,EAAC,gBAAgB,EAAC,qCAAkC;AAIhE,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,GAAG,CAAC,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;0CAaS,gBAAgB;;CAEqB,CAAC;AAErE,iBAAS,UAAU,CAAC,GAAG,KAAA,EAAE,OAAO,KAAA,eAY/B"}
|
package/dist/gltf-loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoaderOptions } from '@loaders.gl/loader-utils';
|
|
2
2
|
import type { DracoLoaderOptions } from '@loaders.gl/draco';
|
|
3
3
|
import type { ImageLoaderOptions } from '@loaders.gl/images';
|
|
4
4
|
import type { TextureLoaderOptions } from '@loaders.gl/textures';
|
|
@@ -14,6 +14,28 @@ export type GLTFLoaderOptions = LoaderOptions & ImageLoaderOptions & TextureLoad
|
|
|
14
14
|
/**
|
|
15
15
|
* GLTF loader
|
|
16
16
|
*/
|
|
17
|
-
export declare const GLTFLoader:
|
|
17
|
+
export declare const GLTFLoader: {
|
|
18
|
+
readonly dataType: GLTFWithBuffers;
|
|
19
|
+
readonly batchType: never;
|
|
20
|
+
readonly name: "glTF";
|
|
21
|
+
readonly id: "gltf";
|
|
22
|
+
readonly module: "gltf";
|
|
23
|
+
readonly version: any;
|
|
24
|
+
readonly extensions: ["gltf", "glb"];
|
|
25
|
+
readonly mimeTypes: ["model/gltf+json", "model/gltf-binary"];
|
|
26
|
+
readonly text: true;
|
|
27
|
+
readonly binary: true;
|
|
28
|
+
readonly tests: ["glTF"];
|
|
29
|
+
readonly parse: typeof parse;
|
|
30
|
+
readonly options: {
|
|
31
|
+
readonly gltf: {
|
|
32
|
+
readonly normalize: true;
|
|
33
|
+
readonly loadBuffers: true;
|
|
34
|
+
readonly loadImages: true;
|
|
35
|
+
readonly decompressMeshes: true;
|
|
36
|
+
};
|
|
37
|
+
readonly log: Console;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
18
40
|
export declare function parse(arrayBuffer: any, options: GLTFLoaderOptions | undefined, context: any): Promise<GLTFWithBuffers>;
|
|
19
41
|
//# sourceMappingURL=gltf-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gltf-loader.d.ts","sourceRoot":"","sources":["../src/gltf-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"gltf-loader.d.ts","sourceRoot":"","sources":["../src/gltf-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAC,gBAAgB,EAAC,oCAAiC;AAC/D,OAAO,KAAK,EAAC,eAAe,EAAC,kCAA+B;AAC5D,OAAO,KAAK,EAAC,gBAAgB,EAAC,wBAAqB;AAGnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAC3C,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,kBAAkB,GAAG;IACnB,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;CA0BwD,CAAC;AAEhF,wBAAsB,KAAK,CACzB,WAAW,KAAA,EACX,OAAO,+BAAwB,EAC/B,OAAO,KAAA,GACN,OAAO,CAAC,eAAe,CAAC,CAS1B"}
|
package/dist/gltf-loader.js
CHANGED
package/dist/gltf-writer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WriterOptions, WriterWithEncoder } from '@loaders.gl/loader-utils';
|
|
2
2
|
export type GLTFWriterOptions = WriterOptions & {
|
|
3
3
|
gltf?: {};
|
|
4
4
|
byteOffset?: number;
|
|
@@ -6,21 +6,5 @@ export type GLTFWriterOptions = WriterOptions & {
|
|
|
6
6
|
/**
|
|
7
7
|
* GLTF exporter
|
|
8
8
|
*/
|
|
9
|
-
export declare const GLTFWriter:
|
|
10
|
-
name: string;
|
|
11
|
-
id: string;
|
|
12
|
-
module: string;
|
|
13
|
-
version: any;
|
|
14
|
-
extensions: string[];
|
|
15
|
-
mimeTypes: string[];
|
|
16
|
-
binary: boolean;
|
|
17
|
-
options: {
|
|
18
|
-
gltf: {};
|
|
19
|
-
};
|
|
20
|
-
encode: (gltf: any, options?: GLTFWriterOptions) => Promise<ArrayBuffer>;
|
|
21
|
-
encodeSync: typeof encodeSync;
|
|
22
|
-
};
|
|
23
|
-
declare function encodeSync(gltf: any, options?: GLTFWriterOptions): ArrayBuffer;
|
|
24
|
-
export declare const _TypecheckGLBLoader: Writer;
|
|
25
|
-
export {};
|
|
9
|
+
export declare const GLTFWriter: WriterWithEncoder<any, never, GLTFWriterOptions>;
|
|
26
10
|
//# sourceMappingURL=gltf-writer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gltf-writer.d.ts","sourceRoot":"","sources":["../src/gltf-writer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"gltf-writer.d.ts","sourceRoot":"","sources":["../src/gltf-writer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,iBAAiB,EAAC,MAAM,0BAA0B,CAAC;AAI/E,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,IAAI,CAAC,EAAE,EAAE,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,kDAkB8B,CAAC"}
|
package/dist/gltf-writer.js
CHANGED
|
@@ -4,6 +4,8 @@ import { encodeGLTFSync } from "./lib/encoders/encode-gltf.js";
|
|
|
4
4
|
* GLTF exporter
|
|
5
5
|
*/
|
|
6
6
|
export const GLTFWriter = {
|
|
7
|
+
dataType: null,
|
|
8
|
+
batchType: null,
|
|
7
9
|
name: 'glTF',
|
|
8
10
|
id: 'gltf',
|
|
9
11
|
module: 'gltf',
|
|
@@ -26,5 +28,3 @@ function encodeSync(gltf, options = {}) {
|
|
|
26
28
|
encodeGLTFSync(gltf, dataView, byteOffset, options);
|
|
27
29
|
return arrayBuffer;
|
|
28
30
|
}
|
|
29
|
-
// TYPE TESTS - TODO find a better way than exporting junk
|
|
30
|
-
export const _TypecheckGLBLoader = GLTFWriter;
|
package/dist/index.cjs
CHANGED
|
@@ -1452,7 +1452,7 @@ function processPrimitiveTextures(scenegraph, attributeName, featureTexturePrope
|
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
1454
|
// dist/lib/utils/version.js
|
|
1455
|
-
var VERSION = true ? "4.2.0-alpha.
|
|
1455
|
+
var VERSION = true ? "4.2.0-alpha.6" : "latest";
|
|
1456
1456
|
|
|
1457
1457
|
// dist/lib/parsers/parse-gltf.js
|
|
1458
1458
|
var import_loader_utils4 = require("@loaders.gl/loader-utils");
|
|
@@ -2725,6 +2725,8 @@ async function loadImage(gltf, image, index, options, context) {
|
|
|
2725
2725
|
|
|
2726
2726
|
// dist/gltf-loader.js
|
|
2727
2727
|
var GLTFLoader = {
|
|
2728
|
+
dataType: null,
|
|
2729
|
+
batchType: null,
|
|
2728
2730
|
name: "glTF",
|
|
2729
2731
|
id: "gltf",
|
|
2730
2732
|
module: "gltf",
|
|
@@ -2820,6 +2822,8 @@ function convertBuffersToBase64(gltf, { firstBuffer = 0 } = {}) {
|
|
|
2820
2822
|
|
|
2821
2823
|
// dist/gltf-writer.js
|
|
2822
2824
|
var GLTFWriter = {
|
|
2825
|
+
dataType: null,
|
|
2826
|
+
batchType: null,
|
|
2823
2827
|
name: "glTF",
|
|
2824
2828
|
id: "gltf",
|
|
2825
2829
|
module: "gltf",
|
|
@@ -2846,6 +2850,8 @@ function encodeSync(gltf, options = {}) {
|
|
|
2846
2850
|
|
|
2847
2851
|
// dist/glb-loader.js
|
|
2848
2852
|
var GLBLoader = {
|
|
2853
|
+
dataType: null,
|
|
2854
|
+
batchType: null,
|
|
2849
2855
|
name: "GLB",
|
|
2850
2856
|
id: "glb",
|
|
2851
2857
|
module: "gltf",
|