@loaders.gl/tile-converter 3.3.0-alpha.13 → 3.3.0-alpha.14
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/3d-tiles-attributes-worker.js +2 -2
- package/dist/3d-tiles-attributes-worker.js.map +3 -3
- package/dist/converter.min.js +22 -22
- package/dist/dist.min.js +73 -87
- package/dist/es5/3d-tiles-attributes-worker.js +1 -1
- package/dist/es5/deps-installer/deps-installer.js +1 -1
- package/dist/es5/i3s-attributes-worker.js +1 -1
- package/dist/es5/pgm-loader.js +1 -1
- package/dist/esm/3d-tiles-attributes-worker.js +1 -1
- package/dist/esm/deps-installer/deps-installer.js +1 -1
- package/dist/esm/i3s-attributes-worker.js +1 -1
- package/dist/esm/pgm-loader.js +1 -1
- package/dist/i3s-attributes-worker.js +2 -2
- package/dist/i3s-attributes-worker.js.map +2 -2
- package/package.json +17 -16
package/dist/dist.min.js
CHANGED
|
@@ -16421,7 +16421,7 @@ var require_graceful_fs = __commonJS({
|
|
|
16421
16421
|
polyfills(fs6);
|
|
16422
16422
|
fs6.gracefulify = patch;
|
|
16423
16423
|
fs6.createReadStream = createReadStream2;
|
|
16424
|
-
fs6.createWriteStream =
|
|
16424
|
+
fs6.createWriteStream = createWriteStream3;
|
|
16425
16425
|
var fs$readFile = fs6.readFile;
|
|
16426
16426
|
fs6.readFile = readFile2;
|
|
16427
16427
|
function readFile2(path2, options, cb) {
|
|
@@ -16623,7 +16623,7 @@ var require_graceful_fs = __commonJS({
|
|
|
16623
16623
|
function createReadStream2(path2, options) {
|
|
16624
16624
|
return new fs6.ReadStream(path2, options);
|
|
16625
16625
|
}
|
|
16626
|
-
function
|
|
16626
|
+
function createWriteStream3(path2, options) {
|
|
16627
16627
|
return new fs6.WriteStream(path2, options);
|
|
16628
16628
|
}
|
|
16629
16629
|
var fs$open = fs6.open;
|
|
@@ -65370,68 +65370,7 @@ function parseJSON(string) {
|
|
|
65370
65370
|
}
|
|
65371
65371
|
}
|
|
65372
65372
|
|
|
65373
|
-
// ../loader-utils/src/lib/node/buffer.ts
|
|
65374
|
-
function toArrayBuffer(buffer) {
|
|
65375
|
-
if (Buffer.isBuffer(buffer)) {
|
|
65376
|
-
const typedArray = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.length);
|
|
65377
|
-
return typedArray.slice().buffer;
|
|
65378
|
-
}
|
|
65379
|
-
return buffer;
|
|
65380
|
-
}
|
|
65381
|
-
function toBuffer(binaryData) {
|
|
65382
|
-
if (ArrayBuffer.isView(binaryData)) {
|
|
65383
|
-
binaryData = binaryData.buffer;
|
|
65384
|
-
}
|
|
65385
|
-
if (typeof Buffer !== "undefined" && binaryData instanceof ArrayBuffer) {
|
|
65386
|
-
const buffer = new Buffer(binaryData.byteLength);
|
|
65387
|
-
const view = new Uint8Array(binaryData);
|
|
65388
|
-
for (let i = 0; i < buffer.length; ++i) {
|
|
65389
|
-
buffer[i] = view[i];
|
|
65390
|
-
}
|
|
65391
|
-
return buffer;
|
|
65392
|
-
}
|
|
65393
|
-
return assert2(false);
|
|
65394
|
-
}
|
|
65395
|
-
|
|
65396
|
-
// ../loader-utils/src/lib/binary-utils/buffer-utils.ts
|
|
65397
|
-
function isBuffer(value) {
|
|
65398
|
-
return value && typeof value === "object" && value.isBuffer;
|
|
65399
|
-
}
|
|
65400
|
-
function toBuffer2(data) {
|
|
65401
|
-
return toBuffer ? toBuffer(data) : data;
|
|
65402
|
-
}
|
|
65403
|
-
function bufferToArrayBuffer(buffer) {
|
|
65404
|
-
if (isBuffer(buffer)) {
|
|
65405
|
-
const typedArray = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.length);
|
|
65406
|
-
return typedArray.slice().buffer;
|
|
65407
|
-
}
|
|
65408
|
-
return buffer;
|
|
65409
|
-
}
|
|
65410
|
-
|
|
65411
65373
|
// ../loader-utils/src/lib/binary-utils/array-buffer-utils.ts
|
|
65412
|
-
function toArrayBuffer2(data) {
|
|
65413
|
-
if (isBuffer(data)) {
|
|
65414
|
-
return bufferToArrayBuffer(data);
|
|
65415
|
-
}
|
|
65416
|
-
if (data instanceof ArrayBuffer) {
|
|
65417
|
-
return data;
|
|
65418
|
-
}
|
|
65419
|
-
if (ArrayBuffer.isView(data)) {
|
|
65420
|
-
if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
|
|
65421
|
-
return data.buffer;
|
|
65422
|
-
}
|
|
65423
|
-
return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
65424
|
-
}
|
|
65425
|
-
if (typeof data === "string") {
|
|
65426
|
-
const text = data;
|
|
65427
|
-
const uint8Array = new TextEncoder().encode(text);
|
|
65428
|
-
return uint8Array.buffer;
|
|
65429
|
-
}
|
|
65430
|
-
if (data && typeof data === "object" && data._toArrayBuffer) {
|
|
65431
|
-
return data._toArrayBuffer();
|
|
65432
|
-
}
|
|
65433
|
-
throw new Error("toArrayBuffer");
|
|
65434
|
-
}
|
|
65435
65374
|
function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) {
|
|
65436
65375
|
byteLength = byteLength || arrayBuffer1.byteLength;
|
|
65437
65376
|
if (arrayBuffer1.byteLength < byteLength || arrayBuffer2.byteLength < byteLength) {
|
|
@@ -65640,6 +65579,66 @@ function parseTextSync(text) {
|
|
|
65640
65579
|
return JSON.parse(text);
|
|
65641
65580
|
}
|
|
65642
65581
|
|
|
65582
|
+
// ../loader-utils/src/lib/node/buffer.ts
|
|
65583
|
+
function toArrayBuffer(buffer) {
|
|
65584
|
+
if (Buffer.isBuffer(buffer)) {
|
|
65585
|
+
const typedArray = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.length);
|
|
65586
|
+
return typedArray.slice().buffer;
|
|
65587
|
+
}
|
|
65588
|
+
return buffer;
|
|
65589
|
+
}
|
|
65590
|
+
function toBuffer(binaryData) {
|
|
65591
|
+
if (Buffer.isBuffer(binaryData)) {
|
|
65592
|
+
return binaryData;
|
|
65593
|
+
}
|
|
65594
|
+
if (ArrayBuffer.isView(binaryData)) {
|
|
65595
|
+
binaryData = binaryData.buffer;
|
|
65596
|
+
}
|
|
65597
|
+
if (typeof Buffer !== "undefined" && binaryData instanceof ArrayBuffer) {
|
|
65598
|
+
return Buffer.from(binaryData);
|
|
65599
|
+
}
|
|
65600
|
+
throw new Error("toBuffer");
|
|
65601
|
+
}
|
|
65602
|
+
|
|
65603
|
+
// ../loader-utils/src/lib/binary-utils/memory-conversion-utils.ts
|
|
65604
|
+
function isBuffer(value) {
|
|
65605
|
+
return value && typeof value === "object" && value.isBuffer;
|
|
65606
|
+
}
|
|
65607
|
+
function toBuffer2(data) {
|
|
65608
|
+
return toBuffer ? toBuffer(data) : data;
|
|
65609
|
+
}
|
|
65610
|
+
function toArrayBuffer2(data) {
|
|
65611
|
+
if (isBuffer(data)) {
|
|
65612
|
+
return toArrayBuffer(data);
|
|
65613
|
+
}
|
|
65614
|
+
if (data instanceof ArrayBuffer) {
|
|
65615
|
+
return data;
|
|
65616
|
+
}
|
|
65617
|
+
if (ArrayBuffer.isView(data)) {
|
|
65618
|
+
if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
|
|
65619
|
+
return data.buffer;
|
|
65620
|
+
}
|
|
65621
|
+
return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
65622
|
+
}
|
|
65623
|
+
if (typeof data === "string") {
|
|
65624
|
+
const text = data;
|
|
65625
|
+
const uint8Array = new TextEncoder().encode(text);
|
|
65626
|
+
return uint8Array.buffer;
|
|
65627
|
+
}
|
|
65628
|
+
if (data && typeof data === "object" && data._toArrayBuffer) {
|
|
65629
|
+
return data._toArrayBuffer();
|
|
65630
|
+
}
|
|
65631
|
+
throw new Error("toArrayBuffer");
|
|
65632
|
+
}
|
|
65633
|
+
|
|
65634
|
+
// ../loader-utils/src/lib/node/util.ts
|
|
65635
|
+
function promisify2(fn) {
|
|
65636
|
+
return (arg1, arg2) => new Promise((resolve, reject) => fn(arg1, arg2, (error, callbackArgs) => error ? reject(error) : resolve(callbackArgs)));
|
|
65637
|
+
}
|
|
65638
|
+
function promisify3(fn) {
|
|
65639
|
+
return (arg1, arg2, arg3) => new Promise((resolve, reject) => fn(arg1, arg2, arg3, (error, callbackArgs) => error ? reject(error) : resolve(callbackArgs)));
|
|
65640
|
+
}
|
|
65641
|
+
|
|
65643
65642
|
// ../loader-utils/src/lib/path-utils/path.ts
|
|
65644
65643
|
var path_exports = {};
|
|
65645
65644
|
__export(path_exports, {
|
|
@@ -65669,27 +65668,12 @@ function join(...parts) {
|
|
|
65669
65668
|
return parts.join(separator);
|
|
65670
65669
|
}
|
|
65671
65670
|
|
|
65672
|
-
// ../loader-utils/src/lib/node/util.ts
|
|
65673
|
-
function promisify1(fn) {
|
|
65674
|
-
return (args) => new Promise((resolve) => {
|
|
65675
|
-
fn(args, (callbackArgs) => {
|
|
65676
|
-
resolve(callbackArgs);
|
|
65677
|
-
});
|
|
65678
|
-
});
|
|
65679
|
-
}
|
|
65680
|
-
function promisify2(fn) {
|
|
65681
|
-
return (arg1, arg2) => new Promise((resolve) => {
|
|
65682
|
-
fn(arg1, arg2, (callbackArgs) => {
|
|
65683
|
-
resolve(callbackArgs);
|
|
65684
|
-
});
|
|
65685
|
-
});
|
|
65686
|
-
}
|
|
65687
|
-
|
|
65688
65671
|
// ../loader-utils/src/lib/node/fs.ts
|
|
65689
65672
|
var fs_exports = {};
|
|
65690
65673
|
__export(fs_exports, {
|
|
65691
65674
|
_readToArrayBuffer: () => _readToArrayBuffer,
|
|
65692
65675
|
close: () => close,
|
|
65676
|
+
createWriteStream: () => createWriteStream,
|
|
65693
65677
|
fstat: () => fstat,
|
|
65694
65678
|
isSupported: () => isSupported,
|
|
65695
65679
|
open: () => open,
|
|
@@ -65712,18 +65696,20 @@ var open;
|
|
|
65712
65696
|
var close;
|
|
65713
65697
|
var read;
|
|
65714
65698
|
var fstat;
|
|
65699
|
+
var createWriteStream;
|
|
65715
65700
|
var isSupported = Boolean(import_fs.default);
|
|
65716
65701
|
try {
|
|
65717
|
-
readdir =
|
|
65718
|
-
stat =
|
|
65719
|
-
readFile =
|
|
65702
|
+
readdir = promisify2(import_fs.default.readdir);
|
|
65703
|
+
stat = promisify2(import_fs.default.stat);
|
|
65704
|
+
readFile = import_fs.default.readFile;
|
|
65720
65705
|
readFileSync = import_fs.default.readFileSync;
|
|
65721
|
-
writeFile =
|
|
65706
|
+
writeFile = promisify3(import_fs.default.writeFile);
|
|
65722
65707
|
writeFileSync = import_fs.default.writeFileSync;
|
|
65723
|
-
open =
|
|
65724
|
-
close =
|
|
65725
|
-
read =
|
|
65726
|
-
fstat =
|
|
65708
|
+
open = import_fs.default.open;
|
|
65709
|
+
close = (fd) => new Promise((resolve, reject) => import_fs.default.close(fd, (err) => err ? reject(err) : resolve()));
|
|
65710
|
+
read = import_fs.default.read;
|
|
65711
|
+
fstat = import_fs.default.fstat;
|
|
65712
|
+
createWriteStream = import_fs.default.createWriteStream;
|
|
65727
65713
|
isSupported = Boolean(import_fs.default);
|
|
65728
65714
|
} catch {
|
|
65729
65715
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports._typecheckI3SAttributesWorker = exports.Tile3dAttributesWorker = void 0;
|
|
7
7
|
exports.transform3DTilesAttributesOnWorker = transform3DTilesAttributesOnWorker;
|
|
8
8
|
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
9
|
-
var VERSION = typeof "3.3.0-alpha.
|
|
9
|
+
var VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'latest';
|
|
10
10
|
var Tile3dAttributesWorker = {
|
|
11
11
|
id: '3d-tiles-attributes',
|
|
12
12
|
name: '3DTiles Attributes Worker',
|
|
@@ -14,7 +14,7 @@ var _zip = require("@loaders.gl/zip");
|
|
|
14
14
|
var _fileUtils = require("../lib/utils/file-utils");
|
|
15
15
|
var _path = require("path");
|
|
16
16
|
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
17
|
-
var VERSION = typeof "3.3.0-alpha.
|
|
17
|
+
var VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'beta';
|
|
18
18
|
var PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
|
|
19
19
|
|
|
20
20
|
var DepsInstaller = function () {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports._typecheckI3SAttributesWorker = exports.I3SAttributesWorker = void 0;
|
|
7
7
|
exports.transformI3SAttributesOnWorker = transformI3SAttributesOnWorker;
|
|
8
8
|
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
9
|
-
var VERSION = typeof "3.3.0-alpha.
|
|
9
|
+
var VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'latest';
|
|
10
10
|
var I3SAttributesWorker = {
|
|
11
11
|
id: 'i3s-attributes',
|
|
12
12
|
name: 'I3S Attributes Worker',
|
package/dist/es5/pgm-loader.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.PGMLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _geoid = require("@math.gl/geoid");
|
|
11
|
-
var VERSION = typeof "3.3.0-alpha.
|
|
11
|
+
var VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'latest';
|
|
12
12
|
|
|
13
13
|
var PGMLoader = {
|
|
14
14
|
name: 'PGM - Netpbm grayscale image format',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { processOnWorker } from '@loaders.gl/worker-utils';
|
|
2
2
|
|
|
3
|
-
const VERSION = typeof "3.3.0-alpha.
|
|
3
|
+
const VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'latest';
|
|
4
4
|
export const Tile3dAttributesWorker = {
|
|
5
5
|
id: '3d-tiles-attributes',
|
|
6
6
|
name: '3DTiles Attributes Worker',
|
|
@@ -4,7 +4,7 @@ import { writeFile } from '../lib/utils/file-utils';
|
|
|
4
4
|
import { join } from 'path';
|
|
5
5
|
import { ChildProcessProxy } from '@loaders.gl/worker-utils';
|
|
6
6
|
|
|
7
|
-
const VERSION = typeof "3.3.0-alpha.
|
|
7
|
+
const VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'beta';
|
|
8
8
|
const PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
|
|
9
9
|
|
|
10
10
|
export class DepsInstaller {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { processOnWorker } from '@loaders.gl/worker-utils';
|
|
2
2
|
|
|
3
|
-
const VERSION = typeof "3.3.0-alpha.
|
|
3
|
+
const VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'latest';
|
|
4
4
|
export const I3SAttributesWorker = {
|
|
5
5
|
id: 'i3s-attributes',
|
|
6
6
|
name: 'I3S Attributes Worker',
|
package/dist/esm/pgm-loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parsePGM } from '@math.gl/geoid';
|
|
2
2
|
|
|
3
|
-
const VERSION = typeof "3.3.0-alpha.
|
|
3
|
+
const VERSION = typeof "3.3.0-alpha.14" !== 'undefined' ? "3.3.0-alpha.14" : 'latest';
|
|
4
4
|
|
|
5
5
|
export const PGMLoader = {
|
|
6
6
|
name: 'PGM - Netpbm grayscale image format',
|