@loaders.gl/textures 3.3.0-alpha.7 → 3.3.0-alpha.8

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.
Files changed (30) hide show
  1. package/dist/basis-nodejs-worker.js +98 -25
  2. package/dist/basis-worker.js +3 -3
  3. package/dist/compressed-texture-loader.d.ts +1 -1
  4. package/dist/compressed-texture-loader.d.ts.map +1 -1
  5. package/dist/compressed-texture-worker.js +3 -3
  6. package/dist/compressed-texture-writer.d.ts +1 -1
  7. package/dist/compressed-texture-writer.d.ts.map +1 -1
  8. package/dist/crunch-worker.js +2 -2
  9. package/dist/es5/lib/parsers/basis-module-loader.js +1 -1
  10. package/dist/es5/lib/utils/version.js +1 -1
  11. package/dist/esm/lib/parsers/basis-module-loader.js +1 -1
  12. package/dist/esm/lib/utils/version.js +1 -1
  13. package/dist/ktx2-basis-writer-nodejs-worker.js +98 -25
  14. package/dist/ktx2-basis-writer-worker.js +3 -3
  15. package/dist/lib/parsers/parse-basis.d.ts +1 -1
  16. package/dist/lib/parsers/parse-basis.d.ts.map +1 -1
  17. package/dist/lib/parsers/parse-npy.d.ts +1 -1
  18. package/dist/lib/parsers/parse-npy.d.ts.map +1 -1
  19. package/dist/lib/texture-api/async-deep-map.d.ts +2 -2
  20. package/dist/lib/texture-api/async-deep-map.d.ts.map +1 -1
  21. package/dist/lib/texture-api/deep-load.d.ts +2 -2
  22. package/dist/lib/texture-api/deep-load.d.ts.map +1 -1
  23. package/dist/lib/texture-api/load-image-cube.d.ts +1 -1
  24. package/dist/lib/texture-api/load-image-cube.d.ts.map +1 -1
  25. package/dist/lib/texture-api/texture-api-types.d.ts +2 -2
  26. package/dist/lib/texture-api/texture-api-types.d.ts.map +1 -1
  27. package/dist/lib/utils/extract-mipmap-images.d.ts +1 -1
  28. package/dist/lib/utils/extract-mipmap-images.d.ts.map +1 -1
  29. package/dist/npy-worker.js +1 -1
  30. package/package.json +7 -7
@@ -190,6 +190,15 @@ var require_dom = __commonJS({
190
190
  serializeToString(this[i], buf, isHTML, nodeFilter);
191
191
  }
192
192
  return buf.join("");
193
+ },
194
+ find: function(predicate) {
195
+ return Array.prototype.find.call(this, predicate);
196
+ },
197
+ filter: function(predicate) {
198
+ return Array.prototype.filter.call(this, predicate);
199
+ },
200
+ indexOf: function(item) {
201
+ return Array.prototype.indexOf.call(this, item);
193
202
  }
194
203
  };
