@loaders.gl/geotiff 3.1.0-alpha.5 → 3.1.0-beta.4

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 (45) hide show
  1. package/dist/bundle.d.ts +1 -0
  2. package/dist/bundle.d.ts.map +1 -0
  3. package/dist/bundle.js +26 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +10 -0
  7. package/dist/lib/load-geotiff.d.ts +1 -0
  8. package/dist/lib/load-geotiff.d.ts.map +1 -0
  9. package/dist/lib/load-geotiff.js +57 -0
  10. package/dist/lib/ome/load-ome-tiff.d.ts +1 -0
  11. package/dist/lib/ome/load-ome-tiff.d.ts.map +1 -0
  12. package/dist/lib/ome/load-ome-tiff.js +46 -0
  13. package/dist/lib/ome/ome-indexers.d.ts +1 -0
  14. package/dist/lib/ome/ome-indexers.d.ts.map +1 -0
  15. package/dist/lib/ome/ome-indexers.js +108 -0
  16. package/dist/lib/ome/ome-utils.d.ts +1 -0
  17. package/dist/lib/ome/ome-utils.d.ts.map +1 -0
  18. package/dist/lib/ome/ome-utils.js +63 -0
  19. package/dist/lib/ome/omexml.d.ts +1 -0
  20. package/dist/lib/ome/omexml.d.ts.map +1 -0
  21. package/dist/lib/ome/omexml.js +66 -0
  22. package/dist/lib/ome/utils.d.ts +1 -0
  23. package/dist/lib/ome/utils.d.ts.map +1 -0
  24. package/dist/lib/ome/utils.js +30 -0
  25. package/dist/lib/tiff-pixel-source.d.ts +1 -0
  26. package/dist/lib/tiff-pixel-source.d.ts.map +1 -0
  27. package/dist/lib/tiff-pixel-source.js +64 -0
  28. package/dist/lib/utils/Pool.d.ts +1 -0
  29. package/dist/lib/utils/Pool.d.ts.map +1 -0
  30. package/dist/lib/utils/Pool.js +83 -0
  31. package/dist/lib/utils/proxies.d.ts +1 -0
  32. package/dist/lib/utils/proxies.d.ts.map +1 -0
  33. package/dist/lib/utils/proxies.js +86 -0
  34. package/dist/lib/utils/tiff-utils.d.ts +1 -0
  35. package/dist/lib/utils/tiff-utils.d.ts.map +1 -0
  36. package/dist/lib/utils/tiff-utils.js +44 -0
  37. package/dist/types.d.ts +1 -0
  38. package/dist/types.d.ts.map +1 -0
  39. package/dist/types.js +2 -0
  40. package/dist/typings/geotiff.d.ts +1 -0
  41. package/dist/typings/geotiff.d.ts.map +1 -0
  42. package/dist/typings/geotiff.js +1 -0
  43. package/package.json +4 -5
  44. package/dist/dist.min.js +0 -13
  45. package/dist/dist.min.js.map +0 -1
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // import Worker from 'web-worker:./decoder.worker.ts';
4
+ // https://developer.mozilla.org/en-US/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency
5
+ // We need to give a different way of getting this for safari, so 4 is probably a safe bet
6
+ // for parallel processing in the meantime. More can't really hurt since they'll just block
7
+ // each other and not the UI thread, which is the real benefit.
8
+ const defaultPoolSize = globalThis?.navigator?.hardwareConcurrency ?? 4;
9
+ /**
10
+ * Pool for workers to decode chunks of the images.
11
+ * This is a line-for-line copy of GeoTIFFs old implementation: https://github.com/geotiffjs/geotiff.js/blob/v1.0.0-beta.6/src/pool.js
12
+ */
13
+ class Pool {
14
+ /**
15
+ * @constructor
16
+ * @param {Number} size The size of the pool. Defaults to the number of CPUs
17
+ * available. When this parameter is `null` or 0, then the
18
+ * decoding will be done in the main thread.
19
+ */
20
+ constructor(size = defaultPoolSize) {
21
+ this.workers = [];
22
+ this.idleWorkers = [];
23
+ this.waitQueue = [];
24
+ this.decoder = null;
25
+ // eslint-disable-next-line no-plusplus
26
+ for (let i = 0; i < size; ++i) {
27
+ const w = new Worker('./decoder.worker');
28
+ this.workers.push(w);
29
+ this.idleWorkers.push(w);
30
+ }
31
+ }
32
+ /**
33
+ * Decode the given block of bytes with the set compression method.
34
+ * @param {ArrayBuffer} buffer the array buffer of bytes to decode.
35
+ * @returns {Promise.<ArrayBuffer>} the decoded result as a `Promise`
36
+ */
37
+ async decode(fileDirectory, buffer) {
38
+ const currentWorker = await this.waitForWorker();
39
+ return new Promise((resolve, reject) => {
40
+ currentWorker.onmessage = (event) => {
41
+ // this.workers.push(currentWorker);
42
+ // eslint-disable-next-line
43
+ this.finishTask(currentWorker);
44
+ resolve(event.data[0]);
45
+ };
46
+ currentWorker.onerror = (error) => {
47
+ // this.workers.push(currentWorker);
48
+ // eslint-disable-next-line
49
+ this.finishTask(currentWorker);
50
+ reject(error);
51
+ };
52
+ currentWorker.postMessage(['decode', fileDirectory, buffer], [buffer]);
53
+ });
54
+ }
55
+ async waitForWorker() {
56
+ const idleWorker = this.idleWorkers.pop();
57
+ if (idleWorker) {
58
+ return idleWorker;
59
+ }
60
+ const waiter = {};
61
+ const promise = new Promise((resolve) => {
62
+ waiter.resolve = resolve;
63
+ });
64
+ this.waitQueue.push(waiter);
65
+ return promise;
66
+ }
67
+ async finishTask(currentWorker) {
68
+ const waiter = this.waitQueue.pop();
69
+ if (waiter) {
70
+ waiter.resolve(currentWorker);
71
+ }
72
+ else {
73
+ this.idleWorkers.push(currentWorker);
74
+ }
75
+ }
76
+ destroy() {
77
+ // eslint-disable-next-line no-plusplus
78
+ for (let i = 0; i < this.workers.length; ++i) {
79
+ this.workers[i].terminate();
80
+ }
81
+ }
82
+ }
83
+ exports.default = Pool;
@@ -3,3 +3,4 @@ import type Pool from './Pool';
3
3
  export declare function checkProxies(tiff: GeoTIFF): void;
