@loaders.gl/wkt 3.4.13 → 3.4.15

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.
@@ -5,14 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var LE = true;
12
- var BE = false;
13
- var BinaryWriter = function () {
14
- function BinaryWriter(size, allowResize) {
15
- (0, _classCallCheck2.default)(this, BinaryWriter);
9
+ const LE = true;
10
+ const BE = false;
11
+ class BinaryWriter {
12
+ constructor(size, allowResize) {
16
13
  (0, _defineProperty2.default)(this, "arrayBuffer", void 0);
17
14
  (0, _defineProperty2.default)(this, "dataView", void 0);
18
15
  (0, _defineProperty2.default)(this, "byteOffset", 0);
@@ -22,140 +19,104 @@ var BinaryWriter = function () {
22
19
  this.byteOffset = 0;
23
20
  this.allowResize = allowResize || false;
24
21
  }
25
- (0, _createClass2.default)(BinaryWriter, [{
26
- key: "writeUInt8",
27
- value: function writeUInt8(value) {
28
- this._ensureSize(1);
29
- this.dataView.setUint8(this.byteOffset, value);
30
- this.byteOffset += 1;
31
- }
32
- }, {
33
- key: "writeUInt16LE",
34
- value: function writeUInt16LE(value) {
35
- this._ensureSize(2);
36
- this.dataView.setUint16(this.byteOffset, value, LE);
37
- this.byteOffset += 2;
38
- }
39
- }, {
40
- key: "writeUInt16BE",
41
- value: function writeUInt16BE(value) {
42
- this._ensureSize(2);
43
- this.dataView.setUint16(this.byteOffset, value, BE);
44
- this.byteOffset += 2;
45
- }
46
- }, {
47
- key: "writeUInt32LE",
48
- value: function writeUInt32LE(value) {
49
- this._ensureSize(4);
50
- this.dataView.setUint32(this.byteOffset, value, LE);
51
- this.byteOffset += 4;
52
- }
53
- }, {
54
- key: "writeUInt32BE",
55
- value: function writeUInt32BE(value) {
56
- this._ensureSize(4);
57
- this.dataView.setUint32(this.byteOffset, value, BE);
58
- this.byteOffset += 4;
59
- }
60
- }, {
61
- key: "writeInt8",
62
- value: function writeInt8(value) {
63
- this._ensureSize(1);
64
- this.dataView.setInt8(this.byteOffset, value);
65
- this.byteOffset += 1;
66
- }
67
- }, {
68
- key: "writeInt16LE",
69
- value: function writeInt16LE(value) {
70
- this._ensureSize(2);
71
- this.dataView.setInt16(this.byteOffset, value, LE);
72
- this.byteOffset += 2;
73
- }
74
- }, {
75
- key: "writeInt16BE",
76
- value: function writeInt16BE(value) {
77
- this._ensureSize(2);
78
- this.dataView.setInt16(this.byteOffset, value, BE);
79
- this.byteOffset += 2;
80
- }
81
- }, {
82
- key: "writeInt32LE",
83
- value: function writeInt32LE(value) {
84
- this._ensureSize(4);
85
- this.dataView.setInt32(this.byteOffset, value, LE);
86
- this.byteOffset += 4;
87
- }
88
- }, {
89
- key: "writeInt32BE",
90
- value: function writeInt32BE(value) {
91
- this._ensureSize(4);
92
- this.dataView.setInt32(this.byteOffset, value, BE);
93
- this.byteOffset += 4;
94
- }
95
- }, {
96
- key: "writeFloatLE",
97
- value: function writeFloatLE(value) {
98
- this._ensureSize(4);
99
- this.dataView.setFloat32(this.byteOffset, value, LE);
100
- this.byteOffset += 4;
101
- }
102
- }, {
103
- key: "writeFloatBE",
104
- value: function writeFloatBE(value) {
105
- this._ensureSize(4);
106
- this.dataView.setFloat32(this.byteOffset, value, BE);
107
- this.byteOffset += 4;
108
- }
109
- }, {
110
- key: "writeDoubleLE",
111
- value: function writeDoubleLE(value) {
112
- this._ensureSize(8);
113
- this.dataView.setFloat64(this.byteOffset, value, LE);
114
- this.byteOffset += 8;
115
- }
116
- }, {
117
- key: "writeDoubleBE",
118
- value: function writeDoubleBE(value) {
119
- this._ensureSize(8);
120
- this.dataView.setFloat64(this.byteOffset, value, BE);
121
- this.byteOffset += 8;
122
- }
123
- }, {
124
- key: "writeVarInt",
125
- value: function writeVarInt(value) {
126
- var length = 1;
127
- while ((value & 0xffffff80) !== 0) {
128
- this.writeUInt8(value & 0x7f | 0x80);
129
- value >>>= 7;
130
- length++;
131
- }
132
- this.writeUInt8(value & 0x7f);
133
- return length;
134
- }
135
- }, {
136
- key: "writeBuffer",
137
- value: function writeBuffer(arrayBuffer) {
138
- this._ensureSize(arrayBuffer.byteLength);
139
- var tempArray = new Uint8Array(this.arrayBuffer);
140
- tempArray.set(new Uint8Array(arrayBuffer), this.byteOffset);
141
- this.byteOffset += arrayBuffer.byteLength;
142
- }
143
- }, {
144
- key: "_ensureSize",
145
- value: function _ensureSize(size) {
146
- if (this.arrayBuffer.byteLength < this.byteOffset + size) {
147
- if (this.allowResize) {
148
- var newArrayBuffer = new ArrayBuffer(this.byteOffset + size);
149
- var tempArray = new Uint8Array(newArrayBuffer);
150
- tempArray.set(new Uint8Array(this.arrayBuffer));
151
- this.arrayBuffer = newArrayBuffer;
152
- } else {
153
- throw new Error('BinaryWriter overflow');
154
- }
22
+ writeUInt8(value) {
23
+ this._ensureSize(1);
24
+ this.dataView.setUint8(this.byteOffset, value);
25
+ this.byteOffset += 1;
26
+ }
27
+ writeUInt16LE(value) {
28
+ this._ensureSize(2);
29
+ this.dataView.setUint16(this.byteOffset, value, LE);
30
+ this.byteOffset += 2;
31
+ }
32
+ writeUInt16BE(value) {
33
+ this._ensureSize(2);
34
+ this.dataView.setUint16(this.byteOffset, value, BE);
35
+ this.byteOffset += 2;
36
+ }
37
+ writeUInt32LE(value) {
38
+ this._ensureSize(4);
39
+ this.dataView.setUint32(this.byteOffset, value, LE);
40
+ this.byteOffset += 4;
41
+ }
42
+ writeUInt32BE(value) {
43
+ this._ensureSize(4);
44
+ this.dataView.setUint32(this.byteOffset, value, BE);
45
+ this.byteOffset += 4;
46
+ }
47
+ writeInt8(value) {
48
+ this._ensureSize(1);
49
+ this.dataView.setInt8(this.byteOffset, value);
50
+ this.byteOffset += 1;
51
+ }
52
+ writeInt16LE(value) {
53
+ this._ensureSize(2);
54
+ this.dataView.setInt16(this.byteOffset, value, LE);
55
+ this.byteOffset += 2;
56
+ }
57
+ writeInt16BE(value) {
58
+ this._ensureSize(2);
59
+ this.dataView.setInt16(this.byteOffset, value, BE);
60
+ this.byteOffset += 2;
61
+ }
62
+ writeInt32LE(value) {
63
+ this._ensureSize(4);
64
+ this.dataView.setInt32(this.byteOffset, value, LE);
65
+ this.byteOffset += 4;
66
+ }
67
+ writeInt32BE(value) {
68
+ this._ensureSize(4);
69
+ this.dataView.setInt32(this.byteOffset, value, BE);
70
+ this.byteOffset += 4;
71
+ }
72
+ writeFloatLE(value) {
73
+ this._ensureSize(4);
74
+ this.dataView.setFloat32(this.byteOffset, value, LE);
75
+ this.byteOffset += 4;
76
+ }
77
+ writeFloatBE(value) {
78
+ this._ensureSize(4);
79
+ this.dataView.setFloat32(this.byteOffset, value, BE);
80
+ this.byteOffset += 4;
81
+ }
82
+ writeDoubleLE(value) {
83
+ this._ensureSize(8);
84
+ this.dataView.setFloat64(this.byteOffset, value, LE);
85
+ this.byteOffset += 8;
86
+ }
87
+ writeDoubleBE(value) {
88
+ this._ensureSize(8);
89
+ this.dataView.setFloat64(this.byteOffset, value, BE);
90
+ this.byteOffset += 8;
91
+ }
92
+ writeVarInt(value) {
93
+ let length = 1;
94
+ while ((value & 0xffffff80) !== 0) {
95
+ this.writeUInt8(value & 0x7f | 0x80);
96
+ value >>>= 7;
97
+ length++;
98
+ }
99
+ this.writeUInt8(value & 0x7f);
100
+ return length;
101
+ }
102
+ writeBuffer(arrayBuffer) {
103
+ this._ensureSize(arrayBuffer.byteLength);
104
+ const tempArray = new Uint8Array(this.arrayBuffer);
105
+ tempArray.set(new Uint8Array(arrayBuffer), this.byteOffset);
106
+ this.byteOffset += arrayBuffer.byteLength;
107
+ }
108
+ _ensureSize(size) {
109
+ if (this.arrayBuffer.byteLength < this.byteOffset + size) {
110
+ if (this.allowResize) {
111
+ const newArrayBuffer = new ArrayBuffer(this.byteOffset + size);
112
+ const tempArray = new Uint8Array(newArrayBuffer);
113
+ tempArray.set(new Uint8Array(this.arrayBuffer));
114
+ this.arrayBuffer = newArrayBuffer;
115
+ } else {
116
+ throw new Error('BinaryWriter overflow');
155
117
  }
156
118
  }
157
- }]);
158
- return BinaryWriter;
159
- }();
119
+ }
120
+ }
160
121
  exports.default = BinaryWriter;
161
122
  //# sourceMappingURL=binary-writer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"binary-writer.js","names":["LE","BE","BinaryWriter","size","allowResize","_classCallCheck2","default","_defineProperty2","arrayBuffer","ArrayBuffer","dataView","DataView","byteOffset","_createClass2","key","value","writeUInt8","_ensureSize","setUint8","writeUInt16LE","setUint16","writeUInt16BE","writeUInt32LE","setUint32","writeUInt32BE","writeInt8","setInt8","writeInt16LE","setInt16","writeInt16BE","writeInt32LE","setInt32","writeInt32BE","writeFloatLE","setFloat32","writeFloatBE","writeDoubleLE","setFloat64","writeDoubleBE","writeVarInt","length","writeBuffer","byteLength","tempArray","Uint8Array","set","newArrayBuffer","Error","exports"],"sources":["../../../../src/lib/utils/binary-writer.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Forked from https://github.com/cschwarz/wkx under MIT license, Copyright (c) 2013 Christian Schwarz\n\nconst LE = true;\nconst BE = false;\n\nexport default class BinaryWriter {\n arrayBuffer: ArrayBuffer;\n dataView: DataView;\n byteOffset: number = 0;\n allowResize: boolean = false;\n\n constructor(size: number, allowResize?: boolean) {\n this.arrayBuffer = new ArrayBuffer(size);\n this.dataView = new DataView(this.arrayBuffer);\n this.byteOffset = 0;\n this.allowResize = allowResize || false;\n }\n\n writeUInt8(value: number): void {\n this._ensureSize(1);\n this.dataView.setUint8(this.byteOffset, value);\n this.byteOffset += 1;\n }\n writeUInt16LE(value: number): void {\n this._ensureSize(2);\n this.dataView.setUint16(this.byteOffset, value, LE);\n this.byteOffset += 2;\n }\n writeUInt16BE(value: number): void {\n this._ensureSize(2);\n this.dataView.setUint16(this.byteOffset, value, BE);\n this.byteOffset += 2;\n }\n writeUInt32LE(value: number): void {\n this._ensureSize(4);\n this.dataView.setUint32(this.byteOffset, value, LE);\n this.byteOffset += 4;\n }\n writeUInt32BE(value: number): void {\n this._ensureSize(4);\n this.dataView.setUint32(this.byteOffset, value, BE);\n this.byteOffset += 4;\n }\n writeInt8(value: number): void {\n this._ensureSize(1);\n this.dataView.setInt8(this.byteOffset, value);\n this.byteOffset += 1;\n }\n writeInt16LE(value: number): void {\n this._ensureSize(2);\n this.dataView.setInt16(this.byteOffset, value, LE);\n this.byteOffset += 2;\n }\n writeInt16BE(value: number): void {\n this._ensureSize(2);\n this.dataView.setInt16(this.byteOffset, value, BE);\n this.byteOffset += 2;\n }\n writeInt32LE(value: number): void {\n this._ensureSize(4);\n this.dataView.setInt32(this.byteOffset, value, LE);\n this.byteOffset += 4;\n }\n writeInt32BE(value: number): void {\n this._ensureSize(4);\n this.dataView.setInt32(this.byteOffset, value, BE);\n this.byteOffset += 4;\n }\n writeFloatLE(value: number): void {\n this._ensureSize(4);\n this.dataView.setFloat32(this.byteOffset, value, LE);\n this.byteOffset += 4;\n }\n writeFloatBE(value: number): void {\n this._ensureSize(4);\n this.dataView.setFloat32(this.byteOffset, value, BE);\n this.byteOffset += 4;\n }\n writeDoubleLE(value: number): void {\n this._ensureSize(8);\n this.dataView.setFloat64(this.byteOffset, value, LE);\n this.byteOffset += 8;\n }\n writeDoubleBE(value: number): void {\n this._ensureSize(8);\n this.dataView.setFloat64(this.byteOffset, value, BE);\n this.byteOffset += 8;\n }\n\n /** A varint uses a variable number of bytes */\n writeVarInt(value: number): number {\n // TODO - ensure size?\n let length = 1;\n while ((value & 0xffffff80) !== 0) {\n this.writeUInt8((value & 0x7f) | 0x80);\n value >>>= 7;\n length++;\n }\n this.writeUInt8(value & 0x7f);\n return length;\n }\n\n /** Append another ArrayBuffer to this ArrayBuffer */\n writeBuffer(arrayBuffer: ArrayBuffer): void {\n this._ensureSize(arrayBuffer.byteLength);\n const tempArray = new Uint8Array(this.arrayBuffer);\n tempArray.set(new Uint8Array(arrayBuffer), this.byteOffset);\n this.byteOffset += arrayBuffer.byteLength;\n }\n\n /** Resizes this.arrayBuffer if not enough space */\n _ensureSize(size: number) {\n if (this.arrayBuffer.byteLength < this.byteOffset + size) {\n if (this.allowResize) {\n const newArrayBuffer = new ArrayBuffer(this.byteOffset + size);\n const tempArray = new Uint8Array(newArrayBuffer);\n tempArray.set(new Uint8Array(this.arrayBuffer));\n this.arrayBuffer = newArrayBuffer;\n } else {\n throw new Error('BinaryWriter overflow');\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;;AAGA,IAAMA,EAAE,GAAG,IAAI;AACf,IAAMC,EAAE,GAAG,KAAK;AAAC,IAEIC,YAAY;EAM/B,SAAAA,aAAYC,IAAY,EAAEC,WAAqB,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAJ,YAAA;IAAA,IAAAK,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA;IAAA,IAAAC,gBAAA,CAAAD,OAAA,sBAH5B,CAAC;IAAA,IAAAC,gBAAA,CAAAD,OAAA,uBACC,KAAK;IAG1B,IAAI,CAACE,WAAW,GAAG,IAAIC,WAAW,CAACN,IAAI,CAAC;IACxC,IAAI,CAACO,QAAQ,GAAG,IAAIC,QAAQ,CAAC,IAAI,CAACH,WAAW,CAAC;IAC9C,IAAI,CAACI,UAAU,GAAG,CAAC;IACnB,IAAI,CAACR,WAAW,GAAGA,WAAW,IAAI,KAAK;EACzC;EAAC,IAAAS,aAAA,CAAAP,OAAA,EAAAJ,YAAA;IAAAY,GAAA;IAAAC,KAAA,EAED,SAAAC,WAAWD,KAAa,EAAQ;MAC9B,IAAI,CAACE,WAAW,CAAC,CAAC,CAAC;MACnB,IAAI,CAACP,QAAQ,CAACQ,QAAQ,CAAC,IAAI,CAACN,UAAU,EAAEG,KAAK,CAAC;MAC9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,CAAC;MACxC,IAAMC,SAAS,GAAG,IAAIC,UAAU,CAAC,IAAI,CAACpC,WAAW,CAAC;MAClDmC,SAAS,CAACE,GAAG,CAAC,IAAID,UAAU,CAACpC,WAAW,CAAC,EAAE,IAAI,CAACI,UAAU,CAAC;MAC3D,IAAI,CAACA,UAAU,IAAIJ,WAAW,CAACkC,UAAU;IAC3C;EAAC;IAAA5B,GAAA;IAAAC,KAAA,EAGD,SAAAE,YAAYd,IAAY,EAAE;MACxB,IAAI,IAAI,CAACK,WAAW,CAACkC,UAAU,GAAG,IAAI,CAAC9B,UAAU,GAAGT,IAAI,EAAE;QACxD,IAAI,IAAI,CAACC,WAAW,EAAE;UACpB,IAAM0C,cAAc,GAAG,IAAIrC,WAAW,CAAC,IAAI,CAACG,UAAU,GAAGT,IAAI,CAAC;UAC9D,IAAMwC,SAAS,GAAG,IAAIC,UAAU,CAACE,cAAc,CAAC;UAChDH,SAAS,CAACE,GAAG,CAAC,IAAID,UAAU,CAAC,IAAI,CAACpC,WAAW,CAAC,CAAC;UAC/C,IAAI,CAACA,WAAW,GAAGsC,cAAc;QACnC,CAAC,MAAM;UACL,MAAM,IAAIC,KAAK,CAAC,uBAAuB,CAAC;QAC1C;MACF;IACF;EAAC;EAAA,OAAA7C,YAAA;AAAA;AAAA8C,OAAA,CAAA1C,OAAA,GAAAJ,YAAA"}
1
+ {"version":3,"file":"binary-writer.js","names":["LE","BE","BinaryWriter","constructor","size","allowResize","_defineProperty2","default","arrayBuffer","ArrayBuffer","dataView","DataView","byteOffset","writeUInt8","value","_ensureSize","setUint8","writeUInt16LE","setUint16","writeUInt16BE","writeUInt32LE","setUint32","writeUInt32BE","writeInt8","setInt8","writeInt16LE","setInt16","writeInt16BE","writeInt32LE","setInt32","writeInt32BE","writeFloatLE","setFloat32","writeFloatBE","writeDoubleLE","setFloat64","writeDoubleBE","writeVarInt","length","writeBuffer","byteLength","tempArray","Uint8Array","set","newArrayBuffer","Error","exports"],"sources":["../../../../src/lib/utils/binary-writer.ts"],"sourcesContent":["// loaders.gl, MIT license\n// Forked from https://github.com/cschwarz/wkx under MIT license, Copyright (c) 2013 Christian Schwarz\n\nconst LE = true;\nconst BE = false;\n\nexport default class BinaryWriter {\n arrayBuffer: ArrayBuffer;\n dataView: DataView;\n byteOffset: number = 0;\n allowResize: boolean = false;\n\n constructor(size: number, allowResize?: boolean) {\n this.arrayBuffer = new ArrayBuffer(size);\n this.dataView = new DataView(this.arrayBuffer);\n this.byteOffset = 0;\n this.allowResize = allowResize || false;\n }\n\n writeUInt8(value: number): void {\n this._ensureSize(1);\n this.dataView.setUint8(this.byteOffset, value);\n this.byteOffset += 1;\n }\n writeUInt16LE(value: number): void {\n this._ensureSize(2);\n this.dataView.setUint16(this.byteOffset, value, LE);\n this.byteOffset += 2;\n }\n writeUInt16BE(value: number): void {\n this._ensureSize(2);\n this.dataView.setUint16(this.byteOffset, value, BE);\n this.byteOffset += 2;\n }\n writeUInt32LE(value: number): void {\n this._ensureSize(4);\n this.dataView.setUint32(this.byteOffset, value, LE);\n this.byteOffset += 4;\n }\n writeUInt32BE(value: number): void {\n this._ensureSize(4);\n this.dataView.setUint32(this.byteOffset, value, BE);\n this.byteOffset += 4;\n }\n writeInt8(value: number): void {\n this._ensureSize(1);\n this.dataView.setInt8(this.byteOffset, value);\n this.byteOffset += 1;\n }\n writeInt16LE(value: number): void {\n this._ensureSize(2);\n this.dataView.setInt16(this.byteOffset, value, LE);\n this.byteOffset += 2;\n }\n writeInt16BE(value: number): void {\n this._ensureSize(2);\n this.dataView.setInt16(this.byteOffset, value, BE);\n this.byteOffset += 2;\n }\n writeInt32LE(value: number): void {\n this._ensureSize(4);\n this.dataView.setInt32(this.byteOffset, value, LE);\n this.byteOffset += 4;\n }\n writeInt32BE(value: number): void {\n this._ensureSize(4);\n this.dataView.setInt32(this.byteOffset, value, BE);\n this.byteOffset += 4;\n }\n writeFloatLE(value: number): void {\n this._ensureSize(4);\n this.dataView.setFloat32(this.byteOffset, value, LE);\n this.byteOffset += 4;\n }\n writeFloatBE(value: number): void {\n this._ensureSize(4);\n this.dataView.setFloat32(this.byteOffset, value, BE);\n this.byteOffset += 4;\n }\n writeDoubleLE(value: number): void {\n this._ensureSize(8);\n this.dataView.setFloat64(this.byteOffset, value, LE);\n this.byteOffset += 8;\n }\n writeDoubleBE(value: number): void {\n this._ensureSize(8);\n this.dataView.setFloat64(this.byteOffset, value, BE);\n this.byteOffset += 8;\n }\n\n /** A varint uses a variable number of bytes */\n writeVarInt(value: number): number {\n // TODO - ensure size?\n let length = 1;\n while ((value & 0xffffff80) !== 0) {\n this.writeUInt8((value & 0x7f) | 0x80);\n value >>>= 7;\n length++;\n }\n this.writeUInt8(value & 0x7f);\n return length;\n }\n\n /** Append another ArrayBuffer to this ArrayBuffer */\n writeBuffer(arrayBuffer: ArrayBuffer): void {\n this._ensureSize(arrayBuffer.byteLength);\n const tempArray = new Uint8Array(this.arrayBuffer);\n tempArray.set(new Uint8Array(arrayBuffer), this.byteOffset);\n this.byteOffset += arrayBuffer.byteLength;\n }\n\n /** Resizes this.arrayBuffer if not enough space */\n _ensureSize(size: number) {\n if (this.arrayBuffer.byteLength < this.byteOffset + size) {\n if (this.allowResize) {\n const newArrayBuffer = new ArrayBuffer(this.byteOffset + size);\n const tempArray = new Uint8Array(newArrayBuffer);\n tempArray.set(new Uint8Array(this.arrayBuffer));\n this.arrayBuffer = newArrayBuffer;\n } else {\n throw new Error('BinaryWriter overflow');\n }\n }\n }\n}\n"],"mappings":";;;;;;;;AAGA,MAAMA,EAAE,GAAG,IAAI;AACf,MAAMC,EAAE,GAAG,KAAK;AAED,MAAMC,YAAY,CAAC;EAMhCC,WAAWA,CAACC,IAAY,EAAEC,WAAqB,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA,sBAH5B,CAAC;IAAA,IAAAD,gBAAA,CAAAC,OAAA,uBACC,KAA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AAS,CAACE,GAAG,CAAC,IAAID,UAAU,CAAClC,WAAW,CAAC,EAAE,IAAI,CAACI,UAAU,CAAC;IAC3D,IAAI,CAACA,UAAU,IAAIJ,WAAW,CAACgC,UAAU;EAC3C;EAGAzB,WAAWA,CAACX,IAAY,EAAE;IACxB,IAAI,IAAI,CAACI,WAAW,CAACgC,UAAU,GAAG,IAAI,CAAC5B,UAAU,GAAGR,IAAI,EAAE;MACxD,IAAI,IAAI,CAACC,WAAW,EAAE;QACpB,MAAMuC,cAAc,GAAG,IAAInC,WAAW,CAAC,IAAI,CAACG,UAAU,GAAGR,IAAI,CAAC;QAC9D,MAAMqC,SAAS,GAAG,IAAIC,UAAU,CAACE,cAAc,CAAC;QAChDH,SAAS,CAACE,GAAG,CAAC,IAAID,UAAU,CAAC,IAAI,CAAClC,WAAW,CAAC,CAAC;QAC/C,IAAI,CAACA,WAAW,GAAGoC,cAAc;MACnC,CAAC,MAAM;QACL,MAAM,IAAIC,KAAK,CAAC,uBAAuB,CAAC;MAC1C;IACF;EACF;AACF;AAACC,OAAA,CAAAvC,OAAA,GAAAL,YAAA"}
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- var VERSION = typeof "3.4.13" !== 'undefined' ? "3.4.13" : 'latest';
7
+ const VERSION = typeof "3.4.15" !== 'undefined' ? "3.4.15" : 'latest';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","names":["VERSION","exports"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,eAAkB,KAAK,WAAW,cAAiB,QAAQ;AAACC,OAAA,CAAAD,OAAA,GAAAA,OAAA"}
1
+ {"version":3,"file":"version.js","names":["VERSION","exports"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";;;;;;AAGO,MAAMA,OAAO,GAAG,eAAkB,KAAK,WAAW,cAAiB,QAAQ;AAACC,OAAA,CAAAD,OAAA,GAAAA,OAAA"}
@@ -5,14 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports._typecheckWKBWorkerLoader = exports._typecheckWKBLoader = exports.WKBWorkerLoader = exports.WKBLoader = void 0;
8
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
8
  var _version = require("./lib/utils/version");
12
9
  var _parseWkb = _interopRequireDefault(require("./lib/parse-wkb"));
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- var WKBWorkerLoader = {
10
+ const WKBWorkerLoader = {
16
11
  name: 'WKB',
17
12
  id: 'wkb',
18
13
  module: 'wkt',
@@ -26,29 +21,14 @@ var WKBWorkerLoader = {
26
21
  }
27
22
  };
28
23
  exports.WKBWorkerLoader = WKBWorkerLoader;
29
- var WKBLoader = _objectSpread(_objectSpread({}, WKBWorkerLoader), {}, {
30
- parse: function () {
31
- var _parse = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(arrayBuffer) {
32
- return _regenerator.default.wrap(function _callee$(_context) {
33
- while (1) switch (_context.prev = _context.next) {
34
- case 0:
35
- return _context.abrupt("return", (0, _parseWkb.default)(arrayBuffer));
36
- case 1:
37
- case "end":
38
- return _context.stop();
39
- }
40
- }, _callee);
41
- }));
42
- function parse(_x) {
43
- return _parse.apply(this, arguments);
44
- }
45
- return parse;
46
- }(),
24
+ const WKBLoader = {
25
+ ...WKBWorkerLoader,
26
+ parse: async arrayBuffer => (0, _parseWkb.default)(arrayBuffer),
47
27
  parseSync: _parseWkb.default
48
- });
28
+ };
49
29
  exports.WKBLoader = WKBLoader;
50
- var _typecheckWKBWorkerLoader = WKBWorkerLoader;
30
+ const _typecheckWKBWorkerLoader = WKBWorkerLoader;
51
31
  exports._typecheckWKBWorkerLoader = _typecheckWKBWorkerLoader;
52
- var _typecheckWKBLoader = WKBLoader;
32
+ const _typecheckWKBLoader = WKBLoader;
53
33
  exports._typecheckWKBLoader = _typecheckWKBLoader;
54
34
  //# sourceMappingURL=wkb-loader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wkb-loader.js","names":["_version","require","_parseWkb","_interopRequireDefault","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","WKBWorkerLoader","name","id","module","version","VERSION","worker","category","extensions","mimeTypes","options","wkb","exports","WKBLoader","parse","_parse","_asyncToGenerator2","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseWKB","stop","_x","parseSync","_typecheckWKBWorkerLoader","_typecheckWKBLoader"],"sources":["../../src/wkb-loader.ts"],"sourcesContent":["import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport parseWKB from './lib/parse-wkb';\n\n/**\n * Worker loader for WKB (Well-Known Binary)\n */\nexport const WKBWorkerLoader = {\n name: 'WKB',\n id: 'wkb',\n module: 'wkt',\n version: VERSION,\n worker: true,\n category: 'geometry',\n extensions: ['wkb'],\n mimeTypes: [],\n options: {\n wkb: {}\n }\n};\n\n/**\n * Loader for WKB (Well-Known Binary)\n */\nexport const WKBLoader = {\n ...WKBWorkerLoader,\n parse: async (arrayBuffer: ArrayBuffer) => parseWKB(arrayBuffer),\n parseSync: parseWKB\n};\n\nexport const _typecheckWKBWorkerLoader: Loader = WKBWorkerLoader;\nexport const _typecheckWKBLoader: LoaderWithParser = WKBLoader;\n"],"mappings":";;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAuC,SAAAG,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAA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AAK,IAAAC,iBAAQ,EAACP,WAAW,CAAC;UAAA;UAAA;YAAA,OAAAG,QAAA,CAAAK,IAAA;QAAA;MAAA,GAAAT,OAAA;IAAA;IAAA,SAAAL,MAAAe,EAAA;MAAA,OAAAd,MAAA,CAAA7B,KAAA,OAAAI,SAAA;IAAA;IAAA,OAAAwB,KAAA;EAAA;EAChEgB,SAAS,EAAEH;AAAQ,EACpB;AAACf,OAAA,CAAAC,SAAA,GAAAA,SAAA;AAEK,IAAMkB,yBAAiC,GAAG/B,eAAe;AAACY,OAAA,CAAAmB,yBAAA,GAAAA,yBAAA;AAC1D,IAAMC,mBAAqC,GAAGnB,SAAS;AAACD,OAAA,CAAAoB,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"file":"wkb-loader.js","names":["_version","require","_parseWkb","_interopRequireDefault","WKBWorkerLoader","name","id","module","version","VERSION","worker","category","extensions","mimeTypes","options","wkb","exports","WKBLoader","parse","arrayBuffer","parseWKB","parseSync","_typecheckWKBWorkerLoader","_typecheckWKBLoader"],"sources":["../../src/wkb-loader.ts"],"sourcesContent":["import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport parseWKB from './lib/parse-wkb';\n\n/**\n * Worker loader for WKB (Well-Known Binary)\n */\nexport const WKBWorkerLoader = {\n name: 'WKB',\n id: 'wkb',\n module: 'wkt',\n version: VERSION,\n worker: true,\n category: 'geometry',\n extensions: ['wkb'],\n mimeTypes: [],\n options: {\n wkb: {}\n }\n};\n\n/**\n * Loader for WKB (Well-Known Binary)\n */\nexport const WKBLoader = {\n ...WKBWorkerLoader,\n parse: async (arrayBuffer: ArrayBuffer) => parseWKB(arrayBuffer),\n parseSync: parseWKB\n};\n\nexport const _typecheckWKBWorkerLoader: Loader = WKBWorkerLoader;\nexport const _typecheckWKBLoader: LoaderWithParser = WKBLoader;\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAKO,MAAMG,eAAe,GAAG;EAC7BC,IAAI,EAAE,KAAK;EACXC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,MAAM,EAAE,IAAI;EACZC,QAAQ,EAAE,UAAU;EACpBC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,EAAE;EACbC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR;AACF,CAAC;AAACC,OAAA,CAAAZ,eAAA,GAAAA,eAAA;AAKK,MAAMa,SAAS,GAAG;EACvB,GAAGb,eAAe;EAClBc,KAAK,EAAE,MAAOC,WAAwB,IAAK,IAAAC,iBAAQ,EAACD,WAAW,CAAC;EAChEE,SAAS,EAAED;AACb,CAAC;AAACJ,OAAA,CAAAC,SAAA,GAAAA,SAAA;AAEK,MAAMK,yBAAiC,GAAGlB,eAAe;AAACY,OAAA,CAAAM,yBAAA,GAAAA,yBAAA;AAC1D,MAAMC,mBAAqC,GAAGN,SAAS;AAACD,OAAA,CAAAO,mBAAA,GAAAA,mBAAA"}
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.WKBWriter = void 0;
8
8
  var _version = require("./lib/utils/version");
9
9
  var _encodeWkb = _interopRequireDefault(require("./lib/encode-wkb"));
10
- var WKBWriter = {
10
+ const WKBWriter = {
11
11
  name: 'WKB (Well Known Binary)',
12
12
  id: 'wkb',
13
13
  module: 'wkt',
@@ -1 +1 @@
1
- {"version":3,"file":"wkb-writer.js","names":["_version","require","_encodeWkb","_interopRequireDefault","WKBWriter","name","id","module","version","VERSION","extensions","encodeSync","encodeWKB","options","wkb","hasZ","hasM","exports"],"sources":["../../src/wkb-writer.ts"],"sourcesContent":["import type {Writer} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport encodeWKB from './lib/encode-wkb';\n\n/**\n * WKB exporter\n */\nexport const WKBWriter: Writer = {\n name: 'WKB (Well Known Binary)',\n id: 'wkb',\n module: 'wkt',\n version: VERSION,\n extensions: ['wkb'],\n // @ts-ignore\n encodeSync: encodeWKB,\n options: {\n wkb: {\n hasZ: false,\n hasM: false\n }\n }\n};\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAKO,IAAMG,SAAiB,GAAG;EAC/BC,IAAI,EAAE,yBAAyB;EAC/BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,UAAU,EAAE,CAAC,KAAK,CAAC;EAEnBC,UAAU,EAAEC,kBAAS;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE;MACHC,IAAI,EAAE,KAAK;MACXC,IAAI,EAAE;IACR;EACF;AACF,CAAC;AAACC,OAAA,CAAAb,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"wkb-writer.js","names":["_version","require","_encodeWkb","_interopRequireDefault","WKBWriter","name","id","module","version","VERSION","extensions","encodeSync","encodeWKB","options","wkb","hasZ","hasM","exports"],"sources":["../../src/wkb-writer.ts"],"sourcesContent":["import type {Writer} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport encodeWKB from './lib/encode-wkb';\n\n/**\n * WKB exporter\n */\nexport const WKBWriter: Writer = {\n name: 'WKB (Well Known Binary)',\n id: 'wkb',\n module: 'wkt',\n version: VERSION,\n extensions: ['wkb'],\n // @ts-ignore\n encodeSync: encodeWKB,\n options: {\n wkb: {\n hasZ: false,\n hasM: false\n }\n }\n};\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAKO,MAAMG,SAAiB,GAAG;EAC/BC,IAAI,EAAE,yBAAyB;EAC/BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,UAAU,EAAE,CAAC,KAAK,CAAC;EAEnBC,UAAU,EAAEC,kBAAS;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE;MACHC,IAAI,EAAE,KAAK;MACXC,IAAI,EAAE;IACR;EACF;AACF,CAAC;AAACC,OAAA,CAAAb,SAAA,GAAAA,SAAA"}
@@ -5,14 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.WKTWorkerLoader = exports.WKTLoader = void 0;
8
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
8
  var _version = require("./lib/utils/version");
12
9
  var _parseWkt = _interopRequireDefault(require("./lib/parse-wkt"));
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- var WKTWorkerLoader = {
10
+ const WKTWorkerLoader = {
16
11
  name: 'WKT (Well-Known Text)',
17
12
  id: 'wkt',
18
13
  module: 'wkt',
@@ -27,25 +22,10 @@ var WKTWorkerLoader = {
27
22
  }
28
23
  };
29
24
  exports.WKTWorkerLoader = WKTWorkerLoader;
30
- var WKTLoader = _objectSpread(_objectSpread({}, WKTWorkerLoader), {}, {
31
- parse: function () {
32
- var _parse = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(arrayBuffer) {
33
- return _regenerator.default.wrap(function _callee$(_context) {
34
- while (1) switch (_context.prev = _context.next) {
35
- case 0:
36
- return _context.abrupt("return", (0, _parseWkt.default)(new TextDecoder().decode(arrayBuffer)));
37
- case 1:
38
- case "end":
39
- return _context.stop();
40
- }
41
- }, _callee);
42
- }));
43
- function parse(_x) {
44
- return _parse.apply(this, arguments);
45
- }
46
- return parse;
47
- }(),
25
+ const WKTLoader = {
26
+ ...WKTWorkerLoader,
27
+ parse: async arrayBuffer => (0, _parseWkt.default)(new TextDecoder().decode(arrayBuffer)),
48
28
  parseTextSync: _parseWkt.default
49
- });
29
+ };
50
30
  exports.WKTLoader = WKTLoader;
51
31
  //# sourceMappingURL=wkt-loader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wkt-loader.js","names":["_version","require","_parseWkt","_interopRequireDefault","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","WKTWorkerLoader","name","id","module","version","VERSION","worker","extensions","mimeTypes","category","text","options","wkt","exports","WKTLoader","parse","_parse","_asyncToGenerator2","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseWKT","TextDecoder","decode","stop","_x","parseTextSync"],"sources":["../../src/wkt-loader.ts"],"sourcesContent":["import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport parseWKT from './lib/parse-wkt';\n\n/**\n * Well-Known text loader\n */\nexport const WKTWorkerLoader: Loader = {\n name: 'WKT (Well-Known Text)',\n id: 'wkt',\n module: 'wkt',\n version: VERSION,\n worker: true,\n extensions: ['wkt'],\n mimeTypes: ['text/plain'],\n category: 'geometry',\n text: true,\n options: {\n wkt: {}\n }\n};\n\n/**\n * Well-Known text loader\n */\nexport const WKTLoader: LoaderWithParser = {\n ...WKTWorkerLoader,\n parse: async (arrayBuffer) => parseWKT(new TextDecoder().decode(arrayBuffer)),\n parseTextSync: parseWKT\n};\n"],"mappings":";;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAuC,SAAAG,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,CAAAC,OAAA,EAAAR,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAmB,yBAAA,GAAAnB,MAAA,CAAAoB,gBAAA,CAAAV,MAAA,EAAAV,MAAA,CAAAmB,yBAAA,CAAAL,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAqB,cAAA,CAAAX,MAAA,EAAAM,GAAA,EAAAhB,MAAA,CAAAK,wBAAA,CAAAS,MAAA,EAAAE,GAAA,iBAAAN,MAAA;AAKhC,IAAMY,eAAuB,GAAG;EACrCC,IAAI,EAAE,uBAAuB;EAC7BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,YAAY,CAAC;EACzBC,QAAQ,EAAE,UAAU;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR;AACF,CAAC;AAACC,OAAA,CAAAb,eAAA,GAAAA,eAAA;AAKK,IAAMc,SAA2B,GAAA3B,aAAA,CAAAA,aAAA,KACnCa,eAAe;EAClBe,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAArB,OAAA,EAAAsB,YAAA,CAAAtB,OAAA,CAAAuB,IAAA,CAAE,SAAAC,QAAOC,WAAW;MAAA,OAAAH,YAAA,CAAAtB,OAAA,CAAA0B,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAAK,IAAAC,iBAAQ,EAAC,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACT,WAAW,CAAC,CAAC;UAAA;UAAA;YAAA,OAAAG,QAAA,CAAAO,IAAA;QAAA;MAAA,GAAAX,OAAA;IAAA;IAAA,SAAAL,MAAAiB,EAAA;MAAA,OAAAhB,MAAA,CAAA9B,KAAA,OAAAI,SAAA;IAAA;IAAA,OAAAyB,KAAA;EAAA;EAC7EkB,aAAa,EAAEL;AAAQ,EACxB;AAACf,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"wkt-loader.js","names":["_version","require","_parseWkt","_interopRequireDefault","WKTWorkerLoader","name","id","module","version","VERSION","worker","extensions","mimeTypes","category","text","options","wkt","exports","WKTLoader","parse","arrayBuffer","parseWKT","TextDecoder","decode","parseTextSync"],"sources":["../../src/wkt-loader.ts"],"sourcesContent":["import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport parseWKT from './lib/parse-wkt';\n\n/**\n * Well-Known text loader\n */\nexport const WKTWorkerLoader: Loader = {\n name: 'WKT (Well-Known Text)',\n id: 'wkt',\n module: 'wkt',\n version: VERSION,\n worker: true,\n extensions: ['wkt'],\n mimeTypes: ['text/plain'],\n category: 'geometry',\n text: true,\n options: {\n wkt: {}\n }\n};\n\n/**\n * Well-Known text loader\n */\nexport const WKTLoader: LoaderWithParser = {\n ...WKTWorkerLoader,\n parse: async (arrayBuffer) => parseWKT(new TextDecoder().decode(arrayBuffer)),\n parseTextSync: parseWKT\n};\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAKO,MAAMG,eAAuB,GAAG;EACrCC,IAAI,EAAE,uBAAuB;EAC7BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,YAAY,CAAC;EACzBC,QAAQ,EAAE,UAAU;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR;AACF,CAAC;AAACC,OAAA,CAAAb,eAAA,GAAAA,eAAA;AAKK,MAAMc,SAA2B,GAAG;EACzC,GAAGd,eAAe;EAClBe,KAAK,EAAE,MAAOC,WAAW,IAAK,IAAAC,iBAAQ,EAAC,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACH,WAAW,CAAC,CAAC;EAC7EI,aAAa,EAAEH;AACjB,CAAC;AAACJ,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.WKTWriter = void 0;
8
8
  var _version = require("./lib/utils/version");
9
9
  var _encodeWkt = _interopRequireDefault(require("./lib/encode-wkt"));
10
- var WKTWriter = {
10
+ const WKTWriter = {
11
11
  name: 'WKT (Well Known Text)',
12
12
  id: 'wkt',
13
13
  module: 'wkt',
@@ -1 +1 @@
1
- {"version":3,"file":"wkt-writer.js","names":["_version","require","_encodeWkt","_interopRequireDefault","WKTWriter","name","id","module","version","VERSION","extensions","encode","encodeWKT","options","wkt","exports"],"sources":["../../src/wkt-writer.ts"],"sourcesContent":["import type {Writer} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport encodeWKT from './lib/encode-wkt';\n\n/**\n * WKT exporter\n */\nexport const WKTWriter: Writer = {\n name: 'WKT (Well Known Text)',\n id: 'wkt',\n module: 'wkt',\n version: VERSION,\n extensions: ['wkt'],\n // @ts-ignore\n encode: encodeWKT,\n options: {\n wkt: {}\n }\n};\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAKO,IAAMG,SAAiB,GAAG;EAC/BC,IAAI,EAAE,uBAAuB;EAC7BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,UAAU,EAAE,CAAC,KAAK,CAAC;EAEnBC,MAAM,EAAEC,kBAAS;EACjBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR;AACF,CAAC;AAACC,OAAA,CAAAX,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"wkt-writer.js","names":["_version","require","_encodeWkt","_interopRequireDefault","WKTWriter","name","id","module","version","VERSION","extensions","encode","encodeWKT","options","wkt","exports"],"sources":["../../src/wkt-writer.ts"],"sourcesContent":["import type {Writer} from '@loaders.gl/loader-utils';\nimport {VERSION} from './lib/utils/version';\nimport encodeWKT from './lib/encode-wkt';\n\n/**\n * WKT exporter\n */\nexport const WKTWriter: Writer = {\n name: 'WKT (Well Known Text)',\n id: 'wkt',\n module: 'wkt',\n version: VERSION,\n extensions: ['wkt'],\n // @ts-ignore\n encode: encodeWKT,\n options: {\n wkt: {}\n }\n};\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAKO,MAAMG,SAAiB,GAAG;EAC/BC,IAAI,EAAE,uBAAuB;EAC7BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEC,gBAAO;EAChBC,UAAU,EAAE,CAAC,KAAK,CAAC;EAEnBC,MAAM,EAAEC,kBAAS;EACjBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR;AACF,CAAC;AAACC,OAAA,CAAAX,SAAA,GAAAA,SAAA"}
@@ -1,2 +1,2 @@
1
- export const VERSION = typeof "3.4.13" !== 'undefined' ? "3.4.13" : 'latest';
1
+ export const VERSION = typeof "3.4.15" !== 'undefined' ? "3.4.15" : 'latest';
2
2
  //# sourceMappingURL=version.js.map
@@ -184,7 +184,7 @@
184
184
  }
185
185
 
186
186
  // src/lib/utils/version.ts
187
- var VERSION = true ? "3.4.13" : "latest";
187
+ var VERSION = true ? "3.4.15" : "latest";
188
188
 
189
189
  // src/lib/parse-wkt.ts
190
190
  var numberRegexp = /[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loaders.gl/wkt",
3
3
  "description": "Loader and Writer for the WKT (Well Known Text) Format",
4
- "version": "3.4.13",
4
+ "version": "3.4.15",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -35,8 +35,8 @@
35
35
  "fuzzer": "^0.2.1"
36
36
  },
37
37
  "dependencies": {
38
- "@loaders.gl/loader-utils": "3.4.13",
39
- "@loaders.gl/schema": "3.4.13"
38
+ "@loaders.gl/loader-utils": "3.4.15",
39
+ "@loaders.gl/schema": "3.4.15"
40
40
  },
41
- "gitHead": "be8849c02972ce541e01720d29b976f830d6af92"
41
+ "gitHead": "19e941d5805568e449ef9092490d6568a4853298"
42
42
  }