@maptalks/gpu 0.121.0 → 0.123.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.
@@ -1,38 +0,0 @@
1
- /*!
2
- * @maptalks/gpu v0.121.0
3
- * LICENSE : UNLICENSED
4
- * (c) 2016-2026 maptalks.com
5
- */
6
- const n = function() {
7
- if ("undefined" != typeof globalThis) return globalThis;
8
- if ("undefined" != typeof self) return self;
9
- if ("undefined" != typeof window) return window;
10
- if ("undefined" != typeof global) return global;
11
- throw new Error("unable to locate global object");
12
- }, t = n(), e = t.gl_trans__coders = t.gl_trans__coders || {};
13
-
14
- function r(n) {
15
- return e[n];
16
- }
17
-
18
- function _(n, t) {
19
- e[n] = t;
20
- }
21
-
22
- function o() {
23
- return n().maptalks_gltf_loader;
24
- }
25
-
26
- function l(t) {
27
- n().maptalks_gltf_loader_bundle = t;
28
- }
29
-
30
- e.inject = function(e) {
31
- const r = e.toString(), _ = r.indexOf("{") + 1, o = r.substring(0, _), l = t.gl_trans__coders = t.gl_trans__coders || {};
32
- let s = `${o}\n const _____getGlobal = ${n.toString()};\n const g___lobals = _____getGlobal()\n const tran_____scoders = g___lobals['gl_trans__coders'] = g___lobals['gl_trans__coders'] || {};`;
33
- for (const n in l) "inject" !== n && "getTranscoder" !== n && "registerTranscoder" !== n && (s += 'tran_____scoders["' + n + '"] =' + l[n].toString() + "\n;");
34
- return s += "\n(" + n().maptalks_gltf_loader_bundle.toString() + ")({});\n", s += "\n" + r.substring(o.length),
35
- s;
36
- }, e.registerTranscoder = _, e.getTranscoder = r;
37
-
38
- export { e as default, o as getGLTFLoaderBundle, r as getTranscoder, l as registerGLTFLoaderBundle, _ as registerTranscoder };