@loaders.gl/textures 4.0.0-alpha.21 → 4.0.0-alpha.22

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.
@@ -63302,7 +63302,7 @@ if (!("allSettled" in Promise)) {
63302
63302
  }
63303
63303
 
63304
63304
  // ../worker-utils/src/lib/env-utils/version.ts
63305
- var VERSION = true ? "4.0.0-alpha.21" : DEFAULT_VERSION;
63305
+ var VERSION = true ? "4.0.0-alpha.22" : DEFAULT_VERSION;
63306
63306
  if (false) {
63307
63307
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
63308
63308
  }
@@ -63596,7 +63596,7 @@ function createLoaderWorker(loader) {
63596
63596
  arrayBuffer: input,
63597
63597
  options,
63598
63598
  context: __spreadProps(__spreadValues({}, context), {
63599
- parse: parseOnMainThread
63599
+ _parse: parseOnMainThread
63600
63600
  })
63601
63601
  });
63602
63602
  WorkerBody.postMessage("done", { result });
@@ -63609,7 +63609,7 @@ function createLoaderWorker(loader) {
63609
63609
  }
63610
63610
  };
63611
63611
  }
63612
- function parseOnMainThread(arrayBuffer, options) {
63612
+ function parseOnMainThread(arrayBuffer, loader, options, context) {
63613
63613
  return new Promise((resolve, reject) => {
63614
63614
  const id = requestId++;
63615
63615
  const onMessage = (type, payload2) => {
@@ -63633,7 +63633,12 @@ function parseOnMainThread(arrayBuffer, options) {
63633
63633
  WorkerBody.postMessage("process", payload);
63634
63634
  });
63635
63635
  }
63636
- async function parseData({ loader, arrayBuffer, options, context }) {
63636
+ async function parseData({
63637
+ loader,
63638
+ arrayBuffer,
63639
+ options,
63640
+ context
63641
+ }) {
63637
63642
  let data;
63638
63643
  let parser;
63639
63644
  if (loader.parseSync || loader.parse) {
@@ -63654,7 +63659,7 @@ async function parseData({ loader, arrayBuffer, options, context }) {
63654
63659
  }
63655
63660
 
63656
63661
  // src/lib/utils/version.ts
63657
- var VERSION3 = true ? "4.0.0-alpha.21" : "beta";
63662
+ var VERSION3 = true ? "4.0.0-alpha.22" : "beta";
63658
63663
 
63659
63664
  // src/lib/parsers/basis-module-loader.ts
63660
63665
  var BASIS_EXTERNAL_LIBRARIES = {
@@ -28,7 +28,7 @@
28
28
  });
29
29
 
30
30
  // ../worker-utils/src/lib/env-utils/version.ts
31
- var VERSION = true ? "4.0.0-alpha.21" : DEFAULT_VERSION;
31
+ var VERSION = true ? "4.0.0-alpha.22" : DEFAULT_VERSION;
32
32
  if (false) {
33
33
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
34
34
  }
@@ -266,7 +266,7 @@
266
266
  options,
267
267
  context: {
268
268
  ...context,
269
- parse: parseOnMainThread
269
+ _parse: parseOnMainThread
270
270
  }
271
271
  });
272
272
  WorkerBody.postMessage("done", { result });
@@ -279,7 +279,7 @@
279
279
  }
280
280
  };
281
281
  }
282
- function parseOnMainThread(arrayBuffer, options) {
282
+ function parseOnMainThread(arrayBuffer, loader, options, context) {
283
283
  return new Promise((resolve, reject) => {
284
284
  const id = requestId++;
285
285
  const onMessage = (type, payload2) => {
@@ -303,7 +303,12 @@
303
303
  WorkerBody.postMessage("process", payload);
304
304
  });
305
305
  }
306
- async function parseData({ loader, arrayBuffer, options, context }) {
306
+ async function parseData({
307
+ loader,
308
+ arrayBuffer,
309
+ options,
310
+ context
311
+ }) {
307
312
  let data;
308
313
  let parser;
309
314
  if (loader.parseSync || loader.parse) {
@@ -325,7 +330,7 @@
325
330
  }
326
331
 
327
332
  // src/lib/utils/version.ts
328
- var VERSION3 = true ? "4.0.0-alpha.21" : "beta";
333
+ var VERSION3 = true ? "4.0.0-alpha.22" : "beta";
329
334
 
330
335
  // src/lib/parsers/basis-module-loader.ts
331
336
  var BASIS_EXTERNAL_LIBRARIES = {
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  // ../worker-utils/src/lib/env-utils/version.ts
38
- var VERSION = true ? "4.0.0-alpha.21" : DEFAULT_VERSION;
38
+ var VERSION = true ? "4.0.0-alpha.22" : DEFAULT_VERSION;
39
39
  if (false) {
40
40
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
41
41
  }
@@ -273,7 +273,7 @@
273
273
  options,
274
274
  context: {
275
275
  ...context,
276
- parse: parseOnMainThread
276
+ _parse: parseOnMainThread
277
277
  }
278
278
  });
279
279
  WorkerBody.postMessage("done", { result });
@@ -286,7 +286,7 @@
286
286
  }
287
287
  };
288
288
  }
