@loaders.gl/flatgeobuf 4.3.0-alpha.7 → 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
|
@@ -59,6 +59,6 @@ export declare const FlatGeobufLoader: {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
declare function parseSync(arrayBuffer: ArrayBuffer, options?: FlatGeobufLoaderOptions): import("@loaders.gl/schema").Table;
|
|
62
|
-
declare function parseInBatchesFromStream(stream: any, options: FlatGeobufLoaderOptions): any[] | AsyncGenerator<import("
|
|
62
|
+
declare function parseInBatchesFromStream(stream: any, options: FlatGeobufLoaderOptions): any[] | AsyncGenerator<import("./flatgeobuf/3.27.2").IFeature, any, unknown> | AsyncGenerator<any, void, unknown>;
|
|
63
63
|
export {};
|
|
64
64
|
//# sourceMappingURL=flatgeobuf-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatgeobuf-loader.d.ts","sourceRoot":"","sources":["../src/flatgeobuf-loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAA2B,aAAa,EAAC,MAAM,0BAA0B,CAAC;AActF,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IACpD,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,QAAQ,CAAC;QACtD,8EAA8E;QAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM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S,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,GAAE,uBAA4B,sCAEjF;AAED,iBAAS,wBAAwB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,uBAAuB,qHAE9E"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { parseFlatGeobuf, parseFlatGeobufInBatches } from "./lib/parse-flatgeobuf.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "4.3.0-alpha.
|
|
7
|
+
const VERSION = typeof "4.3.0-alpha.7" !== 'undefined' ? "4.3.0-alpha.7" : 'latest';
|
|
8
8
|
// FGB\3FGB\1
|
|
9
9
|
const FGB_MAGIC_NUMBER = [0x66, 0x67, 0x62, 0x03, 0x66, 0x67, 0x62, 0x01];
|
|
10
10
|
/** Load flatgeobuf on a worker */
|
|
@@ -7,52 +7,6 @@
|
|
|
7
7
|
return value;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
11
|
-
function _typeof(obj) {
|
|
12
|
-
"@babel/helpers - typeof";
|
|
13
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14
|
-
return typeof obj2;
|
|
15
|
-
} : function(obj2) {
|
|
16
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
17
|
-
}, _typeof(obj);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
21
|
-
function _toPrimitive(input, hint) {
|
|
22
|
-
if (_typeof(input) !== "object" || input === null)
|
|
23
|
-
return input;
|
|
24
|
-
var prim = input[Symbol.toPrimitive];
|
|
25
|
-
if (prim !== void 0) {
|
|
26
|
-
var res = prim.call(input, hint || "default");
|
|
27
|
-
if (_typeof(res) !== "object")
|
|
28
|
-
return res;
|
|
29
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30
|
-
}
|
|
31
|
-
return (hint === "string" ? String : Number)(input);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
35
|
-
function _toPropertyKey(arg) {
|
|
36
|
-
var key = _toPrimitive(arg, "string");
|
|
37
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
41
|
-
function _defineProperty(obj, key, value) {
|
|
42
|
-
key = _toPropertyKey(key);
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
10
|
// ../worker-utils/src/lib/node/worker_threads-browser.ts
|
|
57
11
|
var parentPort = null;
|
|
58
12
|
|
|
@@ -5576,6 +5530,7 @@
|
|
|
5576
5530
|
|
|
5577
5531
|
// ../../node_modules/@math.gl/proj4/dist/lib/proj4-projection.js
|
|
5578
5532
|
var Proj4Projection = class {
|
|
5533
|
+
/** Define aliases for one or more projections */
|
|
5579
5534
|
static defineProjectionAliases(aliases) {
|
|
5580
5535
|
const aliasArray = [];
|
|
5581
5536
|
for (const alias in aliases) {
|
|
@@ -5583,11 +5538,7 @@
|
|
|
5583
5538
|
}
|
|
5584
5539
|
lib_default.defs(aliasArray);
|
|
5585
5540
|
}
|
|
5586
|
-
constructor({
|
|
5587
|
-
from = "WGS84",
|
|
5588
|
-
to = "WGS84"
|
|
5589
|
-
}) {
|
|
5590
|
-
_defineProperty(this, "_projection", void 0);
|
|
5541
|
+
constructor({ from = "WGS84", to = "WGS84" }) {
|
|
5591
5542
|
this._projection = lib_default(from, to);
|
|
5592
5543
|
if (!this._projection) {
|
|
5593
5544
|
throw new Error("Invalid projection");
|
|
@@ -5595,9 +5546,11 @@
|
|
|
5595
5546
|
this.project = this.project.bind(this);
|
|
5596
5547
|
this.unproject = this.unproject.bind(this);
|
|
5597
5548
|
}
|
|
5549
|
+
/** Project a coordinate project from first to second coordinate system */
|
|
5598
5550
|
project(coord) {
|
|
5599
5551
|
return this._projection.forward(coord);
|
|
5600
5552
|
}
|
|
5553
|
+
/** Project a coordinate project from second to first coordinate system */
|
|
5601
5554
|
unproject(coord) {
|
|
5602
5555
|
return this._projection.inverse(coord);
|
|
5603
5556
|
}
|
|
@@ -8870,7 +8823,7 @@
|
|
|
8870
8823
|
}
|
|
8871
8824
|
|
|
8872
8825
|
// src/flatgeobuf-loader.ts
|
|
8873
|
-
var VERSION = true ? "4.3.0-alpha.
|
|
8826
|
+
var VERSION = true ? "4.3.0-alpha.7" : "latest";
|
|
8874
8827
|
var FGB_MAGIC_NUMBER = [102, 103, 98, 3, 102, 103, 98, 1];
|
|
8875
8828
|
var FlatGeobufWorkerLoader = {
|
|
8876
8829
|
dataType: null,
|
package/dist/index.cjs
CHANGED
|
@@ -1847,7 +1847,7 @@ function binaryFromFeature(feature, header) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
|
|
1849
1849
|
// dist/flatgeobuf-loader.js
|
|
1850
|
-
var VERSION = true ? "4.3.0-alpha.
|
|
1850
|
+
var VERSION = true ? "4.3.0-alpha.7" : "latest";
|
|
1851
1851
|
var FGB_MAGIC_NUMBER = [102, 103, 98, 3, 102, 103, 98, 1];
|
|
1852
1852
|
var FlatGeobufWorkerLoader = {
|
|
1853
1853
|
dataType: null,
|