195
204
  function LiveNodeList(node, refresh) {
@@ -252,7 +261,7 @@ var require_dom = __commonJS({
252
261
  }
253
262
  }
254
263
  } else {
255
- throw DOMException2(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
264
+ throw new DOMException2(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
256
265
  }
257
266
  }
258
267
  NamedNodeMap.prototype = {
@@ -491,41 +500,103 @@ var require_dom = __commonJS({
491
500
  _onUpdateChild(parentNode.ownerDocument, parentNode);
492
501
  return child;
493
502
  }
494
- function _insertBefore(parentNode, newChild, nextChild) {
495
- var cp = newChild.parentNode;
503
+ function hasValidParentNodeType(node) {
504
+ return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);
505
+ }
506
+ function hasInsertableNodeType(node) {
507
+ return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);
508
+ }
509
+ function isDocTypeNode(node) {
510
+ return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;
511
+ }
512
+ function isElementNode(node) {
513
+ return node && node.nodeType === Node.ELEMENT_NODE;
514
+ }
515
+ function isTextNode(node) {
516
+ return node && node.nodeType === Node.TEXT_NODE;
517
+ }
518
+ function isElementInsertionPossible(doc, child) {
519
+ var parentChildNodes = doc.childNodes || [];
520
+ if (parentChildNodes.find(isElementNode) || isDocTypeNode(child)) {
521
+ return false;
522
+ }
523
+ var docTypeNode = parentChildNodes.find(isDocTypeNode);
524
+ return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
525
+ }
526
+ function _insertBefore(parent, node, child) {
527
+ if (!hasValidParentNodeType(parent)) {
528
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
529
+ }
530
+ if (child && child.parentNode !== parent) {
531
+ throw new DOMException2(NOT_FOUND_ERR, "child not in parent");
532
+ }
533
+ if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) {
534
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType);
535
+ }
536
+ var parentChildNodes = parent.childNodes || [];
537
+ var nodeChildNodes = node.childNodes || [];
538
+ if (parent.nodeType === Node.DOCUMENT_NODE) {
539
+ if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
540
+ let nodeChildElements = nodeChildNodes.filter(isElementNode);
541
+ if (nodeChildElements.length > 1 || nodeChildNodes.find(isTextNode)) {
542
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
543
+ }
544
+ if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {
545
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
546
+ }
547
+ }
548
+ if (isElementNode(node)) {
549
+ if (parentChildNodes.find(isElementNode) || !isElementInsertionPossible(parent, child)) {
550
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
551
+ }
552
+ }
553
+ if (isDocTypeNode(node)) {
554
+ if (parentChildNodes.find(isDocTypeNode)) {
555
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
556
+ }
557
+ let parentElementChild = parentChildNodes.find(isElementNode);
558
+ if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
559
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
560
+ }
561
+ if (!child && parentElementChild) {
562
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
563
+ }
564
+ }
565
+ }
566
+ var cp = node.parentNode;
496
567
  if (cp) {
497
- cp.removeChild(newChild);
568
+ cp.removeChild(node);
498
569
  }
499
- if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) {
500
- var newFirst = newChild.firstChild;
570
+ if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
571
+ var newFirst = node.firstChild;
501
572
  if (newFirst == null) {
502
- return newChild;
573
+ return node;
503
574
  }
504
- var newLast = newChild.lastChild;
575
+ var newLast = node.lastChild;
505
576
  } else {
506
- newFirst = newLast = newChild;
577
+ newFirst = newLast = node;
507
578
  }
508
- var pre = nextChild ? nextChild.previousSibling : parentNode.lastChild;
579
+ var pre = child ? child.previousSibling : parent.lastChild;
509
580
  newFirst.previousSibling = pre;
510
- newLast.nextSibling = nextChild;
581
+ newLast.nextSibling = child;
511
582
  if (pre) {
512
583
  pre.nextSibling = newFirst;
513
584
  } else {
514
- parentNode.firstChild = newFirst;
585
+ parent.firstChild = newFirst;
515
586
  }
516
- if (nextChild == null) {
517
- parentNode.lastChild = newLast;
587
+ if (child == null) {
588
+ parent.lastChild = newLast;
518
589
  } else {
519
- nextChild.previousSibling = newLast;
590
+ child.previousSibling = newLast;
520
591
  }
521
592
  do {
522
- newFirst.parentNode = parentNode;
593
+ newFirst.parentNode = parent;
523
594
  } while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
524
- _onUpdateChild(parentNode.ownerDocument || parentNode, parentNode);
525
- if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
526
- newChild.firstChild = newChild.lastChild = null;
595
+ _onUpdateChild(parent.ownerDocument || parent, parent);
596
+ if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
597
+ node.firstChild = node.lastChild = null;
527
598
  }
528
- return newChild;
599
+ return node;
529
600
  }
530
601
  function _appendSingleChild(parentNode, newChild) {
531
602
  var cp = newChild.parentNode;
@@ -563,10 +634,12 @@ var require_dom = __commonJS({
563
634
  }
564
635
  return newChild;
565
636
  }
566
- if (this.documentElement == null && newChild.nodeType == ELEMENT_NODE) {
637
+ _insertBefore(this, newChild, refChild);
638
+ newChild.ownerDocument = this;
639
+ if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
567
640
  this.documentElement = newChild;
568
641
  }
569
- return _insertBefore(this, newChild, refChild), newChild.ownerDocument = this, newChild;
642
+ return newChild;
570
643
  },
