@loaders.gl/gltf 3.3.0-alpha.8 → 3.3.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.min.js
CHANGED
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
node = __toModule(require_require_utils());
|
|
192
192
|
init_assert2();
|
|
193
193
|
init_version2();
|
|
194
|
-
LATEST = "
|
|
194
|
+
LATEST = "latest";
|
|
195
195
|
VERSION3 = typeof VERSION2 !== "undefined" ? VERSION2 : LATEST;
|
|
196
196
|
loadLibraryPromises = {};
|
|
197
197
|
}
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
|
|
285
|
-
// ../loader-utils/src/lib/binary-utils/
|
|
285
|
+
// ../loader-utils/src/lib/binary-utils/dataview-copy-utils.ts
|
|
286
286
|
function copyPaddedArrayBufferToDataView(dataView, byteOffset, sourceBuffer, padding) {
|
|
287
287
|
const paddedLength = padToNBytes(sourceBuffer.byteLength, padding);
|
|
288
288
|
const padLength = paddedLength - sourceBuffer.byteLength;
|
|
@@ -303,8 +303,8 @@
|
|
|
303
303
|
byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding);
|
|
304
304
|
return byteOffset;
|
|
305
305
|
}
|
|
306
|
-
var
|
|
307
|
-
"../loader-utils/src/lib/binary-utils/
|
|
306
|
+
var init_dataview_copy_utils = __esm({
|
|
307
|
+
"../loader-utils/src/lib/binary-utils/dataview-copy-utils.ts"() {
|
|
308
308
|
init_memory_copy_utils();
|
|
309
309
|
}
|
|
310
310
|
});
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
init_parse_json();
|
|
318
318
|
init_array_buffer_utils();
|
|
319
319
|
init_memory_copy_utils();
|
|
320
|
-
|
|
320
|
+
init_dataview_copy_utils();
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
|
|
@@ -661,6 +661,7 @@
|
|
|
661
661
|
height,
|
|
662
662
|
data: decodedData,
|
|
663
663
|
compressed,
|
|
664
|
+
levelSize: decodedSize,
|
|
664
665
|
hasAlpha: alphaFlag,
|
|
665
666
|
format
|
|
666
667
|
};
|
|
@@ -3112,15 +3113,17 @@
|
|
|
3112
3113
|
});
|
|
3113
3114
|
});
|
|
3114
3115
|
}
|
|
3115
|
-
var
|
|
3116
|
+
var DRACO_DECODER_VERSION, DRACO_ENCODER_VERSION, STATIC_DECODER_URL, DRACO_JS_DECODER_URL, DRACO_WASM_WRAPPER_URL, DRACO_WASM_DECODER_URL, DRACO_ENCODER_URL, loadDecoderPromise;
|
|
3116
3117
|
var init_draco_module_loader = __esm({
|
|
3117
3118
|
"../draco/src/lib/draco-module-loader.ts"() {
|
|
3118
3119
|
init_src();
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3120
|
+
DRACO_DECODER_VERSION = "1.5.5";
|
|
3121
|
+
DRACO_ENCODER_VERSION = "1.4.1";
|
|
3122
|
+
STATIC_DECODER_URL = `https://www.gstatic.com/draco/versioned/decoders/${DRACO_DECODER_VERSION}`;
|
|
3123
|
+
DRACO_JS_DECODER_URL = `${STATIC_DECODER_URL}/draco_decoder.js`;
|
|
3124
|
+
DRACO_WASM_WRAPPER_URL = `${STATIC_DECODER_URL}/draco_wasm_wrapper.js`;
|
|
3125
|
+
DRACO_WASM_DECODER_URL = `${STATIC_DECODER_URL}/draco_decoder.wasm`;
|
|
3126
|
+
DRACO_ENCODER_URL = `https://raw.githubusercontent.com/google/draco/${DRACO_ENCODER_VERSION}/javascript/draco_encoder.js`;
|
|
3124
3127
|
}
|
|
3125
3128
|
});
|
|
3126
3129
|
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VERSION = void 0;
|
|
7
|
-
var VERSION = typeof "3.3.
|
|
7
|
+
var VERSION = typeof "3.3.1" !== 'undefined' ? "3.3.1" : 'latest';
|
|
8
8
|
exports.VERSION = VERSION;
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";AAGA,OAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";AAGA,OAAO,MAAMA,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/gltf",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Framework-independent loader for the glTF format",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@loaders.gl/draco": "3.3.
|
|
38
|
-
"@loaders.gl/images": "3.3.
|
|
39
|
-
"@loaders.gl/loader-utils": "3.3.
|
|
40
|
-
"@loaders.gl/textures": "3.3.
|
|
37
|
+
"@loaders.gl/draco": "3.3.1",
|
|
38
|
+
"@loaders.gl/images": "3.3.1",
|
|
39
|
+
"@loaders.gl/loader-utils": "3.3.1",
|
|
40
|
+
"@loaders.gl/textures": "3.3.1",
|
|
41
41
|
"@math.gl/core": "^3.5.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "51632b5948e496a4b75e970030ad7579650c129d"
|
|
44
44
|
}
|