@loaders.gl/textures 4.3.0-alpha.3 → 4.3.0-alpha.5
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/basis-worker-node.js +74 -251
- package/dist/basis-worker.js +2 -31
- package/dist/compressed-texture-worker.js +253 -98
- package/dist/crunch-worker.js +2 -2
- package/dist/dist.dev.js +268 -113
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +2 -2
- package/dist/ktx2-basis-writer-worker-node.js +2 -2
- package/dist/ktx2-basis-writer-worker.js +2 -2
- package/dist/lib/parsers/parse-basis.d.ts.map +1 -1
- package/dist/lib/parsers/parse-basis.js +0 -1
- package/dist/lib/utils/version.js +1 -1
- package/dist/npy-worker.js +1 -1
- package/package.json +7 -7
- package/src/lib/parsers/parse-basis.ts +0 -1
|
@@ -5422,27 +5422,27 @@ var require_chunkstream = __commonJS({
|
|
|
5422
5422
|
this._buffers = null;
|
|
5423
5423
|
this.emit("close");
|
|
5424
5424
|
};
|
|
5425
|
-
ChunkStream.prototype._processReadAllowingLess = function(
|
|
5425
|
+
ChunkStream.prototype._processReadAllowingLess = function(read) {
|
|
5426
5426
|
this._reads.shift();
|
|
5427
5427
|
var smallerBuf = this._buffers[0];
|
|
5428
|
-
if (smallerBuf.length >
|
|
5429
|
-
this._buffered -=
|
|
5430
|
-
this._buffers[0] = smallerBuf.slice(
|
|
5431
|
-
|
|
5428
|
+
if (smallerBuf.length > read.length) {
|
|
5429
|
+
this._buffered -= read.length;
|
|
5430
|
+
this._buffers[0] = smallerBuf.slice(read.length);
|
|
5431
|
+
read.func.call(this, smallerBuf.slice(0, read.length));
|
|
5432
5432
|
} else {
|
|
5433
5433
|
this._buffered -= smallerBuf.length;
|
|
5434
5434
|
this._buffers.shift();
|
|
5435
|
-
|
|
5435
|
+
read.func.call(this, smallerBuf);
|
|
5436
5436
|
}
|
|
5437
5437
|
};
|
|
5438
|
-
ChunkStream.prototype._processRead = function(
|
|
5438
|
+
ChunkStream.prototype._processRead = function(read) {
|
|
5439
5439
|
this._reads.shift();
|
|
5440
5440
|
var pos = 0;
|
|
5441
5441
|
var count = 0;
|
|
5442
|
-
var data = new Buffer(
|
|
5443
|
-
while (pos <
|
|
5442
|
+
var data = new Buffer(read.length);
|
|
5443
|
+
while (pos < read.length) {
|
|
5444
5444
|
var buf = this._buffers[count++];
|
|
5445
|
-
var len = Math.min(buf.length,
|
|
5445
|
+
var len = Math.min(buf.length, read.length - pos);
|
|
5446
5446
|
buf.copy(data, pos, 0, len);
|
|
5447
5447
|
pos += len;
|
|
5448
5448
|
if (len !== buf.length) {
|
|
@@ -5452,17 +5452,17 @@ var require_chunkstream = __commonJS({
|
|
|
5452
5452
|
if (count > 0) {
|
|
5453
5453
|
this._buffers.splice(0, count);
|
|
5454
5454
|
}
|
|
5455
|
-
this._buffered -=
|
|
5456
|
-
|
|
5455
|
+
this._buffered -= read.length;
|
|
5456
|
+
read.func.call(this, data);
|
|
5457
5457
|
};
|
|
5458
5458
|
ChunkStream.prototype._process = function() {
|
|
5459
5459
|
try {
|
|
5460
5460
|
while (this._buffered > 0 && this._reads && this._reads.length > 0) {
|
|
5461
|
-
var
|
|
5462
|
-
if (
|
|
5463
|
-
this._processReadAllowingLess(
|
|
5464
|
-
} else if (this._buffered >=
|
|
5465
|
-
this._processRead(
|
|
5461
|
+
var read = this._reads[0];
|
|
5462
|
+
if (read.allowLess) {
|
|
5463
|
+
this._processReadAllowingLess(read);
|
|
5464
|
+
} else if (this._buffered >= read.length) {
|
|
5465
|
+
this._processRead(read);
|
|
5466
5466
|
} else {
|
|
5467
5467
|
break;
|
|
5468
5468
|
}
|
|
@@ -6710,12 +6710,12 @@ var require_sync_reader = __commonJS({
|
|
|
6710
6710
|
};
|
|
6711
6711
|
SyncReader.prototype.process = function() {
|
|
6712
6712
|
while (this._reads.length > 0 && this._buffer.length) {
|
|
6713
|
-
var
|
|
6714
|
-
if (this._buffer.length && (this._buffer.length >=
|
|
6713
|
+
var read = this._reads[0];
|
|
6714
|
+
if (this._buffer.length && (this._buffer.length >= read.length || read.allowLess)) {
|
|
6715
6715
|
this._reads.shift();
|
|
6716
6716
|
var buf = this._buffer;
|
|
6717
|
-
this._buffer = buf.slice(
|
|
6718
|
-
|
|
6717
|
+
this._buffer = buf.slice(read.length);
|
|
6718
|
+
read.func.call(this, buf.slice(0, read.length));
|
|
6719
6719
|
} else {
|
|
6720
6720
|
break;
|
|
6721
6721
|
}
|
|
@@ -8644,27 +8644,27 @@ var require_chunkstream2 = __commonJS({
|
|
|
8644
8644
|
this._buffers = null;
|
|
8645
8645
|
this.emit("close");
|
|
8646
8646
|
};
|
|
8647
|
-
ChunkStream.prototype._processReadAllowingLess = function(
|
|
8647
|
+
ChunkStream.prototype._processReadAllowingLess = function(read) {
|
|
8648
8648
|
this._reads.shift();
|
|
8649
8649
|
var smallerBuf = this._buffers[0];
|
|
8650
|
-
if (smallerBuf.length >
|
|
8651
|
-
this._buffered -=
|
|
8652
|
-
this._buffers[0] = smallerBuf.slice(
|
|
8653
|
-
|
|
8650
|
+
if (smallerBuf.length > read.length) {
|
|
8651
|
+
this._buffered -= read.length;
|
|
8652
|
+
this._buffers[0] = smallerBuf.slice(read.length);
|
|
8653
|
+
read.func.call(this, smallerBuf.slice(0, read.length));
|
|
8654
8654
|
} else {
|
|
8655
8655
|
this._buffered -= smallerBuf.length;
|
|
8656
8656
|
this._buffers.shift();
|
|
8657
|
-
|
|
8657
|
+
read.func.call(this, smallerBuf);
|
|
8658
8658
|
}
|
|
8659
8659
|
};
|
|
8660
|
-
ChunkStream.prototype._processRead = function(
|
|
8660
|
+
ChunkStream.prototype._processRead = function(read) {
|
|
8661
8661
|
this._reads.shift();
|
|
8662
8662
|
var pos = 0;
|
|
8663
8663
|
var count = 0;
|
|
8664
|
-
var data = new Buffer(
|
|
8665
|
-
while (pos <
|
|
8664
|
+
var data = new Buffer(read.length);
|
|
8665
|
+
while (pos < read.length) {
|
|
8666
8666
|
var buf = this._buffers[count++];
|
|
8667
|
-
var len = Math.min(buf.length,
|
|
8667
|
+
var len = Math.min(buf.length, read.length - pos);
|
|
8668
8668
|
buf.copy(data, pos, 0, len);
|
|
8669
8669
|
pos += len;
|
|
8670
8670
|
if (len !== buf.length) {
|
|
@@ -8674,17 +8674,17 @@ var require_chunkstream2 = __commonJS({
|
|
|
8674
8674
|
if (count > 0) {
|
|
8675
8675
|
this._buffers.splice(0, count);
|
|
8676
8676
|
}
|
|
8677
|
-
this._buffered -=
|
|
8678
|
-
|
|
8677
|
+
this._buffered -= read.length;
|
|
8678
|
+
read.func.call(this, data);
|
|
8679
8679
|
};
|
|
8680
8680
|
ChunkStream.prototype._process = function() {
|
|
8681
8681
|
try {
|
|
8682
8682
|
while (this._buffered > 0 && this._reads && this._reads.length > 0) {
|
|
8683
|
-
var
|
|
8684
|
-
if (
|
|
8685
|
-
this._processReadAllowingLess(
|
|
8686
|
-
} else if (this._buffered >=
|
|
8687
|
-
this._processRead(
|
|
8683
|
+
var read = this._reads[0];
|
|
8684
|
+
if (read.allowLess) {
|
|
8685
|
+
this._processReadAllowingLess(read);
|
|
8686
|
+
} else if (this._buffered >= read.length) {
|
|
8687
|
+
this._processRead(read);
|
|
8688
8688
|
} else {
|
|
8689
8689
|
break;
|
|
8690
8690
|
}
|
|
@@ -10261,12 +10261,12 @@ var require_sync_reader2 = __commonJS({
|
|
|
10261
10261
|
};
|
|
10262
10262
|
SyncReader.prototype.process = function() {
|
|
10263
10263
|
while (this._reads.length > 0 && this._buffer.length) {
|
|
10264
|
-
var
|
|
10265
|
-
if (this._buffer.length && (this._buffer.length >=
|
|
10264
|
+
var read = this._reads[0];
|
|
10265
|
+
if (this._buffer.length && (this._buffer.length >= read.length || read.allowLess)) {
|
|
10266
10266
|
this._reads.shift();
|
|
10267
10267
|
var buf = this._buffer;
|
|
10268
|
-
this._buffer = buf.slice(
|
|
10269
|
-
|
|
10268
|
+
this._buffer = buf.slice(read.length);
|
|
10269
|
+
read.func.call(this, buf.slice(0, read.length));
|
|
10270
10270
|
} else {
|
|
10271
10271
|
break;
|
|
10272
10272
|
}
|
|
@@ -11266,11 +11266,11 @@ var require_bitmap = __commonJS({
|
|
|
11266
11266
|
return this.coreHeader.__height__;
|
|
11267
11267
|
};
|
|
11268
11268
|
Bitmap.prototype.read = function(buf, offset, limit) {
|
|
11269
|
-
var
|
|
11269
|
+
var read = [];
|
|
11270
11270
|
for (var i2 = offset, len = offset + limit; i2 < len; ++i2) {
|
|
11271
|
-
|
|
11271
|
+
read.push(buf.readInt8(i2));
|
|
11272
11272
|
}
|
|
11273
|
-
return new Buffer(
|
|
11273
|
+
return new Buffer(read);
|
|
11274
11274
|
};
|
|
11275
11275
|
Bitmap.prototype.readFileHeader = function() {
|
|
11276
11276
|
var bfType = this.read(this.buffer, 0, 2);
|
|
@@ -29716,7 +29716,7 @@ var require_ed_compat = __commonJS({
|
|
|
29716
29716
|
var require_pkcs8 = __commonJS({
|
|
29717
29717
|
"../../node_modules/sshpk/lib/formats/pkcs8.js"(exports, module2) {
|
|
29718
29718
|
module2.exports = {
|
|
29719
|
-
read
|
|
29719
|
+
read,
|
|
29720
29720
|
readPkcs8,
|
|
29721
29721
|
write,
|
|
29722
29722
|
writePkcs8,
|
|
@@ -29732,7 +29732,7 @@ var require_pkcs8 = __commonJS({
|
|
|
29732
29732
|
var Key = require_key();
|
|
29733
29733
|
var PrivateKey = require_private_key();
|
|
29734
29734
|
var pem = require_pem();
|
|
29735
|
-
function
|
|
29735
|
+
function read(buf, options) {
|
|
29736
29736
|
return pem.read(buf, options, "pkcs8");
|
|
29737
29737
|
}
|
|
29738
29738
|
function write(key, options) {
|
|
@@ -30228,7 +30228,7 @@ var require_pkcs8 = __commonJS({
|
|
|
30228
30228
|
var require_pkcs1 = __commonJS({
|
|
30229
30229
|
"../../node_modules/sshpk/lib/formats/pkcs1.js"(exports, module2) {
|
|
30230
30230
|
module2.exports = {
|
|
30231
|
-
read
|
|
30231
|
+
read,
|
|
30232
30232
|
readPkcs1,
|
|
30233
30233
|
write,
|
|
30234
30234
|
writePkcs1
|
|
@@ -30243,7 +30243,7 @@ var require_pkcs1 = __commonJS({
|
|
|
30243
30243
|
var pem = require_pem();
|
|
30244
30244
|
var pkcs8 = require_pkcs8();
|
|
30245
30245
|
var readECDSACurve = pkcs8.readECDSACurve;
|
|
30246
|
-
function
|
|
30246
|
+
function read(buf, options) {
|
|
30247
30247
|
return pem.read(buf, options, "pkcs1");
|
|
30248
30248
|
}
|
|
30249
30249
|
function write(key, options) {
|
|
@@ -30538,13 +30538,13 @@ var require_pkcs1 = __commonJS({
|
|
|
30538
30538
|
var require_rfc4253 = __commonJS({
|
|
30539
30539
|
"../../node_modules/sshpk/lib/formats/rfc4253.js"(exports, module2) {
|
|
30540
30540
|
module2.exports = {
|
|
30541
|
-
read:
|
|
30542
|
-
readType:
|
|
30541
|
+
read: read.bind(void 0, false, void 0),
|
|
30542
|
+
readType: read.bind(void 0, false),
|
|
30543
30543
|
write,
|
|
30544
30544
|
/* semi-private api, used by sshpk-agent */
|
|
30545
|
-
readPartial:
|
|
30545
|
+
readPartial: read.bind(void 0, true),
|
|
30546
30546
|
/* shared with ssh format */
|
|
30547
|
-
readInternal:
|
|
30547
|
+
readInternal: read,
|
|
30548
30548
|
keyTypeToAlg,
|
|
30549
30549
|
algToKeyType
|
|
30550
30550
|
};
|
|
@@ -30585,7 +30585,7 @@ var require_rfc4253 = __commonJS({
|
|
|
30585
30585
|
else
|
|
30586
30586
|
throw new Error("Unknown key type " + key.type);
|
|
30587
30587
|
}
|
|
30588
|
-
function
|
|
30588
|
+
function read(partial, type, buf, options) {
|
|
30589
30589
|
if (typeof buf === "string")
|
|
30590
30590
|
buf = Buffer2.from(buf);
|
|
30591
30591
|
assert3.buffer(buf, "buf");
|
|
@@ -31934,7 +31934,7 @@ var require_bcrypt_pbkdf = __commonJS({
|
|
|
31934
31934
|
var require_ssh_private = __commonJS({
|
|
31935
31935
|
"../../node_modules/sshpk/lib/formats/ssh-private.js"(exports, module2) {
|
|
31936
31936
|
module2.exports = {
|
|
31937
|
-
read
|
|
31937
|
+
read,
|
|
31938
31938
|
readSSHPrivate,
|
|
31939
31939
|
write
|
|
31940
31940
|
};
|
|
@@ -31951,7 +31951,7 @@ var require_ssh_private = __commonJS({
|
|
|
31951
31951
|
var SSHBuffer = require_ssh_buffer();
|
|
31952
31952
|
var errors = require_errors();
|
|
31953
31953
|
var bcrypt;
|
|
31954
|
-
function
|
|
31954
|
+
function read(buf, options) {
|
|
31955
31955
|
return pem.read(buf, options);
|
|
31956
31956
|
}
|
|
31957
31957
|
var MAGIC = "openssh-key-v1";
|
|
@@ -32180,7 +32180,7 @@ var require_ssh_private = __commonJS({
|
|
|
32180
32180
|
var require_pem = __commonJS({
|
|
32181
32181
|
"../../node_modules/sshpk/lib/formats/pem.js"(exports, module2) {
|
|
32182
32182
|
module2.exports = {
|
|
32183
|
-
read
|
|
32183
|
+
read,
|
|
32184
32184
|
write
|
|
32185
32185
|
};
|
|
32186
32186
|
var assert3 = require_assert();
|
|
@@ -32216,7 +32216,7 @@ var require_pem = __commonJS({
|
|
|
32216
32216
|
Object.keys(OID_TO_HASH).forEach(function(k2) {
|
|
32217
32217
|
HASH_TO_OID[OID_TO_HASH[k2]] = k2;
|
|
32218
32218
|
});
|
|
32219
|
-
function
|
|
32219
|
+
function read(buf, options, forceType) {
|
|
32220
32220
|
var input = buf;
|
|
32221
32221
|
if (typeof buf !== "string") {
|
|
32222
32222
|
assert3.buffer(buf, "buf");
|
|
@@ -32440,7 +32440,7 @@ var require_pem = __commonJS({
|
|
|
32440
32440
|
var require_ssh = __commonJS({
|
|
32441
32441
|
"../../node_modules/sshpk/lib/formats/ssh.js"(exports, module2) {
|
|
32442
32442
|
module2.exports = {
|
|
32443
|
-
read
|
|
32443
|
+
read,
|
|
32444
32444
|
write
|
|
32445
32445
|
};
|
|
32446
32446
|
var assert3 = require_assert();
|
|
@@ -32452,7 +32452,7 @@ var require_ssh = __commonJS({
|
|
|
32452
32452
|
var sshpriv = require_ssh_private();
|
|
32453
32453
|
var SSHKEY_RE = /^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/;
|
|
32454
32454
|
var SSHKEY_RE2 = /^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;
|
|
32455
|
-
function
|
|
32455
|
+
function read(buf, options) {
|
|
32456
32456
|
if (typeof buf !== "string") {
|
|
32457
32457
|
assert3.buffer(buf, "buf");
|
|
32458
32458
|
buf = buf.toString("ascii");
|
|
@@ -32517,7 +32517,7 @@ var require_ssh = __commonJS({
|
|
|
32517
32517
|
var require_dnssec = __commonJS({
|
|
32518
32518
|
"../../node_modules/sshpk/lib/formats/dnssec.js"(exports, module2) {
|
|
32519
32519
|
module2.exports = {
|
|
32520
|
-
read
|
|
32520
|
+
read,
|
|
32521
32521
|
write
|
|
32522
32522
|
};
|
|
32523
32523
|
var assert3 = require_assert();
|
|
@@ -32543,7 +32543,7 @@ var require_dnssec = __commonJS({
|
|
|
32543
32543
|
Object.keys(supportedAlgos).forEach(function(k2) {
|
|
32544
32544
|
supportedAlgosById[supportedAlgos[k2]] = k2.toUpperCase();
|
|
32545
32545
|
});
|
|
32546
|
-
function
|
|
32546
|
+
function read(buf, options) {
|
|
32547
32547
|
if (typeof buf !== "string") {
|
|
32548
32548
|
assert3.buffer(buf, "buf");
|
|
32549
32549
|
buf = buf.toString("ascii");
|
|
@@ -32770,7 +32770,7 @@ var require_dnssec = __commonJS({
|
|
|
32770
32770
|
var require_putty = __commonJS({
|
|
32771
32771
|
"../../node_modules/sshpk/lib/formats/putty.js"(exports, module2) {
|
|
32772
32772
|
module2.exports = {
|
|
32773
|
-
read
|
|
32773
|
+
read,
|
|
32774
32774
|
write
|
|
32775
32775
|
};
|
|
32776
32776
|
var assert3 = require_assert();
|
|
@@ -32781,7 +32781,7 @@ var require_putty = __commonJS({
|
|
|
32781
32781
|
var crypto2 = require("crypto");
|
|
32782
32782
|
var PrivateKey = require_private_key();
|
|
32783
32783
|
var errors = require_errors();
|
|
32784
|
-
function
|
|
32784
|
+
function read(buf, options) {
|
|
32785
32785
|
var lines = buf.toString("ascii").split(/[\r\n]+/);
|
|
32786
32786
|
var found = false;
|
|
32787
32787
|
var parts;
|
|
@@ -32951,7 +32951,7 @@ var require_putty = __commonJS({
|
|
|
32951
32951
|
var require_auto = __commonJS({
|
|
32952
32952
|
"../../node_modules/sshpk/lib/formats/auto.js"(exports, module2) {
|
|
32953
32953
|
module2.exports = {
|
|
32954
|
-
read
|
|
32954
|
+
read,
|
|
32955
32955
|
write
|
|
32956
32956
|
};
|
|
32957
32957
|
var assert3 = require_assert();
|
|
@@ -32965,7 +32965,7 @@ var require_auto = __commonJS({
|
|
|
32965
32965
|
var dnssec = require_dnssec();
|
|
32966
32966
|
var putty = require_putty();
|
|
32967
32967
|
var DNSSEC_PRIVKEY_HEADER_PREFIX = "Private-key-format: v1";
|
|
32968
|
-
function
|
|
32968
|
+
function read(buf, options) {
|
|
32969
32969
|
if (typeof buf === "string") {
|
|
32970
32970
|
if (buf.trim().match(/^[-]+[ ]*BEGIN/))
|
|
32971
32971
|
return pem.read(buf, options);
|
|
@@ -33566,7 +33566,7 @@ var require_identity = __commonJS({
|
|
|
33566
33566
|
var require_openssh_cert = __commonJS({
|
|
33567
33567
|
"../../node_modules/sshpk/lib/formats/openssh-cert.js"(exports, module2) {
|
|
33568
33568
|
module2.exports = {
|
|
33569
|
-
read
|
|
33569
|
+
read,
|
|
33570
33570
|
verify,
|
|
33571
33571
|
sign,
|
|
33572
33572
|
signAsync,
|
|
@@ -33598,7 +33598,7 @@ var require_openssh_cert = __commonJS({
|
|
|
33598
33598
|
TYPES[TYPES[k2]] = k2;
|
|
33599
33599
|
});
|
|
33600
33600
|
var ECDSA_ALGO = /^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;
|
|
33601
|
-
function
|
|
33601
|
+
function read(buf, options) {
|
|
33602
33602
|
if (Buffer2.isBuffer(buf))
|
|
33603
33603
|
buf = buf.toString("ascii");
|
|
33604
33604
|
var parts = buf.trim().split(/[ \t\n]+/g);
|
|
@@ -33852,7 +33852,7 @@ var require_openssh_cert = __commonJS({
|
|
|
33852
33852
|
var require_x509 = __commonJS({
|
|
33853
33853
|
"../../node_modules/sshpk/lib/formats/x509.js"(exports, module2) {
|
|
33854
33854
|
module2.exports = {
|
|
33855
|
-
read
|
|
33855
|
+
read,
|
|
33856
33856
|
verify,
|
|
33857
33857
|
sign,
|
|
33858
33858
|
signAsync,
|
|
@@ -33926,7 +33926,7 @@ var require_x509 = __commonJS({
|
|
|
33926
33926
|
"keyUsage": "2.5.29.15",
|
|
33927
33927
|
"extKeyUsage": "2.5.29.37"
|
|
33928
33928
|
};
|
|
33929
|
-
function
|
|
33929
|
+
function read(buf, options) {
|
|
33930
33930
|
if (typeof buf === "string") {
|
|
33931
33931
|
buf = Buffer2.from(buf, "binary");
|
|
33932
33932
|
}
|
|
@@ -34484,7 +34484,7 @@ var require_x509_pem = __commonJS({
|
|
|
34484
34484
|
"../../node_modules/sshpk/lib/formats/x509-pem.js"(exports, module2) {
|
|
34485
34485
|
var x509 = require_x509();
|
|
34486
34486
|
module2.exports = {
|
|
34487
|
-
read
|
|
34487
|
+
read,
|
|
34488
34488
|
verify: x509.verify,
|
|
34489
34489
|
sign: x509.sign,
|
|
34490
34490
|
write
|
|
@@ -34500,7 +34500,7 @@ var require_x509_pem = __commonJS({
|
|
|
34500
34500
|
var Identity = require_identity();
|
|
34501
34501
|
var Signature = require_signature();
|
|
34502
34502
|
var Certificate = require_certificate();
|
|
34503
|
-
function
|
|
34503
|
+
function read(buf, options) {
|
|
34504
34504
|
if (typeof buf !== "string") {
|
|
34505
34505
|
assert3.buffer(buf, "buf");
|
|
34506
34506
|
buf = buf.toString("ascii");
|
|
@@ -57940,181 +57940,6 @@ var require_node_pixels = __commonJS({
|
|
|
57940
57940
|
}
|
|
57941
57941
|
});
|
|
57942
57942
|
|
|
57943
|
-
// ../../node_modules/ktx-parse/dist/ktx-parse.js
|
|
57944
|
-
var require_ktx_parse = __commonJS({
|
|
57945
|
-
"../../node_modules/ktx-parse/dist/ktx-parse.js"(exports) {
|
|
57946
|
-
var t2;
|
|
57947
|
-
var e2;
|
|
57948
|
-
var n2;
|
|
57949
|
-
var i2;
|
|
57950
|
-
var r2;
|
|
57951
|
-
var a2;
|
|
57952
|
-
var s2;
|
|
57953
|
-
var o2;
|
|
57954
|
-
var l2 = new Uint8Array([0]);
|
|
57955
|
-
var f2 = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
|
|
57956
|
-
!function(t3) {
|
|
57957
|
-
t3[t3.NONE = 0] = "NONE", t3[t3.BASISLZ = 1] = "BASISLZ", t3[t3.ZSTD = 2] = "ZSTD", t3[t3.ZLIB = 3] = "ZLIB";
|
|
57958
|
-
}(t2 || (t2 = {})), function(t3) {
|
|
57959
|
-
t3[t3.BASICFORMAT = 0] = "BASICFORMAT";
|
|
57960
|
-
}(e2 || (e2 = {})), function(t3) {
|
|
57961
|
-
t3[t3.UNSPECIFIED = 0] = "UNSPECIFIED", t3[t3.ETC1S = 163] = "ETC1S", t3[t3.UASTC = 166] = "UASTC";
|
|
57962
|
-
}(n2 || (n2 = {})), function(t3) {
|
|
57963
|
-
t3[t3.UNSPECIFIED = 0] = "UNSPECIFIED", t3[t3.SRGB = 1] = "SRGB";
|
|
57964
|
-
}(i2 || (i2 = {})), function(t3) {
|
|
57965
|
-
t3[t3.UNSPECIFIED = 0] = "UNSPECIFIED", t3[t3.LINEAR = 1] = "LINEAR", t3[t3.SRGB = 2] = "SRGB", t3[t3.ITU = 3] = "ITU", t3[t3.NTSC = 4] = "NTSC", t3[t3.SLOG = 5] = "SLOG", t3[t3.SLOG2 = 6] = "SLOG2";
|
|
57966
|
-
}(r2 || (r2 = {})), function(t3) {
|
|
57967
|
-
t3[t3.ALPHA_STRAIGHT = 0] = "ALPHA_STRAIGHT", t3[t3.ALPHA_PREMULTIPLIED = 1] = "ALPHA_PREMULTIPLIED";
|
|
57968
|
-
}(a2 || (a2 = {})), function(t3) {
|
|
57969
|
-
t3[t3.RGB = 0] = "RGB", t3[t3.RRR = 3] = "RRR", t3[t3.GGG = 4] = "GGG", t3[t3.AAA = 15] = "AAA";
|
|
57970
|
-
}(s2 || (s2 = {})), function(t3) {
|
|
57971
|
-
t3[t3.RGB = 0] = "RGB", t3[t3.RGBA = 3] = "RGBA", t3[t3.RRR = 4] = "RRR", t3[t3.RRRG = 5] = "RRRG";
|
|
57972
|
-
}(o2 || (o2 = {}));
|
|
57973
|
-
var U2 = function() {
|
|
57974
|
-
this.vkFormat = 0, this.typeSize = 1, this.pixelWidth = 0, this.pixelHeight = 0, this.pixelDepth = 0, this.layerCount = 0, this.faceCount = 1, this.supercompressionScheme = t2.NONE, this.levels = [], this.dataFormatDescriptor = [{ vendorId: 0, descriptorType: e2.BASICFORMAT, versionNumber: 2, descriptorBlockSize: 40, colorModel: n2.UNSPECIFIED, colorPrimaries: i2.SRGB, transferFunction: i2.SRGB, flags: a2.ALPHA_STRAIGHT, texelBlockDimension: { x: 4, y: 4, z: 1, w: 1 }, bytesPlane: [], samples: [] }], this.keyValue = {}, this.globalData = null;
|
|
57975
|
-
};
|
|
57976
|
-
var h2 = function() {
|
|
57977
|
-
function t3(t4, e4, n3, i3) {
|
|
57978
|
-
this._dataView = new DataView(t4.buffer, t4.byteOffset + e4, n3), this._littleEndian = i3, this._offset = 0;
|
|
57979
|
-
}
|
|
57980
|
-
var e3 = t3.prototype;
|
|
57981
|
-
return e3._nextUint8 = function() {
|
|
57982
|
-
var t4 = this._dataView.getUint8(this._offset);
|
|
57983
|
-
return this._offset += 1, t4;
|
|
57984
|
-
}, e3._nextUint16 = function() {
|
|
57985
|
-
var t4 = this._dataView.getUint16(this._offset, this._littleEndian);
|
|
57986
|
-
return this._offset += 2, t4;
|
|
57987
|
-
}, e3._nextUint32 = function() {
|
|
57988
|
-
var t4 = this._dataView.getUint32(this._offset, this._littleEndian);
|
|
57989
|
-
return this._offset += 4, t4;
|
|
57990
|
-
}, e3._nextUint64 = function() {
|
|
57991
|
-
var t4 = this._dataView.getUint32(this._offset, this._littleEndian), e4 = this._dataView.getUint32(this._offset + 4, this._littleEndian), n3 = t4 + Math.pow(2, 32) * e4;
|
|
57992
|
-
return this._offset += 8, n3;
|
|
57993
|
-
}, e3._skip = function(t4) {
|
|
57994
|
-
return this._offset += t4, this;
|
|
57995
|
-
}, e3._scan = function(t4, e4) {
|
|
57996
|
-
void 0 === e4 && (e4 = 0);
|
|
57997
|
-
for (var n3 = this._offset, i3 = 0; this._dataView.getUint8(this._offset) !== e4 && i3 < t4; )
|
|
57998
|
-
i3++, this._offset++;
|
|
57999
|
-
return i3 < t4 && this._offset++, new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + n3, i3);
|
|
58000
|
-
}, t3;
|
|
58001
|
-
}();
|
|
58002
|
-
function c2() {
|
|
58003
|
-
return (c2 = Object.assign || function(t3) {
|
|
58004
|
-
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
58005
|
-
var n3 = arguments[e3];
|
|
58006
|
-
for (var i3 in n3)
|
|
58007
|
-
Object.prototype.hasOwnProperty.call(n3, i3) && (t3[i3] = n3[i3]);
|
|
58008
|
-
}
|
|
58009
|
-
return t3;
|
|
58010
|
-
}).apply(this, arguments);
|
|
58011
|
-
}
|
|
58012
|
-
function u2(t3, e3) {
|
|
58013
|
-
(null == e3 || e3 > t3.length) && (e3 = t3.length);
|
|
58014
|
-
for (var n3 = 0, i3 = new Array(e3); n3 < e3; n3++)
|
|
58015
|
-
i3[n3] = t3[n3];
|
|
58016
|
-
return i3;
|
|
58017
|
-
}
|
|
58018
|
-
function _2(t3, e3) {
|
|
58019
|
-
var n3;
|
|
58020
|
-
if ("undefined" == typeof Symbol || null == t3[Symbol.iterator]) {
|
|
58021
|
-
if (Array.isArray(t3) || (n3 = function(t4, e4) {
|
|
58022
|
-
if (t4) {
|
|
58023
|
-
if ("string" == typeof t4)
|
|
58024
|
-
return u2(t4, void 0);
|
|
58025
|
-
var n4 = Object.prototype.toString.call(t4).slice(8, -1);
|
|
58026
|
-
return "Object" === n4 && t4.constructor && (n4 = t4.constructor.name), "Map" === n4 || "Set" === n4 ? Array.from(t4) : "Arguments" === n4 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n4) ? u2(t4, void 0) : void 0;
|
|
58027
|
-
}
|
|
58028
|
-
}(t3)) || e3 && t3 && "number" == typeof t3.length) {
|
|
58029
|
-
n3 && (t3 = n3);
|
|
58030
|
-
var i3 = 0;
|
|
58031
|
-
return function() {
|
|
58032
|
-
return i3 >= t3.length ? { done: true } : { done: false, value: t3[i3++] };
|
|
58033
|
-
};
|
|
58034
|
-
}
|
|
58035
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
58036
|
-
}
|
|
58037
|
-
return (n3 = t3[Symbol.iterator]()).next.bind(n3);
|
|
58038
|
-
}
|
|
58039
|
-
function p2(t3) {
|
|
58040
|
-
return "undefined" != typeof TextEncoder ? new TextEncoder().encode(t3) : Buffer.from(t3);
|
|
58041
|
-
}
|
|
58042
|
-
function g2(t3) {
|
|
58043
|
-
return "undefined" != typeof TextDecoder ? new TextDecoder().decode(t3) : Buffer.from(t3).toString("utf8");
|
|
58044
|
-
}
|
|
58045
|
-
function y2(t3) {
|
|
58046
|
-
for (var e3, n3 = 0, i3 = _2(t3); !(e3 = i3()).done; )
|
|
58047
|
-
n3 += e3.value.byteLength;
|
|
58048
|
-
for (var r3, a3 = new Uint8Array(n3), s3 = 0, o3 = _2(t3); !(r3 = o3()).done; ) {
|
|
58049
|
-
var l3 = r3.value;
|
|
58050
|
-
a3.set(new Uint8Array(l3), s3), s3 += l3.byteLength;
|
|
58051
|
-
}
|
|
58052
|
-
return a3;
|
|
58053
|
-
}
|
|
58054
|
-
var x2 = { keepWriter: false };
|
|
58055
|
-
exports.KTX2Container = U2, exports.read = function(t3) {
|
|
58056
|
-
var e3 = new Uint8Array(t3.buffer, t3.byteOffset, f2.length);
|
|
58057
|
-
if (e3[0] !== f2[0] || e3[1] !== f2[1] || e3[2] !== f2[2] || e3[3] !== f2[3] || e3[4] !== f2[4] || e3[5] !== f2[5] || e3[6] !== f2[6] || e3[7] !== f2[7] || e3[8] !== f2[8] || e3[9] !== f2[9] || e3[10] !== f2[10] || e3[11] !== f2[11])
|
|
58058
|
-
throw new Error("Missing KTX 2.0 identifier.");
|
|
58059
|
-
var n3 = new U2(), i3 = 17 * Uint32Array.BYTES_PER_ELEMENT, r3 = new h2(t3, f2.length, i3, true);
|
|
58060
|
-
n3.vkFormat = r3._nextUint32(), n3.typeSize = r3._nextUint32(), n3.pixelWidth = r3._nextUint32(), n3.pixelHeight = r3._nextUint32(), n3.pixelDepth = r3._nextUint32(), n3.layerCount = r3._nextUint32(), n3.faceCount = r3._nextUint32();
|
|
58061
|
-
var a3 = r3._nextUint32();
|
|
58062
|
-
n3.supercompressionScheme = r3._nextUint32();
|
|
58063
|
-
for (var s3 = r3._nextUint32(), o3 = r3._nextUint32(), l3 = r3._nextUint32(), c3 = r3._nextUint32(), u3 = r3._nextUint64(), _3 = r3._nextUint64(), p3 = new h2(t3, f2.length + i3, 3 * a3 * 8, true), y3 = 0; y3 < a3; y3++)
|
|
58064
|
-
n3.levels.push({ levelData: new Uint8Array(t3.buffer, t3.byteOffset + p3._nextUint64(), p3._nextUint64()), uncompressedByteLength: p3._nextUint64() });
|
|
58065
|
-
for (var x3 = new h2(t3, s3, o3, true), b2 = { vendorId: x3._skip(4)._nextUint16(), descriptorType: x3._nextUint16(), versionNumber: x3._nextUint16(), descriptorBlockSize: x3._nextUint16(), colorModel: x3._nextUint8(), colorPrimaries: x3._nextUint8(), transferFunction: x3._nextUint8(), flags: x3._nextUint8(), texelBlockDimension: { x: x3._nextUint8() + 1, y: x3._nextUint8() + 1, z: x3._nextUint8() + 1, w: x3._nextUint8() + 1 }, bytesPlane: [x3._nextUint8(), x3._nextUint8(), x3._nextUint8(), x3._nextUint8(), x3._nextUint8(), x3._nextUint8(), x3._nextUint8(), x3._nextUint8()], samples: [] }, d2 = (b2.descriptorBlockSize / 4 - 6) / 4, v2 = 0; v2 < d2; v2++)
|
|
58066
|
-
b2.samples[v2] = { bitOffset: x3._nextUint16(), bitLength: x3._nextUint8(), channelID: x3._nextUint8(), samplePosition: [x3._nextUint8(), x3._nextUint8(), x3._nextUint8(), x3._nextUint8()], sampleLower: x3._nextUint32(), sampleUpper: x3._nextUint32() };
|
|
58067
|
-
n3.dataFormatDescriptor.length = 0, n3.dataFormatDescriptor.push(b2);
|
|
58068
|
-
for (var D2 = new h2(t3, l3, c3, true); D2._offset < c3; ) {
|
|
58069
|
-
var m2 = D2._nextUint32(), A2 = D2._scan(m2), w2 = g2(A2), S2 = D2._scan(m2 - A2.byteLength);
|
|
58070
|
-
n3.keyValue[w2] = w2.match(/^ktx/i) ? g2(S2) : S2, m2 % 4 && D2._skip(4 - m2 % 4);
|
|
58071
|
-
}
|
|
58072
|
-
if (_3 <= 0)
|
|
58073
|
-
return n3;
|
|
58074
|
-
for (var B2 = new h2(t3, u3, _3, true), L2 = B2._nextUint16(), I2 = B2._nextUint16(), R2 = B2._nextUint32(), E2 = B2._nextUint32(), T2 = B2._nextUint32(), O2 = B2._nextUint32(), C2 = [], P2 = 0; P2 < a3; P2++)
|
|
58075
|
-
C2.push({ imageFlags: B2._nextUint32(), rgbSliceByteOffset: B2._nextUint32(), rgbSliceByteLength: B2._nextUint32(), alphaSliceByteOffset: B2._nextUint32(), alphaSliceByteLength: B2._nextUint32() });
|
|
58076
|
-
var F2 = u3 + B2._offset, G2 = F2 + R2, k2 = G2 + E2, N2 = k2 + T2, V2 = new Uint8Array(t3.buffer, t3.byteOffset + F2, R2), M2 = new Uint8Array(t3.buffer, t3.byteOffset + G2, E2), H2 = new Uint8Array(t3.buffer, t3.byteOffset + k2, T2), z2 = new Uint8Array(t3.buffer, t3.byteOffset + N2, O2);
|
|
58077
|
-
return n3.globalData = { endpointCount: L2, selectorCount: I2, imageDescs: C2, endpointsData: V2, selectorsData: M2, tablesData: H2, extendedData: z2 }, n3;
|
|
58078
|
-
}, exports.write = function(t3, n3) {
|
|
58079
|
-
void 0 === n3 && (n3 = {}), n3 = c2({}, x2, n3);
|
|
58080
|
-
var i3 = new ArrayBuffer(0);
|
|
58081
|
-
if (t3.globalData) {
|
|
58082
|
-
var r3 = new ArrayBuffer(20 + 5 * t3.globalData.imageDescs.length * 4), a3 = new DataView(r3);
|
|
58083
|
-
a3.setUint16(0, t3.globalData.endpointCount, true), a3.setUint16(2, t3.globalData.selectorCount, true), a3.setUint32(4, t3.globalData.endpointsData.byteLength, true), a3.setUint32(8, t3.globalData.selectorsData.byteLength, true), a3.setUint32(12, t3.globalData.tablesData.byteLength, true), a3.setUint32(16, t3.globalData.extendedData.byteLength, true);
|
|
58084
|
-
for (var s3 = 0; s3 < t3.globalData.imageDescs.length; s3++) {
|
|
58085
|
-
var o3 = t3.globalData.imageDescs[s3];
|
|
58086
|
-
a3.setUint32(20 + 5 * s3 * 4 + 0, o3.imageFlags, true), a3.setUint32(20 + 5 * s3 * 4 + 4, o3.rgbSliceByteOffset, true), a3.setUint32(20 + 5 * s3 * 4 + 8, o3.rgbSliceByteLength, true), a3.setUint32(20 + 5 * s3 * 4 + 12, o3.alphaSliceByteOffset, true), a3.setUint32(20 + 5 * s3 * 4 + 16, o3.alphaSliceByteLength, true);
|
|
58087
|
-
}
|
|
58088
|
-
i3 = y2([r3, t3.globalData.endpointsData, t3.globalData.selectorsData, t3.globalData.tablesData, t3.globalData.extendedData]);
|
|
58089
|
-
}
|
|
58090
|
-
var U3 = [], h3 = t3.keyValue;
|
|
58091
|
-
for (var u3 in n3.keepWriter || (h3 = c2({}, t3.keyValue, { KTXwriter: "KTX-Parse v0.0.4" })), h3) {
|
|
58092
|
-
var _3 = h3[u3], g3 = p2(u3), b2 = "string" == typeof _3 ? p2(_3) : _3, d2 = g3.byteLength + 1 + b2.byteLength + 1, v2 = d2 % 4 ? 4 - d2 % 4 : 0;
|
|
58093
|
-
U3.push(y2([new Uint32Array([d2]), g3, l2, b2, l2, new Uint8Array(v2).fill(0)]));
|
|
58094
|
-
}
|
|
58095
|
-
var D2 = y2(U3), m2 = new ArrayBuffer(44), A2 = new DataView(m2);
|
|
58096
|
-
if (1 !== t3.dataFormatDescriptor.length || t3.dataFormatDescriptor[0].descriptorType !== e2.BASICFORMAT)
|
|
58097
|
-
throw new Error("Only BASICFORMAT Data Format Descriptor output supported.");
|
|
58098
|
-
var w2 = t3.dataFormatDescriptor[0];
|
|
58099
|
-
A2.setUint32(0, 44, true), A2.setUint16(4, w2.vendorId, true), A2.setUint16(6, w2.descriptorType, true), A2.setUint16(8, w2.versionNumber, true), A2.setUint16(10, w2.descriptorBlockSize, true), A2.setUint8(12, w2.colorModel), A2.setUint8(13, w2.colorPrimaries), A2.setUint8(14, w2.transferFunction), A2.setUint8(15, w2.flags), A2.setUint8(16, w2.texelBlockDimension.x - 1), A2.setUint8(17, w2.texelBlockDimension.y - 1), A2.setUint8(18, w2.texelBlockDimension.z - 1), A2.setUint8(19, w2.texelBlockDimension.w - 1);
|
|
58100
|
-
for (var S2 = 0; S2 < 8; S2++)
|
|
58101
|
-
A2.setUint8(20 + S2, w2.bytesPlane[S2]);
|
|
58102
|
-
for (var B2 = 0; B2 < w2.samples.length; B2++) {
|
|
58103
|
-
var L2 = w2.samples[B2], I2 = 28 + 16 * B2;
|
|
58104
|
-
A2.setUint16(I2 + 0, L2.bitOffset, true), A2.setUint8(I2 + 2, L2.bitLength), A2.setUint8(I2 + 3, L2.channelID), A2.setUint8(I2 + 4, L2.samplePosition[0]), A2.setUint8(I2 + 5, L2.samplePosition[1]), A2.setUint8(I2 + 6, L2.samplePosition[2]), A2.setUint8(I2 + 7, L2.samplePosition[3]), A2.setUint32(I2 + 8, L2.sampleLower, true), A2.setUint32(I2 + 12, L2.sampleUpper, true);
|
|
58105
|
-
}
|
|
58106
|
-
var R2 = f2.length + 68 + 3 * t3.levels.length * 8, E2 = R2 + m2.byteLength, T2 = E2 + D2.byteLength;
|
|
58107
|
-
T2 % 8 && (T2 += 8 - T2 % 8);
|
|
58108
|
-
for (var O2 = [], C2 = new DataView(new ArrayBuffer(3 * t3.levels.length * 8)), P2 = T2 + i3.byteLength, F2 = 0; F2 < t3.levels.length; F2++) {
|
|
58109
|
-
var G2 = t3.levels[F2];
|
|
58110
|
-
O2.push(G2.levelData), C2.setBigUint64(24 * F2 + 0, BigInt(P2), true), C2.setBigUint64(24 * F2 + 8, BigInt(G2.levelData.byteLength), true), C2.setBigUint64(24 * F2 + 16, BigInt(G2.uncompressedByteLength), true), P2 += G2.levelData.byteLength;
|
|
58111
|
-
}
|
|
58112
|
-
var k2 = new ArrayBuffer(68), N2 = new DataView(k2);
|
|
58113
|
-
return N2.setUint32(0, t3.vkFormat, true), N2.setUint32(4, t3.typeSize, true), N2.setUint32(8, t3.pixelWidth, true), N2.setUint32(12, t3.pixelHeight, true), N2.setUint32(16, t3.pixelDepth, true), N2.setUint32(20, t3.layerCount, true), N2.setUint32(24, t3.faceCount, true), N2.setUint32(28, t3.levels.length, true), N2.setUint32(32, t3.supercompressionScheme, true), N2.setUint32(36, R2, true), N2.setUint32(40, m2.byteLength, true), N2.setUint32(44, E2, true), N2.setUint32(48, D2.byteLength, true), N2.setBigUint64(52, BigInt(T2), true), N2.setBigUint64(60, BigInt(i3.byteLength), true), new Uint8Array(y2([new Uint8Array(f2).buffer, k2, C2.buffer, m2, D2, new ArrayBuffer(T2 - (E2 + D2.byteLength)), i3].concat(O2)));
|
|
58114
|
-
};
|
|
58115
|
-
}
|
|
58116
|
-
});
|
|
58117
|
-
|
|
58118
57943
|
// ../polyfills/src/utils/is-browser.ts
|
|
58119
57944
|
var isBrowser = (
|
|
58120
57945
|
// @ts-ignore process.browser
|
|
@@ -59845,7 +59670,7 @@ function getVersion() {
|
|
|
59845
59670
|
);
|
|
59846
59671
|
globalThis._loadersgl_.version = NPM_TAG;
|
|
59847
59672
|
} else {
|
|
59848
|
-
globalThis._loadersgl_.version = "4.3.0-alpha.
|
|
59673
|
+
globalThis._loadersgl_.version = "4.3.0-alpha.4";
|
|
59849
59674
|
}
|
|
59850
59675
|
}
|
|
59851
59676
|
return globalThis._loadersgl_.version;
|
|
@@ -63510,7 +63335,7 @@ if (nodeVersion2 < 18) {
|
|
|
63510
63335
|
}
|
|
63511
63336
|
|
|
63512
63337
|
// src/lib/utils/version.ts
|
|
63513
|
-
var VERSION2 = true ? "4.3.0-alpha.
|
|
63338
|
+
var VERSION2 = true ? "4.3.0-alpha.4" : "latest";
|
|
63514
63339
|
|
|
63515
63340
|
// src/lib/parsers/basis-module-loader.ts
|
|
63516
63341
|
var BASIS_EXTERNAL_LIBRARIES = {
|
|
@@ -63699,7 +63524,6 @@ function getWebGLContext() {
|
|
|
63699
63524
|
}
|
|
63700
63525
|
|
|
63701
63526
|
// src/lib/parsers/parse-ktx.ts
|
|
63702
|
-
var import_ktx_parse = __toESM(require_ktx_parse(), 1);
|
|
63703
63527
|
var KTX2_ID = [
|
|
63704
63528
|
// '´', 'K', 'T', 'X', '2', '0', 'ª', '\r', '\n', '\x1A', '\n'
|
|
63705
63529
|
171,
|
|
@@ -63857,7 +63681,6 @@ function parseKTX2File(KTX2File, data, options) {
|
|
|
63857
63681
|
const levels = [];
|
|
63858
63682
|
for (let levelIndex = 0; levelIndex < levelsCount; levelIndex++) {
|
|
63859
63683
|
levels.push(transcodeKTX2Image(ktx2File, levelIndex, options));
|
|
63860
|
-
break;
|
|
63861
63684
|
}
|
|
63862
63685
|
return [levels];
|
|
63863
63686
|
} finally {
|
package/dist/basis-worker.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
);
|
|
22
22
|
globalThis._loadersgl_.version = NPM_TAG;
|
|
23
23
|
} else {
|
|
24
|
-
globalThis._loadersgl_.version = "4.3.0-alpha.
|
|
24
|
+
globalThis._loadersgl_.version = "4.3.0-alpha.4";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
return globalThis._loadersgl_.version;
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
// src/lib/utils/version.ts
|
|
344
|
-
var VERSION2 = true ? "4.3.0-alpha.
|
|
344
|
+
var VERSION2 = true ? "4.3.0-alpha.4" : "latest";
|
|
345
345
|
|
|
346
346
|
// src/lib/parsers/basis-module-loader.ts
|
|
347
347
|
var BASIS_EXTERNAL_LIBRARIES = {
|
|
@@ -529,34 +529,6 @@
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
// ../../node_modules/ktx-parse/dist/ktx-parse.modern.js
|
|
533
|
-
var t = new Uint8Array([0]);
|
|
534
|
-
var n;
|
|
535
|
-
var i;
|
|
536
|
-
var s;
|
|
537
|
-
var a;
|
|
538
|
-
var r;
|
|
539
|
-
var o;
|
|
540
|
-
var l;
|
|
541
|
-
var f;
|
|
542
|
-
!function(t2) {
|
|
543
|
-
t2[t2.NONE = 0] = "NONE", t2[t2.BASISLZ = 1] = "BASISLZ", t2[t2.ZSTD = 2] = "ZSTD", t2[t2.ZLIB = 3] = "ZLIB";
|
|
544
|
-
}(n || (n = {})), function(t2) {
|
|
545
|
-
t2[t2.BASICFORMAT = 0] = "BASICFORMAT";
|
|
546
|
-
}(i || (i = {})), function(t2) {
|
|
547
|
-
t2[t2.UNSPECIFIED = 0] = "UNSPECIFIED", t2[t2.ETC1S = 163] = "ETC1S", t2[t2.UASTC = 166] = "UASTC";
|
|
548
|
-
}(s || (s = {})), function(t2) {
|
|
549
|
-
t2[t2.UNSPECIFIED = 0] = "UNSPECIFIED", t2[t2.SRGB = 1] = "SRGB";
|
|
550
|
-
}(a || (a = {})), function(t2) {
|
|
551
|
-
t2[t2.UNSPECIFIED = 0] = "UNSPECIFIED", t2[t2.LINEAR = 1] = "LINEAR", t2[t2.SRGB = 2] = "SRGB", t2[t2.ITU = 3] = "ITU", t2[t2.NTSC = 4] = "NTSC", t2[t2.SLOG = 5] = "SLOG", t2[t2.SLOG2 = 6] = "SLOG2";
|
|
552
|
-
}(r || (r = {})), function(t2) {
|
|
553
|
-
t2[t2.ALPHA_STRAIGHT = 0] = "ALPHA_STRAIGHT", t2[t2.ALPHA_PREMULTIPLIED = 1] = "ALPHA_PREMULTIPLIED";
|
|
554
|
-
}(o || (o = {})), function(t2) {
|
|
555
|
-
t2[t2.RGB = 0] = "RGB", t2[t2.RRR = 3] = "RRR", t2[t2.GGG = 4] = "GGG", t2[t2.AAA = 15] = "AAA";
|
|
556
|
-
}(l || (l = {})), function(t2) {
|
|
557
|
-
t2[t2.RGB = 0] = "RGB", t2[t2.RGBA = 3] = "RGBA", t2[t2.RRR = 4] = "RRR", t2[t2.RRRG = 5] = "RRRG";
|
|
558
|
-
}(f || (f = {}));
|
|
559
|
-
|
|
560
532
|
// src/lib/parsers/parse-ktx.ts
|
|
561
533
|
var KTX2_ID = [
|
|
562
534
|
// '´', 'K', 'T', 'X', '2', '0', 'ª', '\r', '\n', '\x1A', '\n'
|
|
@@ -715,7 +687,6 @@
|
|
|
715
687
|
const levels = [];
|
|
716
688
|
for (let levelIndex = 0; levelIndex < levelsCount; levelIndex++) {
|
|
717
689
|
levels.push(transcodeKTX2Image(ktx2File, levelIndex, options));
|
|
718
|
-
break;
|
|
719
690
|
}
|
|
720
691
|
return [levels];
|
|
721
692
|
} finally {
|