571
644
  removeChild: function(oldChild) {
572
645
  if (this.documentElement == oldChild) {
@@ -63284,7 +63357,7 @@ var require_ktx_parse = __commonJS({
63284
63357
  });
63285
63358
 
63286
63359
  // ../worker-utils/src/lib/env-utils/version.ts
63287
- var VERSION = true ? "3.3.0-alpha.7" : DEFAULT_VERSION;
63360
+ var VERSION = true ? "3.3.0-alpha.8" : DEFAULT_VERSION;
63288
63361
  if (false) {
63289
63362
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
63290
63363
  }
@@ -65820,10 +65893,10 @@ if (!("allSettled" in Promise)) {
65820
65893
  }
65821
65894
 
65822
65895
  // src/lib/utils/version.ts
65823
- var VERSION3 = true ? "3.3.0-alpha.7" : "beta";
65896
+ var VERSION3 = true ? "3.3.0-alpha.8" : "beta";
65824
65897
 
65825
65898
  // src/lib/parsers/basis-module-loader.ts
65826
- var VERSION4 = true ? "3.3.0-alpha.7" : "beta";
65899
+ var VERSION4 = true ? "3.3.0-alpha.8" : "beta";
65827
65900
  var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
65828
65901
  var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
65829
65902
  var loadBasisTranscoderPromise;
@@ -28,7 +28,7 @@
28
28
  });
29
29
 
30
30
  // ../worker-utils/src/lib/env-utils/version.ts
31
- var VERSION = true ? "3.3.0-alpha.7" : DEFAULT_VERSION;
31
+ var VERSION = true ? "3.3.0-alpha.8" : 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
  }
@@ -312,10 +312,10 @@
312
312
  }
313
313
 
314
314
  // src/lib/utils/version.ts
315
- var VERSION3 = true ? "3.3.0-alpha.7" : "beta";
315
+ var VERSION3 = true ? "3.3.0-alpha.8" : "beta";
316
316
 
317
317
  // src/lib/parsers/basis-module-loader.ts
318
- var VERSION4 = true ? "3.3.0-alpha.7" : "beta";
318
+ var VERSION4 = true ? "3.3.0-alpha.8" : "beta";
319
319
  var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
320
320
  var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
321
321
  var loadBasisTranscoderPromise;
@@ -1,5 +1,5 @@
1
1
  import type { Loader, LoaderWithParser } from '@loaders.gl/loader-utils';