4
4
  export declare function createOffsetsProxy(tiff: GeoTIFF, offsets: number[]): GeoTIFF;
5
5
  export declare function createPoolProxy(tiff: GeoTIFF, pool: Pool): GeoTIFF;
6
+ //# sourceMappingURL=proxies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/proxies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAU/B,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,QAQzC;AAqBD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAsBlE;AAUD,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,WAmBxD"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPoolProxy = exports.createOffsetsProxy = exports.checkProxies = void 0;
4
+ const VIV_PROXY_KEY = '__viv';
5
+ const OFFSETS_PROXY_KEY = `${VIV_PROXY_KEY}-offsets`;
6
+ const POOL_PROXY_KEY = `${VIV_PROXY_KEY}-decoder-pool`;
7
+ /*
8
+ * Inspect if the GeoTIFF source is wrapped in our proxies,
9
+ * and warn if missing.
10
+ */
11
+ function checkProxies(tiff) {
12
+ if (!isProxy(tiff, OFFSETS_PROXY_KEY)) {
13
+ console.warn('GeoTIFF source is missing offsets proxy.'); // eslint-disable-line no-console
14
+ }
15
+ if (!isProxy(tiff, POOL_PROXY_KEY)) {
16
+ console.warn('GeoTIFF source is missing decoder-pool proxy.'); // eslint-disable-line no-console
17
+ }
18
+ }
19
+ exports.checkProxies = checkProxies;
20
+ /*
21
+ * > isProxy(tiff, POOL_PROXY_KEY) === true; // false
22
+ * > tiff = createPoolProxy(tiff, new Pool());
23
+ * > isProxy(tiff, POOL_PROXY_KEY) === true; // true
24
+ */
25
+ function isProxy(tiff, proxyFlag) {
26
+ return tiff[proxyFlag];
27
+ }
28
+ /*
29
+ * Creates an ES6 Proxy that wraps a GeoTIFF object. The proxy
30
+ * handler intercepts calls to `tiff.getImage` and uses our custom
31
+ * pre-computed offsets to pre-fetch the correct file directory.
32
+ *
33
+ * This is a bit of a hack. Internally GeoTIFF inspects `this.ifdRequests`
34
+ * to see which fileDirectories need to be traversed. By adding the
35
+ * ifdRequest for an 'index' manually, GeoTIFF will await that request
36
+ * rather than traversing the file system remotely.
37
+ */
38
+ function createOffsetsProxy(tiff, offsets) {
39
+ const get = (target, key) => {
40
+ // Intercept `tiff.getImage`
41
+ if (key === 'getImage') {
42
+ return (index) => {
43
+ // Manually add ifdRequest to tiff if missing and we have an offset.
44
+ if (!(index in target.ifdRequests) && index in offsets) {
45
+ const offset = offsets[index];
46
+ target.ifdRequests[index] = target.parseFileDirectoryAt(offset);
47
+ }
48
+ return target.getImage(index);
49
+ };
50
+ }
51
+ // tiff['__viv-offsets'] === true
52
+ if (key === OFFSETS_PROXY_KEY) {
53
+ return true;
54
+ }
55
+ return Reflect.get(target, key);
56
+ };
57
+ return new Proxy(tiff, { get });
58
+ }
59
+ exports.createOffsetsProxy = createOffsetsProxy;
60
+ /*
61
+ * Creates an ES6 Proxy that wraps a GeoTIFF object. The proxy
62
+ * handler intercepts calls to `tiff.readRasters` and injects
63
+ * a pool argument to every call. This means our TiffPixelSource
64
+ * doesn't need to be aware of whether a decoder pool is in use.
65
+ *
66
+ * > tiff.readRasters({ window }) -> tiff.readRasters({ window, pool });
67
+ */
68
+ function createPoolProxy(tiff, pool) {
69
+ const get = (target, key) => {
70
+ // Intercept calls to `image.readRasters`
71
+ if (key === 'readRasters') {
72
+ return (options) => {
73
+ // Inject `pool` argument with other raster options.
74
+ // @ts-ignore
75
+ return target.readRasters({ ...options, pool });
76
+ };
77
+ }
78
+ // tiff['__viv-decoder-pool'] === true
79
+ if (key === POOL_PROXY_KEY) {
80
+ return true;
81
+ }
82
+ return Reflect.get(target, key);
83
+ };
84
+ return new Proxy(tiff, { get });
85
+ }
86
+ exports.createPoolProxy = createPoolProxy;
@@ -7,3 +7,4 @@ export declare function getImageSize<T extends string[]>(source: PixelSource<T>)
7
7
  width: number;