289
- function parseOnMainThread(arrayBuffer, options) {
289
+ function parseOnMainThread(arrayBuffer, loader, options, context) {
290
290
  return new Promise((resolve, reject) => {
291
291
  const id = requestId++;
292
292
  const onMessage = (type, payload2) => {
@@ -310,7 +310,12 @@
310
310
  WorkerBody.postMessage("process", payload);
311
311
  });
312
312
  }
313
- async function parseData({ loader, arrayBuffer, options, context }) {
313
+ async function parseData({
314
+ loader,
315
+ arrayBuffer,
316
+ options,
317
+ context
318
+ }) {
314
319
  let data;
315
320
  let parser;
316
321
  if (loader.parseSync || loader.parse) {
@@ -332,7 +337,7 @@
332
337
  }
333
338
 
334
339
  // src/lib/utils/version.ts
335
- var VERSION3 = true ? "4.0.0-alpha.21" : "beta";
340
+ var VERSION3 = true ? "4.0.0-alpha.22" : "beta";
336
341
 
337
342
  // ../../node_modules/ktx-parse/dist/ktx-parse.modern.js
338
343
  var t = new Uint8Array([0]);
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  // ../worker-utils/src/lib/env-utils/version.ts
38
- var VERSION = true ? "4.0.0-alpha.21" : DEFAULT_VERSION;
38
+ var VERSION = true ? "4.0.0-alpha.22" : DEFAULT_VERSION;
39
39
  if (false) {
40
40
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
41
41
  }
@@ -273,7 +273,7 @@
273
273
  options,
274
274
  context: {
275
275
  ...context,
276
- parse: parseOnMainThread
276
+ _parse: parseOnMainThread
277
277
  }
278
278
  });
279
279
  WorkerBody.postMessage("done", { result });
@@ -286,7 +286,7 @@
286
286
  }
287
287
  };
288
288
  }
