@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
|
));
|
|
@@ -342,7 +346,10 @@
|
|
|
342
346
|
return (cx - px) * (ay - py) >= (ax - px) * (cy - py) && (ax - px) * (by - py) >= (bx - px) * (ay - py) && (bx - px) * (cy - py) >= (cx - px) * (by - py);
|
|
343
347
|
}
|
|
344
348
|
function isValidDiagonal(a, b) {
|
|
345
|
-
return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) &&
|
|
349
|
+
return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && // dones't intersect other edges
|
|
350
|
+
(locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && // locally visible
|
|
351
|
+
(area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors
|
|
352
|
+
equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0);
|
|
346
353
|
}
|
|
347
354
|
function area(p, q, r) {
|
|
348
355
|
return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);
|
|
@@ -531,6 +538,7 @@
|
|
|
531
538
|
dest[dest_offs + i] = src[src_offs + i];
|
|
532
539
|
}
|
|
533
540
|
},
|
|
541
|
+
// Join array of chunks to single array.
|
|
534
542
|
flattenChunks: function(chunks) {
|
|
535
543
|
var i, l, len, pos, chunk, result;
|
|
536
544
|
len = 0;
|
|
@@ -553,6 +561,7 @@
|
|
|
553
561
|
dest[dest_offs + i] = src[src_offs + i];
|
|
554
562
|
}
|
|
555
563
|
},
|
|
564
|
+
// Join array of chunks to single array.
|
|
556
565
|
flattenChunks: function(chunks) {
|
|
557
566
|
return [].concat.apply([], chunks);
|
|
558
567
|
}
|
|
@@ -607,9 +616,18 @@
|
|
|
607
616
|
var REP_3_6 = 16;
|
|
608
617
|
var REPZ_3_10 = 17;
|
|
609
618
|
var REPZ_11_138 = 18;
|
|
610
|
-
var extra_lbits =
|
|
611
|
-
|
|
612
|
-
|
|
619
|
+
var extra_lbits = (
|
|
620
|
+
/* extra bits for each length code */
|
|
621
|
+
[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]
|
|
622
|
+
);
|
|
623
|
+
var extra_dbits = (
|
|
624
|
+
/* extra bits for each distance code */
|
|
625
|
+
[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]
|
|
626
|
+
);
|
|
627
|
+
var extra_blbits = (
|
|
628
|
+
/* extra bits for each bit length code */
|
|
629
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
630
|
+
);
|
|
613
631
|
var bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
614
632
|
var DIST_CODE_LEN = 512;
|
|
615
633
|
var static_ltree = new Array((L_CODES + 2) * 2);
|
|
@@ -659,7 +677,12 @@
|
|
|
659
677
|
}
|
|
660
678
|
}
|
|
661
679
|
function send_code(s, c, tree) {
|
|
662
|
-
send_bits(
|
|
680
|
+
send_bits(
|
|
681
|
+
s,
|
|
682
|
+
tree[c * 2],
|
|
683
|
+
tree[c * 2 + 1]
|
|
684
|
+
/*.Len*/
|
|
685
|
+
);
|
|
663
686
|
}
|
|
664
687
|
function bi_reverse(code, len) {
|
|
665
688
|
var res = 0;
|
|
@@ -948,19 +971,44 @@
|
|
|
948
971
|
}
|
|
949
972
|
node = elems;
|
|
950
973
|
do {
|
|
951
|
-
n = s.heap[
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
974
|
+
n = s.heap[
|
|
975
|
+
1
|
|
976
|
+
/*SMALLEST*/
|
|
977
|
+
];
|
|
978
|
+
s.heap[
|
|
979
|
+
1
|
|
980
|
+
/*SMALLEST*/
|
|
981
|
+
] = s.heap[s.heap_len--];
|
|
982
|
+
pqdownheap(
|
|
983
|
+
s,
|
|
984
|
+
tree,
|
|
985
|
+
1
|
|
986
|
+
/*SMALLEST*/
|
|
987
|
+
);
|
|
988
|
+
m = s.heap[
|
|
989
|
+
1
|
|
990
|
+
/*SMALLEST*/
|
|
991
|
+
];
|
|
955
992
|
s.heap[--s.heap_max] = n;
|
|
956
993
|
s.heap[--s.heap_max] = m;
|
|
957
994
|
tree[node * 2] = tree[n * 2] + tree[m * 2];
|
|
958
995
|
s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;
|
|
959
996
|
tree[n * 2 + 1] = tree[m * 2 + 1] = node;
|
|
960
|
-
s.heap[
|
|
961
|
-
|
|
997
|
+
s.heap[
|
|
998
|
+
1
|
|
999
|
+
/*SMALLEST*/
|
|
1000
|
+
] = node++;
|
|
1001
|
+
pqdownheap(
|
|
1002
|
+
s,
|
|
1003
|
+
tree,
|
|
1004
|
+
1
|
|
1005
|
+
/*SMALLEST*/
|
|
1006
|
+
);
|
|
962
1007
|
} while (s.heap_len >= 2);
|
|
963
|
-
s.heap[--s.heap_max] = s.heap[
|
|
1008
|
+
s.heap[--s.heap_max] = s.heap[
|
|
1009
|
+
1
|
|
1010
|
+
/*SMALLEST*/
|
|
1011
|
+
];
|
|
964
1012
|
gen_bitlen(s, desc);
|
|
965
1013
|
gen_codes(tree, max_code, s.bl_count);
|
|
966
1014
|
}
|
|
@@ -1233,14 +1281,23 @@
|
|
|
1233
1281
|
"use strict";
|
|
1234
1282
|
module.exports = {
|
|
1235
1283
|
2: "need dictionary",
|
|
1284
|
+
/* Z_NEED_DICT 2 */
|
|
1236
1285
|
1: "stream end",
|
|
1286
|
+
/* Z_STREAM_END 1 */
|
|
1237
1287
|
0: "",
|
|
1288
|
+
/* Z_OK 0 */
|
|
1238
1289
|
"-1": "file error",
|
|
1290
|
+
/* Z_ERRNO (-1) */
|
|
1239
1291
|
"-2": "stream error",
|
|
1292
|
+
/* Z_STREAM_ERROR (-2) */
|
|
1240
1293
|
"-3": "data error",
|
|
1294
|
+
/* Z_DATA_ERROR (-3) */
|
|
1241
1295
|
"-4": "insufficient memory",
|
|
1296
|
+
/* Z_MEM_ERROR (-4) */
|
|
1242
1297
|
"-5": "buffer error",
|
|
1298
|
+
/* Z_BUF_ERROR (-5) */
|
|
1243
1299
|
"-6": "incompatible version"
|
|
1300
|
+
/* Z_VERSION_ERROR (-6) */
|
|
1244
1301
|
};
|
|
1245
1302
|
}
|
|
1246
1303
|
});
|
|
@@ -1766,16 +1823,27 @@
|
|
|
1766
1823
|
}
|
|
1767
1824
|
var configuration_table;
|
|
1768
1825
|
configuration_table = [
|
|
1826
|
+
/* good lazy nice chain */
|
|
1769
1827
|
new Config(0, 0, 0, 0, deflate_stored),
|
|
1828
|
+
/* 0 store only */
|
|
1770
1829
|
new Config(4, 4, 8, 4, deflate_fast),
|
|
1830
|
+
/* 1 max speed, no lazy matches */
|
|
1771
1831
|
new Config(4, 5, 16, 8, deflate_fast),
|
|
1832
|
+
/* 2 */
|
|
1772
1833
|
new Config(4, 6, 32, 32, deflate_fast),
|
|
1834
|
+
/* 3 */
|
|
1773
1835
|
new Config(4, 4, 16, 16, deflate_slow),
|
|
1836
|
+
/* 4 lazy matches */
|
|
1774
1837
|
new Config(8, 16, 32, 32, deflate_slow),
|
|
1838
|
+
/* 5 */
|
|
1775
1839
|
new Config(8, 16, 128, 128, deflate_slow),
|
|
1840
|
+
/* 6 */
|
|
1776
1841
|
new Config(8, 32, 128, 256, deflate_slow),
|
|
1842
|
+
/* 7 */
|
|
1777
1843
|
new Config(32, 128, 258, 1024, deflate_slow),
|
|
1844
|
+
/* 8 */
|
|
1778
1845
|
new Config(32, 258, 258, 4096, deflate_slow)
|
|
1846
|
+
/* 9 max compression */
|
|
1779
1847
|
];
|
|
1780
1848
|
function lm_init(s) {
|
|
1781
1849
|
s.window_size = 2 * s.w_size;
|
|
@@ -2850,6 +2918,7 @@
|
|
|
2850
2918
|
var LENS = 1;
|
|
2851
2919
|
var DISTS = 2;
|
|
2852
2920
|
var lbase = [
|
|
2921
|
+
/* Length codes 257..285 base */
|
|
2853
2922
|
3,
|
|
2854
2923
|
4,
|
|
2855
2924
|
5,
|
|
@@ -2883,6 +2952,7 @@
|
|
|
2883
2952
|
0
|
|
2884
2953
|
];
|
|
2885
2954
|
var lext = [
|
|
2955
|
+
/* Length codes 257..285 extra */
|
|
2886
2956
|
16,
|
|
2887
2957
|
16,
|
|
2888
2958
|
16,
|
|
@@ -2916,6 +2986,7 @@
|
|
|
2916
2986
|
78
|
|
2917
2987
|
];
|
|
2918
2988
|
var dbase = [
|
|
2989
|
+
/* Distance codes 0..29 base */
|
|
2919
2990
|
1,
|
|
2920
2991
|
2,
|
|
2921
2992
|
3,
|
|
@@ -2950,6 +3021,7 @@
|
|
|
2950
3021
|
0
|
|
2951
3022
|
];
|
|
2952
3023
|
var dext = [
|
|
3024
|
+
/* Distance codes 0..29 extra */
|
|
2953
3025
|
16,
|
|
2954
3026
|
16,
|
|
2955
3027
|
16,
|
|
@@ -3418,7 +3490,10 @@
|
|
|
3418
3490
|
var hbuf = new utils.Buf8(4);
|
|
3419
3491
|
var opts;
|
|
3420
3492
|
var n;
|
|
3421
|
-
var order =
|
|
3493
|
+
var order = (
|
|
3494
|
+
/* permutation of code lengths */
|
|
3495
|
+
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
3496
|
+
);
|
|
3422
3497
|
if (!strm || !strm.state || !strm.output || !strm.input && strm.avail_in !== 0) {
|
|
3423
3498
|
return Z_STREAM_ERROR;
|
|
3424
3499
|
}
|
|
@@ -3467,7 +3542,8 @@
|
|
|
3467
3542
|
if (state.head) {
|
|
3468
3543
|
state.head.done = false;
|
|
3469
3544
|
}
|
|
3470
|
-
if (!(state.wrap & 1) ||
|
|
3545
|
+
if (!(state.wrap & 1) || /* check if zlib header allowed */
|
|
3546
|
+
(((hold & 255) << 8) + (hold >> 8)) % 31) {
|
|
3471
3547
|
strm.msg = "incorrect header check";
|
|
3472
3548
|
state.mode = BAD;
|
|
3473
3549
|
break;
|
|
@@ -3608,7 +3684,10 @@
|
|
|
3608
3684
|
state.head.extra,
|
|
3609
3685
|
input,
|
|
3610
3686
|
next,
|
|
3687
|
+
// extra field is limited to 65536 bytes
|
|
3688
|
+
// - no need for additional size check
|
|
3611
3689
|
copy,
|
|
3690
|
+
/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
|
|
3612
3691
|
len
|
|
3613
3692
|
);
|
|
3614
3693
|
}
|
|
@@ -4223,7 +4302,8 @@
|
|
|
4223
4302
|
strm.total_out += _out;
|
|
4224
4303
|
state.total += _out;
|
|
4225
4304
|
if (_out) {
|
|
4226
|
-
strm.adler = state.check =
|
|
4305
|
+
strm.adler = state.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
4306
|
+
state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out);
|
|
4227
4307
|
}
|
|
4228
4308
|
_out = left;
|
|
4229
4309
|
if ((state.flags ? hold : zswap32(hold)) !== state.check) {
|
|
@@ -4285,7 +4365,8 @@
|
|
|
4285
4365
|
strm.total_out += _out;
|
|
4286
4366
|
state.total += _out;
|
|
4287
4367
|
if (state.wrap && _out) {
|
|
4288
|
-
strm.adler = state.check =
|
|
4368
|
+
strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4369
|
+
state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out);
|
|
4289
4370
|
}
|
|
4290
4371
|
strm.data_type = state.bits + (state.last ? 64 : 0) + (state.mode === TYPE ? 128 : 0) + (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
|
|
4291
4372
|
if ((_in === 0 && _out === 0 || flush === Z_FINISH) && ret === Z_OK) {
|
|
@@ -4362,6 +4443,7 @@
|
|
|
4362
4443
|
"../../node_modules/pako/lib/zlib/constants.js"(exports, module) {
|
|
4363
4444
|
"use strict";
|
|
4364
4445
|
module.exports = {
|
|
4446
|
+
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
4365
4447
|
Z_NO_FLUSH: 0,
|
|
4366
4448
|
Z_PARTIAL_FLUSH: 1,
|
|
4367
4449
|
Z_SYNC_FLUSH: 2,
|
|
@@ -4369,13 +4451,19 @@
|
|
|
4369
4451
|
Z_FINISH: 4,
|
|
4370
4452
|
Z_BLOCK: 5,
|
|
4371
4453
|
Z_TREES: 6,
|
|
4454
|
+
/* Return codes for the compression/decompression functions. Negative values
|
|
4455
|
+
* are errors, positive values are used for special but normal events.
|
|
4456
|
+
*/
|
|
4372
4457
|
Z_OK: 0,
|
|
4373
4458
|
Z_STREAM_END: 1,
|
|
4374
4459
|
Z_NEED_DICT: 2,
|
|
4375
4460
|
Z_ERRNO: -1,
|
|
4376
4461
|
Z_STREAM_ERROR: -2,
|
|
4377
4462
|
Z_DATA_ERROR: -3,
|
|
4463
|
+
//Z_MEM_ERROR: -4,
|
|
4378
4464
|
Z_BUF_ERROR: -5,
|
|
4465
|
+
//Z_VERSION_ERROR: -6,
|
|
4466
|
+
/* compression levels */
|
|
4379
4467
|
Z_NO_COMPRESSION: 0,
|
|
4380
4468
|
Z_BEST_SPEED: 1,
|
|
4381
4469
|
Z_BEST_COMPRESSION: 9,
|
|
@@ -4385,10 +4473,14 @@
|
|
|
4385
4473
|
Z_RLE: 3,
|
|
4386
4474
|
Z_FIXED: 4,
|
|
4387
4475
|
Z_DEFAULT_STRATEGY: 0,
|
|
4476
|
+
/* Possible values of the data_type field (though see inflate()) */
|
|
4388
4477
|
Z_BINARY: 0,
|
|
4389
4478
|
Z_TEXT: 1,
|
|
4479
|
+
//Z_ASCII: 1, // = Z_TEXT (deprecated)
|
|
4390
4480
|
Z_UNKNOWN: 2,
|
|
4481
|
+
/* The deflate compression method */
|
|
4391
4482
|
Z_DEFLATED: 8
|
|
4483
|
+
//Z_NULL: null // Use -1 or null inline, depending on var type
|
|
4392
4484
|
};
|
|
4393
4485
|
}
|
|
4394
4486
|
});
|
|
@@ -4710,11 +4802,12 @@
|
|
|
4710
4802
|
var SHIFT_LEFT_32 = (1 << 16) * (1 << 16);
|
|
4711
4803
|
var SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32;
|
|
4712
4804
|
var TEXT_DECODER_MIN_LENGTH = 12;
|
|
4713
|
-
var utf8TextDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder("
|
|
4805
|
+
var utf8TextDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder("utf-8");
|
|
4714
4806
|
Pbf.prototype = {
|
|
4715
4807
|
destroy: function() {
|
|
4716
4808
|
this.buf = null;
|
|
4717
4809
|
},
|
|
4810
|
+
// === READING =================================================================
|
|
4718
4811
|
readFields: function(readField, result, end) {
|
|
4719
4812
|
end = end || this.length;
|
|
4720
4813
|
while (this.pos < end) {
|
|
@@ -4739,6 +4832,7 @@
|
|
|
4739
4832
|
this.pos += 4;
|
|
4740
4833
|
return val;
|
|
4741
4834
|
},
|
|
4835
|
+
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
4742
4836
|
readFixed64: function() {
|
|
4743
4837
|
var val = readUInt32(this.buf, this.pos) + readUInt32(this.buf, this.pos + 4) * SHIFT_LEFT_32;
|
|
4744
4838
|
this.pos += 8;
|
|
@@ -4805,6 +4899,7 @@
|
|
|
4805
4899
|
this.pos = end;
|
|
4806
4900
|
return buffer;
|
|
4807
4901
|
},
|
|
4902
|
+
// verbose for performance reasons; doesn't affect gzipped size
|
|
4808
4903
|
readPackedVarint: function(arr, isSigned) {
|
|
4809
4904
|
if (this.type !== Pbf.Bytes)
|
|
4810
4905
|
return arr.push(this.readVarint(isSigned));
|
|
@@ -4900,6 +4995,7 @@
|
|
|
4900
4995
|
else
|
|
4901
4996
|
throw new Error("Unimplemented type: " + type);
|
|
4902
4997
|
},
|
|
4998
|
+
// === WRITING =================================================================
|
|
4903
4999
|
writeTag: function(tag, type) {
|
|
4904
5000
|
this.writeVarint(tag << 3 | type);
|
|
4905
5001
|
},
|
|
@@ -5355,7 +5451,10 @@
|
|
|
5355
5451
|
var window_ = globals.window || globals.self || globals.global || {};
|
|
5356
5452
|
var global_ = globals.global || globals.self || globals.window || {};
|
|
5357
5453
|
var document_ = globals.document || {};
|
|
5358
|
-
var isBrowser =
|
|
5454
|
+
var isBrowser = (
|
|
5455
|
+
// @ts-ignore process does not exist on browser
|
|
5456
|
+
Boolean(typeof process !== "object" || String(process) !== "[object process]" || process.browser)
|
|
5457
|
+
);
|
|
5359
5458
|
var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
5360
5459
|
var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
5361
5460
|
|
|
@@ -5410,9 +5509,13 @@
|
|
|
5410
5509
|
}
|
|
5411
5510
|
var onMessageWrapperMap = /* @__PURE__ */ new Map();
|
|
5412
5511
|
var WorkerBody = class {
|
|
5512
|
+
/** Check that we are actually in a worker thread */
|
|
5413
5513
|
static async inWorkerThread() {
|
|
5414
5514
|
return typeof self !== "undefined" || Boolean(await getParentPort());
|
|
5415
5515
|
}
|
|
5516
|
+
/*
|
|
5517
|
+
* (type: WorkerMessageType, payload: WorkerMessagePayload) => any
|
|
5518
|
+
*/
|
|
5416
5519
|
static set onmessage(onMessage) {
|
|
5417
5520
|
async function handleMessage(message) {
|
|
5418
5521
|
const parentPort2 = await getParentPort();
|
|
@@ -5459,6 +5562,11 @@
|
|
|
5459
5562
|
globalThis.removeEventListener("message", onMessageWrapper);
|
|
5460
5563
|
}
|
|
5461
5564
|
}
|
|
5565
|
+
/**
|
|
5566
|
+
* Send a message from a worker to creating thread (main thread)
|
|
5567
|
+
* @param type
|
|
5568
|
+
* @param payload
|
|
5569
|
+
*/
|
|
5462
5570
|
static async postMessage(type, payload) {
|
|
5463
5571
|
const data = { source: "loaders.gl", type, payload };
|
|
5464
5572
|
const transferList = getTransferList(payload);
|
|
@@ -5490,6 +5598,7 @@
|
|
|
5490
5598
|
loader,
|
|
5491
5599
|
arrayBuffer: input,
|
|
5492
5600
|
options,
|
|
5601
|
+
// @ts-expect-error fetch missing
|
|
5493
5602
|
context: {
|
|
5494
5603
|
...context,
|
|
5495
5604
|
_parse: parseOnMainThread
|
|
@@ -5622,32 +5731,40 @@
|
|
|
5622
5731
|
this.compressBatches = this.compressBatches.bind(this);
|
|
5623
5732
|
this.decompressBatches = this.decompressBatches.bind(this);
|
|
5624
5733
|
}
|
|
5734
|
+
/** Preloads any dynamic libraries. May enable sync functions */
|
|
5625
5735
|
async preload(modules = {}) {
|
|
5626
5736
|
registerJSModules(modules);
|
|
5627
5737
|
return;
|
|
5628
5738
|
}
|
|
5739
|
+
/** Asynchronously compress data */
|
|
5629
5740
|
async compress(input) {
|
|
5630
5741
|
await this.preload();
|
|
5631
5742
|
return this.compressSync(input);
|
|
5632
5743
|
}
|
|
5744
|
+
/** Asynchronously decompress data */
|
|
5633
5745
|
async decompress(input, size) {
|
|
5634
5746
|
await this.preload();
|
|
5635
5747
|
return this.decompressSync(input, size);
|
|
5636
5748
|
}
|
|
5749
|
+
/** Synchronously compress data */
|
|
5637
5750
|
compressSync(input) {
|
|
5638
5751
|
throw new Error(`${this.name}: sync compression not supported`);
|
|
5639
5752
|
}
|
|
5753
|
+
/** Synchronously compress data */
|
|
5640
5754
|
decompressSync(input, size) {
|
|
5641
5755
|
throw new Error(`${this.name}: sync decompression not supported`);
|
|
5642
5756
|
}
|
|
5757
|
+
/** Compress batches */
|
|
5643
5758
|
async *compressBatches(asyncIterator) {
|
|
5644
5759
|
const input = await this.concatenate(asyncIterator);
|
|
5645
5760
|
yield this.compress(input);
|
|
5646
5761
|
}
|
|
5762
|
+
/** Decompress batches */
|
|
5647
5763
|
async *decompressBatches(asyncIterator) {
|
|
5648
5764
|
const input = await this.concatenate(asyncIterator);
|
|
5649
5765
|
yield this.decompress(input);
|
|
5650
5766
|
}
|
|
5767
|
+
// HELPERS
|
|
5651
5768
|
concatenate(asyncIterator) {
|
|
5652
5769
|
return concatenateArrayBuffersAsync(asyncIterator);
|
|
5653
5770
|
}
|
|
@@ -5749,16 +5866,26 @@
|
|
|
5749
5866
|
this._chunks = [];
|
|
5750
5867
|
return chunks;
|
|
5751
5868
|
}
|
|
5869
|
+
// TODO - For some reason we don't get the error message from pako in _onEnd?
|
|
5752
5870
|
_getError(code = 0) {
|
|
5753
5871
|
const MESSAGES = {
|
|
5872
|
+
/* Z_NEED_DICT 2 */
|
|
5754
5873
|
2: "need dictionary",
|
|
5874
|
+
/* Z_STREAM_END 1 */
|
|
5755
5875
|
1: "stream end",
|
|
5876
|
+
/* Z_OK 0 */
|
|
5756
5877
|
0: "",
|
|
5878
|
+
/* Z_ERRNO (-1) */
|
|
5757
5879
|
"-1": "file error",
|
|
5880
|
+
/* Z_STREAM_ERROR (-2) */
|
|
5758
5881
|
"-2": "stream error",
|
|
5882
|
+
/* Z_DATA_ERROR (-3) */
|
|
5759
5883
|
"-3": "data error",
|
|
5884
|
+
/* Z_MEM_ERROR (-4) */
|
|
5760
5885
|
"-4": "insufficient memory",
|
|
5886
|
+
/* Z_BUF_ERROR (-5) */
|
|
5761
5887
|
"-5": "buffer error",
|
|
5888
|
+
/* Z_VERSION_ERROR (-6) */
|
|
5762
5889
|
"-6": "incompatible version"
|
|
5763
5890
|
};
|
|
5764
5891
|
return `${this.name}: ${MESSAGES[code]}`;
|
|
@@ -6000,7 +6127,7 @@
|
|
|
6000
6127
|
}
|
|
6001
6128
|
|
|
6002
6129
|
// src/layers/schema/carto-vector-tile-loader.ts
|
|
6003
|
-
var VERSION = true ? "9.0.
|
|
6130
|
+
var VERSION = true ? "9.1.0-beta.3" : "latest";
|
|
6004
6131
|
var id = "cartoVectorTile";
|
|
6005
6132
|
var DEFAULT_OPTIONS = {
|
|
6006
6133
|
cartoVectorTile: {
|
|
@@ -6063,3 +6190,8 @@
|
|
|
6063
6190
|
// src/workers/cartoVectorTile.ts
|
|
6064
6191
|
createLoaderWorker(carto_vector_tile_loader_default);
|
|
6065
6192
|
})();
|
|
6193
|
+
/*! Bundled license information:
|
|
6194
|
+
|
|
6195
|
+
ieee754/index.js:
|
|
6196
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
6197
|
+
*/
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,MAAM,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
// deck.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
1
4
|
export const DEFAULT_TILE_SIZE = 512;
|
|
2
|
-
|
|
3
|
-
export const DEFAULT_AGGREGATION_RES_LEVEL_H3 = 4;
|
|
4
|
-
export const DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN = 6;
|
|
5
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,oCAAoC;AAEpC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC"}
|