8
8
  };
9
9
  export declare const SIGNAL_ABORTED = "__vivSignalAborted";
10
+ //# sourceMappingURL=tiff-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tiff-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/tiff-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAE7C,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,OAExC;AASD,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,oCAapC;AAOD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,WAG5C;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;;;EAItE;AAED,eAAO,MAAM,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SIGNAL_ABORTED = exports.getImageSize = exports.isInterleaved = exports.intToRgba = exports.ensureArray = void 0;
4
+ function ensureArray(x) {
5
+ return Array.isArray(x) ? x : [x];
6
+ }
7
+ exports.ensureArray = ensureArray;
8
+ /*
9
+ * Converts 32-bit integer color representation to RGBA tuple.
10
+ * Used to serialize colors from OME-XML metadata.
11
+ *
12
+ * > console.log(intToRgba(100100));
13
+ * > // [0, 1, 135, 4]
14
+ */
15
+ function intToRgba(int) {
16
+ if (!Number.isInteger(int)) {
17
+ throw Error('Not an integer.');
18
+ }
19
+ // Write number to int32 representation (4 bytes).
20
+ const buffer = new ArrayBuffer(4);
21
+ const view = new DataView(buffer);
22
+ view.setInt32(0, int, false); // offset === 0, littleEndian === false
23
+ // Take u8 view and extract number for each byte (1 byte for R/G/B/A).
24
+ const bytes = new Uint8Array(buffer);
25
+ return Array.from(bytes);
26
+ }
27
+ exports.intToRgba = intToRgba;
28
+ /*
29
+ * Helper method to determine whether pixel data is interleaved or not.
30
+ * > isInterleaved([1, 24, 24]) === false;
31
+ * > isInterleaved([1, 24, 24, 3]) === true;
32
+ */
33
+ function isInterleaved(shape) {
34
+ const lastDimSize = shape[shape.length - 1];
35
+ return lastDimSize === 3 || lastDimSize === 4;
36
+ }
37
+ exports.isInterleaved = isInterleaved;
38
+ function getImageSize(source) {
39
+ const interleaved = isInterleaved(source.shape);
40
+ const [height, width] = source.shape.slice(interleaved ? -3 : -2);
41
+ return { height, width };
42
+ }
43
+ exports.getImageSize = getImageSize;
44
+ exports.SIGNAL_ABORTED = '__vivSignalAborted';
package/dist/types.d.ts CHANGED
@@ -44,3 +44,4 @@ export interface PixelSource<S extends string[]> {
44
44
  meta?: PixelSourceMeta;
45
45
  }
