@loaders.gl/tile-converter 4.3.3 → 4.3.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.
- package/dist/converter.min.cjs +66 -66
- package/dist/deps-installer/deps-installer.d.ts.map +1 -1
- package/dist/deps-installer/deps-installer.js +6 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/pgm-loader.js +1 -1
- package/package.json +16 -16
- package/src/deps-installer/deps-installer.ts +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps-installer.d.ts","sourceRoot":"","sources":["../../src/deps-installer/deps-installer.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,qBAAa,aAAa;IACxB;;;;;;OAMG;IAEG,OAAO,CAAC,IAAI,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YAuEjC,cAAc;
|
|
1
|
+
{"version":3,"file":"deps-installer.d.ts","sourceRoot":"","sources":["../../src/deps-installer/deps-installer.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,qBAAa,aAAa;IACxB;;;;;;OAMG;IAEG,OAAO,CAAC,IAAI,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YAuEjC,cAAc;YAmBd,cAAc;CAS7B"}
|
|
@@ -9,7 +9,7 @@ import { ChildProcessProxy } from '@loaders.gl/worker-utils';
|
|
|
9
9
|
import { DRACO_EXTERNAL_LIBRARIES, DRACO_EXTERNAL_LIBRARY_URLS } from '@loaders.gl/draco';
|
|
10
10
|
import { BASIS_EXTERNAL_LIBRARIES } from '@loaders.gl/textures';
|
|
11
11
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
12
|
-
const VERSION = typeof "4.3.
|
|
12
|
+
const VERSION = typeof "4.3.3" !== 'undefined' ? "4.3.3" : 'latest';
|
|
13
13
|
const PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
|
|
14
14
|
/**
|
|
15
15
|
* Install external dependencies for converter:
|
|
@@ -72,7 +72,11 @@ export class DepsInstaller {
|
|
|
72
72
|
console.log('All dependencies were installed succesfully.'); // eslint-disable-line no-console
|
|
73
73
|
}
|
|
74
74
|
async installFromNpm(module, name, extraPath = '') {
|
|
75
|
-
|
|
75
|
+
let fileUri = `https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${extraPath}/${name}`;
|
|
76
|
+
if (!extraPath) {
|
|
77
|
+
fileUri = `https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${name}`;
|
|
78
|
+
}
|
|
79
|
+
const fileResponse = await fetchFile(fileUri);
|
|
76
80
|
if (fileResponse.status < 200 || fileResponse.status >= 300) {
|
|
77
81
|
throw new Error(`Failed to load resource ${name}`);
|
|
78
82
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -2325,7 +2325,7 @@ function convertScreenThresholdToGeometricError(node) {
|
|
|
2325
2325
|
|
|
2326
2326
|
// dist/pgm-loader.js
|
|
2327
2327
|
var import_geoid = require("@math.gl/geoid");
|
|
2328
|
-
var VERSION = true ? "4.3.
|
|
2328
|
+
var VERSION = true ? "4.3.3" : "latest";
|
|
2329
2329
|
var PGMLoader = {
|
|
2330
2330
|
dataType: null,
|
|
2331
2331
|
batchType: null,
|