2
- export declare type TextureLoaderOptions = {
2
+ export type TextureLoaderOptions = {
3
3
  'compressed-texture'?: {
4
4
  libraryPath?: string;
5
5
  useBasis?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"compressed-texture-loader.d.ts","sourceRoot":"","sources":["../src/compressed-texture-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAE,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAKvE,oBAAY,oBAAoB,GAAG;IACjC,oBAAoB,CAAC,EAAE;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAqBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;CAiBnC,CAAC;AAGF,eAAO,MAAM,uCAAuC,EAAE,MAAsC,CAAC;AAC7F,eAAO,MAAM,iCAAiC,EAAE,gBAA0C,CAAC"}
1
+ {"version":3,"file":"compressed-texture-loader.d.ts","sourceRoot":"","sources":["../src/compressed-texture-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAE,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAKvE,MAAM,MAAM,oBAAoB,GAAG;IACjC,oBAAoB,CAAC,EAAE;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAqBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;CAiBnC,CAAC;AAGF,eAAO,MAAM,uCAAuC,EAAE,MAAsC,CAAC;AAC7F,eAAO,MAAM,iCAAiC,EAAE,gBAA0C,CAAC"}
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  // ../worker-utils/src/lib/env-utils/version.ts
38
- var VERSION = true ? "3.3.0-alpha.7" : DEFAULT_VERSION;
38
+ var VERSION = true ? "3.3.0-alpha.8" : 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
  }
@@ -319,7 +319,7 @@
319
319
  }
320
320
 
321
321
  // src/lib/utils/version.ts
322
- var VERSION3 = true ? "3.3.0-alpha.7" : "beta";
322
+ var VERSION3 = true ? "3.3.0-alpha.8" : "beta";
323
323
 
324
324
  // ../../node_modules/ktx-parse/dist/ktx-parse.modern.js
325
325
  var t = new Uint8Array([0]);
@@ -907,7 +907,7 @@
907
907
  }
908
908
 
909
909
  // src/lib/parsers/basis-module-loader.ts
910
- var VERSION4 = true ? "3.3.0-alpha.7" : "beta";
910
+ var VERSION4 = true ? "3.3.0-alpha.8" : "beta";
911
911
  var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
912
912
  var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
913
913
  var loadBasisTranscoderPromise;
@@ -1,6 +1,6 @@
1
1
  import type { Writer, WriterOptions } from '@loaders.gl/loader-utils';
2
2
  import { encodeImageURLToCompressedTextureURL } from './lib/encoders/encode-texture';
3
- export declare type CompressedTextureWriterOptions = WriterOptions & {
3
+ export type CompressedTextureWriterOptions = WriterOptions & {
4
4
  cwd?: string;
5
5
  texture?: {
6
6
  format: string;
@@ -1 +1 @@
1
- {"version":3,"file":"compressed-texture-writer.d.ts","sourceRoot":"","sources":["../src/compressed-texture-writer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EAAC,oCAAoC,EAAC,MAAM,+BAA+B,CAAC;AAEnF,oBAAY,8BAA8B,GAAG,aAAa,GAAG;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;CAoBnC,CAAC;AAGF,eAAO,MAAM,iCAAiC,EAAE,MAAM,GAAG;IACvD,cAAc,EAAE,CACd,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,8BAA8B,KACrC,OAAO,CAAC,MAAM,CAAC,CAAC;CACI,CAAC"}
1
+ {"version":3,"file":"compressed-texture-writer.d.ts","sourceRoot":"","sources":["../src/compressed-texture-writer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EAAC,oCAAoC,EAAC,MAAM,+BAA+B,CAAC;AAEnF,MAAM,MAAM,8BAA8B,GAAG,aAAa,GAAG;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;CAoBnC,CAAC;AAGF,eAAO,MAAM,iCAAiC,EAAE,MAAM,GAAG;IACvD,cAAc,EAAE,CACd,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,8BAA8B,KACrC,OAAO,CAAC,MAAM,CAAC,CAAC;CACI,CAAC"}
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  // ../worker-utils/src/lib/env-utils/version.ts
38
- var VERSION = true ? "3.3.0-alpha.7" : DEFAULT_VERSION;
38
+ var VERSION = true ? "3.3.0-alpha.8" : 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
  }
@@ -319,7 +319,7 @@
319
319
  }
320
320
 
321
321
  // src/lib/utils/version.ts
322
- var VERSION3 = true ? "3.3.0-alpha.7" : "beta";
322
+ var VERSION3 = true ? "3.3.0-alpha.8" : "beta";
323
323
 
324
324
  // src/crunch-loader.ts
325
325
  var CrunchLoader = {
@@ -10,7 +10,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
12
  var _workerUtils = require("@loaders.gl/worker-utils");
13
- var VERSION = typeof "3.3.0-alpha.7" !== 'undefined' ? "3.3.0-alpha.7" : 'beta';
13
+ var VERSION = typeof "3.3.0-alpha.8" !== 'undefined' ? "3.3.0-alpha.8" : 'beta';
14
14
 
15
15
  var BASIS_CDN_ENCODER_WASM = "https://unpkg.com/@loaders.gl/textures@".concat(VERSION, "/dist/libs/basis_encoder.wasm");
16
16
  var BASIS_CDN_ENCODER_JS = "https://unpkg.com/@loaders.gl/textures@".concat(VERSION, "/dist/libs/basis_encoder.js");
@@ -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-alpha.7" !== 'undefined' ? "3.3.0-alpha.7" : 'beta';
7
+ var VERSION = typeof "3.3.0-alpha.8" !== 'undefined' ? "3.3.0-alpha.8" : 'beta';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1,5 +1,5 @@
1
1
 
2
- const VERSION = typeof "3.3.0-alpha.7" !== 'undefined' ? "3.3.0-alpha.7" : 'beta';
2
+ const VERSION = typeof "3.3.0-alpha.8" !== 'undefined' ? "3.3.0-alpha.8" : 'beta';
3
3
 
4
4
  import { loadLibrary } from '@loaders.gl/worker-utils';
5
5
  const BASIS_CDN_ENCODER_WASM = "https://unpkg.com/@loaders.gl/textures@".concat(VERSION, "/dist/libs/basis_encoder.wasm");
@@ -1,3 +1,3 @@
1
1
 
2
- export const VERSION = typeof "3.3.0-alpha.7" !== 'undefined' ? "3.3.0-alpha.7" : 'beta';
2
+ export const VERSION = typeof "3.3.0-alpha.8" !== 'undefined' ? "3.3.0-alpha.8" : 'beta';
3
3
  //# sourceMappingURL=version.js.map
@@ -190,6 +190,15 @@ var require_dom = __commonJS({
190
190
  serializeToString(this[i], buf, isHTML, nodeFilter);
191
191
  }
192
192
  return buf.join("");
193
+ },
194
+ find: function(predicate) {
195
+ return Array.prototype.find.call(this, predicate);
196
+ },
197
+ filter: function(predicate) {
198
+ return Array.prototype.filter.call(this, predicate);
199
+ },
200
+ indexOf: function(item) {
201
+ return Array.prototype.indexOf.call(this, item);
193
202
  }
194
203
  };
195
204
  function LiveNodeList(node, refresh) {
@@ -252,7 +261,7 @@ var require_dom = __commonJS({
252
261
  }
253
262
  }
254
263
  } else {
255
- throw DOMException2(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
264
+ throw new DOMException2(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
256
265
  }
257
266
  }
258
267
  NamedNodeMap.prototype = {
@@ -491,41 +500,103 @@ var require_dom = __commonJS({
491
500
  _onUpdateChild(parentNode.ownerDocument, parentNode);
492
501
  return child;
493
502
  }
494
- function _insertBefore(parentNode, newChild, nextChild) {
495
- var cp = newChild.parentNode;
503
+ function hasValidParentNodeType(node) {
504
+ return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);
505
+ }
506
+ function hasInsertableNodeType(node) {
507
+ return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);
508
+ }
509
+ function isDocTypeNode(node) {
510
+ return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;
511
+ }
512
+ function isElementNode(node) {
513
+ return node && node.nodeType === Node.ELEMENT_NODE;
514
+ }
515
+ function isTextNode(node) {
516
+ return node && node.nodeType === Node.TEXT_NODE;
517
+ }
518
+ function isElementInsertionPossible(doc, child) {
519
+ var parentChildNodes = doc.childNodes || [];
520
+ if (parentChildNodes.find(isElementNode) || isDocTypeNode(child)) {
521
+ return false;
522
+ }
523
+ var docTypeNode = parentChildNodes.find(isDocTypeNode);
524
+ return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
525
+ }
526
+ function _insertBefore(parent, node, child) {
527
+ if (!hasValidParentNodeType(parent)) {
528
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
529
+ }
530
+ if (child && child.parentNode !== parent) {
531
+ throw new DOMException2(NOT_FOUND_ERR, "child not in parent");
532
+ }
533
+ if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) {
534
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType);
535
+ }
536
+ var parentChildNodes = parent.childNodes || [];
537
+ var nodeChildNodes = node.childNodes || [];
538
+ if (parent.nodeType === Node.DOCUMENT_NODE) {
539
+ if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
540
+ let nodeChildElements = nodeChildNodes.filter(isElementNode);
541
+ if (nodeChildElements.length > 1 || nodeChildNodes.find(isTextNode)) {
542
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
543
+ }
544
+ if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {
545
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
546
+ }
547
+ }
548
+ if (isElementNode(node)) {
549
+ if (parentChildNodes.find(isElementNode) || !isElementInsertionPossible(parent, child)) {
550
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
551
+ }
552
+ }
553
+ if (isDocTypeNode(node)) {
554
+ if (parentChildNodes.find(isDocTypeNode)) {
555
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
556
+ }
557
+ let parentElementChild = parentChildNodes.find(isElementNode);
558
+ if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
559
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
560
+ }
561
+ if (!child && parentElementChild) {
562
+ throw new DOMException2(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
563
+ }
564
+ }
565
+ }
566
+ var cp = node.parentNode;
496
567
  if (cp) {
497
- cp.removeChild(newChild);
568
+ cp.removeChild(node);
498
569
  }
499
- if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) {
500
- var newFirst = newChild.firstChild;
570
+ if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
571
+ var newFirst = node.firstChild;
501
572
  if (newFirst == null) {
502
- return newChild;
573
+ return node;
503
574
  }
504
- var newLast = newChild.lastChild;
575
+ var newLast = node.lastChild;
505
576
  } else {
506
- newFirst = newLast = newChild;
577
+ newFirst = newLast = node;
507
578
  }
508
- var pre = nextChild ? nextChild.previousSibling : parentNode.lastChild;
579
+ var pre = child ? child.previousSibling : parent.lastChild;
509
580
  newFirst.previousSibling = pre;
510
- newLast.nextSibling = nextChild;
581
+ newLast.nextSibling = child;
511
582
  if (pre) {
512
583
  pre.nextSibling = newFirst;
513
584
  } else {
514
- parentNode.firstChild = newFirst;
585
+ parent.firstChild = newFirst;
515
586
  }
516
- if (nextChild == null) {
517
- parentNode.lastChild = newLast;
587
+ if (child == null) {
588
+ parent.lastChild = newLast;
518
589
  } else {
519
- nextChild.previousSibling = newLast;
590
+ child.previousSibling = newLast;
520
591
  }
521
592
  do {
522
- newFirst.parentNode = parentNode;
593
+ newFirst.parentNode = parent;
523
594
  } while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
524
- _onUpdateChild(parentNode.ownerDocument || parentNode, parentNode);
525
- if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
526
- newChild.firstChild = newChild.lastChild = null;
595
+ _onUpdateChild(parent.ownerDocument || parent, parent);
596
+ if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
597
+ node.firstChild = node.lastChild = null;
527
598
  }
528
- return newChild;
599
+ return node;
529
600
  }
530
601
  function _appendSingleChild(parentNode, newChild) {
531
602
  var cp = newChild.parentNode;
@@ -563,10 +634,12 @@ var require_dom = __commonJS({
563
634
  }
564
635
  return newChild;
565
636
  }
566
- if (this.documentElement == null && newChild.nodeType == ELEMENT_NODE) {
637
+ _insertBefore(this, newChild, refChild);
638
+ newChild.ownerDocument = this;
639
+ if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
567
640
  this.documentElement = newChild;
568
641
  }
569
- return _insertBefore(this, newChild, refChild), newChild.ownerDocument = this, newChild;
642
+ return newChild;
570
643
  },
571
644
  removeChild: function(oldChild) {
572
645
  if (this.documentElement == oldChild) {
@@ -63109,7 +63182,7 @@ var require_polyfill = __commonJS({
63109
63182
  });
63110
63183
 
63111
63184
  // ../worker-utils/src/lib/env-utils/version.ts
63112
- var VERSION = true ? "3.3.0-alpha.7" : DEFAULT_VERSION;
63185
+ var VERSION = true ? "3.3.0-alpha.8" : DEFAULT_VERSION;
63113
63186
  if (false) {
63114
63187
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
63115
63188
  }
@@ -65572,10 +65645,10 @@ if (!("allSettled" in Promise)) {
65572
65645
  }
65573
65646
 
65574
65647
  // src/lib/utils/version.ts
65575
- var VERSION3 = true ? "3.3.0-alpha.7" : "beta";
65648
+ var VERSION3 = true ? "3.3.0-alpha.8" : "beta";
65576
65649
 
65577
65650
  // src/lib/parsers/basis-module-loader.ts
65578
- var VERSION4 = true ? "3.3.0-alpha.7" : "beta";
65651
+ var VERSION4 = true ? "3.3.0-alpha.8" : "beta";
65579
65652
  var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
65580
65653
  var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
65581
65654
  var loadBasisEncoderPromise;
@@ -28,7 +28,7 @@
28
28
  });
29
29
 
30
30
  // ../worker-utils/src/lib/env-utils/version.ts
31
- var VERSION = true ? "3.3.0-alpha.7" : DEFAULT_VERSION;
31
+ var VERSION = true ? "3.3.0-alpha.8" : 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
  }
@@ -237,10 +237,10 @@
237
237
  }
