@loaders.gl/flatgeobuf 4.3.0-alpha.6 → 4.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.
- package/dist/dist.dev.js +4 -51
- package/dist/dist.min.js +2 -2
- package/dist/flatgeobuf-loader.d.ts +1 -1
- package/dist/flatgeobuf-loader.d.ts.map +1 -1
- package/dist/flatgeobuf-loader.js +1 -1
- package/dist/flatgeobuf-worker.js +5 -52
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/package.json +6 -6
package/dist/dist.dev.js
CHANGED
|
@@ -58,52 +58,6 @@ var __exports__ = (() => {
|
|
|
58
58
|
});
|
|
59
59
|
__reExport(bundle_exports, __toESM(require_core(), 1));
|
|
60
60
|
|
|
61
|
-
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
62
|
-
function _typeof(obj) {
|
|
63
|
-
"@babel/helpers - typeof";
|
|
64
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
65
|
-
return typeof obj2;
|
|
66
|
-
} : function(obj2) {
|
|
67
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
68
|
-
}, _typeof(obj);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
72
|
-
function _toPrimitive(input, hint) {
|
|
73
|
-
if (_typeof(input) !== "object" || input === null)
|
|
74
|
-
return input;
|
|
75
|
-
var prim = input[Symbol.toPrimitive];
|
|
76
|
-
if (prim !== void 0) {
|
|
77
|
-
var res = prim.call(input, hint || "default");
|
|
78
|
-
if (_typeof(res) !== "object")
|
|
79
|
-
return res;
|
|
80
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
81
|
-
}
|
|
82
|
-
return (hint === "string" ? String : Number)(input);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
86
|
-
function _toPropertyKey(arg) {
|
|
87
|
-
var key = _toPrimitive(arg, "string");
|
|
88
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
92
|
-
function _defineProperty(obj, key, value) {
|
|
93
|
-
key = _toPropertyKey(key);
|
|
94
|
-
if (key in obj) {
|
|
95
|
-
Object.defineProperty(obj, key, {
|
|
96
|
-
value,
|
|
97
|
-
enumerable: true,
|
|
98
|
-
configurable: true,
|
|
99
|
-
writable: true
|
|
100
|
-
});
|
|
101
|
-
} else {
|
|
102
|
-
obj[key] = value;
|
|
103
|
-
}
|
|
104
|
-
return obj;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
61
|
// ../../node_modules/proj4/lib/global.js
|
|
108
62
|
function global_default(defs2) {
|
|
109
63
|
defs2("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");
|
|
@@ -5428,6 +5382,7 @@ var __exports__ = (() => {
|
|
|
5428
5382
|
|
|
5429
5383
|
// ../../node_modules/@math.gl/proj4/dist/lib/proj4-projection.js
|
|
5430
5384
|
var Proj4Projection = class {
|
|
5385
|
+
/** Define aliases for one or more projections */
|
|
5431
5386
|
static defineProjectionAliases(aliases) {
|
|
5432
5387
|
const aliasArray = [];
|
|
5433
5388
|
for (const alias in aliases) {
|
|
@@ -5435,11 +5390,7 @@ var __exports__ = (() => {
|
|
|
5435
5390
|
}
|
|
5436
5391
|
lib_default.defs(aliasArray);
|
|
5437
5392
|
}
|
|
5438
|
-
constructor({
|
|
5439
|
-
from = "WGS84",
|
|
5440
|
-
to = "WGS84"
|
|
5441
|
-
}) {
|
|
5442
|
-
_defineProperty(this, "_projection", void 0);
|
|
5393
|
+
constructor({ from = "WGS84", to = "WGS84" }) {
|
|
5443
5394
|
this._projection = lib_default(from, to);
|
|
5444
5395
|
if (!this._projection) {
|
|
5445
5396
|
throw new Error("Invalid projection");
|
|
@@ -5447,9 +5398,11 @@ var __exports__ = (() => {
|
|
|
5447
5398
|
this.project = this.project.bind(this);
|
|
5448
5399
|
this.unproject = this.unproject.bind(this);
|
|
5449
5400
|
}
|
|
5401
|
+
/** Project a coordinate project from first to second coordinate system */
|
|
5450
5402
|
project(coord) {
|
|
5451
5403
|
return this._projection.forward(coord);
|
|
5452
5404
|
}
|
|
5405
|
+
/** Project a coordinate project from second to first coordinate system */
|
|
5453
5406
|
unproject(coord) {
|
|
5454
5407
|
return this._projection.inverse(coord);
|
|
5455
5408
|
}
|