46
46
  export {};
47
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,oBAAY,KAAK,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AACnE,oBAAY,UAAU,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC;AAE1E,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI;KACpD,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM;CACzB,CAAC;AAEF,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE;IACjD,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE;IAC/C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,oBAAY,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE;IAC7C,uBAAuB;IACvB,SAAS,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACvD,mBAAmB;IACnB,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACnD,WAAW,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,3 +57,4 @@ declare module 'geotiff' {
57
57
  geoKeyDirectory: any;
58
58
  }
59
59
  }
60
+ //# sourceMappingURL=geotiff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geotiff.d.ts","sourceRoot":"","sources":["../../src/typings/geotiff.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,UAAU,GAAG,OAAO,UAAU,EAAE,UAAU,CAAC;AAExD,OAAO,QAAQ,SAAS,CAAC;IACvB,SAAS,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACnF,SAAS,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,SAAS,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAElD,MAAM,OAAO;QACX,WAAW,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;QACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;QAC9C,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACjE,WAAW,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;SAAC,CAAC;QAC1D,QAAQ,EAAE,QAAQ,CAAC;QACnB,YAAY,EAAE,OAAO,CAAC;QACtB,KAAK,EAAE,GAAG,CAAC;QACX,MAAM,EAAE,GAAG,CAAC;KACb;IAED,UAAU,IAAI;QACZ,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;KACjF;IAED,UAAU,aAAa;QACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,IAAI,CAAC,EAAE,IAAI,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB;IAED,KAAK,UAAU,GAAG,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC,GAAG;QAC9C,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,YAAY;oBAEd,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,GAAG,EACpB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,OAAO,EACrB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG;QAEb,aAAa,EAAE,aAAa,CAAC;QAC7B,cAAc,IAAI,MAAM,EAAE;QAC1B,gBAAgB,IAAI,aAAa;QACjC,gBAAgB,IAAI,MAAM;QAC1B,SAAS,IAAI,MAAM;QACnB,kBAAkB,IAAI,MAAM;QAC5B,aAAa,IAAI,MAAM;QACvB,YAAY,IAAI,MAAM;QACtB,QAAQ,IAAI,MAAM;QAClB,WAAW,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;KAC1D;IAED,UAAU,aAAa;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC;KACpC;IAED,UAAU,kBAAkB;QAC1B,aAAa,EAAE,aAAa,CAAC;QAC7B,eAAe,EAAE,GAAG,CAAC;KACtB;CACF"}
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/geotiff",
3
- "version": "3.1.0-alpha.5",
3
+ "version": "3.1.0-beta.4",
4
4
  "description": "Framework-independent loaders for tiff and geotiff",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -29,9 +29,8 @@
29
29
  "README.md"
30
30
  ],
31
31
  "scripts": {
32
- "pre-build": "npm run build-bundle",
33
- "post-build": "tsc",
34
- "build-bundle": "webpack --display=minimal --config ../../scripts/webpack/bundle.js"
32
+ "pre-build": "# npm run build-bundle",
33
+ "build-bundle": "esbuild src/bundle.ts --outfile=dist/dist.min.js --bundle --minify --sourcemap --external:{fs,http,https}"
35
34
  },
36
35
  "dependencies-disabled": {
37
36
  "geotiff": "ilan-gold/geotiff.js#ilan-gold/viv_094"
@@ -40,5 +39,5 @@
40
39
  "fast-xml-parser": "^3.16.0",
41
40
  "geotiff": "^1.0.4"
42
41
  },
43
- "gitHead": "352241dd910a8c6307a235dadbe154ca915b885b"
42
+ "gitHead": "5c7c74215416b30fcea98f5cecc820c8a21023b3"
44
43
  }