@loaders.gl/gltf
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -11,6 +11,10 @@ import { encodeGLBSync } from "./lib/encoders/encode-glb.js"; | ||
binary: true, | ||
encodeSync, | ||
options: { | ||
glb: {} | ||
} | ||
}, | ||
encode: async function (glb) { | ||
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return encodeSync(glb, options); | ||
}, | ||
encodeSync | ||
}; | ||
@@ -17,0 +21,0 @@ function encodeSync(glb, options) { |
@@ -17,6 +17,7 @@ import type { Writer, WriterOptions } from '@loaders.gl/loader-utils'; | ||
binary: boolean; | ||
encodeSync: typeof encodeSync; | ||
options: { | ||
gltf: {}; | ||
}; | ||
encode: (gltf: any, options?: GLTFWriterOptions) => Promise<ArrayBuffer>; | ||
encodeSync: typeof encodeSync; | ||
}; | ||
@@ -23,0 +24,0 @@ declare function encodeSync(gltf: any, options?: GLTFWriterOptions): ArrayBuffer; |
@@ -11,6 +11,10 @@ import { VERSION } from "./lib/utils/version.js"; | ||
binary: true, | ||
encodeSync, | ||
options: { | ||
gltf: {} | ||
} | ||
}, | ||
encode: async function (gltf) { | ||
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return encodeSync(gltf, options); | ||
}, | ||
encodeSync | ||
}; | ||
@@ -17,0 +21,0 @@ function encodeSync(gltf) { |
{ | ||
"name": "@loaders.gl/gltf", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Framework-independent loader for the glTF format", | ||
@@ -45,9 +45,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/draco": "4.0.1", | ||
"@loaders.gl/images": "4.0.1", | ||
"@loaders.gl/loader-utils": "4.0.1", | ||
"@loaders.gl/textures": "4.0.1", | ||
"@loaders.gl/draco": "4.0.2", | ||
"@loaders.gl/images": "4.0.2", | ||
"@loaders.gl/loader-utils": "4.0.2", | ||
"@loaders.gl/textures": "4.0.2", | ||
"@math.gl/core": "^4.0.0" | ||
}, | ||
"gitHead": "765e5a26a6bf3f2cc02cabffc4a1e3665ec92a53" | ||
"gitHead": "471058d109d5652f28c32c1f296fd632f9a5c806" | ||
} |
@@ -27,8 +27,8 @@ // loaders.gl, MIT license | ||
binary: true, | ||
encodeSync, | ||
options: { | ||
glb: {} | ||
} | ||
}, | ||
encode: async (glb, options: GLBWriterOptions = {}) => encodeSync(glb, options), | ||
encodeSync | ||
}; | ||
@@ -35,0 +35,0 @@ |
@@ -22,8 +22,8 @@ import type {Writer, WriterOptions} from '@loaders.gl/loader-utils'; | ||
binary: true, | ||
encodeSync, | ||
options: { | ||
gltf: {} | ||
} | ||
}, | ||
encode: async (gltf, options: GLTFWriterOptions = {}) => encodeSync(gltf, options), | ||
encodeSync | ||
}; | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1416696
23054
+ Added@loaders.gl/draco@4.0.2(transitive)
+ Added@loaders.gl/images@4.0.2(transitive)
+ Added@loaders.gl/loader-utils@4.0.2(transitive)
+ Added@loaders.gl/schema@4.0.2(transitive)
+ Added@loaders.gl/textures@4.0.2(transitive)
+ Added@loaders.gl/worker-utils@4.0.2(transitive)
- Removed@loaders.gl/draco@4.0.1(transitive)
- Removed@loaders.gl/images@4.0.1(transitive)
- Removed@loaders.gl/loader-utils@4.0.1(transitive)
- Removed@loaders.gl/schema@4.0.1(transitive)
- Removed@loaders.gl/textures@4.0.1(transitive)
- Removed@loaders.gl/worker-utils@4.0.1(transitive)
Updated@loaders.gl/draco@4.0.2
Updated@loaders.gl/images@4.0.2
Updated@loaders.gl/textures@4.0.2