@loaders.gl/gltf 3.3.0-alpha.8 → 3.3.0
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
|
@@ -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.0
|
|
7
|
+
var VERSION = typeof "3.3.0" !== 'undefined' ? "3.3.0" : '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"}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.decodeExtensions = exports.preprocessExtensions = exports.EXTENSIONS = void 0;
|
|
27
27
|
// GLTF 1.0 extensions (decode only)
|
|
28
|
-
// import * as KHR_binary_gltf from './KHR_draco_mesh_compression';
|
|
28
|
+
// import * as KHR_binary_gltf from './KHR_draco_mesh_compression.js';
|
|
29
29
|
// GLTF 2.0 Khronos extensions (decode/encode)
|
|
30
30
|
const EXT_meshopt_compression = __importStar(require("../extensions/EXT_meshopt_compression"));
|
|
31
31
|
const EXT_texture_webp = __importStar(require("../extensions/EXT_texture_webp"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/gltf",
|
|
3
|
-
"version": "3.3.0
|
|
3
|
+
"version": "3.3.0",
|
|
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.0
|
|
38
|
-
"@loaders.gl/images": "3.3.0
|
|
39
|
-
"@loaders.gl/loader-utils": "3.3.0
|
|
40
|
-
"@loaders.gl/textures": "3.3.0
|
|
37
|
+
"@loaders.gl/draco": "3.3.0",
|
|
38
|
+
"@loaders.gl/images": "3.3.0",
|
|
39
|
+
"@loaders.gl/loader-utils": "3.3.0",
|
|
40
|
+
"@loaders.gl/textures": "3.3.0",
|
|
41
41
|
"@math.gl/core": "^3.5.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "566d194f175a03e042d3e588cdd514048f428cc1"
|
|
44
44
|
}
|