238
238
 
239
239
  // src/lib/utils/version.ts
240
- var VERSION3 = true ? "3.3.0-alpha.7" : "beta";
240
+ var VERSION3 = true ? "3.3.0-alpha.8" : "beta";
241
241
 
242
242
  // src/lib/parsers/basis-module-loader.ts
243
- var VERSION4 = true ? "3.3.0-alpha.7" : "beta";
243
+ var VERSION4 = true ? "3.3.0-alpha.8" : "beta";
244
244
  var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
245
245
  var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
246
246
  var loadBasisEncoderPromise;
@@ -1,5 +1,5 @@
1
1
  import type { TextureLevel } from '@loaders.gl/schema';
2
- export declare type BasisFormat = 'etc1' | 'etc2' | 'bc1' | 'bc3' | 'bc4' | 'bc5' | 'bc7-m6-opaque-only' | 'bc7-m5' | 'pvrtc1-4-rgb' | 'pvrtc1-4-rgba' | 'astc-4x4' | 'atc-rgb' | 'atc-rgba-interpolated-alpha' | 'rgba32' | 'rgb565' | 'bgr565' | 'rgba4444';
2
+ export type BasisFormat = 'etc1' | 'etc2' | 'bc1' | 'bc3' | 'bc4' | 'bc5' | 'bc7-m6-opaque-only' | 'bc7-m5' | 'pvrtc1-4-rgb' | 'pvrtc1-4-rgba' | 'astc-4x4' | 'atc-rgb' | 'atc-rgba-interpolated-alpha' | 'rgba32' | 'rgb565' | 'bgr565' | 'rgba4444';
3
3
  /**
4
4
  * parse data with a Binomial Basis_Universal module
5
5
  * @param data
@@ -1 +1 @@
1
- {"version":3,"file":"parse-basis.d.ts","sourceRoot":"","sources":["../../../src/lib/parsers/parse-basis.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAMrD,oBAAY,WAAW,GACnB,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,oBAAoB,GACpB,QAAQ,GACR,cAAc,GACd,eAAe,GACf,UAAU,GACV,SAAS,GACT,6BAA6B,GAC7B,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAoDf;;;;;GAKG;AACH,wBAA8B,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,KAAA,GAAG,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAwB9F;AA8KD;;;GAGG;AACH,wBAAgB,0BAA0B,IACtC,WAAW,GACX;IACE,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;CACtB,CAoBJ"}
1
+ {"version":3,"file":"parse-basis.d.ts","sourceRoot":"","sources":["../../../src/lib/parsers/parse-basis.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAMrD,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,oBAAoB,GACpB,QAAQ,GACR,cAAc,GACd,eAAe,GACf,UAAU,GACV,SAAS,GACT,6BAA6B,GAC7B,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAoDf;;;;;GAKG;AACH,wBAA8B,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,KAAA,GAAG,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAwB9F;AA8KD;;;GAGG;AACH,wBAAgB,0BAA0B,IACtC,WAAW,GACX;IACE,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;CACtB,CAoBJ"}
@@ -1,4 +1,4 @@
1
- declare type NumpyHeader = {
1
+ type NumpyHeader = {
2
2
  descr: string;
3
3
  shape: number[];
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"parse-npy.d.ts","sourceRoot":"","sources":["../../../src/lib/parsers/parse-npy.ts"],"names":[],"mappings":"AAEA,aAAK,WAAW,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC;AAwCpD,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO;;;SA+BnE"}
1
+ {"version":3,"file":"parse-npy.d.ts","sourceRoot":"","sources":["../../../src/lib/parsers/parse-npy.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAC,CAAC;AAwCpD,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO;;;SA+BnE"}
@@ -1,5 +1,5 @@
1
- export declare type Options = Record<string, any>;
2
- export declare type Func = (url: string, options: Options) => unknown;
1
+ export type Options = Record<string, any>;
2
+ export type Func = (url: string, options: Options) => unknown;
3
3
  export declare function asyncDeepMap(tree: unknown, func: Func, options?: Options): Promise<unknown>;
4
4
  export declare function mapSubtree(object: unknown, func: Func, options: Options): Promise<unknown>;
5
5
  //# sourceMappingURL=async-deep-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"async-deep-map.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/async-deep-map.ts"],"names":[],"mappings":"AAgBA,oBAAY,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC1C,oBAAY,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;AAO9D,wBAAsB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,GAAE,OAAY,oBAElF;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,oBAY7E"}
1
+ {"version":3,"file":"async-deep-map.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/async-deep-map.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC1C,MAAM,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;AAO9D,wBAAsB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,GAAE,OAAY,oBAElF;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,oBAY7E"}
@@ -1,5 +1,5 @@
1
- export declare type LoadOptions = Record<string, any>;
2
- export declare type Load = (data: ArrayBuffer, options: Record<string, any>) => Promise<any>;
1
+ export type LoadOptions = Record<string, any>;
2
+ export type Load = (data: ArrayBuffer, options: Record<string, any>) => Promise<any>;
3
3
  export declare function deepLoad(urlTree: unknown, load: Load, options: LoadOptions): Promise<unknown>;
4
4
  export declare function shallowLoad(url: string, load: Load, options: LoadOptions): Promise<any>;
5
5
  //# sourceMappingURL=deep-load.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deep-load.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/deep-load.ts"],"names":[],"mappings":"AAGA,oBAAY,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC9C,oBAAY,IAAI,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAErF,wBAAsB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,oBAEhF;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAK7F"}
1
+ {"version":3,"file":"deep-load.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/deep-load.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAErF,wBAAsB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,oBAEhF;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAK7F"}
@@ -1,5 +1,5 @@
1
1
  import type { GetUrl, UrlOptions } from './texture-api-types';
2
- export declare type ImageCubeTexture = {
2
+ export type ImageCubeTexture = {
3
3
  GL_TEXTURE_CUBE_MAP_POSITIVE_X: any;
4
4
  GL_TEXTURE_CUBE_MAP_NEGATIVE_X: any;
5
5
  GL_TEXTURE_CUBE_MAP_POSITIVE_Y: any;
@@ -1 +1 @@
1
- {"version":3,"file":"load-image-cube.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/load-image-cube.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAqB5D,oBAAY,gBAAgB,GAAG;IAC7B,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;CACrC,CAAC;AAIF,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,8CAiBzE;AAID,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,KAAK,GACX,OAAO,CAAC,gBAAgB,CAAC,CAG3B"}
1
+ {"version":3,"file":"load-image-cube.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/load-image-cube.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAqB5D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;IACpC,8BAA8B,EAAE,GAAG,CAAC;CACrC,CAAC;AAIF,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,8CAiBzE;AAID,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,KAAK,GACX,OAAO,CAAC,gBAAgB,CAAC,CAG3B"}
@@ -1,10 +1,10 @@
1
1
  export type { ImageType } from '@loaders.gl/images';
2
- export declare type UrlOptions = {
2
+ export type UrlOptions = {
3
3
  baseUrl?: string;
4
4
  index?: number;
5
5
  face?: number;
6
6
  lod?: number;
7
7
  direction?: string;
8
8
  };
9
- export declare type GetUrl = (options: UrlOptions) => string;
9
+ export type GetUrl = (options: UrlOptions) => string;
10
10
  //# sourceMappingURL=texture-api-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"texture-api-types.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/texture-api-types.ts"],"names":[],"mappings":"AAEA,YAAY,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAElD,oBAAY,UAAU,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,oBAAY,MAAM,GAAG,CAAC,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC"}
1
+ {"version":3,"file":"texture-api-types.d.ts","sourceRoot":"","sources":["../../../src/lib/texture-api/texture-api-types.ts"],"names":[],"mappings":"AAEA,YAAY,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { TextureLevel } from '@loaders.gl/schema';
2
- export declare type CompressedTextureExtractOptions = {
2
+ export type CompressedTextureExtractOptions = {
3
3
  mipMapLevels: number;
4
4
  width: number;
5
5
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"extract-mipmap-images.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/extract-mipmap-images.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,oBAAY,+BAA+B,GAAG;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,QAAQ,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,EAC3B,OAAO,EAAE,+BAA+B,GACvC,YAAY,EAAE,CA4BhB"}
1
+ {"version":3,"file":"extract-mipmap-images.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/extract-mipmap-images.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,QAAQ,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,EAC3B,OAAO,EAAE,+BAA+B,GACvC,YAAY,EAAE,CA4BhB"}
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  // src/lib/utils/version.ts
3
- var VERSION = true ? "3.3.0-alpha.7" : "beta";
3
+ var VERSION = true ? "3.3.0-alpha.8" : "beta";
4
4
 
5
5
  // src/lib/parsers/parse-npy.ts
6
6
  function systemIsLittleEndian() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/textures",
3
- "version": "3.3.0-alpha.7",
3
+ "version": "3.3.0-alpha.8",
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-ktx2-basis-writer-nodejs-worker": "esbuild src/workers/ktx2-basis-writer-nodejs-worker.ts --platform=node --target=esnext,node12 --bundle --outfile=dist/ktx2-basis-writer-nodejs-worker.js --define:__VERSION__=\\\"$npm_package_version\\\""
46
46
  },
47
47
  "dependencies": {
48
- "@loaders.gl/images": "3.3.0-alpha.7",
49
- "@loaders.gl/loader-utils": "3.3.0-alpha.7",
50
- "@loaders.gl/schema": "3.3.0-alpha.7",
51
- "@loaders.gl/worker-utils": "3.3.0-alpha.7",
48
+ "@loaders.gl/images": "3.3.0-alpha.8",
49
+ "@loaders.gl/loader-utils": "3.3.0-alpha.8",
50
+ "@loaders.gl/schema": "3.3.0-alpha.8",
51
+ "@loaders.gl/worker-utils": "3.3.0-alpha.8",
52
52
  "ktx-parse": "^0.0.4",
53
53
  "texture-compressor": "^1.0.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@loaders.gl/polyfills": "3.3.0-alpha.7"
56
+ "@loaders.gl/polyfills": "3.3.0-alpha.8"
57
57
  },
58
- "gitHead": "29b08f3519c50984e84bf4234e607cab7c7d1c3e"
58
+ "gitHead": "69cfde0340328dd800c7c90151b56b406f47e9ae"
59
59
  }