@deck.gl/carto 9.0.40 → 9.1.0-beta.3
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/api/basemap.d.ts +2 -1
- package/dist/api/basemap.d.ts.map +1 -1
- package/dist/api/basemap.js +4 -0
- package/dist/api/basemap.js.map +1 -0
- package/dist/api/fetch-map.d.ts.map +1 -1
- package/dist/api/fetch-map.js +33 -28
- package/dist/api/fetch-map.js.map +1 -0
- package/dist/api/index.d.ts +1 -4
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -2
- package/dist/api/index.js.map +1 -0
- package/dist/api/layer-map.d.ts.map +1 -1
- package/dist/api/layer-map.js +7 -3
- package/dist/api/layer-map.js.map +1 -0
- package/dist/api/parse-map.d.ts.map +1 -1
- package/dist/api/parse-map.js +4 -0
- package/dist/api/parse-map.js.map +1 -0
- package/dist/api/types.d.ts +0 -56
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js +5 -20
- package/dist/api/types.js.map +1 -0
- package/dist/basemap.d.ts +2 -1
- package/dist/basemap.d.ts.map +1 -1
- package/dist/basemap.js +5 -1
- package/dist/basemap.js.map +1 -0
- package/dist/cartoRasterTile-worker.js +147 -18
- package/dist/cartoSpatialTile-worker.js +150 -19
- package/dist/cartoVectorTile-worker.js +151 -19
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -3
- package/dist/constants.js.map +1 -0
- package/dist/dist.dev.js +4262 -3235
- package/dist/index.cjs +263 -555
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +20 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -0
- package/dist/layers/cluster-tile-layer.d.ts +1 -1
- package/dist/layers/cluster-tile-layer.d.ts.map +1 -1
- package/dist/layers/cluster-tile-layer.js +5 -0
- package/dist/layers/cluster-tile-layer.js.map +1 -0
- package/dist/layers/cluster-utils.d.ts.map +1 -1
- package/dist/layers/cluster-utils.js +4 -0
- package/dist/layers/cluster-utils.js.map +1 -0
- package/dist/layers/h3-tile-layer.d.ts +1 -1
- package/dist/layers/h3-tile-layer.d.ts.map +1 -1
- package/dist/layers/h3-tile-layer.js +4 -0
- package/dist/layers/h3-tile-layer.js.map +1 -0
- package/dist/layers/h3-tileset-2d.d.ts.map +1 -1
- package/dist/layers/h3-tileset-2d.js +4 -0
- package/dist/layers/h3-tileset-2d.js.map +1 -0
- package/dist/layers/heatmap-tile-layer.d.ts +1 -1
- package/dist/layers/heatmap-tile-layer.d.ts.map +1 -1
- package/dist/layers/heatmap-tile-layer.js +24 -7
- package/dist/layers/heatmap-tile-layer.js.map +1 -0
- package/dist/layers/heatmap.d.ts +3 -3
- package/dist/layers/heatmap.d.ts.map +1 -1
- package/dist/layers/heatmap.js +70 -36
- package/dist/layers/heatmap.js.map +1 -0
- package/dist/layers/point-label-layer.d.ts.map +1 -1
- package/dist/layers/point-label-layer.js +6 -2
- package/dist/layers/point-label-layer.js.map +1 -0
- package/dist/layers/post-process-utils.d.ts +1 -1
- package/dist/layers/post-process-utils.d.ts.map +1 -1
- package/dist/layers/post-process-utils.js +11 -6
- package/dist/layers/post-process-utils.js.map +1 -0
- package/dist/layers/quadbin-layer.d.ts.map +1 -1
- package/dist/layers/quadbin-layer.js +4 -0
- package/dist/layers/quadbin-layer.js.map +1 -0
- package/dist/layers/quadbin-tile-layer.d.ts +1 -1
- package/dist/layers/quadbin-tile-layer.d.ts.map +1 -1
- package/dist/layers/quadbin-tile-layer.js +4 -0
- package/dist/layers/quadbin-tile-layer.js.map +1 -0
- package/dist/layers/quadbin-tileset-2d.d.ts.map +1 -1
- package/dist/layers/quadbin-tileset-2d.js +4 -0
- package/dist/layers/quadbin-tileset-2d.js.map +1 -0
- package/dist/layers/quadbin-utils.d.ts.map +1 -1
- package/dist/layers/quadbin-utils.js +4 -0
- package/dist/layers/quadbin-utils.js.map +1 -0
- package/dist/layers/raster-layer-vertex.glsl.d.ts +1 -1
- package/dist/layers/raster-layer-vertex.glsl.d.ts.map +1 -1
- package/dist/layers/raster-layer-vertex.glsl.js +21 -25
- package/dist/layers/raster-layer-vertex.glsl.js.map +1 -0
- package/dist/layers/raster-layer.d.ts +6 -6
- package/dist/layers/raster-layer.d.ts.map +1 -1
- package/dist/layers/raster-layer.js +7 -1
- package/dist/layers/raster-layer.js.map +1 -0
- package/dist/layers/raster-tile-layer.d.ts +1 -1
- package/dist/layers/raster-tile-layer.d.ts.map +1 -1
- package/dist/layers/raster-tile-layer.js +4 -0
- package/dist/layers/raster-tile-layer.js.map +1 -0
- package/dist/layers/schema/carto-properties-tile-loader.d.ts.map +1 -1
- package/dist/layers/schema/carto-properties-tile-loader.js +4 -0
- package/dist/layers/schema/carto-properties-tile-loader.js.map +1 -0
- package/dist/layers/schema/carto-properties-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-properties-tile.js +4 -0
- package/dist/layers/schema/carto-properties-tile.js.map +1 -0
- package/dist/layers/schema/carto-raster-tile-loader.d.ts.map +1 -1
- package/dist/layers/schema/carto-raster-tile-loader.js +6 -1
- package/dist/layers/schema/carto-raster-tile-loader.js.map +1 -0
- package/dist/layers/schema/carto-raster-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-raster-tile.js +4 -0
- package/dist/layers/schema/carto-raster-tile.js.map +1 -0
- package/dist/layers/schema/carto-spatial-tile-loader.d.ts.map +1 -1
- package/dist/layers/schema/carto-spatial-tile-loader.js +5 -1
- package/dist/layers/schema/carto-spatial-tile-loader.js.map +1 -0
- package/dist/layers/schema/carto-spatial-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-spatial-tile.js +4 -0
- package/dist/layers/schema/carto-spatial-tile.js.map +1 -0
- package/dist/layers/schema/carto-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-tile.js +4 -0
- package/dist/layers/schema/carto-tile.js.map +1 -0
- package/dist/layers/schema/carto-vector-tile-loader.d.ts.map +1 -1
- package/dist/layers/schema/carto-vector-tile-loader.js +5 -1
- package/dist/layers/schema/carto-vector-tile-loader.js.map +1 -0
- package/dist/layers/schema/fast-pbf.d.ts.map +1 -1
- package/dist/layers/schema/fast-pbf.js +4 -0
- package/dist/layers/schema/fast-pbf.js.map +1 -0
- package/dist/layers/schema/spatialjson-utils.d.ts.map +1 -1
- package/dist/layers/schema/spatialjson-utils.js +4 -0
- package/dist/layers/schema/spatialjson-utils.js.map +1 -0
- package/dist/layers/schema/tile-loader-utils.d.ts.map +1 -1
- package/dist/layers/schema/tile-loader-utils.js +4 -0
- package/dist/layers/schema/tile-loader-utils.js.map +1 -0
- package/dist/layers/spatial-index-tile-layer.d.ts.map +1 -1
- package/dist/layers/spatial-index-tile-layer.js +4 -0
- package/dist/layers/spatial-index-tile-layer.js.map +1 -0
- package/dist/layers/utils.d.ts +2 -2
- package/dist/layers/utils.d.ts.map +1 -1
- package/dist/layers/utils.js +4 -0
- package/dist/layers/utils.js.map +1 -0
- package/dist/layers/vector-tile-layer.d.ts +1 -1
- package/dist/layers/vector-tile-layer.d.ts.map +1 -1
- package/dist/layers/vector-tile-layer.js +4 -0
- package/dist/layers/vector-tile-layer.js.map +1 -0
- package/dist/style/color-bins-style.d.ts.map +1 -1
- package/dist/style/color-bins-style.js +4 -0
- package/dist/style/color-bins-style.js.map +1 -0
- package/dist/style/color-categories-style.d.ts.map +1 -1
- package/dist/style/color-categories-style.js +4 -0
- package/dist/style/color-categories-style.js.map +1 -0
- package/dist/style/color-continuous-style.d.ts.map +1 -1
- package/dist/style/color-continuous-style.js +4 -0
- package/dist/style/color-continuous-style.js.map +1 -0
- package/dist/style/palette.d.ts.map +1 -1
- package/dist/style/palette.js +4 -0
- package/dist/style/palette.js.map +1 -0
- package/dist/style/utils.d.ts.map +1 -1
- package/dist/style/utils.js +4 -0
- package/dist/style/utils.js.map +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -0
- package/dist/workers/cartoRasterTile.js +4 -0
- package/dist/workers/cartoRasterTile.js.map +1 -0
- package/dist/workers/cartoSpatialTile.js +4 -0
- package/dist/workers/cartoSpatialTile.js.map +1 -0
- package/dist/workers/cartoVectorTile.js +4 -0
- package/dist/workers/cartoVectorTile.js.map +1 -0
- package/dist.min.js +113 -73
- package/package.json +13 -11
- package/src/api/basemap.ts +6 -1
- package/src/api/fetch-map.ts +56 -61
- package/src/api/index.ts +5 -13
- package/src/api/layer-map.ts +7 -3
- package/src/api/parse-map.ts +4 -0
- package/src/api/types.ts +4 -75
- package/src/basemap.ts +6 -2
- package/src/constants.ts +4 -4
- package/src/index.ts +19 -18
- package/src/layers/cluster-tile-layer.ts +6 -1
- package/src/layers/cluster-utils.ts +4 -0
- package/src/layers/h3-tile-layer.ts +5 -1
- package/src/layers/h3-tileset-2d.ts +4 -0
- package/src/layers/heatmap-tile-layer.ts +29 -8
- package/src/layers/heatmap.ts +8 -2
- package/src/layers/point-label-layer.ts +6 -2
- package/src/layers/post-process-utils.ts +11 -6
- package/src/layers/quadbin-layer.ts +4 -0
- package/src/layers/quadbin-tile-layer.ts +5 -1
- package/src/layers/quadbin-tileset-2d.ts +4 -0
- package/src/layers/quadbin-utils.ts +4 -0
- package/src/layers/raster-layer-vertex.glsl.ts +21 -27
- package/src/layers/raster-layer.ts +7 -1
- package/src/layers/raster-tile-layer.ts +6 -2
- package/src/layers/schema/carto-properties-tile-loader.ts +4 -0
- package/src/layers/schema/carto-properties-tile.ts +4 -0
- package/src/layers/schema/carto-raster-tile-loader.ts +7 -1
- package/src/layers/schema/carto-raster-tile.ts +4 -0
- package/src/layers/schema/carto-spatial-tile-loader.ts +4 -0
- package/src/layers/schema/carto-spatial-tile.ts +4 -0
- package/src/layers/schema/carto-tile.ts +4 -0
- package/src/layers/schema/carto-vector-tile-loader.ts +4 -0
- package/src/layers/schema/fast-pbf.ts +4 -0
- package/src/layers/schema/spatialjson-utils.ts +4 -0
- package/src/layers/schema/tile-loader-utils.ts +4 -0
- package/src/layers/spatial-index-tile-layer.ts +4 -0
- package/src/layers/utils.ts +5 -1
- package/src/layers/vector-tile-layer.ts +5 -1
- package/src/style/color-bins-style.ts +4 -0
- package/src/style/color-categories-style.ts +4 -0
- package/src/style/color-continuous-style.ts +4 -0
- package/src/style/palette.ts +4 -0
- package/src/style/utils.ts +4 -0
- package/src/utils.ts +4 -0
- package/src/workers/cartoRasterTile.ts +4 -0
- package/src/workers/cartoSpatialTile.ts +4 -0
- package/src/workers/cartoVectorTile.ts +4 -0
- package/dist/api/carto-api-error.d.ts +0 -19
- package/dist/api/carto-api-error.d.ts.map +0 -1
- package/dist/api/carto-api-error.js +0 -48
- package/dist/api/common.d.ts +0 -5
- package/dist/api/common.d.ts.map +0 -1
- package/dist/api/common.js +0 -5
- package/dist/api/endpoints.d.ts +0 -23
- package/dist/api/endpoints.d.ts.map +0 -1
- package/dist/api/endpoints.js +0 -22
- package/dist/api/query.d.ts +0 -4
- package/dist/api/query.d.ts.map +0 -1
- package/dist/api/query.js +0 -26
- package/dist/api/request-with-parameters.d.ts +0 -9
- package/dist/api/request-with-parameters.d.ts.map +0 -1
- package/dist/api/request-with-parameters.js +0 -86
- package/dist/sources/base-source.d.ts +0 -5
- package/dist/sources/base-source.d.ts.map +0 -1
- package/dist/sources/base-source.js +0 -60
- package/dist/sources/boundary-query-source.d.ts +0 -10
- package/dist/sources/boundary-query-source.d.ts.map +0 -1
- package/dist/sources/boundary-query-source.js +0 -18
- package/dist/sources/boundary-table-source.d.ts +0 -8
- package/dist/sources/boundary-table-source.d.ts.map +0 -1
- package/dist/sources/boundary-table-source.js +0 -15
- package/dist/sources/h3-query-source.d.ts +0 -4
- package/dist/sources/h3-query-source.d.ts.map +0 -1
- package/dist/sources/h3-query-source.js +0 -22
- package/dist/sources/h3-table-source.d.ts +0 -4
- package/dist/sources/h3-table-source.d.ts.map +0 -1
- package/dist/sources/h3-table-source.js +0 -19
- package/dist/sources/h3-tileset-source.d.ts +0 -4
- package/dist/sources/h3-tileset-source.d.ts.map +0 -1
- package/dist/sources/h3-tileset-source.js +0 -6
- package/dist/sources/index.d.ts +0 -28
- package/dist/sources/index.d.ts.map +0 -1
- package/dist/sources/index.js +0 -13
- package/dist/sources/quadbin-query-source.d.ts +0 -4
- package/dist/sources/quadbin-query-source.d.ts.map +0 -1
- package/dist/sources/quadbin-query-source.js +0 -22
- package/dist/sources/quadbin-table-source.d.ts +0 -4
- package/dist/sources/quadbin-table-source.d.ts.map +0 -1
- package/dist/sources/quadbin-table-source.js +0 -19
- package/dist/sources/quadbin-tileset-source.d.ts +0 -4
- package/dist/sources/quadbin-tileset-source.d.ts.map +0 -1
- package/dist/sources/quadbin-tileset-source.js +0 -6
- package/dist/sources/raster-source.d.ts +0 -4
- package/dist/sources/raster-source.d.ts.map +0 -1
- package/dist/sources/raster-source.js +0 -9
- package/dist/sources/types.d.ts +0 -219
- package/dist/sources/types.d.ts.map +0 -1
- package/dist/sources/types.js +0 -1
- package/dist/sources/vector-query-source.d.ts +0 -4
- package/dist/sources/vector-query-source.d.ts.map +0 -1
- package/dist/sources/vector-query-source.js +0 -22
- package/dist/sources/vector-table-source.d.ts +0 -4
- package/dist/sources/vector-table-source.d.ts.map +0 -1
- package/dist/sources/vector-table-source.js +0 -19
- package/dist/sources/vector-tileset-source.d.ts +0 -4
- package/dist/sources/vector-tileset-source.d.ts.map +0 -1
- package/dist/sources/vector-tileset-source.js +0 -6
- package/src/api/carto-api-error.ts +0 -68
- package/src/api/common.ts +0 -6
- package/src/api/endpoints.ts +0 -69
- package/src/api/query.ts +0 -42
- package/src/api/request-with-parameters.ts +0 -117
- package/src/sources/base-source.ts +0 -79
- package/src/sources/boundary-query-source.ts +0 -39
- package/src/sources/boundary-table-source.ts +0 -33
- package/src/sources/h3-query-source.ts +0 -55
- package/src/sources/h3-table-source.ts +0 -51
- package/src/sources/h3-tileset-source.ts +0 -14
- package/src/sources/index.ts +0 -45
- package/src/sources/quadbin-query-source.ts +0 -56
- package/src/sources/quadbin-table-source.ts +0 -52
- package/src/sources/quadbin-tileset-source.ts +0 -14
- package/src/sources/raster-source.ts +0 -17
- package/src/sources/types.ts +0 -231
- package/src/sources/vector-query-source.ts +0 -57
- package/src/sources/vector-table-source.ts +0 -51
- package/src/sources/vector-tileset-source.ts +0 -14
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
|
@@ -68,6 +72,7 @@
|
|
|
68
72
|
dest[dest_offs + i] = src[src_offs + i];
|
|
69
73
|
}
|
|
70
74
|
},
|
|
75
|
+
// Join array of chunks to single array.
|
|
71
76
|
flattenChunks: function(chunks) {
|
|
72
77
|
var i, l, len, pos, chunk, result;
|
|
73
78
|
len = 0;
|
|
@@ -90,6 +95,7 @@
|
|
|
90
95
|
dest[dest_offs + i] = src[src_offs + i];
|
|
91
96
|
}
|
|
92
97
|
},
|
|
98
|
+
// Join array of chunks to single array.
|
|
93
99
|
flattenChunks: function(chunks) {
|
|
94
100
|
return [].concat.apply([], chunks);
|
|
95
101
|
}
|
|
@@ -144,9 +150,18 @@
|
|
|
144
150
|
var REP_3_6 = 16;
|
|
145
151
|
var REPZ_3_10 = 17;
|
|
146
152
|
var REPZ_11_138 = 18;
|
|
147
|
-
var extra_lbits =
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
var extra_lbits = (
|
|
154
|
+
/* extra bits for each length code */
|
|
155
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
|
|
156
|
+
);
|
|
157
|
+
var extra_dbits = (
|
|
158
|
+
/* extra bits for each distance code */
|
|
159
|
+
[0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
|
|
160
|
+
);
|
|
161
|
+
var extra_blbits = (
|
|
162
|
+
/* extra bits for each bit length code */
|
|
163
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
164
|
+
);
|
|
150
165
|
var bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
151
166
|
var DIST_CODE_LEN = 512;
|
|
152
167
|
var static_ltree = new Array((L_CODES + 2) * 2);
|
|
@@ -196,7 +211,12 @@
|
|
|
196
211
|
}
|
|
197
212
|
}
|
|
198
213
|
function send_code(s, c, tree) {
|
|
199
|
-
send_bits(
|
|
214
|
+
send_bits(
|
|
215
|
+
s,
|
|
216
|
+
tree[c * 2],
|
|
217
|
+
tree[c * 2 + 1]
|
|
218
|
+
/*.Len*/
|
|
219
|
+
);
|
|
200
220
|
}
|
|
201
221
|
function bi_reverse(code, len) {
|
|
202
222
|
var res = 0;
|
|
@@ -485,19 +505,44 @@
|
|
|
485
505
|
}
|
|
486
506
|
node = elems;
|
|
487
507
|
do {
|
|
488
|
-
n = s.heap[
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
508
|
+
n = s.heap[
|
|
509
|
+
1
|
|
510
|
+
/*SMALLEST*/
|
|
511
|
+
];
|
|
512
|
+
s.heap[
|
|
513
|
+
1
|
|
514
|
+
/*SMALLEST*/
|
|
515
|
+
] = s.heap[s.heap_len--];
|
|
516
|
+
pqdownheap(
|
|
517
|
+
s,
|
|
518
|
+
tree,
|
|
519
|
+
1
|
|
520
|
+
/*SMALLEST*/
|
|
521
|
+
);
|
|
522
|
+
m = s.heap[
|
|
523
|
+
1
|
|
524
|
+
/*SMALLEST*/
|
|
525
|
+
];
|
|
492
526
|
s.heap[--s.heap_max] = n;
|
|
493
527
|
s.heap[--s.heap_max] = m;
|
|
494
528
|
tree[node * 2] = tree[n * 2] + tree[m * 2];
|
|
495
529
|
s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;
|
|
496
530
|
tree[n * 2 + 1] = tree[m * 2 + 1] = node;
|
|
497
|
-
s.heap[
|
|
498
|
-
|
|
531
|
+
s.heap[
|
|
532
|
+
1
|
|
533
|
+
/*SMALLEST*/
|
|
534
|
+
] = node++;
|
|
535
|
+
pqdownheap(
|
|
536
|
+
s,
|
|
537
|
+
tree,
|
|
538
|
+
1
|
|
539
|
+
/*SMALLEST*/
|
|
540
|
+
);
|
|
499
541
|
} while (s.heap_len >= 2);
|
|
500
|
-
s.heap[--s.heap_max] = s.heap[
|
|
542
|
+
s.heap[--s.heap_max] = s.heap[
|
|
543
|
+
1
|
|
544
|
+
/*SMALLEST*/
|
|
545
|
+
];
|
|
501
546
|
gen_bitlen(s, desc);
|
|
502
547
|
gen_codes(tree, max_code, s.bl_count);
|
|
503
548
|
}
|
|
@@ -770,14 +815,23 @@
|
|
|
770
815
|
"use strict";
|
|
771
816
|
module.exports = {
|
|
772
817
|
2: "need dictionary",
|
|
818
|
+
/* Z_NEED_DICT 2 */
|
|
773
819
|
1: "stream end",
|
|
820
|
+
/* Z_STREAM_END 1 */
|
|
774
821
|
0: "",
|
|
822
|
+
/* Z_OK 0 */
|
|
775
823
|
"-1": "file error",
|
|
824
|
+
/* Z_ERRNO (-1) */
|
|
776
825
|
"-2": "stream error",
|
|
826
|
+
/* Z_STREAM_ERROR (-2) */
|
|
777
827
|
"-3": "data error",
|
|
828
|
+
/* Z_DATA_ERROR (-3) */
|
|
778
829
|
"-4": "insufficient memory",
|
|
830
|
+
/* Z_MEM_ERROR (-4) */
|
|
779
831
|
"-5": "buffer error",
|
|
832
|
+
/* Z_BUF_ERROR (-5) */
|
|
780
833
|
"-6": "incompatible version"
|
|
834
|
+
/* Z_VERSION_ERROR (-6) */
|
|
781
835
|
};
|
|
782
836
|
}
|
|
783
837
|
});
|
|
@@ -1303,16 +1357,27 @@
|
|
|
1303
1357
|
}
|
|
1304
1358
|
var configuration_table;
|
|
1305
1359
|
configuration_table = [
|
|
1360
|
+
/* good lazy nice chain */
|
|
1306
1361
|
new Config(0, 0, 0, 0, deflate_stored),
|
|
1362
|
+
/* 0 store only */
|
|
1307
1363
|
new Config(4, 4, 8, 4, deflate_fast),
|
|
1364
|
+
/* 1 max speed, no lazy matches */
|
|
1308
1365
|
new Config(4, 5, 16, 8, deflate_fast),
|
|
1366
|
+
/* 2 */
|
|
1309
1367
|
new Config(4, 6, 32, 32, deflate_fast),
|
|
1368
|
+
/* 3 */
|
|
1310
1369
|
new Config(4, 4, 16, 16, deflate_slow),
|
|
1370
|
+
/* 4 lazy matches */
|
|
1311
1371
|
new Config(8, 16, 32, 32, deflate_slow),
|
|
1372
|
+
/* 5 */
|
|
1312
1373
|
new Config(8, 16, 128, 128, deflate_slow),
|
|
1374
|
+
/* 6 */
|
|
1313
1375
|
new Config(8, 32, 128, 256, deflate_slow),
|
|
1376
|
+
/* 7 */
|
|
1314
1377
|
new Config(32, 128, 258, 1024, deflate_slow),
|
|
1378
|
+
/* 8 */
|
|
1315
1379
|
new Config(32, 258, 258, 4096, deflate_slow)
|
|
1380
|
+
/* 9 max compression */
|
|
1316
1381
|
];
|
|
1317
1382
|
function lm_init(s) {
|
|
1318
1383
|
s.window_size = 2 * s.w_size;
|
|
@@ -2387,6 +2452,7 @@
|
|
|
2387
2452
|
var LENS = 1;
|
|
2388
2453
|
var DISTS = 2;
|
|
2389
2454
|
var lbase = [
|
|
2455
|
+
/* Length codes 257..285 base */
|
|
2390
2456
|
3,
|
|
2391
2457
|
4,
|
|
2392
2458
|
5,
|
|
@@ -2420,6 +2486,7 @@
|
|
|
2420
2486
|
0
|
|
2421
2487
|
];
|
|
2422
2488
|
var lext = [
|
|
2489
|
+
/* Length codes 257..285 extra */
|
|
2423
2490
|
16,
|
|
2424
2491
|
16,
|
|
2425
2492
|
16,
|
|
@@ -2453,6 +2520,7 @@
|
|
|
2453
2520
|
78
|
|
2454
2521
|
];
|
|
2455
2522
|
var dbase = [
|
|
2523
|
+
/* Distance codes 0..29 base */
|
|
2456
2524
|
1,
|
|
2457
2525
|
2,
|
|
2458
2526
|
3,
|
|
@@ -2487,6 +2555,7 @@
|
|
|
2487
2555
|
0
|
|
2488
2556
|
];
|
|
2489
2557
|
var dext = [
|
|
2558
|
+
/* Distance codes 0..29 extra */
|
|
2490
2559
|
16,
|
|
2491
2560
|
16,
|
|
2492
2561
|
16,
|
|
@@ -2955,7 +3024,10 @@
|
|
|
2955
3024
|
var hbuf = new utils.Buf8(4);
|
|
2956
3025
|
var opts;
|
|
2957
3026
|
var n;
|
|
2958
|
-
var order =
|
|
3027
|
+
var order = (
|
|
3028
|
+
/* permutation of code lengths */
|
|
3029
|
+
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
3030
|
+
);
|
|
2959
3031
|
if (!strm || !strm.state || !strm.output || !strm.input && strm.avail_in !== 0) {
|
|
2960
3032
|
return Z_STREAM_ERROR;
|
|
2961
3033
|
}
|
|
@@ -3004,7 +3076,8 @@
|
|
|
3004
3076
|
if (state.head) {
|
|
3005
3077
|
state.head.done = false;
|
|
3006
3078
|
}
|
|
3007
|
-
if (!(state.wrap & 1) ||
|
|
3079
|
+
if (!(state.wrap & 1) || /* check if zlib header allowed */
|
|
3080
|
+
(((hold & 255) << 8) + (hold >> 8)) % 31) {
|
|
3008
3081
|
strm.msg = "incorrect header check";
|
|
3009
3082
|
state.mode = BAD;
|
|
3010
3083
|
break;
|
|
@@ -3145,7 +3218,10 @@
|
|
|
3145
3218
|
state.head.extra,
|
|
3146
3219
|
input,
|
|
3147
3220
|
next,
|
|
3221
|
+
// extra field is limited to 65536 bytes
|
|
3222
|
+
// - no need for additional size check
|
|
3148
3223
|
copy,
|
|
3224
|
+
/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
|
|
3149
3225
|
len
|
|
3150
3226
|
);
|
|
3151
3227
|
}
|
|
@@ -3760,7 +3836,8 @@
|
|
|
3760
3836
|
strm.total_out += _out;
|
|
3761
3837
|
state.total += _out;
|
|
3762
3838
|
if (_out) {
|
|
3763
|
-
strm.adler = state.check =
|
|
3839
|
+
strm.adler = state.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
3840
|
+
state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out);
|
|
3764
3841
|
}
|
|
3765
3842
|
_out = left;
|
|
3766
3843
|
if ((state.flags ? hold : zswap32(hold)) !== state.check) {
|
|
@@ -3822,7 +3899,8 @@
|
|
|
3822
3899
|
strm.total_out += _out;
|
|
3823
3900
|
state.total += _out;
|
|
3824
3901
|
if (state.wrap && _out) {
|
|
3825
|
-
strm.adler = state.check =
|
|
3902
|
+
strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
3903
|
+
state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out);
|
|
3826
3904
|
}
|
|
3827
3905
|
strm.data_type = state.bits + (state.last ? 64 : 0) + (state.mode === TYPE ? 128 : 0) + (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
|
|
3828
3906
|
if ((_in === 0 && _out === 0 || flush === Z_FINISH) && ret === Z_OK) {
|
|
@@ -3899,6 +3977,7 @@
|
|
|
3899
3977
|
"../../node_modules/pako/lib/zlib/constants.js"(exports, module) {
|
|
3900
3978
|
"use strict";
|
|
3901
3979
|
module.exports = {
|
|
3980
|
+
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
3902
3981
|
Z_NO_FLUSH: 0,
|
|
3903
3982
|
Z_PARTIAL_FLUSH: 1,
|
|
3904
3983
|
Z_SYNC_FLUSH: 2,
|
|
@@ -3906,13 +3985,19 @@
|
|
|
3906
3985
|
Z_FINISH: 4,
|
|
3907
3986
|
Z_BLOCK: 5,
|
|
3908
3987
|
Z_TREES: 6,
|
|
3988
|
+
/* Return codes for the compression/decompression functions. Negative values
|
|
3989
|
+
* are errors, positive values are used for special but normal events.
|
|
3990
|
+
*/
|
|
3909
3991
|
Z_OK: 0,
|
|
3910
3992
|
Z_STREAM_END: 1,
|
|
3911
3993
|
Z_NEED_DICT: 2,
|
|
3912
3994
|
Z_ERRNO: -1,
|
|
3913
3995
|
Z_STREAM_ERROR: -2,
|
|
3914
3996
|
Z_DATA_ERROR: -3,
|
|
3997
|
+
//Z_MEM_ERROR: -4,
|
|
3915
3998
|
Z_BUF_ERROR: -5,
|
|
3999
|
+
//Z_VERSION_ERROR: -6,
|
|
4000
|
+
/* compression levels */
|
|
3916
4001
|
Z_NO_COMPRESSION: 0,
|
|
3917
4002
|
Z_BEST_SPEED: 1,
|
|
3918
4003
|
Z_BEST_COMPRESSION: 9,
|
|
@@ -3922,10 +4007,14 @@
|
|
|
3922
4007
|
Z_RLE: 3,
|
|
3923
4008
|
Z_FIXED: 4,
|
|
3924
4009
|
Z_DEFAULT_STRATEGY: 0,
|
|
4010
|
+
/* Possible values of the data_type field (though see inflate()) */
|
|
3925
4011
|
Z_BINARY: 0,
|
|
3926
4012
|
Z_TEXT: 1,
|
|
4013
|
+
//Z_ASCII: 1, // = Z_TEXT (deprecated)
|
|
3927
4014
|
Z_UNKNOWN: 2,
|
|
4015
|
+
/* The deflate compression method */
|
|
3928
4016
|
Z_DEFLATED: 8
|
|
4017
|
+
//Z_NULL: null // Use -1 or null inline, depending on var type
|
|
3929
4018
|
};
|
|
3930
4019
|
}
|
|
3931
4020
|
});
|
|
@@ -4247,11 +4336,12 @@
|
|
|
4247
4336
|
var SHIFT_LEFT_32 = (1 << 16) * (1 << 16);
|
|
4248
4337
|
var SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32;
|
|
4249
4338
|
var TEXT_DECODER_MIN_LENGTH = 12;
|
|
4250
|
-
var utf8TextDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder("
|
|
4339
|
+
var utf8TextDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder("utf-8");
|
|
4251
4340
|
Pbf.prototype = {
|
|
4252
4341
|
destroy: function() {
|
|
4253
4342
|
this.buf = null;
|
|
4254
4343
|
},
|
|
4344
|
+
// === READING =================================================================
|
|
4255
4345
|
readFields: function(readField, result, end) {
|
|
4256
4346
|
end = end || this.length;
|
|
4257
4347
|
while (this.pos < end) {
|
|
@@ -4276,6 +4366,7 @@
|
|
|
4276
4366
|
this.pos += 4;
|
|
4277
4367
|
return val;
|
|
4278
4368
|
},
|
|
4369
|
+
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
4279
4370
|
readFixed64: function() {
|
|
4280
4371
|
var val = readUInt32(this.buf, this.pos) + readUInt32(this.buf, this.pos + 4) * SHIFT_LEFT_32;
|
|
4281
4372
|
this.pos += 8;
|
|
@@ -4342,6 +4433,7 @@
|
|
|
4342
4433
|
this.pos = end;
|
|
4343
4434
|
return buffer;
|
|
4344
4435
|
},
|
|
4436
|
+
// verbose for performance reasons; doesn't affect gzipped size
|
|
4345
4437
|
readPackedVarint: function(arr, isSigned) {
|
|
4346
4438
|
if (this.type !== Pbf.Bytes)
|
|
4347
4439
|
return arr.push(this.readVarint(isSigned));
|
|
@@ -4437,6 +4529,7 @@
|
|
|
4437
4529
|
else
|
|
4438
4530
|
throw new Error("Unimplemented type: " + type);
|
|
4439
4531
|
},
|
|
4532
|
+
// === WRITING =================================================================
|
|
4440
4533
|
writeTag: function(tag, type) {
|
|
4441
4534
|
this.writeVarint(tag << 3 | type);
|
|
4442
4535
|
},
|
|
@@ -5140,7 +5233,9 @@
|
|
|
5140
5233
|
for (var j = 0, len = ring.length, k = len - 1; j < len; k = j++) {
|
|
5141
5234
|
var m = (j + 1) % len;
|
|
5142
5235
|
var y = ring[j][1];
|
|
5143
|
-
if ((y > ring[k][1] || y > ring[m][1]) &&
|
|
5236
|
+
if ((y > ring[k][1] || y > ring[m][1]) && // not local minimum
|
|
5237
|
+
(y < ring[k][1] || y < ring[m][1]) && // not local maximum
|
|
5238
|
+
y !== ring[m][1])
|
|
5144
5239
|
intersections.push(ring[j]);
|
|
5145
5240
|
}
|
|
5146
5241
|
}
|
|
@@ -5218,7 +5313,10 @@
|
|
|
5218
5313
|
var window_ = globals.window || globals.self || globals.global || {};
|
|
5219
5314
|
var global_ = globals.global || globals.self || globals.window || {};
|
|
5220
5315
|
var document_ = globals.document || {};
|
|
5221
|
-
var isBrowser =
|
|
5316
|
+
var isBrowser = (
|
|
5317
|
+
// @ts-ignore process does not exist on browser
|
|
5318
|
+
Boolean(typeof process !== "object" || String(process) !== "[object process]" || process.browser)
|
|
5319
|
+
);
|
|
5222
5320
|
var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
5223
5321
|
var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
5224
5322
|
|
|
@@ -5273,9 +5371,13 @@
|
|
|
5273
5371
|
}
|
|
5274
5372
|
var onMessageWrapperMap = /* @__PURE__ */ new Map();
|
|
5275
5373
|
var WorkerBody = class {
|
|
5374
|
+
/** Check that we are actually in a worker thread */
|
|
5276
5375
|
static async inWorkerThread() {
|
|
5277
5376
|
return typeof self !== "undefined" || Boolean(await getParentPort());
|
|
5278
5377
|
}
|
|
5378
|
+
/*
|
|
5379
|
+
* (type: WorkerMessageType, payload: WorkerMessagePayload) => any
|
|
5380
|
+
*/
|
|
5279
5381
|
static set onmessage(onMessage) {
|
|
5280
5382
|
async function handleMessage(message) {
|
|
5281
5383
|
const parentPort2 = await getParentPort();
|
|
@@ -5322,6 +5424,11 @@
|
|
|
5322
5424
|
globalThis.removeEventListener("message", onMessageWrapper);
|
|
5323
5425
|
}
|
|
5324
5426
|
}
|
|
5427
|
+
/**
|
|
5428
|
+
* Send a message from a worker to creating thread (main thread)
|
|
5429
|
+
* @param type
|
|
5430
|
+
* @param payload
|
|
5431
|
+
*/
|
|
5325
5432
|
static async postMessage(type, payload) {
|
|
5326
5433
|
const data = { source: "loaders.gl", type, payload };
|
|
5327
5434
|
const transferList = getTransferList(payload);
|
|
@@ -5353,6 +5460,7 @@
|
|
|
5353
5460
|
loader,
|
|
5354
5461
|
arrayBuffer: input,
|
|
5355
5462
|
options,
|
|
5463
|
+
// @ts-expect-error fetch missing
|
|
5356
5464
|
context: {
|
|
5357
5465
|
...context,
|
|
5358
5466
|
_parse: parseOnMainThread
|
|
@@ -5482,32 +5590,40 @@
|
|
|
5482
5590
|
this.compressBatches = this.compressBatches.bind(this);
|
|
5483
5591
|
this.decompressBatches = this.decompressBatches.bind(this);
|
|
5484
5592
|
}
|
|
5593
|
+
/** Preloads any dynamic libraries. May enable sync functions */
|
|
5485
5594
|
async preload(modules = {}) {
|
|
5486
5595
|
registerJSModules(modules);
|
|
5487
5596
|
return;
|
|
5488
5597
|
}
|
|
5598
|
+
/** Asynchronously compress data */
|
|
5489
5599
|
async compress(input) {
|
|
5490
5600
|
await this.preload();
|
|
5491
5601
|
return this.compressSync(input);
|
|
5492
5602
|
}
|
|
5603
|
+
/** Asynchronously decompress data */
|
|
5493
5604
|
async decompress(input, size) {
|
|
5494
5605
|
await this.preload();
|
|
5495
5606
|
return this.decompressSync(input, size);
|
|
5496
5607
|
}
|
|
5608
|
+
/** Synchronously compress data */
|
|
5497
5609
|
compressSync(input) {
|
|
5498
5610
|
throw new Error(`${this.name}: sync compression not supported`);
|
|
5499
5611
|
}
|
|
5612
|
+
/** Synchronously compress data */
|
|
5500
5613
|
decompressSync(input, size) {
|
|
5501
5614
|
throw new Error(`${this.name}: sync decompression not supported`);
|
|
5502
5615
|
}
|
|
5616
|
+
/** Compress batches */
|
|
5503
5617
|
async *compressBatches(asyncIterator) {
|
|
5504
5618
|
const input = await this.concatenate(asyncIterator);
|
|
5505
5619
|
yield this.compress(input);
|
|
5506
5620
|
}
|
|
5621
|
+
/** Decompress batches */
|
|
5507
5622
|
async *decompressBatches(asyncIterator) {
|
|
5508
5623
|
const input = await this.concatenate(asyncIterator);
|
|
5509
5624
|
yield this.decompress(input);
|
|
5510
5625
|
}
|
|
5626
|
+
// HELPERS
|
|
5511
5627
|
concatenate(asyncIterator) {
|
|
5512
5628
|
return concatenateArrayBuffersAsync(asyncIterator);
|
|
5513
5629
|
}
|
|
@@ -5609,16 +5725,26 @@
|
|
|
5609
5725
|
this._chunks = [];
|
|
5610
5726
|
return chunks;
|
|
5611
5727
|
}
|
|
5728
|
+
// TODO - For some reason we don't get the error message from pako in _onEnd?
|
|
5612
5729
|
_getError(code = 0) {
|
|
5613
5730
|
const MESSAGES = {
|
|
5731
|
+
/* Z_NEED_DICT 2 */
|
|
5614
5732
|
2: "need dictionary",
|
|
5733
|
+
/* Z_STREAM_END 1 */
|
|
5615
5734
|
1: "stream end",
|
|
5735
|
+
/* Z_OK 0 */
|
|
5616
5736
|
0: "",
|
|
5737
|
+
/* Z_ERRNO (-1) */
|
|
5617
5738
|
"-1": "file error",
|
|
5739
|
+
/* Z_STREAM_ERROR (-2) */
|
|
5618
5740
|
"-2": "stream error",
|
|
5741
|
+
/* Z_DATA_ERROR (-3) */
|
|
5619
5742
|
"-3": "data error",
|
|
5743
|
+
/* Z_MEM_ERROR (-4) */
|
|
5620
5744
|
"-4": "insufficient memory",
|
|
5745
|
+
/* Z_BUF_ERROR (-5) */
|
|
5621
5746
|
"-5": "buffer error",
|
|
5747
|
+
/* Z_VERSION_ERROR (-6) */
|
|
5622
5748
|
"-6": "incompatible version"
|
|
5623
5749
|
};
|
|
5624
5750
|
return `${this.name}: ${MESSAGES[code]}`;
|
|
@@ -5772,7 +5898,7 @@
|
|
|
5772
5898
|
}
|
|
5773
5899
|
|
|
5774
5900
|
// src/layers/schema/carto-spatial-tile-loader.ts
|
|
5775
|
-
var VERSION = true ? "9.0.
|
|
5901
|
+
var VERSION = true ? "9.1.0-beta.3" : "latest";
|
|
5776
5902
|
var id = "cartoSpatialTile";
|
|
5777
5903
|
var DEFAULT_OPTIONS = {
|
|
5778
5904
|
cartoSpatialTile: {
|
|
@@ -5807,3 +5933,8 @@
|
|
|
5807
5933
|
// src/workers/cartoSpatialTile.ts
|
|
5808
5934
|
createLoaderWorker(carto_spatial_tile_loader_default);
|
|
5809
5935
|
})();
|
|
5936
|
+
/*! Bundled license information:
|
|
5937
|
+
|
|
5938
|
+
ieee754/index.js:
|
|
5939
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
5940
|
+
*/
|