289
- function parseOnMainThread(arrayBuffer, options) {
289
+ function parseOnMainThread(arrayBuffer, loader, options, context) {
290
290
  return new Promise((resolve, reject) => {
291
291
  const id = requestId++;
292
292
  const onMessage = (type, payload2) => {
@@ -310,7 +310,12 @@
310
310
  WorkerBody.postMessage("process", payload);
311
311
  });
312
312
  }
313
- async function parseData({ loader, arrayBuffer, options, context }) {
313
+ async function parseData({
314
+ loader,
315
+ arrayBuffer,
316
+ options,
317
+ context
318
+ }) {
314
319
  let data;
315
320
  let parser;
316
321
  if (loader.parseSync || loader.parse) {
@@ -332,7 +337,7 @@
332
337
  }
333
338
 
334
339
  // src/lib/utils/version.ts
335
- var VERSION3 = true ? "4.0.0-alpha.21" : "beta";
340
+ var VERSION3 = true ? "4.0.0-alpha.22" : "beta";
336
341
 
337
342
  // src/crunch-loader.ts
338
343
  var CrunchLoader = {
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- var VERSION = typeof "4.0.0-alpha.21" !== 'undefined' ? "4.0.0-alpha.21" : 'beta';
7
+ var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'beta';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = typeof "4.0.0-alpha.21" !== 'undefined' ? "4.0.0-alpha.21" : 'beta';
1
+ export const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'beta';
2
2
  //# sourceMappingURL=version.js.map
@@ -63127,7 +63127,7 @@ if (!("allSettled" in Promise)) {
63127
63127
  }
63128
63128
 
63129
63129
  // ../worker-utils/src/lib/env-utils/version.ts
63130
- var VERSION = true ? "4.0.0-alpha.21" : DEFAULT_VERSION;
63130
+ var VERSION = true ? "4.0.0-alpha.22" : DEFAULT_VERSION;
63131
63131
  if (false) {
63132
63132
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
63133
63133
  }
@@ -63406,7 +63406,7 @@ async function loadAsText(url) {
63406
63406
  }
63407
63407
 
63408
63408
  // src/lib/utils/version.ts
63409
- var VERSION3 = true ? "4.0.0-alpha.21" : "beta";
63409
+ var VERSION3 = true ? "4.0.0-alpha.22" : "beta";
63410
63410
 
63411
63411
  // src/lib/parsers/basis-module-loader.ts
63412
63412
  var BASIS_EXTERNAL_LIBRARIES = {
@@ -28,7 +28,7 @@
28
28
  });
29
29
 
30
30
  // ../worker-utils/src/lib/env-utils/version.ts
31
- var VERSION = true ? "4.0.0-alpha.21" : DEFAULT_VERSION;
31
+ var VERSION = true ? "4.0.0-alpha.22" : DEFAULT_VERSION;
32
32
  if (false) {
33
33
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
34
34
  }
@@ -250,7 +250,7 @@
250
250
  }
251
251
 
252
252
  // src/lib/utils/version.ts
253
- var VERSION3 = true ? "4.0.0-alpha.21" : "beta";
253
+ var VERSION3 = true ? "4.0.0-alpha.22" : "beta";
254
254
 
255
255
  // src/lib/parsers/basis-module-loader.ts
256
256
  var BASIS_EXTERNAL_LIBRARIES = {
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  // src/lib/utils/version.ts
3
- var VERSION = true ? "4.0.0-alpha.21" : "beta";
3
+ var VERSION = true ? "4.0.0-alpha.22" : "beta";
4
4
 
5
5
  // src/lib/parsers/parse-npy.ts
6
6
  var a = new Uint32Array([305419896]);
@@ -206,7 +206,7 @@
206
206
  options,
207
207
  context: {
208
208
  ...context,
209
- parse: parseOnMainThread
209
+ _parse: parseOnMainThread
210
210
  }
211
211
  });
212
212
  WorkerBody.postMessage("done", { result });
@@ -219,7 +219,7 @@
219
219
  }
220
220
  };
221
221
  }
222
- function parseOnMainThread(arrayBuffer, options) {
222
+ function parseOnMainThread(arrayBuffer, loader, options, context) {
223
223
  return new Promise((resolve, reject) => {
224
224
  const id = requestId++;
225
225
  const onMessage = (type, payload2) => {
@@ -243,7 +243,12 @@
243
243
  WorkerBody.postMessage("process", payload);
244
244
  });
245
245
  }
246
- async function parseData({ loader, arrayBuffer, options, context }) {
246
+ async function parseData({
247
+ loader,
248
+ arrayBuffer,
249
+ options,
250
+ context
251
+ }) {
247
252
  let data;
248
253
  let parser;
249
254
  if (loader.parseSync || loader.parse) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/textures",
3
- "version": "4.0.0-alpha.21",
3
+ "version": "4.0.0-alpha.22",
4
4
  "description": "Framework-independent loaders for compressed and super compressed (basis) textures ",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -45,15 +45,15 @@
45
45
  "build-crunch-worker": "esbuild src/workers/crunch-worker.ts --outfile=dist/crunch-worker.js --target=esnext --bundle --define:__VERSION__=\\\"$npm_package_version\\\""
46
46
  },
47
47
  "dependencies": {
48
- "@loaders.gl/images": "4.0.0-alpha.21",
49
- "@loaders.gl/loader-utils": "4.0.0-alpha.21",
50
- "@loaders.gl/schema": "4.0.0-alpha.21",
51
- "@loaders.gl/worker-utils": "4.0.0-alpha.21",
48
+ "@loaders.gl/images": "4.0.0-alpha.22",
49
+ "@loaders.gl/loader-utils": "4.0.0-alpha.22",
50
+ "@loaders.gl/schema": "4.0.0-alpha.22",
51
+ "@loaders.gl/worker-utils": "4.0.0-alpha.22",
52
52
  "ktx-parse": "^0.0.4",
53
53
  "texture-compressor": "^1.0.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@loaders.gl/polyfills": "4.0.0-alpha.21"
56
+ "@loaders.gl/polyfills": "4.0.0-alpha.22"
57
57
  },
58
- "gitHead": "df5d670b136192b26941396e944f9c46be788e83"
58
+ "gitHead": "0da838c506d1275383f2fd3d244d9c72b25397d2"
59
59
  }