@deck.gl/carto 9.0.0-beta.1 → 9.0.0-beta.10
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/{typed → dist}/api/carto-api-error.d.ts +1 -1
- package/dist/api/carto-api-error.d.ts.map +1 -0
- package/dist/api/carto-api-error.js +47 -0
- package/{typed → dist}/api/common.d.ts +1 -2
- package/{typed → dist}/api/common.d.ts.map +1 -1
- package/dist/{esm/api → api}/common.js +4 -6
- package/{typed → dist}/api/endpoints.d.ts +1 -1
- package/dist/api/endpoints.d.ts.map +1 -0
- package/dist/api/endpoints.js +22 -0
- package/{typed → dist}/api/fetch-map.d.ts.map +1 -1
- package/dist/api/fetch-map.js +196 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +3 -0
- package/{typed → dist}/api/layer-map.d.ts +6 -6
- package/dist/api/layer-map.d.ts.map +1 -0
- package/dist/api/layer-map.js +373 -0
- package/dist/api/parse-map.js +250 -0
- package/{typed → dist}/api/query.d.ts +1 -1
- package/dist/api/query.d.ts.map +1 -0
- package/dist/api/query.js +24 -0
- package/{typed → dist}/api/request-with-parameters.d.ts +1 -1
- package/dist/api/request-with-parameters.d.ts.map +1 -0
- package/dist/api/request-with-parameters.js +53 -0
- package/{typed → dist}/api/types.d.ts +18 -1
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +20 -0
- package/dist/basemap.js +9 -0
- package/dist/cartoRasterTile-worker.js +6 -9
- package/dist/cartoSpatialTile-worker.js +3 -3
- package/dist/cartoVectorTile-worker.js +3 -3
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +4 -0
- package/dist/dist.dev.js +1297 -1101
- package/dist/index.cjs +2700 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/{typed → dist}/layers/h3-tile-layer.d.ts +2 -2
- package/dist/layers/h3-tile-layer.d.ts.map +1 -0
- package/dist/layers/h3-tile-layer.js +66 -0
- package/dist/layers/h3-tileset-2d.js +99 -0
- package/dist/layers/point-label-layer.js +150 -0
- package/dist/layers/quadbin-layer.js +21 -0
- package/{typed → dist}/layers/quadbin-tile-layer.d.ts +3 -3
- package/dist/layers/quadbin-tile-layer.d.ts.map +1 -0
- package/dist/layers/quadbin-tile-layer.js +49 -0
- package/dist/layers/quadbin-tileset-2d.js +27 -0
- package/dist/layers/quadbin-utils.js +21 -0
- package/dist/layers/raster-layer-vertex.glsl.d.ts +3 -0
- package/dist/layers/raster-layer-vertex.glsl.js +68 -0
- package/{typed → dist}/layers/raster-layer.d.ts.map +1 -1
- package/dist/layers/raster-layer.js +95 -0
- package/{typed → dist}/layers/raster-tile-layer.d.ts +3 -3
- package/dist/layers/raster-tile-layer.d.ts.map +1 -0
- package/dist/layers/raster-tile-layer.js +45 -0
- package/dist/layers/schema/carto-properties-tile-loader.js +21 -0
- package/{typed → dist}/layers/schema/carto-properties-tile.d.ts +1 -1
- package/dist/layers/schema/carto-properties-tile.d.ts.map +1 -0
- package/dist/layers/schema/carto-properties-tile.js +14 -0
- package/{typed → dist}/layers/schema/carto-raster-tile-loader.d.ts +3 -3
- package/dist/layers/schema/carto-raster-tile-loader.d.ts.map +1 -0
- package/dist/layers/schema/carto-raster-tile-loader.js +35 -0
- package/{typed → dist}/layers/schema/carto-raster-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-raster-tile.js +44 -0
- package/dist/layers/schema/carto-spatial-tile-loader.js +35 -0
- package/{typed → dist}/layers/schema/carto-spatial-tile.d.ts +2 -2
- package/dist/layers/schema/carto-spatial-tile.d.ts.map +1 -0
- package/dist/layers/schema/carto-spatial-tile.js +38 -0
- package/dist/layers/schema/carto-tile.js +187 -0
- package/dist/layers/schema/carto-vector-tile-loader.js +65 -0
- package/dist/layers/schema/fast-pbf.js +7 -0
- package/dist/layers/schema/spatialjson-utils.js +15 -0
- package/dist/layers/schema/tile-loader-utils.js +6 -0
- package/{typed → dist}/layers/spatial-index-tile-layer.d.ts +1 -1
- package/{typed → dist}/layers/spatial-index-tile-layer.d.ts.map +1 -1
- package/dist/layers/spatial-index-tile-layer.js +67 -0
- package/{typed → dist}/layers/utils.d.ts +3 -3
- package/dist/layers/utils.d.ts.map +1 -0
- package/dist/layers/utils.js +74 -0
- package/{typed → dist}/layers/vector-tile-layer.d.ts +6 -5
- package/dist/layers/vector-tile-layer.d.ts.map +1 -0
- package/dist/layers/vector-tile-layer.js +104 -0
- package/{typed → dist}/sources/base-source.d.ts +2 -2
- package/dist/sources/base-source.d.ts.map +1 -0
- package/dist/sources/base-source.js +53 -0
- package/dist/sources/boundary-query-source.d.ts +11 -0
- package/dist/sources/boundary-query-source.d.ts.map +1 -0
- package/dist/sources/boundary-query-source.js +19 -0
- package/{typed → dist}/sources/boundary-table-source.d.ts +2 -2
- package/dist/sources/boundary-table-source.d.ts.map +1 -0
- package/dist/sources/boundary-table-source.js +16 -0
- package/{typed → dist}/sources/h3-query-source.d.ts +1 -1
- package/dist/sources/h3-query-source.d.ts.map +1 -0
- package/dist/sources/h3-query-source.js +19 -0
- package/{typed → dist}/sources/h3-table-source.d.ts +1 -1
- package/dist/sources/h3-table-source.d.ts.map +1 -0
- package/dist/sources/h3-table-source.js +16 -0
- package/{typed → dist}/sources/h3-tileset-source.d.ts +1 -1
- package/dist/sources/h3-tileset-source.d.ts.map +1 -0
- package/dist/sources/h3-tileset-source.js +6 -0
- package/dist/sources/index.d.ts +28 -0
- package/dist/sources/index.d.ts.map +1 -0
- package/dist/sources/index.js +13 -0
- package/{typed → dist}/sources/quadbin-query-source.d.ts +1 -1
- package/dist/sources/quadbin-query-source.d.ts.map +1 -0
- package/dist/sources/quadbin-query-source.js +19 -0
- package/{typed → dist}/sources/quadbin-table-source.d.ts +1 -1
- package/dist/sources/quadbin-table-source.d.ts.map +1 -0
- package/dist/sources/quadbin-table-source.js +16 -0
- package/{typed → dist}/sources/quadbin-tileset-source.d.ts +1 -1
- package/{typed → dist}/sources/quadbin-tileset-source.d.ts.map +1 -1
- package/dist/sources/quadbin-tileset-source.js +6 -0
- package/{typed → dist}/sources/raster-source.d.ts +1 -1
- package/dist/sources/raster-source.d.ts.map +1 -0
- package/dist/sources/raster-source.js +6 -0
- package/{typed → dist}/sources/types.d.ts +45 -7
- package/dist/sources/types.d.ts.map +1 -0
- package/dist/sources/types.js +1 -0
- package/dist/sources/vector-query-source.d.ts +4 -0
- package/dist/sources/vector-query-source.d.ts.map +1 -0
- package/dist/sources/vector-query-source.js +22 -0
- package/dist/sources/vector-table-source.d.ts +4 -0
- package/dist/sources/vector-table-source.d.ts.map +1 -0
- package/dist/sources/vector-table-source.js +19 -0
- package/{typed → dist}/sources/vector-tileset-source.d.ts +1 -1
- package/{typed → dist}/sources/vector-tileset-source.d.ts.map +1 -1
- package/dist/sources/vector-tileset-source.js +6 -0
- package/{typed → dist}/style/color-bins-style.d.ts +2 -2
- package/dist/style/color-bins-style.d.ts.map +1 -0
- package/dist/style/color-bins-style.js +21 -0
- package/{typed → dist}/style/color-categories-style.d.ts +2 -2
- package/dist/style/color-categories-style.d.ts.map +1 -0
- package/dist/style/color-categories-style.js +25 -0
- package/{typed → dist}/style/color-continuous-style.d.ts +2 -2
- package/dist/style/color-continuous-style.d.ts.map +1 -0
- package/dist/style/color-continuous-style.js +21 -0
- package/dist/style/palette.js +62 -0
- package/dist/style/utils.js +11 -0
- package/{typed → dist}/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +45 -0
- package/dist/workers/cartoRasterTile.js +3 -0
- package/dist/workers/cartoSpatialTile.js +3 -0
- package/dist/workers/cartoVectorTile.js +3 -0
- package/dist.min.js +49 -93
- package/package.json +31 -26
- package/src/api/common.ts +1 -2
- package/src/api/fetch-map.ts +13 -4
- package/src/api/query.ts +1 -1
- package/src/api/request-with-parameters.ts +47 -34
- package/src/api/types.ts +20 -0
- package/src/constants.ts +5 -0
- package/src/index.ts +11 -7
- package/src/layers/h3-tile-layer.ts +3 -1
- package/src/layers/quadbin-tile-layer.ts +3 -1
- package/src/layers/raster-layer-vertex.glsl.ts +2 -2
- package/src/layers/raster-layer.ts +10 -16
- package/src/layers/raster-tile-layer.ts +3 -1
- package/src/layers/schema/carto-raster-tile-loader.ts +5 -5
- package/src/layers/schema/carto-raster-tile.ts +3 -4
- package/src/layers/spatial-index-tile-layer.ts +7 -3
- package/src/layers/vector-tile-layer.ts +17 -8
- package/src/sources/base-source.ts +4 -3
- package/src/sources/boundary-query-source.ts +27 -9
- package/src/sources/boundary-table-source.ts +13 -8
- package/src/sources/h3-query-source.ts +2 -1
- package/src/sources/h3-table-source.ts +2 -6
- package/src/sources/index.ts +7 -0
- package/src/sources/quadbin-query-source.ts +2 -1
- package/src/sources/quadbin-table-source.ts +2 -6
- package/src/sources/types.ts +49 -7
- package/src/sources/vector-query-source.ts +38 -4
- package/src/sources/vector-table-source.ts +32 -4
- package/src/utils.ts +5 -1
- package/dist/es5/api/carto-api-error.js +0 -83
- package/dist/es5/api/carto-api-error.js.map +0 -1
- package/dist/es5/api/common.js +0 -25
- package/dist/es5/api/common.js.map +0 -1
- package/dist/es5/api/endpoints.js +0 -61
- package/dist/es5/api/endpoints.js.map +0 -1
- package/dist/es5/api/fetch-map.js +0 -566
- package/dist/es5/api/fetch-map.js.map +0 -1
- package/dist/es5/api/index.js +0 -30
- package/dist/es5/api/index.js.map +0 -1
- package/dist/es5/api/layer-map.js +0 -634
- package/dist/es5/api/layer-map.js.map +0 -1
- package/dist/es5/api/parse-map.js +0 -347
- package/dist/es5/api/parse-map.js.map +0 -1
- package/dist/es5/api/query.js +0 -81
- package/dist/es5/api/query.js.map +0 -1
- package/dist/es5/api/request-with-parameters.js +0 -150
- package/dist/es5/api/request-with-parameters.js.map +0 -1
- package/dist/es5/api/types.js +0 -21
- package/dist/es5/api/types.js.map +0 -1
- package/dist/es5/basemap.js +0 -17
- package/dist/es5/basemap.js.map +0 -1
- package/dist/es5/index.js +0 -205
- package/dist/es5/index.js.map +0 -1
- package/dist/es5/layers/h3-tile-layer.js +0 -128
- package/dist/es5/layers/h3-tile-layer.js.map +0 -1
- package/dist/es5/layers/h3-tileset-2d.js +0 -172
- package/dist/es5/layers/h3-tileset-2d.js.map +0 -1
- package/dist/es5/layers/point-label-layer.js +0 -263
- package/dist/es5/layers/point-label-layer.js.map +0 -1
- package/dist/es5/layers/quadbin-layer.js +0 -72
- package/dist/es5/layers/quadbin-layer.js.map +0 -1
- package/dist/es5/layers/quadbin-tile-layer.js +0 -103
- package/dist/es5/layers/quadbin-tile-layer.js.map +0 -1
- package/dist/es5/layers/quadbin-tileset-2d.js +0 -76
- package/dist/es5/layers/quadbin-tileset-2d.js.map +0 -1
- package/dist/es5/layers/quadbin-utils.js +0 -60
- package/dist/es5/layers/quadbin-utils.js.map +0 -1
- package/dist/es5/layers/raster-layer-vertex.glsl.js +0 -9
- package/dist/es5/layers/raster-layer-vertex.glsl.js.map +0 -1
- package/dist/es5/layers/raster-layer.js +0 -174
- package/dist/es5/layers/raster-layer.js.map +0 -1
- package/dist/es5/layers/raster-tile-layer.js +0 -91
- package/dist/es5/layers/raster-tile-layer.js.map +0 -1
- package/dist/es5/layers/schema/carto-properties-tile-loader.js +0 -60
- package/dist/es5/layers/schema/carto-properties-tile-loader.js.map +0 -1
- package/dist/es5/layers/schema/carto-properties-tile.js +0 -38
- package/dist/es5/layers/schema/carto-properties-tile.js.map +0 -1
- package/dist/es5/layers/schema/carto-raster-tile-loader.js +0 -89
- package/dist/es5/layers/schema/carto-raster-tile-loader.js.map +0 -1
- package/dist/es5/layers/schema/carto-raster-tile.js +0 -79
- package/dist/es5/layers/schema/carto-raster-tile.js.map +0 -1
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js +0 -81
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js.map +0 -1
- package/dist/es5/layers/schema/carto-spatial-tile.js +0 -80
- package/dist/es5/layers/schema/carto-spatial-tile.js.map +0 -1
- package/dist/es5/layers/schema/carto-tile.js +0 -269
- package/dist/es5/layers/schema/carto-tile.js.map +0 -1
- package/dist/es5/layers/schema/carto-vector-tile-loader.js +0 -120
- package/dist/es5/layers/schema/carto-vector-tile-loader.js.map +0 -1
- package/dist/es5/layers/schema/fast-pbf.js +0 -14
- package/dist/es5/layers/schema/fast-pbf.js.map +0 -1
- package/dist/es5/layers/schema/spatialjson-utils.js +0 -42
- package/dist/es5/layers/schema/spatialjson-utils.js.map +0 -1
- package/dist/es5/layers/schema/tile-loader-utils.js +0 -17
- package/dist/es5/layers/schema/tile-loader-utils.js.map +0 -1
- package/dist/es5/layers/spatial-index-tile-layer.js +0 -126
- package/dist/es5/layers/spatial-index-tile-layer.js.map +0 -1
- package/dist/es5/layers/utils.js +0 -131
- package/dist/es5/layers/utils.js.map +0 -1
- package/dist/es5/layers/vector-tile-layer.js +0 -248
- package/dist/es5/layers/vector-tile-layer.js.map +0 -1
- package/dist/es5/sources/base-source.js +0 -128
- package/dist/es5/sources/base-source.js.map +0 -1
- package/dist/es5/sources/boundary-query-source.js +0 -51
- package/dist/es5/sources/boundary-query-source.js.map +0 -1
- package/dist/es5/sources/boundary-table-source.js +0 -51
- package/dist/es5/sources/boundary-table-source.js.map +0 -1
- package/dist/es5/sources/h3-query-source.js +0 -56
- package/dist/es5/sources/h3-query-source.js.map +0 -1
- package/dist/es5/sources/h3-table-source.js +0 -56
- package/dist/es5/sources/h3-table-source.js.map +0 -1
- package/dist/es5/sources/h3-tileset-source.js +0 -43
- package/dist/es5/sources/h3-tileset-source.js.map +0 -1
- package/dist/es5/sources/index.js +0 -110
- package/dist/es5/sources/index.js.map +0 -1
- package/dist/es5/sources/quadbin-query-source.js +0 -56
- package/dist/es5/sources/quadbin-query-source.js.map +0 -1
- package/dist/es5/sources/quadbin-table-source.js +0 -56
- package/dist/es5/sources/quadbin-table-source.js.map +0 -1
- package/dist/es5/sources/quadbin-tileset-source.js +0 -43
- package/dist/es5/sources/quadbin-tileset-source.js.map +0 -1
- package/dist/es5/sources/raster-source.js +0 -43
- package/dist/es5/sources/raster-source.js.map +0 -1
- package/dist/es5/sources/types.js +0 -2
- package/dist/es5/sources/types.js.map +0 -1
- package/dist/es5/sources/vector-query-source.js +0 -51
- package/dist/es5/sources/vector-query-source.js.map +0 -1
- package/dist/es5/sources/vector-table-source.js +0 -51
- package/dist/es5/sources/vector-table-source.js.map +0 -1
- package/dist/es5/sources/vector-tileset-source.js +0 -43
- package/dist/es5/sources/vector-tileset-source.js.map +0 -1
- package/dist/es5/style/color-bins-style.js +0 -37
- package/dist/es5/style/color-bins-style.js.map +0 -1
- package/dist/es5/style/color-categories-style.js +0 -65
- package/dist/es5/style/color-categories-style.js.map +0 -1
- package/dist/es5/style/color-continuous-style.js +0 -37
- package/dist/es5/style/color-continuous-style.js.map +0 -1
- package/dist/es5/style/palette.js +0 -81
- package/dist/es5/style/palette.js.map +0 -1
- package/dist/es5/style/utils.js +0 -28
- package/dist/es5/style/utils.js.map +0 -1
- package/dist/es5/utils.js +0 -65
- package/dist/es5/utils.js.map +0 -1
- package/dist/es5/workers/cartoRasterTile.js +0 -10
- package/dist/es5/workers/cartoRasterTile.js.map +0 -1
- package/dist/es5/workers/cartoSpatialTile.js +0 -10
- package/dist/es5/workers/cartoSpatialTile.js.map +0 -1
- package/dist/es5/workers/cartoVectorTile.js +0 -10
- package/dist/es5/workers/cartoVectorTile.js.map +0 -1
- package/dist/esm/api/carto-api-error.js +0 -46
- package/dist/esm/api/carto-api-error.js.map +0 -1
- package/dist/esm/api/common.js.map +0 -1
- package/dist/esm/api/endpoints.js +0 -41
- package/dist/esm/api/endpoints.js.map +0 -1
- package/dist/esm/api/fetch-map.js +0 -298
- package/dist/esm/api/fetch-map.js.map +0 -1
- package/dist/esm/api/index.js +0 -4
- package/dist/esm/api/index.js.map +0 -1
- package/dist/esm/api/layer-map.js +0 -520
- package/dist/esm/api/layer-map.js.map +0 -1
- package/dist/esm/api/parse-map.js +0 -343
- package/dist/esm/api/parse-map.js.map +0 -1
- package/dist/esm/api/query.js +0 -40
- package/dist/esm/api/query.js.map +0 -1
- package/dist/esm/api/request-with-parameters.js +0 -82
- package/dist/esm/api/request-with-parameters.js.map +0 -1
- package/dist/esm/api/types.js +0 -14
- package/dist/esm/api/types.js.map +0 -1
- package/dist/esm/basemap.js +0 -10
- package/dist/esm/basemap.js.map +0 -1
- package/dist/esm/index.js +0 -35
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/layers/h3-tile-layer.js +0 -77
- package/dist/esm/layers/h3-tile-layer.js.map +0 -1
- package/dist/esm/layers/h3-tileset-2d.js +0 -119
- package/dist/esm/layers/h3-tileset-2d.js.map +0 -1
- package/dist/esm/layers/point-label-layer.js +0 -194
- package/dist/esm/layers/point-label-layer.js.map +0 -1
- package/dist/esm/layers/quadbin-layer.js +0 -31
- package/dist/esm/layers/quadbin-layer.js.map +0 -1
- package/dist/esm/layers/quadbin-tile-layer.js +0 -51
- package/dist/esm/layers/quadbin-tile-layer.js.map +0 -1
- package/dist/esm/layers/quadbin-tileset-2d.js +0 -39
- package/dist/esm/layers/quadbin-tileset-2d.js.map +0 -1
- package/dist/esm/layers/quadbin-utils.js +0 -23
- package/dist/esm/layers/quadbin-utils.js.map +0 -1
- package/dist/esm/layers/raster-layer-vertex.glsl.js +0 -99
- package/dist/esm/layers/raster-layer-vertex.glsl.js.map +0 -1
- package/dist/esm/layers/raster-layer.js +0 -108
- package/dist/esm/layers/raster-layer.js.map +0 -1
- package/dist/esm/layers/raster-tile-layer.js +0 -48
- package/dist/esm/layers/raster-tile-layer.js.map +0 -1
- package/dist/esm/layers/schema/carto-properties-tile-loader.js +0 -23
- package/dist/esm/layers/schema/carto-properties-tile-loader.js.map +0 -1
- package/dist/esm/layers/schema/carto-properties-tile.js +0 -18
- package/dist/esm/layers/schema/carto-properties-tile.js.map +0 -1
- package/dist/esm/layers/schema/carto-raster-tile-loader.js +0 -54
- package/dist/esm/layers/schema/carto-raster-tile-loader.js.map +0 -1
- package/dist/esm/layers/schema/carto-raster-tile.js +0 -51
- package/dist/esm/layers/schema/carto-raster-tile.js.map +0 -1
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js +0 -44
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js.map +0 -1
- package/dist/esm/layers/schema/carto-spatial-tile.js +0 -47
- package/dist/esm/layers/schema/carto-spatial-tile.js.map +0 -1
- package/dist/esm/layers/schema/carto-tile.js +0 -197
- package/dist/esm/layers/schema/carto-tile.js.map +0 -1
- package/dist/esm/layers/schema/carto-vector-tile-loader.js +0 -82
- package/dist/esm/layers/schema/carto-vector-tile-loader.js.map +0 -1
- package/dist/esm/layers/schema/fast-pbf.js +0 -7
- package/dist/esm/layers/schema/fast-pbf.js.map +0 -1
- package/dist/esm/layers/schema/spatialjson-utils.js +0 -27
- package/dist/esm/layers/schema/spatialjson-utils.js.map +0 -1
- package/dist/esm/layers/schema/tile-loader-utils.js +0 -7
- package/dist/esm/layers/schema/tile-loader-utils.js.map +0 -1
- package/dist/esm/layers/spatial-index-tile-layer.js +0 -86
- package/dist/esm/layers/spatial-index-tile-layer.js.map +0 -1
- package/dist/esm/layers/utils.js +0 -85
- package/dist/esm/layers/utils.js.map +0 -1
- package/dist/esm/layers/vector-tile-layer.js +0 -143
- package/dist/esm/layers/vector-tile-layer.js.map +0 -1
- package/dist/esm/sources/base-source.js +0 -72
- package/dist/esm/sources/base-source.js.map +0 -1
- package/dist/esm/sources/boundary-query-source.js +0 -21
- package/dist/esm/sources/boundary-query-source.js.map +0 -1
- package/dist/esm/sources/boundary-table-source.js +0 -21
- package/dist/esm/sources/boundary-table-source.js.map +0 -1
- package/dist/esm/sources/h3-query-source.js +0 -27
- package/dist/esm/sources/h3-query-source.js.map +0 -1
- package/dist/esm/sources/h3-table-source.js +0 -27
- package/dist/esm/sources/h3-table-source.js.map +0 -1
- package/dist/esm/sources/h3-tileset-source.js +0 -11
- package/dist/esm/sources/h3-tileset-source.js.map +0 -1
- package/dist/esm/sources/index.js +0 -14
- package/dist/esm/sources/index.js.map +0 -1
- package/dist/esm/sources/quadbin-query-source.js +0 -27
- package/dist/esm/sources/quadbin-query-source.js.map +0 -1
- package/dist/esm/sources/quadbin-table-source.js +0 -27
- package/dist/esm/sources/quadbin-table-source.js.map +0 -1
- package/dist/esm/sources/quadbin-tileset-source.js +0 -11
- package/dist/esm/sources/quadbin-tileset-source.js.map +0 -1
- package/dist/esm/sources/raster-source.js +0 -11
- package/dist/esm/sources/raster-source.js.map +0 -1
- package/dist/esm/sources/types.js +0 -2
- package/dist/esm/sources/types.js.map +0 -1
- package/dist/esm/sources/vector-query-source.js +0 -20
- package/dist/esm/sources/vector-query-source.js.map +0 -1
- package/dist/esm/sources/vector-table-source.js +0 -20
- package/dist/esm/sources/vector-table-source.js.map +0 -1
- package/dist/esm/sources/vector-tileset-source.js +0 -11
- package/dist/esm/sources/vector-tileset-source.js.map +0 -1
- package/dist/esm/style/color-bins-style.js +0 -19
- package/dist/esm/style/color-bins-style.js.map +0 -1
- package/dist/esm/style/color-categories-style.js +0 -24
- package/dist/esm/style/color-categories-style.js.map +0 -1
- package/dist/esm/style/color-continuous-style.js +0 -19
- package/dist/esm/style/color-continuous-style.js.map +0 -1
- package/dist/esm/style/palette.js +0 -51
- package/dist/esm/style/palette.js.map +0 -1
- package/dist/esm/style/utils.js +0 -15
- package/dist/esm/style/utils.js.map +0 -1
- package/dist/esm/utils.js +0 -51
- package/dist/esm/utils.js.map +0 -1
- package/dist/esm/workers/cartoRasterTile.js +0 -4
- package/dist/esm/workers/cartoRasterTile.js.map +0 -1
- package/dist/esm/workers/cartoSpatialTile.js +0 -4
- package/dist/esm/workers/cartoSpatialTile.js.map +0 -1
- package/dist/esm/workers/cartoVectorTile.js +0 -4
- package/dist/esm/workers/cartoVectorTile.js.map +0 -1
- package/src/.DS_Store +0 -0
- package/typed/api/carto-api-error.d.ts.map +0 -1
- package/typed/api/endpoints.d.ts.map +0 -1
- package/typed/api/index.d.ts +0 -7
- package/typed/api/index.d.ts.map +0 -1
- package/typed/api/layer-map.d.ts.map +0 -1
- package/typed/api/query.d.ts.map +0 -1
- package/typed/api/request-with-parameters.d.ts.map +0 -1
- package/typed/api/types.d.ts.map +0 -1
- package/typed/index.d.ts +0 -37
- package/typed/index.d.ts.map +0 -1
- package/typed/layers/h3-tile-layer.d.ts.map +0 -1
- package/typed/layers/quadbin-tile-layer.d.ts.map +0 -1
- package/typed/layers/raster-layer-vertex.glsl.d.ts +0 -3
- package/typed/layers/raster-tile-layer.d.ts.map +0 -1
- package/typed/layers/schema/carto-properties-tile.d.ts.map +0 -1
- package/typed/layers/schema/carto-raster-tile-loader.d.ts.map +0 -1
- package/typed/layers/schema/carto-spatial-tile.d.ts.map +0 -1
- package/typed/layers/utils.d.ts.map +0 -1
- package/typed/layers/vector-tile-layer.d.ts.map +0 -1
- package/typed/sources/base-source.d.ts.map +0 -1
- package/typed/sources/boundary-query-source.d.ts +0 -10
- package/typed/sources/boundary-query-source.d.ts.map +0 -1
- package/typed/sources/boundary-table-source.d.ts.map +0 -1
- package/typed/sources/h3-query-source.d.ts.map +0 -1
- package/typed/sources/h3-table-source.d.ts.map +0 -1
- package/typed/sources/h3-tileset-source.d.ts.map +0 -1
- package/typed/sources/index.d.ts +0 -27
- package/typed/sources/index.d.ts.map +0 -1
- package/typed/sources/quadbin-query-source.d.ts.map +0 -1
- package/typed/sources/quadbin-table-source.d.ts.map +0 -1
- package/typed/sources/raster-source.d.ts.map +0 -1
- package/typed/sources/types.d.ts.map +0 -1
- package/typed/sources/vector-query-source.d.ts +0 -4
- package/typed/sources/vector-query-source.d.ts.map +0 -1
- package/typed/sources/vector-table-source.d.ts +0 -4
- package/typed/sources/vector-table-source.d.ts.map +0 -1
- package/typed/style/color-bins-style.d.ts.map +0 -1
- package/typed/style/color-categories-style.d.ts.map +0 -1
- package/typed/style/color-continuous-style.d.ts.map +0 -1
- package/typed/utils.d.ts.map +0 -1
- /package/{typed → dist}/api/fetch-map.d.ts +0 -0
- /package/{typed → dist}/api/parse-map.d.ts +0 -0
- /package/{typed → dist}/api/parse-map.d.ts.map +0 -0
- /package/{typed → dist}/basemap.d.ts +0 -0
- /package/{typed → dist}/basemap.d.ts.map +0 -0
- /package/{typed → dist}/layers/h3-tileset-2d.d.ts +0 -0
- /package/{typed → dist}/layers/h3-tileset-2d.d.ts.map +0 -0
- /package/{typed → dist}/layers/point-label-layer.d.ts +0 -0
- /package/{typed → dist}/layers/point-label-layer.d.ts.map +0 -0
- /package/{typed → dist}/layers/quadbin-layer.d.ts +0 -0
- /package/{typed → dist}/layers/quadbin-layer.d.ts.map +0 -0
- /package/{typed → dist}/layers/quadbin-tileset-2d.d.ts +0 -0
- /package/{typed → dist}/layers/quadbin-tileset-2d.d.ts.map +0 -0
- /package/{typed → dist}/layers/quadbin-utils.d.ts +0 -0
- /package/{typed → dist}/layers/quadbin-utils.d.ts.map +0 -0
- /package/{typed → dist}/layers/raster-layer-vertex.glsl.d.ts.map +0 -0
- /package/{typed → dist}/layers/raster-layer.d.ts +0 -0
- /package/{typed → dist}/layers/schema/carto-properties-tile-loader.d.ts +0 -0
- /package/{typed → dist}/layers/schema/carto-properties-tile-loader.d.ts.map +0 -0
- /package/{typed → dist}/layers/schema/carto-raster-tile.d.ts +0 -0
- /package/{typed → dist}/layers/schema/carto-spatial-tile-loader.d.ts +0 -0
- /package/{typed → dist}/layers/schema/carto-spatial-tile-loader.d.ts.map +0 -0
- /package/{typed → dist}/layers/schema/carto-tile.d.ts +0 -0
- /package/{typed → dist}/layers/schema/carto-tile.d.ts.map +0 -0
- /package/{typed → dist}/layers/schema/carto-vector-tile-loader.d.ts +0 -0
- /package/{typed → dist}/layers/schema/carto-vector-tile-loader.d.ts.map +0 -0
- /package/{typed → dist}/layers/schema/fast-pbf.d.ts +0 -0
- /package/{typed → dist}/layers/schema/fast-pbf.d.ts.map +0 -0
- /package/{typed → dist}/layers/schema/spatialjson-utils.d.ts +0 -0
- /package/{typed → dist}/layers/schema/spatialjson-utils.d.ts.map +0 -0
- /package/{typed → dist}/layers/schema/tile-loader-utils.d.ts +0 -0
- /package/{typed → dist}/layers/schema/tile-loader-utils.d.ts.map +0 -0
- /package/{typed → dist}/style/palette.d.ts +0 -0
- /package/{typed → dist}/style/palette.d.ts.map +0 -0
- /package/{typed → dist}/style/utils.d.ts +0 -0
- /package/{typed → dist}/style/utils.d.ts.map +0 -0
- /package/{typed → dist}/workers/cartoRasterTile.d.ts +0 -0
- /package/{typed → dist}/workers/cartoRasterTile.d.ts.map +0 -0
- /package/{typed → dist}/workers/cartoSpatialTile.d.ts +0 -0
- /package/{typed → dist}/workers/cartoSpatialTile.d.ts.map +0 -0
- /package/{typed → dist}/workers/cartoVectorTile.d.ts +0 -0
- /package/{typed → dist}/workers/cartoVectorTile.d.ts.map +0 -0
package/dist/dist.dev.js
CHANGED
|
@@ -12,7 +12,6 @@ var __exports__ = (() => {
|
|
|
12
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
13
|
var __getProtoOf = Object.getPrototypeOf;
|
|
14
14
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16
15
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
17
16
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
18
17
|
}) : x)(function(x) {
|
|
@@ -41,10 +40,6 @@ var __exports__ = (() => {
|
|
|
41
40
|
mod2
|
|
42
41
|
));
|
|
43
42
|
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
|
44
|
-
var __publicField = (obj, key, value) => {
|
|
45
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
46
|
-
return value;
|
|
47
|
-
};
|
|
48
43
|
|
|
49
44
|
// external-global-plugin:@deck.gl/core
|
|
50
45
|
var require_core = __commonJS({
|
|
@@ -1575,7 +1570,9 @@ var __exports__ = (() => {
|
|
|
1575
1570
|
var a = triangles[i] * dim;
|
|
1576
1571
|
var b = triangles[i + 1] * dim;
|
|
1577
1572
|
var c = triangles[i + 2] * dim;
|
|
1578
|
-
trianglesArea += Math.abs(
|
|
1573
|
+
trianglesArea += Math.abs(
|
|
1574
|
+
(data[a] - data[c]) * (data[b + 1] - data[a + 1]) - (data[a] - data[b]) * (data[c + 1] - data[a + 1])
|
|
1575
|
+
);
|
|
1579
1576
|
}
|
|
1580
1577
|
return polygonArea === 0 && trianglesArea === 0 ? 0 : Math.abs((trianglesArea - polygonArea) / polygonArea);
|
|
1581
1578
|
};
|
|
@@ -1588,11 +1585,7 @@ var __exports__ = (() => {
|
|
|
1588
1585
|
return sum;
|
|
1589
1586
|
}
|
|
1590
1587
|
earcut2.flatten = function(data) {
|
|
1591
|
-
var dim = data[0][0].length, result = {
|
|
1592
|
-
vertices: [],
|
|
1593
|
-
holes: [],
|
|
1594
|
-
dimensions: dim
|
|
1595
|
-
}, holeIndex = 0;
|
|
1588
|
+
var dim = data[0][0].length, result = { vertices: [], holes: [], dimensions: dim }, holeIndex = 0;
|
|
1596
1589
|
for (var i = 0; i < data.length; i++) {
|
|
1597
1590
|
for (var j = 0; j < data[i].length; j++) {
|
|
1598
1591
|
for (var d = 0; d < dim; d++)
|
|
@@ -9142,18 +9135,13 @@ var __exports__ = (() => {
|
|
|
9142
9135
|
});
|
|
9143
9136
|
|
|
9144
9137
|
// src/layers/h3-tile-layer.ts
|
|
9145
|
-
var import_core5 = __toESM(require_core());
|
|
9146
|
-
var import_geo_layers3 = __toESM(require_geo_layers());
|
|
9138
|
+
var import_core5 = __toESM(require_core(), 1);
|
|
9139
|
+
var import_geo_layers3 = __toESM(require_geo_layers(), 1);
|
|
9147
9140
|
|
|
9148
9141
|
// src/layers/h3-tileset-2d.ts
|
|
9149
|
-
var import_geo_layers = __toESM(require_geo_layers());
|
|
9150
|
-
var import_h3_js = __toESM(require_h3_js());
|
|
9151
|
-
function getHexagonsInBoundingBox({
|
|
9152
|
-
west,
|
|
9153
|
-
north,
|
|
9154
|
-
east,
|
|
9155
|
-
south
|
|
9156
|
-
}, resolution) {
|
|
9142
|
+
var import_geo_layers = __toESM(require_geo_layers(), 1);
|
|
9143
|
+
var import_h3_js = __toESM(require_h3_js(), 1);
|
|
9144
|
+
function getHexagonsInBoundingBox({ west, north, east, south }, resolution) {
|
|
9157
9145
|
const longitudeSpan = Math.abs(east - west);
|
|
9158
9146
|
if (longitudeSpan > 180) {
|
|
9159
9147
|
const nSegments = Math.ceil(longitudeSpan / 180);
|
|
@@ -9161,17 +9149,26 @@ var __exports__ = (() => {
|
|
|
9161
9149
|
for (let s = 0; s < nSegments; s++) {
|
|
9162
9150
|
const segmentEast = east + s * 180;
|
|
9163
9151
|
const segmentWest = Math.min(segmentEast + 179.9999999, west);
|
|
9164
|
-
h3Indices2 = h3Indices2.concat(
|
|
9165
|
-
west: segmentWest,
|
|
9166
|
-
|
|
9167
|
-
east: segmentEast,
|
|
9168
|
-
south
|
|
9169
|
-
}, resolution));
|
|
9152
|
+
h3Indices2 = h3Indices2.concat(
|
|
9153
|
+
getHexagonsInBoundingBox({ west: segmentWest, north, east: segmentEast, south }, resolution)
|
|
9154
|
+
);
|
|
9170
9155
|
}
|
|
9171
9156
|
return [...new Set(h3Indices2)];
|
|
9172
9157
|
}
|
|
9173
9158
|
const oversample = 2;
|
|
9174
|
-
const h3Indices = (0, import_h3_js.polygonToCells)(
|
|
9159
|
+
const h3Indices = (0, import_h3_js.polygonToCells)(
|
|
9160
|
+
[
|
|
9161
|
+
[
|
|
9162
|
+
[west, north],
|
|
9163
|
+
[west, south],
|
|
9164
|
+
[east, south],
|
|
9165
|
+
[east, north],
|
|
9166
|
+
[west, north]
|
|
9167
|
+
]
|
|
9168
|
+
],
|
|
9169
|
+
resolution + oversample,
|
|
9170
|
+
true
|
|
9171
|
+
);
|
|
9175
9172
|
return oversample ? [...new Set(h3Indices.map((i) => (0, import_h3_js.cellToParent)(i, resolution)))] : h3Indices;
|
|
9176
9173
|
}
|
|
9177
9174
|
function tileToBoundingBox(index) {
|
|
@@ -9182,12 +9179,7 @@ var __exports__ = (() => {
|
|
|
9182
9179
|
const south = Math.min(...latitudes);
|
|
9183
9180
|
const east = Math.max(...longitudes);
|
|
9184
9181
|
const north = Math.max(...latitudes);
|
|
9185
|
-
return {
|
|
9186
|
-
west,
|
|
9187
|
-
south,
|
|
9188
|
-
east,
|
|
9189
|
-
north
|
|
9190
|
-
};
|
|
9182
|
+
return { west, south, east, north };
|
|
9191
9183
|
}
|
|
9192
9184
|
var BIAS = 2;
|
|
9193
9185
|
function getHexagonResolution(viewport) {
|
|
@@ -9196,11 +9188,7 @@ var __exports__ = (() => {
|
|
|
9196
9188
|
return Math.max(0, Math.floor(hexagonScaleFactor + latitudeScaleFactor - BIAS));
|
|
9197
9189
|
}
|
|
9198
9190
|
var H3Tileset2D = class extends import_geo_layers._Tileset2D {
|
|
9199
|
-
getTileIndices({
|
|
9200
|
-
viewport,
|
|
9201
|
-
minZoom,
|
|
9202
|
-
maxZoom
|
|
9203
|
-
}) {
|
|
9191
|
+
getTileIndices({ viewport, minZoom, maxZoom }) {
|
|
9204
9192
|
if (viewport.latitude === void 0)
|
|
9205
9193
|
return [];
|
|
9206
9194
|
const [east, south, west, north] = viewport.getBounds();
|
|
@@ -9214,45 +9202,28 @@ var __exports__ = (() => {
|
|
|
9214
9202
|
const center = (0, import_h3_js.latLngToCell)(viewport.latitude, viewport.longitude, maxZoom);
|
|
9215
9203
|
indices = (0, import_h3_js.gridDisk)(center, 1);
|
|
9216
9204
|
} else {
|
|
9217
|
-
indices = getHexagonsInBoundingBox({
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
east,
|
|
9221
|
-
south
|
|
9222
|
-
}, z);
|
|
9223
|
-
}
|
|
9224
|
-
return indices.map((i) => ({
|
|
9225
|
-
i
|
|
9226
|
-
}));
|
|
9205
|
+
indices = getHexagonsInBoundingBox({ west, north, east, south }, z);
|
|
9206
|
+
}
|
|
9207
|
+
return indices.map((i) => ({ i }));
|
|
9227
9208
|
}
|
|
9228
|
-
getTileId({
|
|
9229
|
-
i
|
|
9230
|
-
}) {
|
|
9209
|
+
getTileId({ i }) {
|
|
9231
9210
|
return i;
|
|
9232
9211
|
}
|
|
9233
|
-
getTileMetadata({
|
|
9234
|
-
i
|
|
9235
|
-
}) {
|
|
9236
|
-
return {
|
|
9237
|
-
bbox: tileToBoundingBox(i)
|
|
9238
|
-
};
|
|
9212
|
+
getTileMetadata({ i }) {
|
|
9213
|
+
return { bbox: tileToBoundingBox(i) };
|
|
9239
9214
|
}
|
|
9240
|
-
getTileZoom({
|
|
9241
|
-
i
|
|
9242
|
-
}) {
|
|
9215
|
+
getTileZoom({ i }) {
|
|
9243
9216
|
return (0, import_h3_js.getResolution)(i);
|
|
9244
9217
|
}
|
|
9245
9218
|
getParentIndex(index) {
|
|
9246
9219
|
const resolution = (0, import_h3_js.getResolution)(index.i);
|
|
9247
9220
|
const i = (0, import_h3_js.cellToParent)(index.i, resolution - 1);
|
|
9248
|
-
return {
|
|
9249
|
-
i
|
|
9250
|
-
};
|
|
9221
|
+
return { i };
|
|
9251
9222
|
}
|
|
9252
9223
|
};
|
|
9253
9224
|
|
|
9254
9225
|
// src/layers/spatial-index-tile-layer.ts
|
|
9255
|
-
var import_core2 = __toESM(require_core2());
|
|
9226
|
+
var import_core2 = __toESM(require_core2(), 1);
|
|
9256
9227
|
|
|
9257
9228
|
// src/layers/schema/fast-pbf.ts
|
|
9258
9229
|
function readPackedTypedArray(TypedArray, pbf, obj) {
|
|
@@ -9277,11 +9248,7 @@ var __exports__ = (() => {
|
|
|
9277
9248
|
};
|
|
9278
9249
|
var BandReader = class {
|
|
9279
9250
|
static read(pbf, end) {
|
|
9280
|
-
return pbf.readFields(BandReader._readField, {
|
|
9281
|
-
name: "",
|
|
9282
|
-
type: "",
|
|
9283
|
-
data: null
|
|
9284
|
-
}, end);
|
|
9251
|
+
return pbf.readFields(BandReader._readField, { name: "", type: "", data: null }, end);
|
|
9285
9252
|
}
|
|
9286
9253
|
static _readField(tag, obj, pbf) {
|
|
9287
9254
|
if (tag === 1)
|
|
@@ -9300,24 +9267,18 @@ var __exports__ = (() => {
|
|
|
9300
9267
|
};
|
|
9301
9268
|
var TileReader = class {
|
|
9302
9269
|
static read(pbf, end) {
|
|
9303
|
-
return pbf.readFields(TileReader._readField, {
|
|
9304
|
-
blockWidth: 0,
|
|
9305
|
-
blockHeight: 0,
|
|
9306
|
-
bands: []
|
|
9307
|
-
}, end);
|
|
9270
|
+
return pbf.readFields(TileReader._readField, { blockSize: 0, bands: [] }, end);
|
|
9308
9271
|
}
|
|
9309
9272
|
static _readField(tag, obj, pbf) {
|
|
9310
9273
|
if (tag === 1)
|
|
9311
|
-
obj.
|
|
9274
|
+
obj.blockSize = pbf.readVarint();
|
|
9312
9275
|
else if (tag === 2)
|
|
9313
|
-
obj.blockHeight = pbf.readVarint();
|
|
9314
|
-
else if (tag === 3)
|
|
9315
9276
|
obj.bands.push(BandReader.read(pbf, pbf.readVarint() + pbf.pos));
|
|
9316
9277
|
}
|
|
9317
9278
|
};
|
|
9318
9279
|
|
|
9319
9280
|
// src/layers/schema/tile-loader-utils.ts
|
|
9320
|
-
var import_pbf = __toESM(require_pbf());
|
|
9281
|
+
var import_pbf = __toESM(require_pbf(), 1);
|
|
9321
9282
|
function parsePbf(buffer, TileReader5) {
|
|
9322
9283
|
const pbf = new import_pbf.default(buffer);
|
|
9323
9284
|
const tile = TileReader5.read(pbf);
|
|
@@ -9325,15 +9286,12 @@ var __exports__ = (() => {
|
|
|
9325
9286
|
}
|
|
9326
9287
|
|
|
9327
9288
|
// src/utils.ts
|
|
9328
|
-
var import_core = __toESM(require_core());
|
|
9289
|
+
var import_core = __toESM(require_core(), 1);
|
|
9329
9290
|
function assert(condition, message) {
|
|
9330
9291
|
import_core.log.assert(condition, message);
|
|
9331
9292
|
}
|
|
9332
9293
|
function createBinaryProxy(data, index) {
|
|
9333
|
-
const {
|
|
9334
|
-
properties,
|
|
9335
|
-
numericProps
|
|
9336
|
-
} = data;
|
|
9294
|
+
const { properties, numericProps } = data;
|
|
9337
9295
|
return new Proxy(properties[index] || {}, {
|
|
9338
9296
|
get(target, property) {
|
|
9339
9297
|
if (property in numericProps) {
|
|
@@ -9362,12 +9320,16 @@ var __exports__ = (() => {
|
|
|
9362
9320
|
}
|
|
9363
9321
|
return unknown;
|
|
9364
9322
|
};
|
|
9365
|
-
scale.copy = () =>
|
|
9323
|
+
scale.copy = () => {
|
|
9324
|
+
const scaleCopy = scaleIdentity();
|
|
9325
|
+
scaleCopy.unknown(unknown);
|
|
9326
|
+
return scaleCopy;
|
|
9327
|
+
};
|
|
9366
9328
|
return scale;
|
|
9367
9329
|
}
|
|
9368
9330
|
|
|
9369
9331
|
// src/layers/schema/carto-raster-tile-loader.ts
|
|
9370
|
-
var VERSION =
|
|
9332
|
+
var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
9371
9333
|
var id = "cartoRasterTile";
|
|
9372
9334
|
var DEFAULT_OPTIONS = {
|
|
9373
9335
|
cartoRasterTile: {
|
|
@@ -9390,38 +9352,20 @@ var __exports__ = (() => {
|
|
|
9390
9352
|
function parseCartoRasterTile(arrayBuffer, options) {
|
|
9391
9353
|
if (!arrayBuffer)
|
|
9392
9354
|
return null;
|
|
9393
|
-
const
|
|
9394
|
-
const {
|
|
9395
|
-
bands,
|
|
9396
|
-
blockHeight,
|
|
9397
|
-
blockWidth
|
|
9398
|
-
} = tile;
|
|
9355
|
+
const { bands, blockSize } = parsePbf(arrayBuffer, TileReader);
|
|
9399
9356
|
const numericProps = {};
|
|
9400
9357
|
for (let i = 0; i < bands.length; i++) {
|
|
9401
|
-
const {
|
|
9402
|
-
name,
|
|
9403
|
-
data
|
|
9404
|
-
} = bands[i];
|
|
9358
|
+
const { name, data } = bands[i];
|
|
9405
9359
|
numericProps[name] = data;
|
|
9406
9360
|
}
|
|
9407
|
-
return {
|
|
9408
|
-
blockWidth,
|
|
9409
|
-
blockHeight,
|
|
9410
|
-
cells: {
|
|
9411
|
-
numericProps,
|
|
9412
|
-
properties: []
|
|
9413
|
-
}
|
|
9414
|
-
};
|
|
9361
|
+
return { blockSize, cells: { numericProps, properties: [] } };
|
|
9415
9362
|
}
|
|
9416
9363
|
var carto_raster_tile_loader_default = CartoRasterTileLoader;
|
|
9417
9364
|
|
|
9418
9365
|
// src/layers/schema/carto-tile.ts
|
|
9419
9366
|
var KeyValueObjectReader = class {
|
|
9420
9367
|
static read(pbf, end) {
|
|
9421
|
-
return pbf.readFields(KeyValueObjectReader._readField, {
|
|
9422
|
-
key: "",
|
|
9423
|
-
value: null
|
|
9424
|
-
}, end);
|
|
9368
|
+
return pbf.readFields(KeyValueObjectReader._readField, { key: "", value: null }, end);
|
|
9425
9369
|
}
|
|
9426
9370
|
static _readField(tag, obj, pbf) {
|
|
9427
9371
|
if (tag === 1)
|
|
@@ -9436,27 +9380,15 @@ var __exports__ = (() => {
|
|
|
9436
9380
|
}
|
|
9437
9381
|
static _readField(tag, obj, pbf) {
|
|
9438
9382
|
if (tag === 1) {
|
|
9439
|
-
const {
|
|
9440
|
-
key,
|
|
9441
|
-
value
|
|
9442
|
-
} = KeyValueObjectReader.read(pbf, pbf.readVarint() + pbf.pos);
|
|
9383
|
+
const { key, value } = KeyValueObjectReader.read(pbf, pbf.readVarint() + pbf.pos);
|
|
9443
9384
|
obj[key] = value;
|
|
9444
9385
|
}
|
|
9445
9386
|
}
|
|
9446
9387
|
};
|
|
9447
9388
|
var DoublesReader = class {
|
|
9448
9389
|
static read(pbf, end) {
|
|
9449
|
-
const {
|
|
9450
|
-
|
|
9451
|
-
size
|
|
9452
|
-
} = pbf.readFields(DoublesReader._readField, {
|
|
9453
|
-
value: [],
|
|
9454
|
-
size: 0
|
|
9455
|
-
}, end);
|
|
9456
|
-
return {
|
|
9457
|
-
value: new Float32Array(value),
|
|
9458
|
-
size
|
|
9459
|
-
};
|
|
9390
|
+
const { value, size } = pbf.readFields(DoublesReader._readField, { value: [], size: 0 }, end);
|
|
9391
|
+
return { value: new Float32Array(value), size };
|
|
9460
9392
|
}
|
|
9461
9393
|
static _readField(tag, obj, pbf) {
|
|
9462
9394
|
if (tag === 1)
|
|
@@ -9467,17 +9399,8 @@ var __exports__ = (() => {
|
|
|
9467
9399
|
};
|
|
9468
9400
|
var IntsReader = class {
|
|
9469
9401
|
static read(pbf, end) {
|
|
9470
|
-
const {
|
|
9471
|
-
|
|
9472
|
-
size
|
|
9473
|
-
} = pbf.readFields(IntsReader._readField, {
|
|
9474
|
-
value: [],
|
|
9475
|
-
size: 0
|
|
9476
|
-
}, end);
|
|
9477
|
-
return {
|
|
9478
|
-
value: new Uint32Array(value),
|
|
9479
|
-
size
|
|
9480
|
-
};
|
|
9402
|
+
const { value, size } = pbf.readFields(IntsReader._readField, { value: [], size: 0 }, end);
|
|
9403
|
+
return { value: new Uint32Array(value), size };
|
|
9481
9404
|
}
|
|
9482
9405
|
static _readField(tag, obj, pbf) {
|
|
9483
9406
|
if (tag === 1)
|
|
@@ -9488,9 +9411,7 @@ var __exports__ = (() => {
|
|
|
9488
9411
|
};
|
|
9489
9412
|
var FieldsReader = class {
|
|
9490
9413
|
static read(pbf, end) {
|
|
9491
|
-
return pbf.readFields(FieldsReader._readField, {
|
|
9492
|
-
id: 0
|
|
9493
|
-
}, end);
|
|
9414
|
+
return pbf.readFields(FieldsReader._readField, { id: 0 }, end);
|
|
9494
9415
|
}
|
|
9495
9416
|
static _readField(tag, obj, pbf) {
|
|
9496
9417
|
if (tag === 1)
|
|
@@ -9499,9 +9420,7 @@ var __exports__ = (() => {
|
|
|
9499
9420
|
};
|
|
9500
9421
|
var NumericPropReader = class {
|
|
9501
9422
|
static read(pbf, end) {
|
|
9502
|
-
return pbf.readFields(NumericPropReader._readField, {
|
|
9503
|
-
value: []
|
|
9504
|
-
}, end);
|
|
9423
|
+
return pbf.readFields(NumericPropReader._readField, { value: [] }, end);
|
|
9505
9424
|
}
|
|
9506
9425
|
static _readField(tag, obj, pbf) {
|
|
9507
9426
|
if (tag === 1)
|
|
@@ -9510,10 +9429,7 @@ var __exports__ = (() => {
|
|
|
9510
9429
|
};
|
|
9511
9430
|
var NumericPropKeyValueReader = class {
|
|
9512
9431
|
static read(pbf, end) {
|
|
9513
|
-
return pbf.readFields(NumericPropKeyValueReader._readField, {
|
|
9514
|
-
key: "",
|
|
9515
|
-
value: null
|
|
9516
|
-
}, end);
|
|
9432
|
+
return pbf.readFields(NumericPropKeyValueReader._readField, { key: "", value: null }, end);
|
|
9517
9433
|
}
|
|
9518
9434
|
static _readField(tag, obj, pbf) {
|
|
9519
9435
|
if (tag === 1)
|
|
@@ -9524,14 +9440,18 @@ var __exports__ = (() => {
|
|
|
9524
9440
|
};
|
|
9525
9441
|
var PointsReader = class {
|
|
9526
9442
|
static read(pbf, end) {
|
|
9527
|
-
return pbf.readFields(
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9443
|
+
return pbf.readFields(
|
|
9444
|
+
PointsReader._readField,
|
|
9445
|
+
{
|
|
9446
|
+
positions: null,
|
|
9447
|
+
globalFeatureIds: null,
|
|
9448
|
+
featureIds: null,
|
|
9449
|
+
properties: [],
|
|
9450
|
+
numericProps: {},
|
|
9451
|
+
fields: []
|
|
9452
|
+
},
|
|
9453
|
+
end
|
|
9454
|
+
);
|
|
9535
9455
|
}
|
|
9536
9456
|
static _readField(tag, obj, pbf) {
|
|
9537
9457
|
if (tag === 1)
|
|
@@ -9551,15 +9471,19 @@ var __exports__ = (() => {
|
|
|
9551
9471
|
};
|
|
9552
9472
|
var LinesReader = class {
|
|
9553
9473
|
static read(pbf, end) {
|
|
9554
|
-
return pbf.readFields(
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9474
|
+
return pbf.readFields(
|
|
9475
|
+
LinesReader._readField,
|
|
9476
|
+
{
|
|
9477
|
+
positions: null,
|
|
9478
|
+
pathIndices: null,
|
|
9479
|
+
globalFeatureIds: null,
|
|
9480
|
+
featureIds: null,
|
|
9481
|
+
properties: [],
|
|
9482
|
+
numericProps: {},
|
|
9483
|
+
fields: []
|
|
9484
|
+
},
|
|
9485
|
+
end
|
|
9486
|
+
);
|
|
9563
9487
|
}
|
|
9564
9488
|
static _readField(tag, obj, pbf) {
|
|
9565
9489
|
if (tag === 1)
|
|
@@ -9581,17 +9505,21 @@ var __exports__ = (() => {
|
|
|
9581
9505
|
};
|
|
9582
9506
|
var PolygonsReader = class {
|
|
9583
9507
|
static read(pbf, end) {
|
|
9584
|
-
return pbf.readFields(
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9508
|
+
return pbf.readFields(
|
|
9509
|
+
PolygonsReader._readField,
|
|
9510
|
+
{
|
|
9511
|
+
positions: null,
|
|
9512
|
+
polygonIndices: null,
|
|
9513
|
+
globalFeatureIds: null,
|
|
9514
|
+
featureIds: null,
|
|
9515
|
+
primitivePolygonIndices: null,
|
|
9516
|
+
triangles: null,
|
|
9517
|
+
properties: [],
|
|
9518
|
+
numericProps: {},
|
|
9519
|
+
fields: []
|
|
9520
|
+
},
|
|
9521
|
+
end
|
|
9522
|
+
);
|
|
9595
9523
|
}
|
|
9596
9524
|
static _readField(tag, obj, pbf) {
|
|
9597
9525
|
if (tag === 1)
|
|
@@ -9617,11 +9545,7 @@ var __exports__ = (() => {
|
|
|
9617
9545
|
};
|
|
9618
9546
|
var TileReader2 = class {
|
|
9619
9547
|
static read(pbf, end) {
|
|
9620
|
-
return pbf.readFields(TileReader2._readField, {
|
|
9621
|
-
points: null,
|
|
9622
|
-
lines: null,
|
|
9623
|
-
polygons: null
|
|
9624
|
-
}, end);
|
|
9548
|
+
return pbf.readFields(TileReader2._readField, { points: null, lines: null, polygons: null }, end);
|
|
9625
9549
|
}
|
|
9626
9550
|
static _readField(tag, obj, pbf) {
|
|
9627
9551
|
if (tag === 1)
|
|
@@ -9636,9 +9560,7 @@ var __exports__ = (() => {
|
|
|
9636
9560
|
// src/layers/schema/carto-spatial-tile.ts
|
|
9637
9561
|
var IndicesReader = class {
|
|
9638
9562
|
static read(pbf, end) {
|
|
9639
|
-
return pbf.readFields(IndicesReader._readField, {
|
|
9640
|
-
value: []
|
|
9641
|
-
}, end);
|
|
9563
|
+
return pbf.readFields(IndicesReader._readField, { value: [] }, end);
|
|
9642
9564
|
}
|
|
9643
9565
|
static _readField(tag, obj, pbf) {
|
|
9644
9566
|
if (tag === 1)
|
|
@@ -9647,11 +9569,11 @@ var __exports__ = (() => {
|
|
|
9647
9569
|
};
|
|
9648
9570
|
var CellsReader = class {
|
|
9649
9571
|
static read(pbf, end) {
|
|
9650
|
-
return pbf.readFields(
|
|
9651
|
-
|
|
9652
|
-
properties: [],
|
|
9653
|
-
|
|
9654
|
-
|
|
9572
|
+
return pbf.readFields(
|
|
9573
|
+
CellsReader._readField,
|
|
9574
|
+
{ indices: null, properties: [], numericProps: {} },
|
|
9575
|
+
end
|
|
9576
|
+
);
|
|
9655
9577
|
}
|
|
9656
9578
|
static _readField(tag, obj, pbf) {
|
|
9657
9579
|
if (tag === 1)
|
|
@@ -9666,10 +9588,7 @@ var __exports__ = (() => {
|
|
|
9666
9588
|
};
|
|
9667
9589
|
var TileReader3 = class {
|
|
9668
9590
|
static read(pbf, end) {
|
|
9669
|
-
return pbf.readFields(TileReader3._readField, {
|
|
9670
|
-
scheme: 0,
|
|
9671
|
-
cells: null
|
|
9672
|
-
}, end);
|
|
9591
|
+
return pbf.readFields(TileReader3._readField, { scheme: 0, cells: null }, end);
|
|
9673
9592
|
}
|
|
9674
9593
|
static _readField(tag, obj, pbf) {
|
|
9675
9594
|
if (tag === 1)
|
|
@@ -9680,7 +9599,7 @@ var __exports__ = (() => {
|
|
|
9680
9599
|
};
|
|
9681
9600
|
|
|
9682
9601
|
// ../../node_modules/quadbin/dist/esm/index.js
|
|
9683
|
-
var import_tile_cover = __toESM(require_tile_cover());
|
|
9602
|
+
var import_tile_cover = __toESM(require_tile_cover(), 1);
|
|
9684
9603
|
var B = [
|
|
9685
9604
|
0x5555555555555555n,
|
|
9686
9605
|
0x3333333333333333n,
|
|
@@ -9743,30 +9662,22 @@ var __exports__ = (() => {
|
|
|
9743
9662
|
|
|
9744
9663
|
// src/layers/schema/spatialjson-utils.ts
|
|
9745
9664
|
function binaryToSpatialjson(binary) {
|
|
9746
|
-
const {
|
|
9747
|
-
cells,
|
|
9748
|
-
scheme
|
|
9749
|
-
} = binary;
|
|
9665
|
+
const { cells, scheme } = binary;
|
|
9750
9666
|
const count = cells.indices.value.length;
|
|
9751
9667
|
const spatial = [];
|
|
9752
9668
|
for (let i = 0; i < count; i++) {
|
|
9753
9669
|
const id4 = scheme === "h3" ? bigIntToHex(cells.indices.value[i]) : cells.indices.value[i];
|
|
9754
|
-
const properties = {
|
|
9755
|
-
...cells.properties[i]
|
|
9756
|
-
};
|
|
9670
|
+
const properties = { ...cells.properties[i] };
|
|
9757
9671
|
for (const key of Object.keys(cells.numericProps)) {
|
|
9758
9672
|
properties[key] = cells.numericProps[key].value[i];
|
|
9759
9673
|
}
|
|
9760
|
-
spatial.push({
|
|
9761
|
-
id: id4,
|
|
9762
|
-
properties
|
|
9763
|
-
});
|
|
9674
|
+
spatial.push({ id: id4, properties });
|
|
9764
9675
|
}
|
|
9765
9676
|
return spatial;
|
|
9766
9677
|
}
|
|
9767
9678
|
|
|
9768
9679
|
// src/layers/schema/carto-spatial-tile-loader.ts
|
|
9769
|
-
var VERSION2 =
|
|
9680
|
+
var VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
9770
9681
|
var id2 = "cartoSpatialTile";
|
|
9771
9682
|
var DEFAULT_OPTIONS2 = {
|
|
9772
9683
|
cartoSpatialTile: {
|
|
@@ -9791,39 +9702,40 @@ var __exports__ = (() => {
|
|
|
9791
9702
|
if (!arrayBuffer)
|
|
9792
9703
|
return null;
|
|
9793
9704
|
const tile = parsePbf(arrayBuffer, TileReader3);
|
|
9794
|
-
const {
|
|
9795
|
-
cells
|
|
9796
|
-
} = tile;
|
|
9705
|
+
const { cells } = tile;
|
|
9797
9706
|
const scheme = options?.cartoSpatialTile?.scheme;
|
|
9798
|
-
const data = {
|
|
9799
|
-
cells,
|
|
9800
|
-
scheme
|
|
9801
|
-
};
|
|
9707
|
+
const data = { cells, scheme };
|
|
9802
9708
|
return binaryToSpatialjson(data);
|
|
9803
9709
|
}
|
|
9804
9710
|
var carto_spatial_tile_loader_default = CartoSpatialTileLoader;
|
|
9805
9711
|
|
|
9806
9712
|
// src/layers/spatial-index-tile-layer.ts
|
|
9807
|
-
var import_geo_layers2 = __toESM(require_geo_layers());
|
|
9713
|
+
var import_geo_layers2 = __toESM(require_geo_layers(), 1);
|
|
9714
|
+
|
|
9715
|
+
// src/constants.ts
|
|
9716
|
+
var DEFAULT_TILE_SIZE = 512;
|
|
9717
|
+
var DEFAULT_TILE_RESOLUTION = 0.5;
|
|
9718
|
+
var DEFAULT_AGGREGATION_RES_LEVEL_H3 = 4;
|
|
9719
|
+
var DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN = 6;
|
|
9720
|
+
|
|
9721
|
+
// src/layers/spatial-index-tile-layer.ts
|
|
9808
9722
|
(0, import_core2.registerLoaders)([carto_raster_tile_loader_default, carto_spatial_tile_loader_default]);
|
|
9809
9723
|
function isFeatureIdDefined(value) {
|
|
9810
9724
|
return value !== void 0 && value !== null && value !== "";
|
|
9811
9725
|
}
|
|
9812
|
-
var defaultProps = {
|
|
9726
|
+
var defaultProps = {
|
|
9727
|
+
tileSize: DEFAULT_TILE_SIZE
|
|
9728
|
+
};
|
|
9813
9729
|
var SpatialIndexTileLayer = class extends import_geo_layers2.TileLayer {
|
|
9814
9730
|
_updateAutoHighlight(info) {
|
|
9815
|
-
const {
|
|
9816
|
-
hoveredFeatureId
|
|
9817
|
-
} = this.state;
|
|
9731
|
+
const { hoveredFeatureId } = this.state;
|
|
9818
9732
|
const hoveredFeature = info.object;
|
|
9819
|
-
let newHoveredFeatureId;
|
|
9733
|
+
let newHoveredFeatureId = null;
|
|
9820
9734
|
if (hoveredFeature) {
|
|
9821
9735
|
newHoveredFeatureId = hoveredFeature.id;
|
|
9822
9736
|
}
|
|
9823
9737
|
if (hoveredFeatureId !== newHoveredFeatureId) {
|
|
9824
|
-
let {
|
|
9825
|
-
highlightColor
|
|
9826
|
-
} = this.props;
|
|
9738
|
+
let { highlightColor } = this.props;
|
|
9827
9739
|
if (typeof highlightColor === "function") {
|
|
9828
9740
|
highlightColor = highlightColor(info);
|
|
9829
9741
|
}
|
|
@@ -9840,9 +9752,7 @@ var __exports__ = (() => {
|
|
|
9840
9752
|
};
|
|
9841
9753
|
}
|
|
9842
9754
|
getHighlightedObjectIndex(tile) {
|
|
9843
|
-
const {
|
|
9844
|
-
hoveredFeatureId
|
|
9845
|
-
} = this.state;
|
|
9755
|
+
const { hoveredFeatureId } = this.state;
|
|
9846
9756
|
const data = tile.content;
|
|
9847
9757
|
const isFeatureIdPresent = isFeatureIdDefined(hoveredFeatureId);
|
|
9848
9758
|
if (!isFeatureIdPresent || !Array.isArray(data) || !this._featureInTile(tile, hoveredFeatureId)) {
|
|
@@ -9854,9 +9764,7 @@ var __exports__ = (() => {
|
|
|
9854
9764
|
const tileset = this.state.tileset;
|
|
9855
9765
|
const tileZoom = tileset.getTileZoom(tile.index);
|
|
9856
9766
|
const KEY = tile.index.q ? "q" : "i";
|
|
9857
|
-
let featureIndex = {
|
|
9858
|
-
[KEY]: featureId
|
|
9859
|
-
};
|
|
9767
|
+
let featureIndex = { [KEY]: featureId };
|
|
9860
9768
|
let featureZoom = tileset.getTileZoom(featureIndex);
|
|
9861
9769
|
while (!(featureZoom <= tileZoom)) {
|
|
9862
9770
|
featureIndex = tileset.getParentIndex(featureIndex);
|
|
@@ -9865,29 +9773,23 @@ var __exports__ = (() => {
|
|
|
9865
9773
|
return featureIndex[KEY] === tile.index[KEY];
|
|
9866
9774
|
}
|
|
9867
9775
|
};
|
|
9868
|
-
|
|
9869
|
-
|
|
9776
|
+
SpatialIndexTileLayer.layerName = "SpatialIndexTileLayer";
|
|
9777
|
+
SpatialIndexTileLayer.defaultProps = defaultProps;
|
|
9870
9778
|
|
|
9871
9779
|
// src/layers/utils.ts
|
|
9872
|
-
var import_core3 = __toESM(require_core());
|
|
9873
|
-
var import_core4 = __toESM(require_core());
|
|
9780
|
+
var import_core3 = __toESM(require_core(), 1);
|
|
9781
|
+
var import_core4 = __toESM(require_core(), 1);
|
|
9874
9782
|
function injectAccessToken(loadOptions, accessToken) {
|
|
9875
9783
|
if (!loadOptions?.fetch?.headers?.Authorization) {
|
|
9876
9784
|
loadOptions.fetch = {
|
|
9877
9785
|
...loadOptions.fetch,
|
|
9878
|
-
headers: {
|
|
9879
|
-
...loadOptions.fetch?.headers,
|
|
9880
|
-
Authorization: `Bearer ${accessToken}`
|
|
9881
|
-
}
|
|
9786
|
+
headers: { ...loadOptions.fetch?.headers, Authorization: `Bearer ${accessToken}` }
|
|
9882
9787
|
};
|
|
9883
9788
|
}
|
|
9884
9789
|
}
|
|
9885
9790
|
function mergeBoundaryData(geometry, properties) {
|
|
9886
9791
|
const mapping = {};
|
|
9887
|
-
for (const {
|
|
9888
|
-
geoid,
|
|
9889
|
-
...rest
|
|
9890
|
-
} of properties.properties) {
|
|
9792
|
+
for (const { geoid, ...rest } of properties.properties) {
|
|
9891
9793
|
if (geoid in mapping) {
|
|
9892
9794
|
import_core3.log.warn("Duplicate geoid key in boundary mapping, using first occurance")();
|
|
9893
9795
|
} else {
|
|
@@ -9899,13 +9801,8 @@ var __exports__ = (() => {
|
|
|
9899
9801
|
if (geom.positions.value.length === 0) {
|
|
9900
9802
|
continue;
|
|
9901
9803
|
}
|
|
9902
|
-
geom.properties = geom.properties.map(({
|
|
9903
|
-
|
|
9904
|
-
}) => mapping[geoid]);
|
|
9905
|
-
const {
|
|
9906
|
-
positions,
|
|
9907
|
-
globalFeatureIds
|
|
9908
|
-
} = geom;
|
|
9804
|
+
geom.properties = geom.properties.map(({ geoid }) => mapping[geoid]);
|
|
9805
|
+
const { positions, globalFeatureIds } = geom;
|
|
9909
9806
|
let indices = null;
|
|
9910
9807
|
if (type === "lines")
|
|
9911
9808
|
indices = geom.pathIndices.value;
|
|
@@ -9916,10 +9813,7 @@ var __exports__ = (() => {
|
|
|
9916
9813
|
const sourceProp = properties.numericProps[key].value;
|
|
9917
9814
|
const TypedArray = sourceProp.constructor;
|
|
9918
9815
|
const destProp = new TypedArray(length);
|
|
9919
|
-
geom.numericProps[key] = {
|
|
9920
|
-
value: destProp,
|
|
9921
|
-
size: 1
|
|
9922
|
-
};
|
|
9816
|
+
geom.numericProps[key] = { value: destProp, size: 1 };
|
|
9923
9817
|
if (!indices) {
|
|
9924
9818
|
for (let i = 0; i < length; i++) {
|
|
9925
9819
|
const featureId = globalFeatureIds.value[i];
|
|
@@ -9949,12 +9843,8 @@ var __exports__ = (() => {
|
|
|
9949
9843
|
|
|
9950
9844
|
// src/layers/h3-tile-layer.ts
|
|
9951
9845
|
var renderSubLayers = (props) => {
|
|
9952
|
-
const {
|
|
9953
|
-
|
|
9954
|
-
} = props;
|
|
9955
|
-
const {
|
|
9956
|
-
index
|
|
9957
|
-
} = props.tile;
|
|
9846
|
+
const { data } = props;
|
|
9847
|
+
const { index } = props.tile;
|
|
9958
9848
|
if (!data || !data.length)
|
|
9959
9849
|
return null;
|
|
9960
9850
|
return new import_geo_layers3.H3HexagonLayer(props, {
|
|
@@ -9964,7 +9854,8 @@ var __exports__ = (() => {
|
|
|
9964
9854
|
});
|
|
9965
9855
|
};
|
|
9966
9856
|
var defaultProps2 = {
|
|
9967
|
-
data: TilejsonPropType
|
|
9857
|
+
data: TilejsonPropType,
|
|
9858
|
+
tileSize: DEFAULT_TILE_SIZE
|
|
9968
9859
|
};
|
|
9969
9860
|
var H3TileLayer = class extends import_core5.CompositeLayer {
|
|
9970
9861
|
initializeState() {
|
|
@@ -9974,71 +9865,62 @@ var __exports__ = (() => {
|
|
|
9974
9865
|
const loadOptions = super.getLoadOptions() || {};
|
|
9975
9866
|
const tileJSON = this.props.data;
|
|
9976
9867
|
injectAccessToken(loadOptions, tileJSON.accessToken);
|
|
9977
|
-
loadOptions.cartoSpatialTile = {
|
|
9978
|
-
...loadOptions.cartoSpatialTile,
|
|
9979
|
-
scheme: "h3"
|
|
9980
|
-
};
|
|
9868
|
+
loadOptions.cartoSpatialTile = { ...loadOptions.cartoSpatialTile, scheme: "h3" };
|
|
9981
9869
|
return loadOptions;
|
|
9982
9870
|
}
|
|
9983
9871
|
renderLayers() {
|
|
9984
9872
|
const tileJSON = this.props.data;
|
|
9985
9873
|
if (!tileJSON)
|
|
9986
9874
|
return null;
|
|
9987
|
-
const {
|
|
9988
|
-
|
|
9989
|
-
} = tileJSON;
|
|
9990
|
-
let {
|
|
9991
|
-
minresolution,
|
|
9992
|
-
maxresolution
|
|
9993
|
-
} = tileJSON;
|
|
9875
|
+
const { tiles: data } = tileJSON;
|
|
9876
|
+
let { minresolution, maxresolution } = tileJSON;
|
|
9994
9877
|
if (this.props.minZoom) {
|
|
9995
|
-
minresolution = Math.max(
|
|
9996
|
-
|
|
9997
|
-
latitude: 0
|
|
9998
|
-
|
|
9878
|
+
minresolution = Math.max(
|
|
9879
|
+
minresolution,
|
|
9880
|
+
getHexagonResolution({ zoom: this.props.minZoom, latitude: 0 })
|
|
9881
|
+
);
|
|
9999
9882
|
}
|
|
10000
9883
|
if (this.props.maxZoom) {
|
|
10001
|
-
maxresolution = Math.min(
|
|
10002
|
-
|
|
10003
|
-
latitude: 0
|
|
10004
|
-
|
|
9884
|
+
maxresolution = Math.min(
|
|
9885
|
+
maxresolution,
|
|
9886
|
+
getHexagonResolution({ zoom: this.props.maxZoom, latitude: 0 })
|
|
9887
|
+
);
|
|
10005
9888
|
}
|
|
10006
|
-
return [
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
9889
|
+
return [
|
|
9890
|
+
new SpatialIndexTileLayer(this.props, {
|
|
9891
|
+
id: `h3-tile-layer-${this.props.id}`,
|
|
9892
|
+
data,
|
|
9893
|
+
TilesetClass: H3Tileset2D,
|
|
9894
|
+
renderSubLayers,
|
|
9895
|
+
minZoom: minresolution,
|
|
9896
|
+
maxZoom: maxresolution,
|
|
9897
|
+
loadOptions: this.getLoadOptions()
|
|
9898
|
+
})
|
|
9899
|
+
];
|
|
10015
9900
|
}
|
|
10016
9901
|
};
|
|
10017
|
-
|
|
10018
|
-
|
|
9902
|
+
H3TileLayer.layerName = "H3TileLayer";
|
|
9903
|
+
H3TileLayer.defaultProps = defaultProps2;
|
|
10019
9904
|
|
|
10020
9905
|
// src/layers/point-label-layer.ts
|
|
10021
|
-
var import_core6 = __toESM(require_core());
|
|
10022
|
-
var import_layers = __toESM(require_layers());
|
|
9906
|
+
var import_core6 = __toESM(require_core(), 1);
|
|
9907
|
+
var import_layers = __toESM(require_layers(), 1);
|
|
10023
9908
|
var [LEFT, TOP, RIGHT, BOTTOM] = [0, 1, 2, 3];
|
|
10024
9909
|
var EnhancedTextBackgroundLayer = class extends import_layers._TextBackgroundLayer {
|
|
10025
9910
|
getShaders() {
|
|
10026
9911
|
const shaders = super.getShaders();
|
|
10027
9912
|
let vs = shaders.vs;
|
|
10028
9913
|
vs = vs.replaceAll("padding.", "_padding.");
|
|
10029
|
-
vs = vs.replace(
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
};
|
|
9914
|
+
vs = vs.replace(
|
|
9915
|
+
"void main(void) {",
|
|
9916
|
+
"void main(void) {\n vec4 _padding = padding + instancePixelOffsets.xyxy * vec4(1.0, 1.0, -1.0, -1.0);"
|
|
9917
|
+
);
|
|
9918
|
+
return { ...shaders, vs };
|
|
10034
9919
|
}
|
|
10035
9920
|
};
|
|
10036
|
-
|
|
9921
|
+
EnhancedTextBackgroundLayer.layerName = "EnhancedTextBackgroundLayer";
|
|
10037
9922
|
var EnhancedTextLayer = class extends import_layers.TextLayer {
|
|
10038
|
-
filterSubLayer({
|
|
10039
|
-
layer,
|
|
10040
|
-
renderPass
|
|
10041
|
-
}) {
|
|
9923
|
+
filterSubLayer({ layer, renderPass }) {
|
|
10042
9924
|
const background = layer.id.includes("primary-background");
|
|
10043
9925
|
if (renderPass === "collision") {
|
|
10044
9926
|
return background;
|
|
@@ -10046,18 +9928,11 @@ var __exports__ = (() => {
|
|
|
10046
9928
|
return !background;
|
|
10047
9929
|
}
|
|
10048
9930
|
};
|
|
10049
|
-
|
|
9931
|
+
EnhancedTextLayer.layerName = "EnhancedTextLayer";
|
|
10050
9932
|
var defaultProps3 = {
|
|
10051
9933
|
...import_layers.TextLayer.defaultProps,
|
|
10052
|
-
getRadius: {
|
|
10053
|
-
|
|
10054
|
-
value: 1
|
|
10055
|
-
},
|
|
10056
|
-
radiusScale: {
|
|
10057
|
-
type: "number",
|
|
10058
|
-
min: 0,
|
|
10059
|
-
value: 1
|
|
10060
|
-
}
|
|
9934
|
+
getRadius: { type: "accessor", value: 1 },
|
|
9935
|
+
radiusScale: { type: "number", min: 0, value: 1 }
|
|
10061
9936
|
};
|
|
10062
9937
|
var PointLabelLayer = class extends import_core6.CompositeLayer {
|
|
10063
9938
|
calculatePixelOffset(secondary) {
|
|
@@ -10085,14 +9960,13 @@ var __exports__ = (() => {
|
|
|
10085
9960
|
return typeof getRadius === "function" ? (d, info) => {
|
|
10086
9961
|
const r = (info ? getRadius(d, info) : 1) * radiusScale * radiusPadding;
|
|
10087
9962
|
return [xMult * (r + xPadding), yMult * (r + yPadding) + yOffset];
|
|
10088
|
-
} : [
|
|
9963
|
+
} : [
|
|
9964
|
+
xMult * (getRadius * radiusScale * radiusPadding + xPadding),
|
|
9965
|
+
yMult * (getRadius * radiusScale * radiusPadding + yPadding) + yOffset
|
|
9966
|
+
];
|
|
10089
9967
|
}
|
|
10090
9968
|
calculateBackgroundPadding() {
|
|
10091
|
-
const {
|
|
10092
|
-
getTextAnchor: anchor,
|
|
10093
|
-
getAlignmentBaseline: alignment,
|
|
10094
|
-
sizeScale
|
|
10095
|
-
} = this.props;
|
|
9969
|
+
const { getTextAnchor: anchor, getAlignmentBaseline: alignment, sizeScale } = this.props;
|
|
10096
9970
|
const paddingX = 12 * sizeScale;
|
|
10097
9971
|
const paddingY = 3 * sizeScale;
|
|
10098
9972
|
const backgroundPadding = [0, 0, 0, 0];
|
|
@@ -10114,10 +9988,7 @@ var __exports__ = (() => {
|
|
|
10114
9988
|
}
|
|
10115
9989
|
return backgroundPadding;
|
|
10116
9990
|
}
|
|
10117
|
-
renderTextLayer(id4, {
|
|
10118
|
-
updateTriggers: updateTriggersOverride = {},
|
|
10119
|
-
...props
|
|
10120
|
-
}) {
|
|
9991
|
+
renderTextLayer(id4, { updateTriggers: updateTriggersOverride = {}, ...props }) {
|
|
10121
9992
|
const {
|
|
10122
9993
|
data,
|
|
10123
9994
|
characterSet,
|
|
@@ -10134,33 +10005,39 @@ var __exports__ = (() => {
|
|
|
10134
10005
|
getTextAnchor,
|
|
10135
10006
|
updateTriggers
|
|
10136
10007
|
} = this.props;
|
|
10137
|
-
return new EnhancedTextLayer(
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10008
|
+
return new EnhancedTextLayer(
|
|
10009
|
+
this.getSubLayerProps({
|
|
10010
|
+
id: id4,
|
|
10011
|
+
data,
|
|
10012
|
+
characterSet,
|
|
10013
|
+
fontFamily,
|
|
10014
|
+
fontSettings,
|
|
10015
|
+
fontWeight,
|
|
10016
|
+
outlineColor,
|
|
10017
|
+
outlineWidth,
|
|
10018
|
+
sizeScale,
|
|
10019
|
+
getAlignmentBaseline,
|
|
10020
|
+
getColor,
|
|
10021
|
+
getPosition,
|
|
10022
|
+
getTextAnchor,
|
|
10023
|
+
updateTriggers: {
|
|
10024
|
+
...updateTriggers,
|
|
10025
|
+
...updateTriggersOverride,
|
|
10026
|
+
getPixelOffset: [
|
|
10027
|
+
updateTriggers.getRadius,
|
|
10028
|
+
updateTriggers.getTextAnchor,
|
|
10029
|
+
updateTriggers.getAlignmentBaseline,
|
|
10030
|
+
radiusScale,
|
|
10031
|
+
sizeScale
|
|
10032
|
+
]
|
|
10161
10033
|
}
|
|
10162
|
-
}
|
|
10163
|
-
|
|
10034
|
+
}),
|
|
10035
|
+
{
|
|
10036
|
+
getSize: 1,
|
|
10037
|
+
_subLayerProps: { background: { type: EnhancedTextBackgroundLayer } }
|
|
10038
|
+
},
|
|
10039
|
+
props
|
|
10040
|
+
);
|
|
10164
10041
|
}
|
|
10165
10042
|
renderLayers() {
|
|
10166
10043
|
const {
|
|
@@ -10173,36 +10050,33 @@ var __exports__ = (() => {
|
|
|
10173
10050
|
} = this.props;
|
|
10174
10051
|
const getPixelOffset = this.calculatePixelOffset(false);
|
|
10175
10052
|
const backgroundPadding = this.calculateBackgroundPadding();
|
|
10176
|
-
const out = [
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
}
|
|
10191
|
-
|
|
10192
|
-
outlineColor: secondaryOutlineColor
|
|
10193
|
-
}
|
|
10194
|
-
})];
|
|
10053
|
+
const out = [
|
|
10054
|
+
this.renderTextLayer(`${updateTriggers.getText}-primary`, {
|
|
10055
|
+
backgroundPadding,
|
|
10056
|
+
getText,
|
|
10057
|
+
getPixelOffset,
|
|
10058
|
+
background: true
|
|
10059
|
+
}),
|
|
10060
|
+
Boolean(getSecondaryText) && this.renderTextLayer(`${updateTriggers.getSecondaryText}-secondary`, {
|
|
10061
|
+
getText: getSecondaryText,
|
|
10062
|
+
getPixelOffset: this.calculatePixelOffset(true),
|
|
10063
|
+
getAlignmentBaseline: "top",
|
|
10064
|
+
...getSecondaryColor && { getColor: getSecondaryColor },
|
|
10065
|
+
...secondarySizeScale && { sizeScale: secondarySizeScale },
|
|
10066
|
+
...secondaryOutlineColor && { outlineColor: secondaryOutlineColor }
|
|
10067
|
+
})
|
|
10068
|
+
];
|
|
10195
10069
|
return out;
|
|
10196
10070
|
}
|
|
10197
10071
|
};
|
|
10198
|
-
|
|
10199
|
-
|
|
10072
|
+
PointLabelLayer.layerName = "PointLabelLayer";
|
|
10073
|
+
PointLabelLayer.defaultProps = defaultProps3;
|
|
10200
10074
|
|
|
10201
10075
|
// src/layers/quadbin-tile-layer.ts
|
|
10202
|
-
var import_core7 = __toESM(require_core());
|
|
10076
|
+
var import_core7 = __toESM(require_core(), 1);
|
|
10203
10077
|
|
|
10204
10078
|
// src/layers/quadbin-layer.ts
|
|
10205
|
-
var import_geo_layers4 = __toESM(require_geo_layers());
|
|
10079
|
+
var import_geo_layers4 = __toESM(require_geo_layers(), 1);
|
|
10206
10080
|
|
|
10207
10081
|
// ../../node_modules/@math.gl/web-mercator/dist/web-mercator-utils.js
|
|
10208
10082
|
var PI = Math.PI;
|
|
@@ -10223,17 +10097,16 @@ var __exports__ = (() => {
|
|
|
10223
10097
|
// src/layers/quadbin-utils.ts
|
|
10224
10098
|
var TILE_SIZE2 = 512;
|
|
10225
10099
|
function quadbinToOffset(quadbin) {
|
|
10226
|
-
const {
|
|
10227
|
-
x,
|
|
10228
|
-
y,
|
|
10229
|
-
z
|
|
10230
|
-
} = cellToTile(quadbin);
|
|
10100
|
+
const { x, y, z } = cellToTile(quadbin);
|
|
10231
10101
|
const scale = TILE_SIZE2 / (1 << z);
|
|
10232
10102
|
return [x * scale, TILE_SIZE2 - y * scale, scale];
|
|
10233
10103
|
}
|
|
10234
10104
|
function quadbinToWorldBounds(quadbin, coverage) {
|
|
10235
10105
|
const [xOffset, yOffset, scale] = quadbinToOffset(quadbin);
|
|
10236
|
-
return [
|
|
10106
|
+
return [
|
|
10107
|
+
[xOffset, yOffset],
|
|
10108
|
+
[xOffset + coverage * scale, yOffset - coverage * scale]
|
|
10109
|
+
];
|
|
10237
10110
|
}
|
|
10238
10111
|
function getQuadbinPolygon(quadbin, coverage = 1) {
|
|
10239
10112
|
const [topLeft, bottomRight] = quadbinToWorldBounds(quadbin, coverage);
|
|
@@ -10244,72 +10117,47 @@ var __exports__ = (() => {
|
|
|
10244
10117
|
|
|
10245
10118
|
// src/layers/quadbin-layer.ts
|
|
10246
10119
|
var defaultProps4 = {
|
|
10247
|
-
getQuadbin: {
|
|
10248
|
-
type: "accessor",
|
|
10249
|
-
value: (d) => d.quadbin
|
|
10250
|
-
}
|
|
10120
|
+
getQuadbin: { type: "accessor", value: (d) => d.quadbin }
|
|
10251
10121
|
};
|
|
10252
10122
|
var QuadbinLayer = class extends import_geo_layers4._GeoCellLayer {
|
|
10253
10123
|
indexToBounds() {
|
|
10254
|
-
const {
|
|
10255
|
-
data,
|
|
10256
|
-
extruded,
|
|
10257
|
-
getQuadbin
|
|
10258
|
-
} = this.props;
|
|
10124
|
+
const { data, extruded, getQuadbin } = this.props;
|
|
10259
10125
|
const coverage = extruded ? 0.99 : 1;
|
|
10260
10126
|
return {
|
|
10261
10127
|
data,
|
|
10262
10128
|
_normalize: false,
|
|
10263
10129
|
positionFormat: "XY",
|
|
10264
10130
|
getPolygon: (x, objectInfo) => getQuadbinPolygon(getQuadbin(x, objectInfo), coverage),
|
|
10265
|
-
updateTriggers: {
|
|
10266
|
-
getPolygon: coverage
|
|
10267
|
-
}
|
|
10131
|
+
updateTriggers: { getPolygon: coverage }
|
|
10268
10132
|
};
|
|
10269
10133
|
}
|
|
10270
10134
|
};
|
|
10271
|
-
|
|
10272
|
-
|
|
10135
|
+
QuadbinLayer.layerName = "QuadbinLayer";
|
|
10136
|
+
QuadbinLayer.defaultProps = defaultProps4;
|
|
10273
10137
|
|
|
10274
10138
|
// src/layers/quadbin-tileset-2d.ts
|
|
10275
|
-
var import_geo_layers5 = __toESM(require_geo_layers());
|
|
10139
|
+
var import_geo_layers5 = __toESM(require_geo_layers(), 1);
|
|
10276
10140
|
var QuadbinTileset2D = class extends import_geo_layers5._Tileset2D {
|
|
10277
10141
|
getTileIndices(opts) {
|
|
10278
|
-
return super.getTileIndices(opts).map(tileToCell).map((q) => ({
|
|
10279
|
-
q,
|
|
10280
|
-
i: bigIntToHex(q)
|
|
10281
|
-
}));
|
|
10142
|
+
return super.getTileIndices(opts).map(tileToCell).map((q) => ({ q, i: bigIntToHex(q) }));
|
|
10282
10143
|
}
|
|
10283
|
-
getTileId({
|
|
10284
|
-
q,
|
|
10285
|
-
i
|
|
10286
|
-
}) {
|
|
10144
|
+
getTileId({ q, i }) {
|
|
10287
10145
|
return i || bigIntToHex(q);
|
|
10288
10146
|
}
|
|
10289
|
-
getTileMetadata({
|
|
10290
|
-
q
|
|
10291
|
-
}) {
|
|
10147
|
+
getTileMetadata({ q }) {
|
|
10292
10148
|
return super.getTileMetadata(cellToTile(q));
|
|
10293
10149
|
}
|
|
10294
|
-
getTileZoom({
|
|
10295
|
-
q
|
|
10296
|
-
}) {
|
|
10150
|
+
getTileZoom({ q }) {
|
|
10297
10151
|
return Number(getResolution2(q));
|
|
10298
10152
|
}
|
|
10299
|
-
getParentIndex({
|
|
10300
|
-
q
|
|
10301
|
-
}) {
|
|
10302
|
-
return {
|
|
10303
|
-
q: cellToParent2(q)
|
|
10304
|
-
};
|
|
10153
|
+
getParentIndex({ q }) {
|
|
10154
|
+
return { q: cellToParent2(q) };
|
|
10305
10155
|
}
|
|
10306
10156
|
};
|
|
10307
10157
|
|
|
10308
10158
|
// src/layers/quadbin-tile-layer.ts
|
|
10309
10159
|
var renderSubLayers2 = (props) => {
|
|
10310
|
-
const {
|
|
10311
|
-
data
|
|
10312
|
-
} = props;
|
|
10160
|
+
const { data } = props;
|
|
10313
10161
|
if (!data || !data.length)
|
|
10314
10162
|
return null;
|
|
10315
10163
|
const isBigInt = typeof data[0].id === "bigint";
|
|
@@ -10318,46 +10166,43 @@ var __exports__ = (() => {
|
|
|
10318
10166
|
});
|
|
10319
10167
|
};
|
|
10320
10168
|
var defaultProps5 = {
|
|
10321
|
-
data: TilejsonPropType
|
|
10169
|
+
data: TilejsonPropType,
|
|
10170
|
+
tileSize: DEFAULT_TILE_SIZE
|
|
10322
10171
|
};
|
|
10323
10172
|
var QuadbinTileLayer = class extends import_core7.CompositeLayer {
|
|
10324
10173
|
getLoadOptions() {
|
|
10325
10174
|
const loadOptions = super.getLoadOptions() || {};
|
|
10326
10175
|
const tileJSON = this.props.data;
|
|
10327
10176
|
injectAccessToken(loadOptions, tileJSON.accessToken);
|
|
10328
|
-
loadOptions.cartoSpatialTile = {
|
|
10329
|
-
...loadOptions.cartoSpatialTile,
|
|
10330
|
-
scheme: "quadbin"
|
|
10331
|
-
};
|
|
10177
|
+
loadOptions.cartoSpatialTile = { ...loadOptions.cartoSpatialTile, scheme: "quadbin" };
|
|
10332
10178
|
return loadOptions;
|
|
10333
10179
|
}
|
|
10334
10180
|
renderLayers() {
|
|
10335
10181
|
const tileJSON = this.props.data;
|
|
10336
10182
|
if (!tileJSON)
|
|
10337
10183
|
return null;
|
|
10338
|
-
const {
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
})];
|
|
10184
|
+
const { tiles: data, maxresolution: maxZoom } = tileJSON;
|
|
10185
|
+
return [
|
|
10186
|
+
new SpatialIndexTileLayer(this.props, {
|
|
10187
|
+
id: `quadbin-tile-layer-${this.props.id}`,
|
|
10188
|
+
data,
|
|
10189
|
+
TilesetClass: QuadbinTileset2D,
|
|
10190
|
+
renderSubLayers: renderSubLayers2,
|
|
10191
|
+
maxZoom,
|
|
10192
|
+
loadOptions: this.getLoadOptions()
|
|
10193
|
+
})
|
|
10194
|
+
];
|
|
10350
10195
|
}
|
|
10351
10196
|
};
|
|
10352
|
-
|
|
10353
|
-
|
|
10197
|
+
QuadbinTileLayer.layerName = "QuadbinTileLayer";
|
|
10198
|
+
QuadbinTileLayer.defaultProps = defaultProps5;
|
|
10354
10199
|
|
|
10355
10200
|
// src/layers/raster-tile-layer.ts
|
|
10356
|
-
var import_core9 = __toESM(require_core());
|
|
10201
|
+
var import_core9 = __toESM(require_core(), 1);
|
|
10357
10202
|
|
|
10358
10203
|
// src/layers/raster-layer.ts
|
|
10359
|
-
var import_core8 = __toESM(require_core());
|
|
10360
|
-
var import_layers2 = __toESM(require_layers());
|
|
10204
|
+
var import_core8 = __toESM(require_core(), 1);
|
|
10205
|
+
var import_layers2 = __toESM(require_layers(), 1);
|
|
10361
10206
|
|
|
10362
10207
|
// src/layers/raster-layer-vertex.glsl.ts
|
|
10363
10208
|
var raster_layer_vertex_glsl_default = `#version 300 es
|
|
@@ -10393,8 +10238,8 @@ void main(void) {
|
|
|
10393
10238
|
vec2 common_position = offset.xy;
|
|
10394
10239
|
float scale = offset.z;
|
|
10395
10240
|
|
|
10396
|
-
int yIndex = - (gl_InstanceID /
|
|
10397
|
-
int xIndex = gl_InstanceID + (yIndex *
|
|
10241
|
+
int yIndex = - (gl_InstanceID / BLOCK_WIDTH);
|
|
10242
|
+
int xIndex = gl_InstanceID + (yIndex * BLOCK_WIDTH);
|
|
10398
10243
|
common_position += scale * vec2(float(xIndex), float(yIndex));
|
|
10399
10244
|
|
|
10400
10245
|
vec4 color = isStroke ? instanceLineColors : instanceFillColors;
|
|
@@ -10463,15 +10308,19 @@ void main(void) {
|
|
|
10463
10308
|
...import_layers2.ColumnLayer.defaultProps,
|
|
10464
10309
|
extruded: false,
|
|
10465
10310
|
diskResolution: 4,
|
|
10466
|
-
vertices: [
|
|
10311
|
+
vertices: [
|
|
10312
|
+
[-0.5, -0.5],
|
|
10313
|
+
[0.5, -0.5],
|
|
10314
|
+
[0.5, 0.5],
|
|
10315
|
+
[-0.5, 0.5]
|
|
10316
|
+
]
|
|
10467
10317
|
};
|
|
10468
10318
|
var RasterColumnLayer = class extends import_layers2.ColumnLayer {
|
|
10469
10319
|
getShaders() {
|
|
10470
10320
|
const shaders = super.getShaders();
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
};
|
|
10321
|
+
const data = this.props.data;
|
|
10322
|
+
const BLOCK_WIDTH = data.data.blockSize ?? Math.sqrt(data.length);
|
|
10323
|
+
return { ...shaders, defines: { ...shaders.defines, BLOCK_WIDTH }, vs: raster_layer_vertex_glsl_default };
|
|
10475
10324
|
}
|
|
10476
10325
|
initializeState() {
|
|
10477
10326
|
const attributeManager = this.getAttributeManager();
|
|
@@ -10483,16 +10332,14 @@ void main(void) {
|
|
|
10483
10332
|
},
|
|
10484
10333
|
instanceFillColors: {
|
|
10485
10334
|
size: this.props.colorFormat.length,
|
|
10486
|
-
type:
|
|
10487
|
-
normalized: true,
|
|
10335
|
+
type: "unorm8",
|
|
10488
10336
|
transition: true,
|
|
10489
10337
|
accessor: "getFillColor",
|
|
10490
10338
|
defaultValue: [0, 0, 0, 255]
|
|
10491
10339
|
},
|
|
10492
10340
|
instanceLineColors: {
|
|
10493
10341
|
size: this.props.colorFormat.length,
|
|
10494
|
-
type:
|
|
10495
|
-
normalized: true,
|
|
10342
|
+
type: "unorm8",
|
|
10496
10343
|
transition: true,
|
|
10497
10344
|
accessor: "getLineColor",
|
|
10498
10345
|
defaultValue: [255, 255, 255, 255]
|
|
@@ -10500,7 +10347,7 @@ void main(void) {
|
|
|
10500
10347
|
});
|
|
10501
10348
|
}
|
|
10502
10349
|
};
|
|
10503
|
-
|
|
10350
|
+
RasterColumnLayer.layerName = "RasterColumnLayer";
|
|
10504
10351
|
var RasterLayer = class extends import_core8.CompositeLayer {
|
|
10505
10352
|
renderLayers() {
|
|
10506
10353
|
const {
|
|
@@ -10514,60 +10361,54 @@ void main(void) {
|
|
|
10514
10361
|
} = this.props;
|
|
10515
10362
|
if (!data || !tileIndex)
|
|
10516
10363
|
return null;
|
|
10517
|
-
const
|
|
10518
|
-
blockWidth,
|
|
10519
|
-
blockHeight
|
|
10520
|
-
} = data;
|
|
10521
|
-
assert(blockWidth === blockHeight, `blockWidth (${blockWidth}) must equal blockHeight (${blockHeight})`);
|
|
10364
|
+
const blockSize = data.blockSize ?? 0;
|
|
10522
10365
|
const [xOffset, yOffset, scale] = quadbinToOffset(tileIndex);
|
|
10523
|
-
const offset = [xOffset, yOffset, scale /
|
|
10366
|
+
const offset = [xOffset, yOffset, scale / blockSize];
|
|
10524
10367
|
const CellLayer = this.getSubLayerClass("column", RasterColumnLayer);
|
|
10525
|
-
return new CellLayer(
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10368
|
+
return new CellLayer(
|
|
10369
|
+
this.props,
|
|
10370
|
+
this.getSubLayerProps({
|
|
10371
|
+
id: "cell",
|
|
10372
|
+
updateTriggers,
|
|
10373
|
+
getElevation: this.getSubLayerAccessor(getElevation),
|
|
10374
|
+
getFillColor: this.getSubLayerAccessor(getFillColor),
|
|
10375
|
+
getLineColor: this.getSubLayerAccessor(getLineColor),
|
|
10376
|
+
getLineWidth: this.getSubLayerAccessor(getLineWidth)
|
|
10377
|
+
}),
|
|
10378
|
+
{
|
|
10379
|
+
data: {
|
|
10380
|
+
data,
|
|
10381
|
+
length: blockSize * blockSize
|
|
10382
|
+
},
|
|
10383
|
+
offset
|
|
10384
|
+
}
|
|
10385
|
+
);
|
|
10539
10386
|
}
|
|
10540
10387
|
getSubLayerAccessor(accessor) {
|
|
10541
10388
|
if (typeof accessor !== "function") {
|
|
10542
10389
|
return super.getSubLayerAccessor(accessor);
|
|
10543
10390
|
}
|
|
10544
10391
|
return (object, info) => {
|
|
10545
|
-
const {
|
|
10546
|
-
data,
|
|
10547
|
-
index
|
|
10548
|
-
} = info;
|
|
10392
|
+
const { data, index } = info;
|
|
10549
10393
|
const binaryData = data.data;
|
|
10550
10394
|
const proxy = createBinaryProxy(binaryData.cells, index);
|
|
10551
|
-
return accessor({
|
|
10552
|
-
properties: proxy
|
|
10553
|
-
}, info);
|
|
10395
|
+
return accessor({ properties: proxy }, info);
|
|
10554
10396
|
};
|
|
10555
10397
|
}
|
|
10556
10398
|
};
|
|
10557
|
-
|
|
10558
|
-
|
|
10399
|
+
RasterLayer.layerName = "RasterLayer";
|
|
10400
|
+
RasterLayer.defaultProps = defaultProps6;
|
|
10559
10401
|
|
|
10560
10402
|
// src/layers/raster-tile-layer.ts
|
|
10561
10403
|
var renderSubLayers3 = (props) => {
|
|
10562
10404
|
const tileIndex = props.tile?.index?.q;
|
|
10563
10405
|
if (!tileIndex)
|
|
10564
10406
|
return null;
|
|
10565
|
-
return new RasterLayer(props, {
|
|
10566
|
-
tileIndex
|
|
10567
|
-
});
|
|
10407
|
+
return new RasterLayer(props, { tileIndex });
|
|
10568
10408
|
};
|
|
10569
10409
|
var defaultProps7 = {
|
|
10570
|
-
data: TilejsonPropType
|
|
10410
|
+
data: TilejsonPropType,
|
|
10411
|
+
tileSize: DEFAULT_TILE_SIZE
|
|
10571
10412
|
};
|
|
10572
10413
|
var RasterTileLayer = class extends import_core9.CompositeLayer {
|
|
10573
10414
|
getLoadOptions() {
|
|
@@ -10580,35 +10421,30 @@ void main(void) {
|
|
|
10580
10421
|
const tileJSON = this.props.data;
|
|
10581
10422
|
if (!tileJSON)
|
|
10582
10423
|
return null;
|
|
10583
|
-
const {
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
loadOptions: this.getLoadOptions()
|
|
10596
|
-
})];
|
|
10424
|
+
const { tiles: data, minzoom: minZoom, maxzoom: maxZoom } = tileJSON;
|
|
10425
|
+
return [
|
|
10426
|
+
new SpatialIndexTileLayer(this.props, {
|
|
10427
|
+
id: `raster-tile-layer-${this.props.id}`,
|
|
10428
|
+
data,
|
|
10429
|
+
TilesetClass: QuadbinTileset2D,
|
|
10430
|
+
renderSubLayers: renderSubLayers3,
|
|
10431
|
+
minZoom,
|
|
10432
|
+
maxZoom,
|
|
10433
|
+
loadOptions: this.getLoadOptions()
|
|
10434
|
+
})
|
|
10435
|
+
];
|
|
10597
10436
|
}
|
|
10598
10437
|
};
|
|
10599
|
-
|
|
10600
|
-
|
|
10438
|
+
RasterTileLayer.layerName = "RasterTileLayer";
|
|
10439
|
+
RasterTileLayer.defaultProps = defaultProps7;
|
|
10601
10440
|
|
|
10602
10441
|
// src/layers/vector-tile-layer.ts
|
|
10603
|
-
var import_core10 = __toESM(require_core2());
|
|
10442
|
+
var import_core10 = __toESM(require_core2(), 1);
|
|
10604
10443
|
|
|
10605
10444
|
// src/layers/schema/carto-properties-tile.ts
|
|
10606
10445
|
var TileReader4 = class {
|
|
10607
10446
|
static read(pbf, end) {
|
|
10608
|
-
return pbf.readFields(TileReader4._readField, {
|
|
10609
|
-
properties: [],
|
|
10610
|
-
numericProps: {}
|
|
10611
|
-
}, end);
|
|
10447
|
+
return pbf.readFields(TileReader4._readField, { properties: [], numericProps: {} }, end);
|
|
10612
10448
|
}
|
|
10613
10449
|
static _readField(tag, obj, pbf) {
|
|
10614
10450
|
if (tag === 1)
|
|
@@ -10642,8 +10478,8 @@ void main(void) {
|
|
|
10642
10478
|
var carto_properties_tile_loader_default = CartoPropertiesTileLoader;
|
|
10643
10479
|
|
|
10644
10480
|
// src/layers/schema/carto-vector-tile-loader.ts
|
|
10645
|
-
var import_earcut = __toESM(require_earcut());
|
|
10646
|
-
var VERSION3 =
|
|
10481
|
+
var import_earcut = __toESM(require_earcut(), 1);
|
|
10482
|
+
var VERSION3 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
10647
10483
|
var id3 = "cartoVectorTile";
|
|
10648
10484
|
var DEFAULT_OPTIONS3 = {
|
|
10649
10485
|
cartoVectorTile: {
|
|
@@ -10679,10 +10515,7 @@ void main(void) {
|
|
|
10679
10515
|
}
|
|
10680
10516
|
}
|
|
10681
10517
|
function triangulate(polygons) {
|
|
10682
|
-
const {
|
|
10683
|
-
polygonIndices,
|
|
10684
|
-
primitivePolygonIndices
|
|
10685
|
-
} = polygons;
|
|
10518
|
+
const { polygonIndices, primitivePolygonIndices } = polygons;
|
|
10686
10519
|
const triangles = [];
|
|
10687
10520
|
let rangeStart = 0;
|
|
10688
10521
|
for (let i = 0; i < polygonIndices.value.length - 1; i++) {
|
|
@@ -10691,16 +10524,9 @@ void main(void) {
|
|
|
10691
10524
|
const rangeEnd = primitivePolygonIndices.value.indexOf(endPosition);
|
|
10692
10525
|
const indices = primitivePolygonIndices.value.subarray(rangeStart, rangeEnd);
|
|
10693
10526
|
rangeStart = rangeEnd;
|
|
10694
|
-
triangulatePolygon(polygons, triangles, {
|
|
10695
|
-
startPosition,
|
|
10696
|
-
endPosition,
|
|
10697
|
-
indices
|
|
10698
|
-
});
|
|
10527
|
+
triangulatePolygon(polygons, triangles, { startPosition, endPosition, indices });
|
|
10699
10528
|
}
|
|
10700
|
-
polygons.triangles = {
|
|
10701
|
-
value: new Uint32Array(triangles),
|
|
10702
|
-
size: 1
|
|
10703
|
-
};
|
|
10529
|
+
polygons.triangles = { value: new Uint32Array(triangles), size: 1 };
|
|
10704
10530
|
}
|
|
10705
10531
|
function parseCartoVectorTile(arrayBuffer, options) {
|
|
10706
10532
|
if (!arrayBuffer)
|
|
@@ -10714,9 +10540,9 @@ void main(void) {
|
|
|
10714
10540
|
var carto_vector_tile_loader_default = CartoVectorTileLoader;
|
|
10715
10541
|
|
|
10716
10542
|
// src/layers/vector-tile-layer.ts
|
|
10717
|
-
var import_extensions = __toESM(require_extensions());
|
|
10718
|
-
var import_geo_layers6 = __toESM(require_geo_layers());
|
|
10719
|
-
var import_layers3 = __toESM(require_layers());
|
|
10543
|
+
var import_extensions = __toESM(require_extensions(), 1);
|
|
10544
|
+
var import_geo_layers6 = __toESM(require_geo_layers(), 1);
|
|
10545
|
+
var import_layers3 = __toESM(require_layers(), 1);
|
|
10720
10546
|
|
|
10721
10547
|
// ../../node_modules/@loaders.gl/gis/dist/lib/binary-features/binary-to-geojson.js
|
|
10722
10548
|
function binaryToGeojson(data, options) {
|
|
@@ -10922,60 +10748,44 @@ void main(void) {
|
|
|
10922
10748
|
var defaultProps8 = {
|
|
10923
10749
|
...import_geo_layers6.MVTLayer.defaultProps,
|
|
10924
10750
|
data: TilejsonPropType,
|
|
10925
|
-
dataComparator: TilejsonPropType.equal
|
|
10751
|
+
dataComparator: TilejsonPropType.equal,
|
|
10752
|
+
tileSize: DEFAULT_TILE_SIZE
|
|
10926
10753
|
};
|
|
10927
10754
|
var VectorTileLayer = class extends import_geo_layers6.MVTLayer {
|
|
10755
|
+
constructor(...propObjects) {
|
|
10756
|
+
super(...propObjects);
|
|
10757
|
+
}
|
|
10928
10758
|
initializeState() {
|
|
10929
10759
|
super.initializeState();
|
|
10930
|
-
this.setState({
|
|
10931
|
-
binary: true
|
|
10932
|
-
});
|
|
10760
|
+
this.setState({ binary: true });
|
|
10933
10761
|
}
|
|
10934
10762
|
updateState(parameters) {
|
|
10935
|
-
const {
|
|
10936
|
-
props
|
|
10937
|
-
} = parameters;
|
|
10763
|
+
const { props } = parameters;
|
|
10938
10764
|
if (props.data) {
|
|
10939
10765
|
super.updateState(parameters);
|
|
10940
10766
|
const formatTiles = new URL(props.data.tiles[0]).searchParams.get("formatTiles");
|
|
10941
10767
|
const mvt = formatTiles === "mvt";
|
|
10942
|
-
this.setState({
|
|
10943
|
-
mvt
|
|
10944
|
-
});
|
|
10768
|
+
this.setState({ mvt });
|
|
10945
10769
|
}
|
|
10946
10770
|
}
|
|
10947
10771
|
getLoadOptions() {
|
|
10948
10772
|
const loadOptions = super.getLoadOptions() || {};
|
|
10949
10773
|
const tileJSON = this.props.data;
|
|
10950
10774
|
injectAccessToken(loadOptions, tileJSON.accessToken);
|
|
10951
|
-
loadOptions.gis = {
|
|
10952
|
-
format: "binary"
|
|
10953
|
-
};
|
|
10775
|
+
loadOptions.gis = { format: "binary" };
|
|
10954
10776
|
return loadOptions;
|
|
10955
10777
|
}
|
|
10956
10778
|
async getTileData(tile) {
|
|
10957
10779
|
const tileJSON = this.props.data;
|
|
10958
|
-
const {
|
|
10959
|
-
tiles: tiles2,
|
|
10960
|
-
properties_tiles
|
|
10961
|
-
} = tileJSON;
|
|
10780
|
+
const { tiles: tiles2, properties_tiles } = tileJSON;
|
|
10962
10781
|
const url = (0, import_geo_layers6._getURLFromTemplate)(tiles2, tile);
|
|
10963
10782
|
if (!url) {
|
|
10964
10783
|
return Promise.reject("Invalid URL");
|
|
10965
10784
|
}
|
|
10966
10785
|
const loadOptions = this.getLoadOptions();
|
|
10967
|
-
const {
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
const {
|
|
10971
|
-
signal
|
|
10972
|
-
} = tile;
|
|
10973
|
-
const geometryFetch = fetch2(url, {
|
|
10974
|
-
propName: "data",
|
|
10975
|
-
layer: this,
|
|
10976
|
-
loadOptions,
|
|
10977
|
-
signal
|
|
10978
|
-
});
|
|
10786
|
+
const { fetch: fetch2 } = this.props;
|
|
10787
|
+
const { signal } = tile;
|
|
10788
|
+
const geometryFetch = fetch2(url, { propName: "data", layer: this, loadOptions, signal });
|
|
10979
10789
|
if (!properties_tiles) {
|
|
10980
10790
|
return await geometryFetch;
|
|
10981
10791
|
}
|
|
@@ -11002,12 +10812,7 @@ void main(void) {
|
|
|
11002
10812
|
return super.renderSubLayers(props);
|
|
11003
10813
|
}
|
|
11004
10814
|
const tileBbox = props.tile.bbox;
|
|
11005
|
-
const {
|
|
11006
|
-
west,
|
|
11007
|
-
south,
|
|
11008
|
-
east,
|
|
11009
|
-
north
|
|
11010
|
-
} = tileBbox;
|
|
10815
|
+
const { west, south, east, north } = tileBbox;
|
|
11011
10816
|
const subLayerProps = {
|
|
11012
10817
|
...props,
|
|
11013
10818
|
autoHighlight: false,
|
|
@@ -11020,9 +10825,7 @@ void main(void) {
|
|
|
11020
10825
|
getPickingInfo(params) {
|
|
11021
10826
|
const info = super.getPickingInfo(params);
|
|
11022
10827
|
if (this.state.binary && info.index !== -1) {
|
|
11023
|
-
const {
|
|
11024
|
-
data
|
|
11025
|
-
} = params.sourceLayer.props;
|
|
10828
|
+
const { data } = params.sourceLayer.props;
|
|
11026
10829
|
info.object = binaryToGeojson(data, {
|
|
11027
10830
|
globalFeatureId: info.index
|
|
11028
10831
|
});
|
|
@@ -11030,8 +10833,8 @@ void main(void) {
|
|
|
11030
10833
|
return info;
|
|
11031
10834
|
}
|
|
11032
10835
|
};
|
|
11033
|
-
|
|
11034
|
-
|
|
10836
|
+
VectorTileLayer.layerName = "VectorTileLayer";
|
|
10837
|
+
VectorTileLayer.defaultProps = defaultProps8;
|
|
11035
10838
|
|
|
11036
10839
|
// src/basemap.ts
|
|
11037
10840
|
var baseUrl = "https://basemaps.cartocdn.com/gl/{basemap}-gl-style/style.json";
|
|
@@ -11098,11 +10901,7 @@ void main(void) {
|
|
|
11098
10901
|
const i = left(a, x, lo, hi - 1);
|
|
11099
10902
|
return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
|
|
11100
10903
|
}
|
|
11101
|
-
return {
|
|
11102
|
-
left,
|
|
11103
|
-
center,
|
|
11104
|
-
right
|
|
11105
|
-
};
|
|
10904
|
+
return { left, center, right };
|
|
11106
10905
|
}
|
|
11107
10906
|
function zero() {
|
|
11108
10907
|
return 0;
|
|
@@ -11211,14 +11010,7 @@ void main(void) {
|
|
|
11211
11010
|
var InternMap = class extends Map {
|
|
11212
11011
|
constructor(entries, key = keyof) {
|
|
11213
11012
|
super();
|
|
11214
|
-
Object.defineProperties(this, {
|
|
11215
|
-
_intern: {
|
|
11216
|
-
value: /* @__PURE__ */ new Map()
|
|
11217
|
-
},
|
|
11218
|
-
_key: {
|
|
11219
|
-
value: key
|
|
11220
|
-
}
|
|
11221
|
-
});
|
|
11013
|
+
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } });
|
|
11222
11014
|
if (entries != null)
|
|
11223
11015
|
for (const [key2, value] of entries)
|
|
11224
11016
|
this.set(key2, value);
|
|
@@ -11236,27 +11028,18 @@ void main(void) {
|
|
|
11236
11028
|
return super.delete(intern_delete(this, key));
|
|
11237
11029
|
}
|
|
11238
11030
|
};
|
|
11239
|
-
function intern_get({
|
|
11240
|
-
_intern,
|
|
11241
|
-
_key
|
|
11242
|
-
}, value) {
|
|
11031
|
+
function intern_get({ _intern, _key }, value) {
|
|
11243
11032
|
const key = _key(value);
|
|
11244
11033
|
return _intern.has(key) ? _intern.get(key) : value;
|
|
11245
11034
|
}
|
|
11246
|
-
function intern_set({
|
|
11247
|
-
_intern,
|
|
11248
|
-
_key
|
|
11249
|
-
}, value) {
|
|
11035
|
+
function intern_set({ _intern, _key }, value) {
|
|
11250
11036
|
const key = _key(value);
|
|
11251
11037
|
if (_intern.has(key))
|
|
11252
11038
|
return _intern.get(key);
|
|
11253
11039
|
_intern.set(key, value);
|
|
11254
11040
|
return value;
|
|
11255
11041
|
}
|
|
11256
|
-
function intern_delete({
|
|
11257
|
-
_intern,
|
|
11258
|
-
_key
|
|
11259
|
-
}, value) {
|
|
11042
|
+
function intern_delete({ _intern, _key }, value) {
|
|
11260
11043
|
const key = _key(value);
|
|
11261
11044
|
if (_intern.has(key)) {
|
|
11262
11045
|
value = _intern.get(key);
|
|
@@ -11659,7 +11442,7 @@ void main(void) {
|
|
|
11659
11442
|
}
|
|
11660
11443
|
|
|
11661
11444
|
// ../../node_modules/d3-color/src/color.js
|
|
11662
|
-
function
|
|
11445
|
+
function Color2() {
|
|
11663
11446
|
}
|
|
11664
11447
|
var darker = 0.7;
|
|
11665
11448
|
var brighter = 1 / darker;
|
|
@@ -11823,7 +11606,7 @@ void main(void) {
|
|
|
11823
11606
|
yellow: 16776960,
|
|
11824
11607
|
yellowgreen: 10145074
|
|
11825
11608
|
};
|
|
11826
|
-
define_default(
|
|
11609
|
+
define_default(Color2, color, {
|
|
11827
11610
|
copy(channels) {
|
|
11828
11611
|
return Object.assign(new this.constructor(), this, channels);
|
|
11829
11612
|
},
|
|
@@ -11863,7 +11646,7 @@ void main(void) {
|
|
|
11863
11646
|
return new Rgb(r, g, b, a);
|
|
11864
11647
|
}
|
|
11865
11648
|
function rgbConvert(o) {
|
|
11866
|
-
if (!(o instanceof
|
|
11649
|
+
if (!(o instanceof Color2))
|
|
11867
11650
|
o = color(o);
|
|
11868
11651
|
if (!o)
|
|
11869
11652
|
return new Rgb();
|
|
@@ -11879,7 +11662,7 @@ void main(void) {
|
|
|
11879
11662
|
this.b = +b;
|
|
11880
11663
|
this.opacity = +opacity;
|
|
11881
11664
|
}
|
|
11882
|
-
define_default(Rgb, rgb, extend(
|
|
11665
|
+
define_default(Rgb, rgb, extend(Color2, {
|
|
11883
11666
|
brighter(k) {
|
|
11884
11667
|
k = k == null ? brighter : Math.pow(brighter, k);
|
|
11885
11668
|
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
@@ -11895,7 +11678,7 @@ void main(void) {
|
|
|
11895
11678
|
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
11896
11679
|
},
|
|
11897
11680
|
displayable() {
|
|
11898
|
-
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
11681
|
+
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
11899
11682
|
},
|
|
11900
11683
|
hex: rgb_formatHex,
|
|
11901
11684
|
formatHex: rgb_formatHex,
|
|
@@ -11935,7 +11718,7 @@ void main(void) {
|
|
|
11935
11718
|
function hslConvert(o) {
|
|
11936
11719
|
if (o instanceof Hsl)
|
|
11937
11720
|
return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
11938
|
-
if (!(o instanceof
|
|
11721
|
+
if (!(o instanceof Color2))
|
|
11939
11722
|
o = color(o);
|
|
11940
11723
|
if (!o)
|
|
11941
11724
|
return new Hsl();
|
|
@@ -11966,7 +11749,7 @@ void main(void) {
|
|
|
11966
11749
|
this.l = +l;
|
|
11967
11750
|
this.opacity = +opacity;
|
|
11968
11751
|
}
|
|
11969
|
-
define_default(Hsl, hsl, extend(
|
|
11752
|
+
define_default(Hsl, hsl, extend(Color2, {
|
|
11970
11753
|
brighter(k) {
|
|
11971
11754
|
k = k == null ? brighter : Math.pow(brighter, k);
|
|
11972
11755
|
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
@@ -11977,13 +11760,18 @@ void main(void) {
|
|
|
11977
11760
|
},
|
|
11978
11761
|
rgb() {
|
|
11979
11762
|
var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
|
11980
|
-
return new Rgb(
|
|
11763
|
+
return new Rgb(
|
|
11764
|
+
hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
11765
|
+
hsl2rgb(h, m1, m2),
|
|
11766
|
+
hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
11767
|
+
this.opacity
|
|
11768
|
+
);
|
|
11981
11769
|
},
|
|
11982
11770
|
clamp() {
|
|
11983
11771
|
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
11984
11772
|
},
|
|
11985
11773
|
displayable() {
|
|
11986
|
-
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
11774
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
|
|
11987
11775
|
},
|
|
11988
11776
|
formatHsl() {
|
|
11989
11777
|
const a = clampa(this.opacity);
|
|
@@ -12183,10 +11971,7 @@ void main(void) {
|
|
|
12183
11971
|
s[++i] = bm;
|
|
12184
11972
|
} else {
|
|
12185
11973
|
s[++i] = null;
|
|
12186
|
-
q.push({
|
|
12187
|
-
i,
|
|
12188
|
-
x: number_default(am, bm)
|
|
12189
|
-
});
|
|
11974
|
+
q.push({ i, x: number_default(am, bm) });
|
|
12190
11975
|
}
|
|
12191
11976
|
bi = reB.lastIndex;
|
|
12192
11977
|
}
|
|
@@ -12326,7 +12111,10 @@ void main(void) {
|
|
|
12326
12111
|
if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0)
|
|
12327
12112
|
return null;
|
|
12328
12113
|
var i, coefficient = x.slice(0, i);
|
|
12329
|
-
return [
|
|
12114
|
+
return [
|
|
12115
|
+
coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
|
|
12116
|
+
+x.slice(i + 1)
|
|
12117
|
+
];
|
|
12330
12118
|
}
|
|
12331
12119
|
|
|
12332
12120
|
// ../../node_modules/d3-format/src/exponent.js
|
|
@@ -12847,7 +12635,10 @@ void main(void) {
|
|
|
12847
12635
|
}
|
|
12848
12636
|
scale.invertExtent = function(y) {
|
|
12849
12637
|
var i = range2.indexOf(y);
|
|
12850
|
-
return i < 0 ? [NaN, NaN] : [
|
|
12638
|
+
return i < 0 ? [NaN, NaN] : [
|
|
12639
|
+
i > 0 ? thresholds[i - 1] : domain[0],
|
|
12640
|
+
i < thresholds.length ? thresholds[i] : domain[domain.length - 1]
|
|
12641
|
+
];
|
|
12851
12642
|
};
|
|
12852
12643
|
scale.domain = function(_) {
|
|
12853
12644
|
if (!arguments.length)
|
|
@@ -12935,7 +12726,7 @@ void main(void) {
|
|
|
12935
12726
|
}
|
|
12936
12727
|
|
|
12937
12728
|
// src/style/palette.ts
|
|
12938
|
-
var cartoColors = __toESM(require_cartocolor2());
|
|
12729
|
+
var cartoColors = __toESM(require_cartocolor2(), 1);
|
|
12939
12730
|
var DEFAULT_PALETTE = "PurpOr";
|
|
12940
12731
|
var NULL_COLOR = [204, 204, 204];
|
|
12941
12732
|
var OTHERS_COLOR = [119, 119, 119];
|
|
@@ -12960,11 +12751,21 @@ void main(void) {
|
|
|
12960
12751
|
function hexToRgb(hex2) {
|
|
12961
12752
|
let result = /^#?([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(hex2);
|
|
12962
12753
|
if (result) {
|
|
12963
|
-
return [
|
|
12754
|
+
return [
|
|
12755
|
+
parseInt(result[1] + result[1], 16),
|
|
12756
|
+
parseInt(result[2] + result[2], 16),
|
|
12757
|
+
parseInt(result[3] + result[3], 16),
|
|
12758
|
+
255
|
|
12759
|
+
];
|
|
12964
12760
|
}
|
|
12965
12761
|
result = /^#?([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(hex2);
|
|
12966
12762
|
if (result) {
|
|
12967
|
-
return [
|
|
12763
|
+
return [
|
|
12764
|
+
parseInt(result[1] + result[1], 16),
|
|
12765
|
+
parseInt(result[2] + result[2], 16),
|
|
12766
|
+
parseInt(result[3] + result[3], 16),
|
|
12767
|
+
parseInt(result[4] + result[4], 16)
|
|
12768
|
+
];
|
|
12968
12769
|
}
|
|
12969
12770
|
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex2);
|
|
12970
12771
|
if (result) {
|
|
@@ -12972,7 +12773,12 @@ void main(void) {
|
|
|
12972
12773
|
}
|
|
12973
12774
|
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex2);
|
|
12974
12775
|
assert(result, `Hexadecimal color "${hex2}" was not parsed correctly`);
|
|
12975
|
-
return [
|
|
12776
|
+
return [
|
|
12777
|
+
parseInt(result[1], 16),
|
|
12778
|
+
parseInt(result[2], 16),
|
|
12779
|
+
parseInt(result[3], 16),
|
|
12780
|
+
parseInt(result[4], 16)
|
|
12781
|
+
];
|
|
12976
12782
|
}
|
|
12977
12783
|
|
|
12978
12784
|
// src/style/utils.ts
|
|
@@ -13080,10 +12886,9 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13080
12886
|
// src/api/common.ts
|
|
13081
12887
|
var DEFAULT_API_BASE_URL = "https://gcp-us-east1.api.carto.com";
|
|
13082
12888
|
var DEFAULT_CLIENT = "deck-gl-carto";
|
|
13083
|
-
var V3_MINOR_VERSION = "3.
|
|
12889
|
+
var V3_MINOR_VERSION = "3.4";
|
|
13084
12890
|
var MAX_GET_LENGTH = 8192;
|
|
13085
12891
|
var DEFAULT_PARAMETERS = {
|
|
13086
|
-
client: DEFAULT_CLIENT,
|
|
13087
12892
|
v: V3_MINOR_VERSION
|
|
13088
12893
|
};
|
|
13089
12894
|
var DEFAULT_HEADERS = {
|
|
@@ -13142,62 +12947,44 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13142
12947
|
headers: customHeaders,
|
|
13143
12948
|
errorContext
|
|
13144
12949
|
}) {
|
|
13145
|
-
const key =
|
|
13146
|
-
baseUrl: baseUrl2,
|
|
13147
|
-
parameters,
|
|
13148
|
-
customHeaders
|
|
13149
|
-
});
|
|
12950
|
+
const key = createCacheKey(baseUrl2, parameters || {}, customHeaders || {});
|
|
13150
12951
|
if (REQUEST_CACHE.has(key)) {
|
|
13151
12952
|
return REQUEST_CACHE.get(key);
|
|
13152
12953
|
}
|
|
13153
|
-
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
}
|
|
13164
|
-
const headers = {
|
|
13165
|
-
...DEFAULT_HEADERS,
|
|
13166
|
-
...customHeaders
|
|
13167
|
-
};
|
|
13168
|
-
try {
|
|
13169
|
-
let response;
|
|
13170
|
-
if (url.length > MAX_GET_LENGTH) {
|
|
13171
|
-
response = await fetch(baseUrl2, {
|
|
13172
|
-
method: "POST",
|
|
13173
|
-
body: JSON.stringify(parameters),
|
|
13174
|
-
headers
|
|
13175
|
-
});
|
|
13176
|
-
} else {
|
|
13177
|
-
response = await fetch(url, {
|
|
13178
|
-
headers
|
|
13179
|
-
});
|
|
13180
|
-
}
|
|
13181
|
-
let json;
|
|
13182
|
-
try {
|
|
13183
|
-
json = await response.json();
|
|
13184
|
-
if (accessToken) {
|
|
13185
|
-
json.accessToken = accessToken;
|
|
13186
|
-
}
|
|
13187
|
-
} catch {
|
|
13188
|
-
json = {
|
|
13189
|
-
error: ""
|
|
13190
|
-
};
|
|
12954
|
+
const url = parameters ? createURLWithParameters(baseUrl2, parameters) : baseUrl2;
|
|
12955
|
+
const headers = { ...DEFAULT_HEADERS, ...customHeaders };
|
|
12956
|
+
const fetchPromise = url.length > MAX_GET_LENGTH ? fetch(baseUrl2, { method: "POST", body: JSON.stringify(parameters), headers }) : fetch(url, { headers });
|
|
12957
|
+
let response;
|
|
12958
|
+
const jsonPromise = fetchPromise.then((_response) => {
|
|
12959
|
+
response = _response;
|
|
12960
|
+
return response.json();
|
|
12961
|
+
}).then((json) => {
|
|
12962
|
+
if (!response || !response.ok) {
|
|
12963
|
+
throw new Error(json.error);
|
|
13191
12964
|
}
|
|
13192
|
-
if (
|
|
13193
|
-
|
|
13194
|
-
throw new CartoAPIError(json.error, errorContext, response);
|
|
12965
|
+
if (accessToken) {
|
|
12966
|
+
json.accessToken = accessToken;
|
|
13195
12967
|
}
|
|
13196
|
-
REQUEST_CACHE.set(key, json);
|
|
13197
12968
|
return json;
|
|
13198
|
-
}
|
|
13199
|
-
|
|
13200
|
-
|
|
12969
|
+
}).catch((error) => {
|
|
12970
|
+
REQUEST_CACHE.delete(key);
|
|
12971
|
+
throw new CartoAPIError(error, errorContext, response);
|
|
12972
|
+
});
|
|
12973
|
+
REQUEST_CACHE.set(key, jsonPromise);
|
|
12974
|
+
return jsonPromise;
|
|
12975
|
+
}
|
|
12976
|
+
function createCacheKey(baseUrl2, parameters, headers) {
|
|
12977
|
+
const parameterEntries = Object.entries(parameters).sort(([a], [b]) => a > b ? 1 : -1);
|
|
12978
|
+
const headerEntries = Object.entries(headers).sort(([a], [b]) => a > b ? 1 : -1);
|
|
12979
|
+
return JSON.stringify({ baseUrl: baseUrl2, parameters: parameterEntries, headers: headerEntries });
|
|
12980
|
+
}
|
|
12981
|
+
function createURLWithParameters(baseUrl2, parameters) {
|
|
12982
|
+
const encodedParameters = Object.entries({ ...DEFAULT_PARAMETERS, ...parameters }).map(
|
|
12983
|
+
([key, value]) => {
|
|
12984
|
+
return encodeParameter(key, value);
|
|
12985
|
+
}
|
|
12986
|
+
);
|
|
12987
|
+
return `${baseUrl2}?${encodedParameters.join("&")}`;
|
|
13201
12988
|
}
|
|
13202
12989
|
|
|
13203
12990
|
// src/sources/base-source.ts
|
|
@@ -13208,40 +12995,26 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13208
12995
|
headers: {}
|
|
13209
12996
|
};
|
|
13210
12997
|
async function baseSource(endpoint, options, urlParameters) {
|
|
13211
|
-
const {
|
|
13212
|
-
|
|
13213
|
-
connectionName,
|
|
13214
|
-
cache,
|
|
13215
|
-
...optionalOptions
|
|
13216
|
-
} = options;
|
|
13217
|
-
const mergedOptions = {
|
|
13218
|
-
...SOURCE_DEFAULTS,
|
|
13219
|
-
accessToken,
|
|
13220
|
-
connectionName,
|
|
13221
|
-
endpoint
|
|
13222
|
-
};
|
|
12998
|
+
const { accessToken, connectionName, cache, ...optionalOptions } = options;
|
|
12999
|
+
const mergedOptions = { ...SOURCE_DEFAULTS, accessToken, connectionName, endpoint };
|
|
13223
13000
|
for (const key in optionalOptions) {
|
|
13224
13001
|
if (optionalOptions[key]) {
|
|
13225
13002
|
mergedOptions[key] = optionalOptions[key];
|
|
13226
13003
|
}
|
|
13227
13004
|
}
|
|
13228
13005
|
const baseUrl2 = buildSourceUrl(mergedOptions);
|
|
13229
|
-
const {
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
const headers = {
|
|
13233
|
-
Authorization: `Bearer ${options.accessToken}`,
|
|
13234
|
-
...options.headers
|
|
13235
|
-
};
|
|
13006
|
+
const { clientId, format: format2 } = mergedOptions;
|
|
13007
|
+
const headers = { Authorization: `Bearer ${options.accessToken}`, ...options.headers };
|
|
13008
|
+
const parameters = { client: clientId, ...urlParameters };
|
|
13236
13009
|
const errorContext = {
|
|
13237
13010
|
requestType: "Map instantiation",
|
|
13238
13011
|
connection: options.connectionName,
|
|
13239
13012
|
type: endpoint,
|
|
13240
|
-
source: JSON.stringify(
|
|
13013
|
+
source: JSON.stringify(parameters, void 0, 2)
|
|
13241
13014
|
};
|
|
13242
13015
|
const mapInstantiation = await requestWithParameters({
|
|
13243
13016
|
baseUrl: baseUrl2,
|
|
13244
|
-
parameters
|
|
13017
|
+
parameters,
|
|
13245
13018
|
headers,
|
|
13246
13019
|
errorContext
|
|
13247
13020
|
});
|
|
@@ -13268,6 +13041,8 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13268
13041
|
// src/sources/boundary-query-source.ts
|
|
13269
13042
|
var boundaryQuerySource = async function(options) {
|
|
13270
13043
|
const {
|
|
13044
|
+
columns,
|
|
13045
|
+
filters,
|
|
13271
13046
|
tilesetTableName,
|
|
13272
13047
|
matchingColumn = "id",
|
|
13273
13048
|
propertiesSqlQuery,
|
|
@@ -13278,6 +13053,12 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13278
13053
|
matchingColumn,
|
|
13279
13054
|
propertiesSqlQuery
|
|
13280
13055
|
};
|
|
13056
|
+
if (columns) {
|
|
13057
|
+
urlParameters.columns = columns.join(",");
|
|
13058
|
+
}
|
|
13059
|
+
if (filters) {
|
|
13060
|
+
urlParameters.filters = JSON.stringify(filters);
|
|
13061
|
+
}
|
|
13281
13062
|
if (queryParameters) {
|
|
13282
13063
|
urlParameters.queryParameters = JSON.stringify(queryParameters);
|
|
13283
13064
|
}
|
|
@@ -13286,12 +13067,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13286
13067
|
|
|
13287
13068
|
// src/sources/boundary-table-source.ts
|
|
13288
13069
|
var boundaryTableSource = async function(options) {
|
|
13289
|
-
const {
|
|
13290
|
-
tilesetTableName,
|
|
13291
|
-
columns,
|
|
13292
|
-
matchingColumn = "id",
|
|
13293
|
-
propertiesTableName
|
|
13294
|
-
} = options;
|
|
13070
|
+
const { filters, tilesetTableName, columns, matchingColumn = "id", propertiesTableName } = options;
|
|
13295
13071
|
const urlParameters = {
|
|
13296
13072
|
tilesetTableName,
|
|
13297
13073
|
matchingColumn,
|
|
@@ -13300,6 +13076,9 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13300
13076
|
if (columns) {
|
|
13301
13077
|
urlParameters.columns = columns.join(",");
|
|
13302
13078
|
}
|
|
13079
|
+
if (filters) {
|
|
13080
|
+
urlParameters.filters = JSON.stringify(filters);
|
|
13081
|
+
}
|
|
13303
13082
|
return baseSource("boundary", options, urlParameters);
|
|
13304
13083
|
};
|
|
13305
13084
|
|
|
@@ -13307,7 +13086,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13307
13086
|
var h3QuerySource = async function(options) {
|
|
13308
13087
|
const {
|
|
13309
13088
|
aggregationExp,
|
|
13310
|
-
aggregationResLevel =
|
|
13089
|
+
aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_H3,
|
|
13311
13090
|
sqlQuery,
|
|
13312
13091
|
spatialDataColumn = "h3",
|
|
13313
13092
|
queryParameters
|
|
@@ -13331,8 +13110,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13331
13110
|
var h3TableSource = async function(options) {
|
|
13332
13111
|
const {
|
|
13333
13112
|
aggregationExp,
|
|
13334
|
-
aggregationResLevel =
|
|
13335
|
-
columns,
|
|
13113
|
+
aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_H3,
|
|
13336
13114
|
spatialDataColumn = "h3",
|
|
13337
13115
|
tableName
|
|
13338
13116
|
} = options;
|
|
@@ -13345,31 +13123,20 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13345
13123
|
if (aggregationResLevel) {
|
|
13346
13124
|
urlParameters.aggregationResLevel = String(aggregationResLevel);
|
|
13347
13125
|
}
|
|
13348
|
-
if (columns) {
|
|
13349
|
-
urlParameters.columns = columns.join(",");
|
|
13350
|
-
}
|
|
13351
13126
|
return baseSource("table", options, urlParameters);
|
|
13352
13127
|
};
|
|
13353
13128
|
|
|
13354
13129
|
// src/sources/h3-tileset-source.ts
|
|
13355
13130
|
var h3TilesetSource = async function(options) {
|
|
13356
|
-
const {
|
|
13357
|
-
|
|
13358
|
-
} = options;
|
|
13359
|
-
const urlParameters = {
|
|
13360
|
-
name: tableName
|
|
13361
|
-
};
|
|
13131
|
+
const { tableName } = options;
|
|
13132
|
+
const urlParameters = { name: tableName };
|
|
13362
13133
|
return baseSource("tileset", options, urlParameters);
|
|
13363
13134
|
};
|
|
13364
13135
|
|
|
13365
13136
|
// src/sources/raster-source.ts
|
|
13366
13137
|
var rasterSource = async function(options) {
|
|
13367
|
-
const {
|
|
13368
|
-
|
|
13369
|
-
} = options;
|
|
13370
|
-
const urlParameters = {
|
|
13371
|
-
name: tableName
|
|
13372
|
-
};
|
|
13138
|
+
const { tableName } = options;
|
|
13139
|
+
const urlParameters = { name: tableName };
|
|
13373
13140
|
return baseSource("raster", options, urlParameters);
|
|
13374
13141
|
};
|
|
13375
13142
|
|
|
@@ -13377,7 +13144,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13377
13144
|
var quadbinQuerySource = async function(options) {
|
|
13378
13145
|
const {
|
|
13379
13146
|
aggregationExp,
|
|
13380
|
-
aggregationResLevel =
|
|
13147
|
+
aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN,
|
|
13381
13148
|
sqlQuery,
|
|
13382
13149
|
spatialDataColumn = "quadbin",
|
|
13383
13150
|
queryParameters
|
|
@@ -13401,8 +13168,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13401
13168
|
var quadbinTableSource = async function(options) {
|
|
13402
13169
|
const {
|
|
13403
13170
|
aggregationExp,
|
|
13404
|
-
aggregationResLevel =
|
|
13405
|
-
columns,
|
|
13171
|
+
aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN,
|
|
13406
13172
|
spatialDataColumn = "quadbin",
|
|
13407
13173
|
tableName
|
|
13408
13174
|
} = options;
|
|
@@ -13415,35 +13181,38 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13415
13181
|
if (aggregationResLevel) {
|
|
13416
13182
|
urlParameters.aggregationResLevel = String(aggregationResLevel);
|
|
13417
13183
|
}
|
|
13418
|
-
if (columns) {
|
|
13419
|
-
urlParameters.columns = columns.join(",");
|
|
13420
|
-
}
|
|
13421
13184
|
return baseSource("table", options, urlParameters);
|
|
13422
13185
|
};
|
|
13423
13186
|
|
|
13424
13187
|
// src/sources/quadbin-tileset-source.ts
|
|
13425
13188
|
var quadbinTilesetSource = async function(options) {
|
|
13426
|
-
const {
|
|
13427
|
-
|
|
13428
|
-
} = options;
|
|
13429
|
-
const urlParameters = {
|
|
13430
|
-
name: tableName
|
|
13431
|
-
};
|
|
13189
|
+
const { tableName } = options;
|
|
13190
|
+
const urlParameters = { name: tableName };
|
|
13432
13191
|
return baseSource("tileset", options, urlParameters);
|
|
13433
13192
|
};
|
|
13434
13193
|
|
|
13435
13194
|
// src/sources/vector-query-source.ts
|
|
13436
13195
|
var vectorQuerySource = async function(options) {
|
|
13437
13196
|
const {
|
|
13197
|
+
columns,
|
|
13198
|
+
filters,
|
|
13438
13199
|
spatialDataColumn = "geom",
|
|
13439
13200
|
sqlQuery,
|
|
13201
|
+
tileResolution = DEFAULT_TILE_RESOLUTION,
|
|
13440
13202
|
queryParameters
|
|
13441
13203
|
} = options;
|
|
13442
13204
|
const urlParameters = {
|
|
13443
13205
|
spatialDataColumn,
|
|
13444
13206
|
spatialDataType: "geo",
|
|
13207
|
+
tileResolution: tileResolution.toString(),
|
|
13445
13208
|
q: sqlQuery
|
|
13446
13209
|
};
|
|
13210
|
+
if (columns) {
|
|
13211
|
+
urlParameters.columns = columns.join(",");
|
|
13212
|
+
}
|
|
13213
|
+
if (filters) {
|
|
13214
|
+
urlParameters.filters = JSON.stringify(filters);
|
|
13215
|
+
}
|
|
13447
13216
|
if (queryParameters) {
|
|
13448
13217
|
urlParameters.queryParameters = JSON.stringify(queryParameters);
|
|
13449
13218
|
}
|
|
@@ -13454,39 +13223,692 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13454
13223
|
var vectorTableSource = async function(options) {
|
|
13455
13224
|
const {
|
|
13456
13225
|
columns,
|
|
13226
|
+
filters,
|
|
13457
13227
|
spatialDataColumn = "geom",
|
|
13458
|
-
tableName
|
|
13228
|
+
tableName,
|
|
13229
|
+
tileResolution = DEFAULT_TILE_RESOLUTION
|
|
13459
13230
|
} = options;
|
|
13460
13231
|
const urlParameters = {
|
|
13461
13232
|
name: tableName,
|
|
13462
13233
|
spatialDataColumn,
|
|
13463
|
-
spatialDataType: "geo"
|
|
13234
|
+
spatialDataType: "geo",
|
|
13235
|
+
tileResolution: tileResolution.toString()
|
|
13464
13236
|
};
|
|
13465
13237
|
if (columns) {
|
|
13466
13238
|
urlParameters.columns = columns.join(",");
|
|
13467
13239
|
}
|
|
13240
|
+
if (filters) {
|
|
13241
|
+
urlParameters.filters = JSON.stringify(filters);
|
|
13242
|
+
}
|
|
13468
13243
|
return baseSource("table", options, urlParameters);
|
|
13469
13244
|
};
|
|
13470
13245
|
|
|
13471
13246
|
// src/sources/vector-tileset-source.ts
|
|
13472
13247
|
var vectorTilesetSource = async function(options) {
|
|
13473
|
-
const {
|
|
13474
|
-
|
|
13475
|
-
} = options;
|
|
13476
|
-
const urlParameters = {
|
|
13477
|
-
name: tableName
|
|
13478
|
-
};
|
|
13248
|
+
const { tableName } = options;
|
|
13249
|
+
const urlParameters = { name: tableName };
|
|
13479
13250
|
return baseSource("tileset", options, urlParameters);
|
|
13480
13251
|
};
|
|
13481
13252
|
|
|
13253
|
+
// ../../node_modules/@luma.gl/constants/dist/webgl-constants.js
|
|
13254
|
+
var GLEnum;
|
|
13255
|
+
(function(GLEnum2) {
|
|
13256
|
+
GLEnum2[GLEnum2["DEPTH_BUFFER_BIT"] = 256] = "DEPTH_BUFFER_BIT";
|
|
13257
|
+
GLEnum2[GLEnum2["STENCIL_BUFFER_BIT"] = 1024] = "STENCIL_BUFFER_BIT";
|
|
13258
|
+
GLEnum2[GLEnum2["COLOR_BUFFER_BIT"] = 16384] = "COLOR_BUFFER_BIT";
|
|
13259
|
+
GLEnum2[GLEnum2["POINTS"] = 0] = "POINTS";
|
|
13260
|
+
GLEnum2[GLEnum2["LINES"] = 1] = "LINES";
|
|
13261
|
+
GLEnum2[GLEnum2["LINE_LOOP"] = 2] = "LINE_LOOP";
|
|
13262
|
+
GLEnum2[GLEnum2["LINE_STRIP"] = 3] = "LINE_STRIP";
|
|
13263
|
+
GLEnum2[GLEnum2["TRIANGLES"] = 4] = "TRIANGLES";
|
|
13264
|
+
GLEnum2[GLEnum2["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
|
|
13265
|
+
GLEnum2[GLEnum2["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
|
|
13266
|
+
GLEnum2[GLEnum2["ZERO"] = 0] = "ZERO";
|
|
13267
|
+
GLEnum2[GLEnum2["ONE"] = 1] = "ONE";
|
|
13268
|
+
GLEnum2[GLEnum2["SRC_COLOR"] = 768] = "SRC_COLOR";
|
|
13269
|
+
GLEnum2[GLEnum2["ONE_MINUS_SRC_COLOR"] = 769] = "ONE_MINUS_SRC_COLOR";
|
|
13270
|
+
GLEnum2[GLEnum2["SRC_ALPHA"] = 770] = "SRC_ALPHA";
|
|
13271
|
+
GLEnum2[GLEnum2["ONE_MINUS_SRC_ALPHA"] = 771] = "ONE_MINUS_SRC_ALPHA";
|
|
13272
|
+
GLEnum2[GLEnum2["DST_ALPHA"] = 772] = "DST_ALPHA";
|
|
13273
|
+
GLEnum2[GLEnum2["ONE_MINUS_DST_ALPHA"] = 773] = "ONE_MINUS_DST_ALPHA";
|
|
13274
|
+
GLEnum2[GLEnum2["DST_COLOR"] = 774] = "DST_COLOR";
|
|
13275
|
+
GLEnum2[GLEnum2["ONE_MINUS_DST_COLOR"] = 775] = "ONE_MINUS_DST_COLOR";
|
|
13276
|
+
GLEnum2[GLEnum2["SRC_ALPHA_SATURATE"] = 776] = "SRC_ALPHA_SATURATE";
|
|
13277
|
+
GLEnum2[GLEnum2["CONSTANT_COLOR"] = 32769] = "CONSTANT_COLOR";
|
|
13278
|
+
GLEnum2[GLEnum2["ONE_MINUS_CONSTANT_COLOR"] = 32770] = "ONE_MINUS_CONSTANT_COLOR";
|
|
13279
|
+
GLEnum2[GLEnum2["CONSTANT_ALPHA"] = 32771] = "CONSTANT_ALPHA";
|
|
13280
|
+
GLEnum2[GLEnum2["ONE_MINUS_CONSTANT_ALPHA"] = 32772] = "ONE_MINUS_CONSTANT_ALPHA";
|
|
13281
|
+
GLEnum2[GLEnum2["FUNC_ADD"] = 32774] = "FUNC_ADD";
|
|
13282
|
+
GLEnum2[GLEnum2["FUNC_SUBTRACT"] = 32778] = "FUNC_SUBTRACT";
|
|
13283
|
+
GLEnum2[GLEnum2["FUNC_REVERSE_SUBTRACT"] = 32779] = "FUNC_REVERSE_SUBTRACT";
|
|
13284
|
+
GLEnum2[GLEnum2["BLEND_EQUATION"] = 32777] = "BLEND_EQUATION";
|
|
13285
|
+
GLEnum2[GLEnum2["BLEND_EQUATION_RGB"] = 32777] = "BLEND_EQUATION_RGB";
|
|
13286
|
+
GLEnum2[GLEnum2["BLEND_EQUATION_ALPHA"] = 34877] = "BLEND_EQUATION_ALPHA";
|
|
13287
|
+
GLEnum2[GLEnum2["BLEND_DST_RGB"] = 32968] = "BLEND_DST_RGB";
|
|
13288
|
+
GLEnum2[GLEnum2["BLEND_SRC_RGB"] = 32969] = "BLEND_SRC_RGB";
|
|
13289
|
+
GLEnum2[GLEnum2["BLEND_DST_ALPHA"] = 32970] = "BLEND_DST_ALPHA";
|
|
13290
|
+
GLEnum2[GLEnum2["BLEND_SRC_ALPHA"] = 32971] = "BLEND_SRC_ALPHA";
|
|
13291
|
+
GLEnum2[GLEnum2["BLEND_COLOR"] = 32773] = "BLEND_COLOR";
|
|
13292
|
+
GLEnum2[GLEnum2["ARRAY_BUFFER_BINDING"] = 34964] = "ARRAY_BUFFER_BINDING";
|
|
13293
|
+
GLEnum2[GLEnum2["ELEMENT_ARRAY_BUFFER_BINDING"] = 34965] = "ELEMENT_ARRAY_BUFFER_BINDING";
|
|
13294
|
+
GLEnum2[GLEnum2["LINE_WIDTH"] = 2849] = "LINE_WIDTH";
|
|
13295
|
+
GLEnum2[GLEnum2["ALIASED_POINT_SIZE_RANGE"] = 33901] = "ALIASED_POINT_SIZE_RANGE";
|
|
13296
|
+
GLEnum2[GLEnum2["ALIASED_LINE_WIDTH_RANGE"] = 33902] = "ALIASED_LINE_WIDTH_RANGE";
|
|
13297
|
+
GLEnum2[GLEnum2["CULL_FACE_MODE"] = 2885] = "CULL_FACE_MODE";
|
|
13298
|
+
GLEnum2[GLEnum2["FRONT_FACE"] = 2886] = "FRONT_FACE";
|
|
13299
|
+
GLEnum2[GLEnum2["DEPTH_RANGE"] = 2928] = "DEPTH_RANGE";
|
|
13300
|
+
GLEnum2[GLEnum2["DEPTH_WRITEMASK"] = 2930] = "DEPTH_WRITEMASK";
|
|
13301
|
+
GLEnum2[GLEnum2["DEPTH_CLEAR_VALUE"] = 2931] = "DEPTH_CLEAR_VALUE";
|
|
13302
|
+
GLEnum2[GLEnum2["DEPTH_FUNC"] = 2932] = "DEPTH_FUNC";
|
|
13303
|
+
GLEnum2[GLEnum2["STENCIL_CLEAR_VALUE"] = 2961] = "STENCIL_CLEAR_VALUE";
|
|
13304
|
+
GLEnum2[GLEnum2["STENCIL_FUNC"] = 2962] = "STENCIL_FUNC";
|
|
13305
|
+
GLEnum2[GLEnum2["STENCIL_FAIL"] = 2964] = "STENCIL_FAIL";
|
|
13306
|
+
GLEnum2[GLEnum2["STENCIL_PASS_DEPTH_FAIL"] = 2965] = "STENCIL_PASS_DEPTH_FAIL";
|
|
13307
|
+
GLEnum2[GLEnum2["STENCIL_PASS_DEPTH_PASS"] = 2966] = "STENCIL_PASS_DEPTH_PASS";
|
|
13308
|
+
GLEnum2[GLEnum2["STENCIL_REF"] = 2967] = "STENCIL_REF";
|
|
13309
|
+
GLEnum2[GLEnum2["STENCIL_VALUE_MASK"] = 2963] = "STENCIL_VALUE_MASK";
|
|
13310
|
+
GLEnum2[GLEnum2["STENCIL_WRITEMASK"] = 2968] = "STENCIL_WRITEMASK";
|
|
13311
|
+
GLEnum2[GLEnum2["STENCIL_BACK_FUNC"] = 34816] = "STENCIL_BACK_FUNC";
|
|
13312
|
+
GLEnum2[GLEnum2["STENCIL_BACK_FAIL"] = 34817] = "STENCIL_BACK_FAIL";
|
|
13313
|
+
GLEnum2[GLEnum2["STENCIL_BACK_PASS_DEPTH_FAIL"] = 34818] = "STENCIL_BACK_PASS_DEPTH_FAIL";
|
|
13314
|
+
GLEnum2[GLEnum2["STENCIL_BACK_PASS_DEPTH_PASS"] = 34819] = "STENCIL_BACK_PASS_DEPTH_PASS";
|
|
13315
|
+
GLEnum2[GLEnum2["STENCIL_BACK_REF"] = 36003] = "STENCIL_BACK_REF";
|
|
13316
|
+
GLEnum2[GLEnum2["STENCIL_BACK_VALUE_MASK"] = 36004] = "STENCIL_BACK_VALUE_MASK";
|
|
13317
|
+
GLEnum2[GLEnum2["STENCIL_BACK_WRITEMASK"] = 36005] = "STENCIL_BACK_WRITEMASK";
|
|
13318
|
+
GLEnum2[GLEnum2["VIEWPORT"] = 2978] = "VIEWPORT";
|
|
13319
|
+
GLEnum2[GLEnum2["SCISSOR_BOX"] = 3088] = "SCISSOR_BOX";
|
|
13320
|
+
GLEnum2[GLEnum2["COLOR_CLEAR_VALUE"] = 3106] = "COLOR_CLEAR_VALUE";
|
|
13321
|
+
GLEnum2[GLEnum2["COLOR_WRITEMASK"] = 3107] = "COLOR_WRITEMASK";
|
|
13322
|
+
GLEnum2[GLEnum2["UNPACK_ALIGNMENT"] = 3317] = "UNPACK_ALIGNMENT";
|
|
13323
|
+
GLEnum2[GLEnum2["PACK_ALIGNMENT"] = 3333] = "PACK_ALIGNMENT";
|
|
13324
|
+
GLEnum2[GLEnum2["MAX_TEXTURE_SIZE"] = 3379] = "MAX_TEXTURE_SIZE";
|
|
13325
|
+
GLEnum2[GLEnum2["MAX_VIEWPORT_DIMS"] = 3386] = "MAX_VIEWPORT_DIMS";
|
|
13326
|
+
GLEnum2[GLEnum2["SUBPIXEL_BITS"] = 3408] = "SUBPIXEL_BITS";
|
|
13327
|
+
GLEnum2[GLEnum2["RED_BITS"] = 3410] = "RED_BITS";
|
|
13328
|
+
GLEnum2[GLEnum2["GREEN_BITS"] = 3411] = "GREEN_BITS";
|
|
13329
|
+
GLEnum2[GLEnum2["BLUE_BITS"] = 3412] = "BLUE_BITS";
|
|
13330
|
+
GLEnum2[GLEnum2["ALPHA_BITS"] = 3413] = "ALPHA_BITS";
|
|
13331
|
+
GLEnum2[GLEnum2["DEPTH_BITS"] = 3414] = "DEPTH_BITS";
|
|
13332
|
+
GLEnum2[GLEnum2["STENCIL_BITS"] = 3415] = "STENCIL_BITS";
|
|
13333
|
+
GLEnum2[GLEnum2["POLYGON_OFFSET_UNITS"] = 10752] = "POLYGON_OFFSET_UNITS";
|
|
13334
|
+
GLEnum2[GLEnum2["POLYGON_OFFSET_FACTOR"] = 32824] = "POLYGON_OFFSET_FACTOR";
|
|
13335
|
+
GLEnum2[GLEnum2["TEXTURE_BINDING_2D"] = 32873] = "TEXTURE_BINDING_2D";
|
|
13336
|
+
GLEnum2[GLEnum2["SAMPLE_BUFFERS"] = 32936] = "SAMPLE_BUFFERS";
|
|
13337
|
+
GLEnum2[GLEnum2["SAMPLES"] = 32937] = "SAMPLES";
|
|
13338
|
+
GLEnum2[GLEnum2["SAMPLE_COVERAGE_VALUE"] = 32938] = "SAMPLE_COVERAGE_VALUE";
|
|
13339
|
+
GLEnum2[GLEnum2["SAMPLE_COVERAGE_INVERT"] = 32939] = "SAMPLE_COVERAGE_INVERT";
|
|
13340
|
+
GLEnum2[GLEnum2["COMPRESSED_TEXTURE_FORMATS"] = 34467] = "COMPRESSED_TEXTURE_FORMATS";
|
|
13341
|
+
GLEnum2[GLEnum2["VENDOR"] = 7936] = "VENDOR";
|
|
13342
|
+
GLEnum2[GLEnum2["RENDERER"] = 7937] = "RENDERER";
|
|
13343
|
+
GLEnum2[GLEnum2["VERSION"] = 7938] = "VERSION";
|
|
13344
|
+
GLEnum2[GLEnum2["IMPLEMENTATION_COLOR_READ_TYPE"] = 35738] = "IMPLEMENTATION_COLOR_READ_TYPE";
|
|
13345
|
+
GLEnum2[GLEnum2["IMPLEMENTATION_COLOR_READ_FORMAT"] = 35739] = "IMPLEMENTATION_COLOR_READ_FORMAT";
|
|
13346
|
+
GLEnum2[GLEnum2["BROWSER_DEFAULT_WEBGL"] = 37444] = "BROWSER_DEFAULT_WEBGL";
|
|
13347
|
+
GLEnum2[GLEnum2["STATIC_DRAW"] = 35044] = "STATIC_DRAW";
|
|
13348
|
+
GLEnum2[GLEnum2["STREAM_DRAW"] = 35040] = "STREAM_DRAW";
|
|
13349
|
+
GLEnum2[GLEnum2["DYNAMIC_DRAW"] = 35048] = "DYNAMIC_DRAW";
|
|
13350
|
+
GLEnum2[GLEnum2["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
|
|
13351
|
+
GLEnum2[GLEnum2["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
|
|
13352
|
+
GLEnum2[GLEnum2["BUFFER_SIZE"] = 34660] = "BUFFER_SIZE";
|
|
13353
|
+
GLEnum2[GLEnum2["BUFFER_USAGE"] = 34661] = "BUFFER_USAGE";
|
|
13354
|
+
GLEnum2[GLEnum2["CURRENT_VERTEX_ATTRIB"] = 34342] = "CURRENT_VERTEX_ATTRIB";
|
|
13355
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_ENABLED"] = 34338] = "VERTEX_ATTRIB_ARRAY_ENABLED";
|
|
13356
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_SIZE"] = 34339] = "VERTEX_ATTRIB_ARRAY_SIZE";
|
|
13357
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_STRIDE"] = 34340] = "VERTEX_ATTRIB_ARRAY_STRIDE";
|
|
13358
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_TYPE"] = 34341] = "VERTEX_ATTRIB_ARRAY_TYPE";
|
|
13359
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_NORMALIZED"] = 34922] = "VERTEX_ATTRIB_ARRAY_NORMALIZED";
|
|
13360
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_POINTER"] = 34373] = "VERTEX_ATTRIB_ARRAY_POINTER";
|
|
13361
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"] = 34975] = "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING";
|
|
13362
|
+
GLEnum2[GLEnum2["CULL_FACE"] = 2884] = "CULL_FACE";
|
|
13363
|
+
GLEnum2[GLEnum2["FRONT"] = 1028] = "FRONT";
|
|
13364
|
+
GLEnum2[GLEnum2["BACK"] = 1029] = "BACK";
|
|
13365
|
+
GLEnum2[GLEnum2["FRONT_AND_BACK"] = 1032] = "FRONT_AND_BACK";
|
|
13366
|
+
GLEnum2[GLEnum2["BLEND"] = 3042] = "BLEND";
|
|
13367
|
+
GLEnum2[GLEnum2["DEPTH_TEST"] = 2929] = "DEPTH_TEST";
|
|
13368
|
+
GLEnum2[GLEnum2["DITHER"] = 3024] = "DITHER";
|
|
13369
|
+
GLEnum2[GLEnum2["POLYGON_OFFSET_FILL"] = 32823] = "POLYGON_OFFSET_FILL";
|
|
13370
|
+
GLEnum2[GLEnum2["SAMPLE_ALPHA_TO_COVERAGE"] = 32926] = "SAMPLE_ALPHA_TO_COVERAGE";
|
|
13371
|
+
GLEnum2[GLEnum2["SAMPLE_COVERAGE"] = 32928] = "SAMPLE_COVERAGE";
|
|
13372
|
+
GLEnum2[GLEnum2["SCISSOR_TEST"] = 3089] = "SCISSOR_TEST";
|
|
13373
|
+
GLEnum2[GLEnum2["STENCIL_TEST"] = 2960] = "STENCIL_TEST";
|
|
13374
|
+
GLEnum2[GLEnum2["NO_ERROR"] = 0] = "NO_ERROR";
|
|
13375
|
+
GLEnum2[GLEnum2["INVALID_ENUM"] = 1280] = "INVALID_ENUM";
|
|
13376
|
+
GLEnum2[GLEnum2["INVALID_VALUE"] = 1281] = "INVALID_VALUE";
|
|
13377
|
+
GLEnum2[GLEnum2["INVALID_OPERATION"] = 1282] = "INVALID_OPERATION";
|
|
13378
|
+
GLEnum2[GLEnum2["OUT_OF_MEMORY"] = 1285] = "OUT_OF_MEMORY";
|
|
13379
|
+
GLEnum2[GLEnum2["CONTEXT_LOST_WEBGL"] = 37442] = "CONTEXT_LOST_WEBGL";
|
|
13380
|
+
GLEnum2[GLEnum2["CW"] = 2304] = "CW";
|
|
13381
|
+
GLEnum2[GLEnum2["CCW"] = 2305] = "CCW";
|
|
13382
|
+
GLEnum2[GLEnum2["DONT_CARE"] = 4352] = "DONT_CARE";
|
|
13383
|
+
GLEnum2[GLEnum2["FASTEST"] = 4353] = "FASTEST";
|
|
13384
|
+
GLEnum2[GLEnum2["NICEST"] = 4354] = "NICEST";
|
|
13385
|
+
GLEnum2[GLEnum2["GENERATE_MIPMAP_HINT"] = 33170] = "GENERATE_MIPMAP_HINT";
|
|
13386
|
+
GLEnum2[GLEnum2["BYTE"] = 5120] = "BYTE";
|
|
13387
|
+
GLEnum2[GLEnum2["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
|
|
13388
|
+
GLEnum2[GLEnum2["SHORT"] = 5122] = "SHORT";
|
|
13389
|
+
GLEnum2[GLEnum2["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
|
|
13390
|
+
GLEnum2[GLEnum2["INT"] = 5124] = "INT";
|
|
13391
|
+
GLEnum2[GLEnum2["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
|
|
13392
|
+
GLEnum2[GLEnum2["FLOAT"] = 5126] = "FLOAT";
|
|
13393
|
+
GLEnum2[GLEnum2["DOUBLE"] = 5130] = "DOUBLE";
|
|
13394
|
+
GLEnum2[GLEnum2["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
|
|
13395
|
+
GLEnum2[GLEnum2["ALPHA"] = 6406] = "ALPHA";
|
|
13396
|
+
GLEnum2[GLEnum2["RGB"] = 6407] = "RGB";
|
|
13397
|
+
GLEnum2[GLEnum2["RGBA"] = 6408] = "RGBA";
|
|
13398
|
+
GLEnum2[GLEnum2["LUMINANCE"] = 6409] = "LUMINANCE";
|
|
13399
|
+
GLEnum2[GLEnum2["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
|
|
13400
|
+
GLEnum2[GLEnum2["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
|
|
13401
|
+
GLEnum2[GLEnum2["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
|
|
13402
|
+
GLEnum2[GLEnum2["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
|
|
13403
|
+
GLEnum2[GLEnum2["FRAGMENT_SHADER"] = 35632] = "FRAGMENT_SHADER";
|
|
13404
|
+
GLEnum2[GLEnum2["VERTEX_SHADER"] = 35633] = "VERTEX_SHADER";
|
|
13405
|
+
GLEnum2[GLEnum2["COMPILE_STATUS"] = 35713] = "COMPILE_STATUS";
|
|
13406
|
+
GLEnum2[GLEnum2["DELETE_STATUS"] = 35712] = "DELETE_STATUS";
|
|
13407
|
+
GLEnum2[GLEnum2["LINK_STATUS"] = 35714] = "LINK_STATUS";
|
|
13408
|
+
GLEnum2[GLEnum2["VALIDATE_STATUS"] = 35715] = "VALIDATE_STATUS";
|
|
13409
|
+
GLEnum2[GLEnum2["ATTACHED_SHADERS"] = 35717] = "ATTACHED_SHADERS";
|
|
13410
|
+
GLEnum2[GLEnum2["ACTIVE_ATTRIBUTES"] = 35721] = "ACTIVE_ATTRIBUTES";
|
|
13411
|
+
GLEnum2[GLEnum2["ACTIVE_UNIFORMS"] = 35718] = "ACTIVE_UNIFORMS";
|
|
13412
|
+
GLEnum2[GLEnum2["MAX_VERTEX_ATTRIBS"] = 34921] = "MAX_VERTEX_ATTRIBS";
|
|
13413
|
+
GLEnum2[GLEnum2["MAX_VERTEX_UNIFORM_VECTORS"] = 36347] = "MAX_VERTEX_UNIFORM_VECTORS";
|
|
13414
|
+
GLEnum2[GLEnum2["MAX_VARYING_VECTORS"] = 36348] = "MAX_VARYING_VECTORS";
|
|
13415
|
+
GLEnum2[GLEnum2["MAX_COMBINED_TEXTURE_IMAGE_UNITS"] = 35661] = "MAX_COMBINED_TEXTURE_IMAGE_UNITS";
|
|
13416
|
+
GLEnum2[GLEnum2["MAX_VERTEX_TEXTURE_IMAGE_UNITS"] = 35660] = "MAX_VERTEX_TEXTURE_IMAGE_UNITS";
|
|
13417
|
+
GLEnum2[GLEnum2["MAX_TEXTURE_IMAGE_UNITS"] = 34930] = "MAX_TEXTURE_IMAGE_UNITS";
|
|
13418
|
+
GLEnum2[GLEnum2["MAX_FRAGMENT_UNIFORM_VECTORS"] = 36349] = "MAX_FRAGMENT_UNIFORM_VECTORS";
|
|
13419
|
+
GLEnum2[GLEnum2["SHADER_TYPE"] = 35663] = "SHADER_TYPE";
|
|
13420
|
+
GLEnum2[GLEnum2["SHADING_LANGUAGE_VERSION"] = 35724] = "SHADING_LANGUAGE_VERSION";
|
|
13421
|
+
GLEnum2[GLEnum2["CURRENT_PROGRAM"] = 35725] = "CURRENT_PROGRAM";
|
|
13422
|
+
GLEnum2[GLEnum2["NEVER"] = 512] = "NEVER";
|
|
13423
|
+
GLEnum2[GLEnum2["LESS"] = 513] = "LESS";
|
|
13424
|
+
GLEnum2[GLEnum2["EQUAL"] = 514] = "EQUAL";
|
|
13425
|
+
GLEnum2[GLEnum2["LEQUAL"] = 515] = "LEQUAL";
|
|
13426
|
+
GLEnum2[GLEnum2["GREATER"] = 516] = "GREATER";
|
|
13427
|
+
GLEnum2[GLEnum2["NOTEQUAL"] = 517] = "NOTEQUAL";
|
|
13428
|
+
GLEnum2[GLEnum2["GEQUAL"] = 518] = "GEQUAL";
|
|
13429
|
+
GLEnum2[GLEnum2["ALWAYS"] = 519] = "ALWAYS";
|
|
13430
|
+
GLEnum2[GLEnum2["KEEP"] = 7680] = "KEEP";
|
|
13431
|
+
GLEnum2[GLEnum2["REPLACE"] = 7681] = "REPLACE";
|
|
13432
|
+
GLEnum2[GLEnum2["INCR"] = 7682] = "INCR";
|
|
13433
|
+
GLEnum2[GLEnum2["DECR"] = 7683] = "DECR";
|
|
13434
|
+
GLEnum2[GLEnum2["INVERT"] = 5386] = "INVERT";
|
|
13435
|
+
GLEnum2[GLEnum2["INCR_WRAP"] = 34055] = "INCR_WRAP";
|
|
13436
|
+
GLEnum2[GLEnum2["DECR_WRAP"] = 34056] = "DECR_WRAP";
|
|
13437
|
+
GLEnum2[GLEnum2["NEAREST"] = 9728] = "NEAREST";
|
|
13438
|
+
GLEnum2[GLEnum2["LINEAR"] = 9729] = "LINEAR";
|
|
13439
|
+
GLEnum2[GLEnum2["NEAREST_MIPMAP_NEAREST"] = 9984] = "NEAREST_MIPMAP_NEAREST";
|
|
13440
|
+
GLEnum2[GLEnum2["LINEAR_MIPMAP_NEAREST"] = 9985] = "LINEAR_MIPMAP_NEAREST";
|
|
13441
|
+
GLEnum2[GLEnum2["NEAREST_MIPMAP_LINEAR"] = 9986] = "NEAREST_MIPMAP_LINEAR";
|
|
13442
|
+
GLEnum2[GLEnum2["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
|
|
13443
|
+
GLEnum2[GLEnum2["TEXTURE_MAG_FILTER"] = 10240] = "TEXTURE_MAG_FILTER";
|
|
13444
|
+
GLEnum2[GLEnum2["TEXTURE_MIN_FILTER"] = 10241] = "TEXTURE_MIN_FILTER";
|
|
13445
|
+
GLEnum2[GLEnum2["TEXTURE_WRAP_S"] = 10242] = "TEXTURE_WRAP_S";
|
|
13446
|
+
GLEnum2[GLEnum2["TEXTURE_WRAP_T"] = 10243] = "TEXTURE_WRAP_T";
|
|
13447
|
+
GLEnum2[GLEnum2["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
|
|
13448
|
+
GLEnum2[GLEnum2["TEXTURE"] = 5890] = "TEXTURE";
|
|
13449
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
|
|
13450
|
+
GLEnum2[GLEnum2["TEXTURE_BINDING_CUBE_MAP"] = 34068] = "TEXTURE_BINDING_CUBE_MAP";
|
|
13451
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP_POSITIVE_X"] = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X";
|
|
13452
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP_NEGATIVE_X"] = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X";
|
|
13453
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP_POSITIVE_Y"] = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y";
|
|
13454
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
|
|
13455
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
|
|
13456
|
+
GLEnum2[GLEnum2["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
|
|
13457
|
+
GLEnum2[GLEnum2["MAX_CUBE_MAP_TEXTURE_SIZE"] = 34076] = "MAX_CUBE_MAP_TEXTURE_SIZE";
|
|
13458
|
+
GLEnum2[GLEnum2["TEXTURE0"] = 33984] = "TEXTURE0";
|
|
13459
|
+
GLEnum2[GLEnum2["ACTIVE_TEXTURE"] = 34016] = "ACTIVE_TEXTURE";
|
|
13460
|
+
GLEnum2[GLEnum2["REPEAT"] = 10497] = "REPEAT";
|
|
13461
|
+
GLEnum2[GLEnum2["CLAMP_TO_EDGE"] = 33071] = "CLAMP_TO_EDGE";
|
|
13462
|
+
GLEnum2[GLEnum2["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
|
|
13463
|
+
GLEnum2[GLEnum2["TEXTURE_WIDTH"] = 4096] = "TEXTURE_WIDTH";
|
|
13464
|
+
GLEnum2[GLEnum2["TEXTURE_HEIGHT"] = 4097] = "TEXTURE_HEIGHT";
|
|
13465
|
+
GLEnum2[GLEnum2["FLOAT_VEC2"] = 35664] = "FLOAT_VEC2";
|
|
13466
|
+
GLEnum2[GLEnum2["FLOAT_VEC3"] = 35665] = "FLOAT_VEC3";
|
|
13467
|
+
GLEnum2[GLEnum2["FLOAT_VEC4"] = 35666] = "FLOAT_VEC4";
|
|
13468
|
+
GLEnum2[GLEnum2["INT_VEC2"] = 35667] = "INT_VEC2";
|
|
13469
|
+
GLEnum2[GLEnum2["INT_VEC3"] = 35668] = "INT_VEC3";
|
|
13470
|
+
GLEnum2[GLEnum2["INT_VEC4"] = 35669] = "INT_VEC4";
|
|
13471
|
+
GLEnum2[GLEnum2["BOOL"] = 35670] = "BOOL";
|
|
13472
|
+
GLEnum2[GLEnum2["BOOL_VEC2"] = 35671] = "BOOL_VEC2";
|
|
13473
|
+
GLEnum2[GLEnum2["BOOL_VEC3"] = 35672] = "BOOL_VEC3";
|
|
13474
|
+
GLEnum2[GLEnum2["BOOL_VEC4"] = 35673] = "BOOL_VEC4";
|
|
13475
|
+
GLEnum2[GLEnum2["FLOAT_MAT2"] = 35674] = "FLOAT_MAT2";
|
|
13476
|
+
GLEnum2[GLEnum2["FLOAT_MAT3"] = 35675] = "FLOAT_MAT3";
|
|
13477
|
+
GLEnum2[GLEnum2["FLOAT_MAT4"] = 35676] = "FLOAT_MAT4";
|
|
13478
|
+
GLEnum2[GLEnum2["SAMPLER_2D"] = 35678] = "SAMPLER_2D";
|
|
13479
|
+
GLEnum2[GLEnum2["SAMPLER_CUBE"] = 35680] = "SAMPLER_CUBE";
|
|
13480
|
+
GLEnum2[GLEnum2["LOW_FLOAT"] = 36336] = "LOW_FLOAT";
|
|
13481
|
+
GLEnum2[GLEnum2["MEDIUM_FLOAT"] = 36337] = "MEDIUM_FLOAT";
|
|
13482
|
+
GLEnum2[GLEnum2["HIGH_FLOAT"] = 36338] = "HIGH_FLOAT";
|
|
13483
|
+
GLEnum2[GLEnum2["LOW_INT"] = 36339] = "LOW_INT";
|
|
13484
|
+
GLEnum2[GLEnum2["MEDIUM_INT"] = 36340] = "MEDIUM_INT";
|
|
13485
|
+
GLEnum2[GLEnum2["HIGH_INT"] = 36341] = "HIGH_INT";
|
|
13486
|
+
GLEnum2[GLEnum2["FRAMEBUFFER"] = 36160] = "FRAMEBUFFER";
|
|
13487
|
+
GLEnum2[GLEnum2["RENDERBUFFER"] = 36161] = "RENDERBUFFER";
|
|
13488
|
+
GLEnum2[GLEnum2["RGBA4"] = 32854] = "RGBA4";
|
|
13489
|
+
GLEnum2[GLEnum2["RGB5_A1"] = 32855] = "RGB5_A1";
|
|
13490
|
+
GLEnum2[GLEnum2["RGB565"] = 36194] = "RGB565";
|
|
13491
|
+
GLEnum2[GLEnum2["DEPTH_COMPONENT16"] = 33189] = "DEPTH_COMPONENT16";
|
|
13492
|
+
GLEnum2[GLEnum2["STENCIL_INDEX"] = 6401] = "STENCIL_INDEX";
|
|
13493
|
+
GLEnum2[GLEnum2["STENCIL_INDEX8"] = 36168] = "STENCIL_INDEX8";
|
|
13494
|
+
GLEnum2[GLEnum2["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
|
|
13495
|
+
GLEnum2[GLEnum2["RENDERBUFFER_WIDTH"] = 36162] = "RENDERBUFFER_WIDTH";
|
|
13496
|
+
GLEnum2[GLEnum2["RENDERBUFFER_HEIGHT"] = 36163] = "RENDERBUFFER_HEIGHT";
|
|
13497
|
+
GLEnum2[GLEnum2["RENDERBUFFER_INTERNAL_FORMAT"] = 36164] = "RENDERBUFFER_INTERNAL_FORMAT";
|
|
13498
|
+
GLEnum2[GLEnum2["RENDERBUFFER_RED_SIZE"] = 36176] = "RENDERBUFFER_RED_SIZE";
|
|
13499
|
+
GLEnum2[GLEnum2["RENDERBUFFER_GREEN_SIZE"] = 36177] = "RENDERBUFFER_GREEN_SIZE";
|
|
13500
|
+
GLEnum2[GLEnum2["RENDERBUFFER_BLUE_SIZE"] = 36178] = "RENDERBUFFER_BLUE_SIZE";
|
|
13501
|
+
GLEnum2[GLEnum2["RENDERBUFFER_ALPHA_SIZE"] = 36179] = "RENDERBUFFER_ALPHA_SIZE";
|
|
13502
|
+
GLEnum2[GLEnum2["RENDERBUFFER_DEPTH_SIZE"] = 36180] = "RENDERBUFFER_DEPTH_SIZE";
|
|
13503
|
+
GLEnum2[GLEnum2["RENDERBUFFER_STENCIL_SIZE"] = 36181] = "RENDERBUFFER_STENCIL_SIZE";
|
|
13504
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE"] = 36048] = "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE";
|
|
13505
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_OBJECT_NAME"] = 36049] = "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME";
|
|
13506
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL"] = 36050] = "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL";
|
|
13507
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE"] = 36051] = "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE";
|
|
13508
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT0"] = 36064] = "COLOR_ATTACHMENT0";
|
|
13509
|
+
GLEnum2[GLEnum2["DEPTH_ATTACHMENT"] = 36096] = "DEPTH_ATTACHMENT";
|
|
13510
|
+
GLEnum2[GLEnum2["STENCIL_ATTACHMENT"] = 36128] = "STENCIL_ATTACHMENT";
|
|
13511
|
+
GLEnum2[GLEnum2["DEPTH_STENCIL_ATTACHMENT"] = 33306] = "DEPTH_STENCIL_ATTACHMENT";
|
|
13512
|
+
GLEnum2[GLEnum2["NONE"] = 0] = "NONE";
|
|
13513
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_COMPLETE"] = 36053] = "FRAMEBUFFER_COMPLETE";
|
|
13514
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_INCOMPLETE_ATTACHMENT"] = 36054] = "FRAMEBUFFER_INCOMPLETE_ATTACHMENT";
|
|
13515
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"] = 36055] = "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";
|
|
13516
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_INCOMPLETE_DIMENSIONS"] = 36057] = "FRAMEBUFFER_INCOMPLETE_DIMENSIONS";
|
|
13517
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_UNSUPPORTED"] = 36061] = "FRAMEBUFFER_UNSUPPORTED";
|
|
13518
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_BINDING"] = 36006] = "FRAMEBUFFER_BINDING";
|
|
13519
|
+
GLEnum2[GLEnum2["RENDERBUFFER_BINDING"] = 36007] = "RENDERBUFFER_BINDING";
|
|
13520
|
+
GLEnum2[GLEnum2["READ_FRAMEBUFFER"] = 36008] = "READ_FRAMEBUFFER";
|
|
13521
|
+
GLEnum2[GLEnum2["DRAW_FRAMEBUFFER"] = 36009] = "DRAW_FRAMEBUFFER";
|
|
13522
|
+
GLEnum2[GLEnum2["MAX_RENDERBUFFER_SIZE"] = 34024] = "MAX_RENDERBUFFER_SIZE";
|
|
13523
|
+
GLEnum2[GLEnum2["INVALID_FRAMEBUFFER_OPERATION"] = 1286] = "INVALID_FRAMEBUFFER_OPERATION";
|
|
13524
|
+
GLEnum2[GLEnum2["UNPACK_FLIP_Y_WEBGL"] = 37440] = "UNPACK_FLIP_Y_WEBGL";
|
|
13525
|
+
GLEnum2[GLEnum2["UNPACK_PREMULTIPLY_ALPHA_WEBGL"] = 37441] = "UNPACK_PREMULTIPLY_ALPHA_WEBGL";
|
|
13526
|
+
GLEnum2[GLEnum2["UNPACK_COLORSPACE_CONVERSION_WEBGL"] = 37443] = "UNPACK_COLORSPACE_CONVERSION_WEBGL";
|
|
13527
|
+
GLEnum2[GLEnum2["READ_BUFFER"] = 3074] = "READ_BUFFER";
|
|
13528
|
+
GLEnum2[GLEnum2["UNPACK_ROW_LENGTH"] = 3314] = "UNPACK_ROW_LENGTH";
|
|
13529
|
+
GLEnum2[GLEnum2["UNPACK_SKIP_ROWS"] = 3315] = "UNPACK_SKIP_ROWS";
|
|
13530
|
+
GLEnum2[GLEnum2["UNPACK_SKIP_PIXELS"] = 3316] = "UNPACK_SKIP_PIXELS";
|
|
13531
|
+
GLEnum2[GLEnum2["PACK_ROW_LENGTH"] = 3330] = "PACK_ROW_LENGTH";
|
|
13532
|
+
GLEnum2[GLEnum2["PACK_SKIP_ROWS"] = 3331] = "PACK_SKIP_ROWS";
|
|
13533
|
+
GLEnum2[GLEnum2["PACK_SKIP_PIXELS"] = 3332] = "PACK_SKIP_PIXELS";
|
|
13534
|
+
GLEnum2[GLEnum2["TEXTURE_BINDING_3D"] = 32874] = "TEXTURE_BINDING_3D";
|
|
13535
|
+
GLEnum2[GLEnum2["UNPACK_SKIP_IMAGES"] = 32877] = "UNPACK_SKIP_IMAGES";
|
|
13536
|
+
GLEnum2[GLEnum2["UNPACK_IMAGE_HEIGHT"] = 32878] = "UNPACK_IMAGE_HEIGHT";
|
|
13537
|
+
GLEnum2[GLEnum2["MAX_3D_TEXTURE_SIZE"] = 32883] = "MAX_3D_TEXTURE_SIZE";
|
|
13538
|
+
GLEnum2[GLEnum2["MAX_ELEMENTS_VERTICES"] = 33e3] = "MAX_ELEMENTS_VERTICES";
|
|
13539
|
+
GLEnum2[GLEnum2["MAX_ELEMENTS_INDICES"] = 33001] = "MAX_ELEMENTS_INDICES";
|
|
13540
|
+
GLEnum2[GLEnum2["MAX_TEXTURE_LOD_BIAS"] = 34045] = "MAX_TEXTURE_LOD_BIAS";
|
|
13541
|
+
GLEnum2[GLEnum2["MAX_FRAGMENT_UNIFORM_COMPONENTS"] = 35657] = "MAX_FRAGMENT_UNIFORM_COMPONENTS";
|
|
13542
|
+
GLEnum2[GLEnum2["MAX_VERTEX_UNIFORM_COMPONENTS"] = 35658] = "MAX_VERTEX_UNIFORM_COMPONENTS";
|
|
13543
|
+
GLEnum2[GLEnum2["MAX_ARRAY_TEXTURE_LAYERS"] = 35071] = "MAX_ARRAY_TEXTURE_LAYERS";
|
|
13544
|
+
GLEnum2[GLEnum2["MIN_PROGRAM_TEXEL_OFFSET"] = 35076] = "MIN_PROGRAM_TEXEL_OFFSET";
|
|
13545
|
+
GLEnum2[GLEnum2["MAX_PROGRAM_TEXEL_OFFSET"] = 35077] = "MAX_PROGRAM_TEXEL_OFFSET";
|
|
13546
|
+
GLEnum2[GLEnum2["MAX_VARYING_COMPONENTS"] = 35659] = "MAX_VARYING_COMPONENTS";
|
|
13547
|
+
GLEnum2[GLEnum2["FRAGMENT_SHADER_DERIVATIVE_HINT"] = 35723] = "FRAGMENT_SHADER_DERIVATIVE_HINT";
|
|
13548
|
+
GLEnum2[GLEnum2["RASTERIZER_DISCARD"] = 35977] = "RASTERIZER_DISCARD";
|
|
13549
|
+
GLEnum2[GLEnum2["VERTEX_ARRAY_BINDING"] = 34229] = "VERTEX_ARRAY_BINDING";
|
|
13550
|
+
GLEnum2[GLEnum2["MAX_VERTEX_OUTPUT_COMPONENTS"] = 37154] = "MAX_VERTEX_OUTPUT_COMPONENTS";
|
|
13551
|
+
GLEnum2[GLEnum2["MAX_FRAGMENT_INPUT_COMPONENTS"] = 37157] = "MAX_FRAGMENT_INPUT_COMPONENTS";
|
|
13552
|
+
GLEnum2[GLEnum2["MAX_SERVER_WAIT_TIMEOUT"] = 37137] = "MAX_SERVER_WAIT_TIMEOUT";
|
|
13553
|
+
GLEnum2[GLEnum2["MAX_ELEMENT_INDEX"] = 36203] = "MAX_ELEMENT_INDEX";
|
|
13554
|
+
GLEnum2[GLEnum2["RED"] = 6403] = "RED";
|
|
13555
|
+
GLEnum2[GLEnum2["RGB8"] = 32849] = "RGB8";
|
|
13556
|
+
GLEnum2[GLEnum2["RGBA8"] = 32856] = "RGBA8";
|
|
13557
|
+
GLEnum2[GLEnum2["RGB10_A2"] = 32857] = "RGB10_A2";
|
|
13558
|
+
GLEnum2[GLEnum2["TEXTURE_3D"] = 32879] = "TEXTURE_3D";
|
|
13559
|
+
GLEnum2[GLEnum2["TEXTURE_WRAP_R"] = 32882] = "TEXTURE_WRAP_R";
|
|
13560
|
+
GLEnum2[GLEnum2["TEXTURE_MIN_LOD"] = 33082] = "TEXTURE_MIN_LOD";
|
|
13561
|
+
GLEnum2[GLEnum2["TEXTURE_MAX_LOD"] = 33083] = "TEXTURE_MAX_LOD";
|
|
13562
|
+
GLEnum2[GLEnum2["TEXTURE_BASE_LEVEL"] = 33084] = "TEXTURE_BASE_LEVEL";
|
|
13563
|
+
GLEnum2[GLEnum2["TEXTURE_MAX_LEVEL"] = 33085] = "TEXTURE_MAX_LEVEL";
|
|
13564
|
+
GLEnum2[GLEnum2["TEXTURE_COMPARE_MODE"] = 34892] = "TEXTURE_COMPARE_MODE";
|
|
13565
|
+
GLEnum2[GLEnum2["TEXTURE_COMPARE_FUNC"] = 34893] = "TEXTURE_COMPARE_FUNC";
|
|
13566
|
+
GLEnum2[GLEnum2["SRGB"] = 35904] = "SRGB";
|
|
13567
|
+
GLEnum2[GLEnum2["SRGB8"] = 35905] = "SRGB8";
|
|
13568
|
+
GLEnum2[GLEnum2["SRGB8_ALPHA8"] = 35907] = "SRGB8_ALPHA8";
|
|
13569
|
+
GLEnum2[GLEnum2["COMPARE_REF_TO_TEXTURE"] = 34894] = "COMPARE_REF_TO_TEXTURE";
|
|
13570
|
+
GLEnum2[GLEnum2["RGBA32F"] = 34836] = "RGBA32F";
|
|
13571
|
+
GLEnum2[GLEnum2["RGB32F"] = 34837] = "RGB32F";
|
|
13572
|
+
GLEnum2[GLEnum2["RGBA16F"] = 34842] = "RGBA16F";
|
|
13573
|
+
GLEnum2[GLEnum2["RGB16F"] = 34843] = "RGB16F";
|
|
13574
|
+
GLEnum2[GLEnum2["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
|
|
13575
|
+
GLEnum2[GLEnum2["TEXTURE_BINDING_2D_ARRAY"] = 35869] = "TEXTURE_BINDING_2D_ARRAY";
|
|
13576
|
+
GLEnum2[GLEnum2["R11F_G11F_B10F"] = 35898] = "R11F_G11F_B10F";
|
|
13577
|
+
GLEnum2[GLEnum2["RGB9_E5"] = 35901] = "RGB9_E5";
|
|
13578
|
+
GLEnum2[GLEnum2["RGBA32UI"] = 36208] = "RGBA32UI";
|
|
13579
|
+
GLEnum2[GLEnum2["RGB32UI"] = 36209] = "RGB32UI";
|
|
13580
|
+
GLEnum2[GLEnum2["RGBA16UI"] = 36214] = "RGBA16UI";
|
|
13581
|
+
GLEnum2[GLEnum2["RGB16UI"] = 36215] = "RGB16UI";
|
|
13582
|
+
GLEnum2[GLEnum2["RGBA8UI"] = 36220] = "RGBA8UI";
|
|
13583
|
+
GLEnum2[GLEnum2["RGB8UI"] = 36221] = "RGB8UI";
|
|
13584
|
+
GLEnum2[GLEnum2["RGBA32I"] = 36226] = "RGBA32I";
|
|
13585
|
+
GLEnum2[GLEnum2["RGB32I"] = 36227] = "RGB32I";
|
|
13586
|
+
GLEnum2[GLEnum2["RGBA16I"] = 36232] = "RGBA16I";
|
|
13587
|
+
GLEnum2[GLEnum2["RGB16I"] = 36233] = "RGB16I";
|
|
13588
|
+
GLEnum2[GLEnum2["RGBA8I"] = 36238] = "RGBA8I";
|
|
13589
|
+
GLEnum2[GLEnum2["RGB8I"] = 36239] = "RGB8I";
|
|
13590
|
+
GLEnum2[GLEnum2["RED_INTEGER"] = 36244] = "RED_INTEGER";
|
|
13591
|
+
GLEnum2[GLEnum2["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
|
|
13592
|
+
GLEnum2[GLEnum2["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
|
|
13593
|
+
GLEnum2[GLEnum2["R8"] = 33321] = "R8";
|
|
13594
|
+
GLEnum2[GLEnum2["RG8"] = 33323] = "RG8";
|
|
13595
|
+
GLEnum2[GLEnum2["R16F"] = 33325] = "R16F";
|
|
13596
|
+
GLEnum2[GLEnum2["R32F"] = 33326] = "R32F";
|
|
13597
|
+
GLEnum2[GLEnum2["RG16F"] = 33327] = "RG16F";
|
|
13598
|
+
GLEnum2[GLEnum2["RG32F"] = 33328] = "RG32F";
|
|
13599
|
+
GLEnum2[GLEnum2["R8I"] = 33329] = "R8I";
|
|
13600
|
+
GLEnum2[GLEnum2["R8UI"] = 33330] = "R8UI";
|
|
13601
|
+
GLEnum2[GLEnum2["R16I"] = 33331] = "R16I";
|
|
13602
|
+
GLEnum2[GLEnum2["R16UI"] = 33332] = "R16UI";
|
|
13603
|
+
GLEnum2[GLEnum2["R32I"] = 33333] = "R32I";
|
|
13604
|
+
GLEnum2[GLEnum2["R32UI"] = 33334] = "R32UI";
|
|
13605
|
+
GLEnum2[GLEnum2["RG8I"] = 33335] = "RG8I";
|
|
13606
|
+
GLEnum2[GLEnum2["RG8UI"] = 33336] = "RG8UI";
|
|
13607
|
+
GLEnum2[GLEnum2["RG16I"] = 33337] = "RG16I";
|
|
13608
|
+
GLEnum2[GLEnum2["RG16UI"] = 33338] = "RG16UI";
|
|
13609
|
+
GLEnum2[GLEnum2["RG32I"] = 33339] = "RG32I";
|
|
13610
|
+
GLEnum2[GLEnum2["RG32UI"] = 33340] = "RG32UI";
|
|
13611
|
+
GLEnum2[GLEnum2["R8_SNORM"] = 36756] = "R8_SNORM";
|
|
13612
|
+
GLEnum2[GLEnum2["RG8_SNORM"] = 36757] = "RG8_SNORM";
|
|
13613
|
+
GLEnum2[GLEnum2["RGB8_SNORM"] = 36758] = "RGB8_SNORM";
|
|
13614
|
+
GLEnum2[GLEnum2["RGBA8_SNORM"] = 36759] = "RGBA8_SNORM";
|
|
13615
|
+
GLEnum2[GLEnum2["RGB10_A2UI"] = 36975] = "RGB10_A2UI";
|
|
13616
|
+
GLEnum2[GLEnum2["TEXTURE_IMMUTABLE_FORMAT"] = 37167] = "TEXTURE_IMMUTABLE_FORMAT";
|
|
13617
|
+
GLEnum2[GLEnum2["TEXTURE_IMMUTABLE_LEVELS"] = 33503] = "TEXTURE_IMMUTABLE_LEVELS";
|
|
13618
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
|
|
13619
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
|
|
13620
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
|
|
13621
|
+
GLEnum2[GLEnum2["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
|
|
13622
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
|
|
13623
|
+
GLEnum2[GLEnum2["HALF_FLOAT"] = 5131] = "HALF_FLOAT";
|
|
13624
|
+
GLEnum2[GLEnum2["RG"] = 33319] = "RG";
|
|
13625
|
+
GLEnum2[GLEnum2["RG_INTEGER"] = 33320] = "RG_INTEGER";
|
|
13626
|
+
GLEnum2[GLEnum2["INT_2_10_10_10_REV"] = 36255] = "INT_2_10_10_10_REV";
|
|
13627
|
+
GLEnum2[GLEnum2["CURRENT_QUERY"] = 34917] = "CURRENT_QUERY";
|
|
13628
|
+
GLEnum2[GLEnum2["QUERY_RESULT"] = 34918] = "QUERY_RESULT";
|
|
13629
|
+
GLEnum2[GLEnum2["QUERY_RESULT_AVAILABLE"] = 34919] = "QUERY_RESULT_AVAILABLE";
|
|
13630
|
+
GLEnum2[GLEnum2["ANY_SAMPLES_PASSED"] = 35887] = "ANY_SAMPLES_PASSED";
|
|
13631
|
+
GLEnum2[GLEnum2["ANY_SAMPLES_PASSED_CONSERVATIVE"] = 36202] = "ANY_SAMPLES_PASSED_CONSERVATIVE";
|
|
13632
|
+
GLEnum2[GLEnum2["MAX_DRAW_BUFFERS"] = 34852] = "MAX_DRAW_BUFFERS";
|
|
13633
|
+
GLEnum2[GLEnum2["DRAW_BUFFER0"] = 34853] = "DRAW_BUFFER0";
|
|
13634
|
+
GLEnum2[GLEnum2["DRAW_BUFFER1"] = 34854] = "DRAW_BUFFER1";
|
|
13635
|
+
GLEnum2[GLEnum2["DRAW_BUFFER2"] = 34855] = "DRAW_BUFFER2";
|
|
13636
|
+
GLEnum2[GLEnum2["DRAW_BUFFER3"] = 34856] = "DRAW_BUFFER3";
|
|
13637
|
+
GLEnum2[GLEnum2["DRAW_BUFFER4"] = 34857] = "DRAW_BUFFER4";
|
|
13638
|
+
GLEnum2[GLEnum2["DRAW_BUFFER5"] = 34858] = "DRAW_BUFFER5";
|
|
13639
|
+
GLEnum2[GLEnum2["DRAW_BUFFER6"] = 34859] = "DRAW_BUFFER6";
|
|
13640
|
+
GLEnum2[GLEnum2["DRAW_BUFFER7"] = 34860] = "DRAW_BUFFER7";
|
|
13641
|
+
GLEnum2[GLEnum2["DRAW_BUFFER8"] = 34861] = "DRAW_BUFFER8";
|
|
13642
|
+
GLEnum2[GLEnum2["DRAW_BUFFER9"] = 34862] = "DRAW_BUFFER9";
|
|
13643
|
+
GLEnum2[GLEnum2["DRAW_BUFFER10"] = 34863] = "DRAW_BUFFER10";
|
|
13644
|
+
GLEnum2[GLEnum2["DRAW_BUFFER11"] = 34864] = "DRAW_BUFFER11";
|
|
13645
|
+
GLEnum2[GLEnum2["DRAW_BUFFER12"] = 34865] = "DRAW_BUFFER12";
|
|
13646
|
+
GLEnum2[GLEnum2["DRAW_BUFFER13"] = 34866] = "DRAW_BUFFER13";
|
|
13647
|
+
GLEnum2[GLEnum2["DRAW_BUFFER14"] = 34867] = "DRAW_BUFFER14";
|
|
13648
|
+
GLEnum2[GLEnum2["DRAW_BUFFER15"] = 34868] = "DRAW_BUFFER15";
|
|
13649
|
+
GLEnum2[GLEnum2["MAX_COLOR_ATTACHMENTS"] = 36063] = "MAX_COLOR_ATTACHMENTS";
|
|
13650
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT1"] = 36065] = "COLOR_ATTACHMENT1";
|
|
13651
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT2"] = 36066] = "COLOR_ATTACHMENT2";
|
|
13652
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT3"] = 36067] = "COLOR_ATTACHMENT3";
|
|
13653
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT4"] = 36068] = "COLOR_ATTACHMENT4";
|
|
13654
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT5"] = 36069] = "COLOR_ATTACHMENT5";
|
|
13655
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT6"] = 36070] = "COLOR_ATTACHMENT6";
|
|
13656
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT7"] = 36071] = "COLOR_ATTACHMENT7";
|
|
13657
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT8"] = 36072] = "COLOR_ATTACHMENT8";
|
|
13658
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT9"] = 36073] = "COLOR_ATTACHMENT9";
|
|
13659
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT10"] = 36074] = "COLOR_ATTACHMENT10";
|
|
13660
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT11"] = 36075] = "COLOR_ATTACHMENT11";
|
|
13661
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT12"] = 36076] = "COLOR_ATTACHMENT12";
|
|
13662
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT13"] = 36077] = "COLOR_ATTACHMENT13";
|
|
13663
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT14"] = 36078] = "COLOR_ATTACHMENT14";
|
|
13664
|
+
GLEnum2[GLEnum2["COLOR_ATTACHMENT15"] = 36079] = "COLOR_ATTACHMENT15";
|
|
13665
|
+
GLEnum2[GLEnum2["SAMPLER_3D"] = 35679] = "SAMPLER_3D";
|
|
13666
|
+
GLEnum2[GLEnum2["SAMPLER_2D_SHADOW"] = 35682] = "SAMPLER_2D_SHADOW";
|
|
13667
|
+
GLEnum2[GLEnum2["SAMPLER_2D_ARRAY"] = 36289] = "SAMPLER_2D_ARRAY";
|
|
13668
|
+
GLEnum2[GLEnum2["SAMPLER_2D_ARRAY_SHADOW"] = 36292] = "SAMPLER_2D_ARRAY_SHADOW";
|
|
13669
|
+
GLEnum2[GLEnum2["SAMPLER_CUBE_SHADOW"] = 36293] = "SAMPLER_CUBE_SHADOW";
|
|
13670
|
+
GLEnum2[GLEnum2["INT_SAMPLER_2D"] = 36298] = "INT_SAMPLER_2D";
|
|
13671
|
+
GLEnum2[GLEnum2["INT_SAMPLER_3D"] = 36299] = "INT_SAMPLER_3D";
|
|
13672
|
+
GLEnum2[GLEnum2["INT_SAMPLER_CUBE"] = 36300] = "INT_SAMPLER_CUBE";
|
|
13673
|
+
GLEnum2[GLEnum2["INT_SAMPLER_2D_ARRAY"] = 36303] = "INT_SAMPLER_2D_ARRAY";
|
|
13674
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_SAMPLER_2D"] = 36306] = "UNSIGNED_INT_SAMPLER_2D";
|
|
13675
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_SAMPLER_3D"] = 36307] = "UNSIGNED_INT_SAMPLER_3D";
|
|
13676
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_SAMPLER_CUBE"] = 36308] = "UNSIGNED_INT_SAMPLER_CUBE";
|
|
13677
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_SAMPLER_2D_ARRAY"] = 36311] = "UNSIGNED_INT_SAMPLER_2D_ARRAY";
|
|
13678
|
+
GLEnum2[GLEnum2["MAX_SAMPLES"] = 36183] = "MAX_SAMPLES";
|
|
13679
|
+
GLEnum2[GLEnum2["SAMPLER_BINDING"] = 35097] = "SAMPLER_BINDING";
|
|
13680
|
+
GLEnum2[GLEnum2["PIXEL_PACK_BUFFER"] = 35051] = "PIXEL_PACK_BUFFER";
|
|
13681
|
+
GLEnum2[GLEnum2["PIXEL_UNPACK_BUFFER"] = 35052] = "PIXEL_UNPACK_BUFFER";
|
|
13682
|
+
GLEnum2[GLEnum2["PIXEL_PACK_BUFFER_BINDING"] = 35053] = "PIXEL_PACK_BUFFER_BINDING";
|
|
13683
|
+
GLEnum2[GLEnum2["PIXEL_UNPACK_BUFFER_BINDING"] = 35055] = "PIXEL_UNPACK_BUFFER_BINDING";
|
|
13684
|
+
GLEnum2[GLEnum2["COPY_READ_BUFFER"] = 36662] = "COPY_READ_BUFFER";
|
|
13685
|
+
GLEnum2[GLEnum2["COPY_WRITE_BUFFER"] = 36663] = "COPY_WRITE_BUFFER";
|
|
13686
|
+
GLEnum2[GLEnum2["COPY_READ_BUFFER_BINDING"] = 36662] = "COPY_READ_BUFFER_BINDING";
|
|
13687
|
+
GLEnum2[GLEnum2["COPY_WRITE_BUFFER_BINDING"] = 36663] = "COPY_WRITE_BUFFER_BINDING";
|
|
13688
|
+
GLEnum2[GLEnum2["FLOAT_MAT2x3"] = 35685] = "FLOAT_MAT2x3";
|
|
13689
|
+
GLEnum2[GLEnum2["FLOAT_MAT2x4"] = 35686] = "FLOAT_MAT2x4";
|
|
13690
|
+
GLEnum2[GLEnum2["FLOAT_MAT3x2"] = 35687] = "FLOAT_MAT3x2";
|
|
13691
|
+
GLEnum2[GLEnum2["FLOAT_MAT3x4"] = 35688] = "FLOAT_MAT3x4";
|
|
13692
|
+
GLEnum2[GLEnum2["FLOAT_MAT4x2"] = 35689] = "FLOAT_MAT4x2";
|
|
13693
|
+
GLEnum2[GLEnum2["FLOAT_MAT4x3"] = 35690] = "FLOAT_MAT4x3";
|
|
13694
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_VEC2"] = 36294] = "UNSIGNED_INT_VEC2";
|
|
13695
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_VEC3"] = 36295] = "UNSIGNED_INT_VEC3";
|
|
13696
|
+
GLEnum2[GLEnum2["UNSIGNED_INT_VEC4"] = 36296] = "UNSIGNED_INT_VEC4";
|
|
13697
|
+
GLEnum2[GLEnum2["UNSIGNED_NORMALIZED"] = 35863] = "UNSIGNED_NORMALIZED";
|
|
13698
|
+
GLEnum2[GLEnum2["SIGNED_NORMALIZED"] = 36764] = "SIGNED_NORMALIZED";
|
|
13699
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_INTEGER"] = 35069] = "VERTEX_ATTRIB_ARRAY_INTEGER";
|
|
13700
|
+
GLEnum2[GLEnum2["VERTEX_ATTRIB_ARRAY_DIVISOR"] = 35070] = "VERTEX_ATTRIB_ARRAY_DIVISOR";
|
|
13701
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_BUFFER_MODE"] = 35967] = "TRANSFORM_FEEDBACK_BUFFER_MODE";
|
|
13702
|
+
GLEnum2[GLEnum2["MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"] = 35968] = "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS";
|
|
13703
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_VARYINGS"] = 35971] = "TRANSFORM_FEEDBACK_VARYINGS";
|
|
13704
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_BUFFER_START"] = 35972] = "TRANSFORM_FEEDBACK_BUFFER_START";
|
|
13705
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_BUFFER_SIZE"] = 35973] = "TRANSFORM_FEEDBACK_BUFFER_SIZE";
|
|
13706
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN"] = 35976] = "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN";
|
|
13707
|
+
GLEnum2[GLEnum2["MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS"] = 35978] = "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS";
|
|
13708
|
+
GLEnum2[GLEnum2["MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS"] = 35979] = "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS";
|
|
13709
|
+
GLEnum2[GLEnum2["INTERLEAVED_ATTRIBS"] = 35980] = "INTERLEAVED_ATTRIBS";
|
|
13710
|
+
GLEnum2[GLEnum2["SEPARATE_ATTRIBS"] = 35981] = "SEPARATE_ATTRIBS";
|
|
13711
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_BUFFER"] = 35982] = "TRANSFORM_FEEDBACK_BUFFER";
|
|
13712
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_BUFFER_BINDING"] = 35983] = "TRANSFORM_FEEDBACK_BUFFER_BINDING";
|
|
13713
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK"] = 36386] = "TRANSFORM_FEEDBACK";
|
|
13714
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_PAUSED"] = 36387] = "TRANSFORM_FEEDBACK_PAUSED";
|
|
13715
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_ACTIVE"] = 36388] = "TRANSFORM_FEEDBACK_ACTIVE";
|
|
13716
|
+
GLEnum2[GLEnum2["TRANSFORM_FEEDBACK_BINDING"] = 36389] = "TRANSFORM_FEEDBACK_BINDING";
|
|
13717
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING"] = 33296] = "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING";
|
|
13718
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE"] = 33297] = "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE";
|
|
13719
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_RED_SIZE"] = 33298] = "FRAMEBUFFER_ATTACHMENT_RED_SIZE";
|
|
13720
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_GREEN_SIZE"] = 33299] = "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE";
|
|
13721
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_BLUE_SIZE"] = 33300] = "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE";
|
|
13722
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE"] = 33301] = "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE";
|
|
13723
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE"] = 33302] = "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE";
|
|
13724
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE"] = 33303] = "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE";
|
|
13725
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_DEFAULT"] = 33304] = "FRAMEBUFFER_DEFAULT";
|
|
13726
|
+
GLEnum2[GLEnum2["DEPTH24_STENCIL8"] = 35056] = "DEPTH24_STENCIL8";
|
|
13727
|
+
GLEnum2[GLEnum2["DRAW_FRAMEBUFFER_BINDING"] = 36006] = "DRAW_FRAMEBUFFER_BINDING";
|
|
13728
|
+
GLEnum2[GLEnum2["READ_FRAMEBUFFER_BINDING"] = 36010] = "READ_FRAMEBUFFER_BINDING";
|
|
13729
|
+
GLEnum2[GLEnum2["RENDERBUFFER_SAMPLES"] = 36011] = "RENDERBUFFER_SAMPLES";
|
|
13730
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER"] = 36052] = "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER";
|
|
13731
|
+
GLEnum2[GLEnum2["FRAMEBUFFER_INCOMPLETE_MULTISAMPLE"] = 36182] = "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE";
|
|
13732
|
+
GLEnum2[GLEnum2["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
|
|
13733
|
+
GLEnum2[GLEnum2["UNIFORM_BUFFER_BINDING"] = 35368] = "UNIFORM_BUFFER_BINDING";
|
|
13734
|
+
GLEnum2[GLEnum2["UNIFORM_BUFFER_START"] = 35369] = "UNIFORM_BUFFER_START";
|
|
13735
|
+
GLEnum2[GLEnum2["UNIFORM_BUFFER_SIZE"] = 35370] = "UNIFORM_BUFFER_SIZE";
|
|
13736
|
+
GLEnum2[GLEnum2["MAX_VERTEX_UNIFORM_BLOCKS"] = 35371] = "MAX_VERTEX_UNIFORM_BLOCKS";
|
|
13737
|
+
GLEnum2[GLEnum2["MAX_FRAGMENT_UNIFORM_BLOCKS"] = 35373] = "MAX_FRAGMENT_UNIFORM_BLOCKS";
|
|
13738
|
+
GLEnum2[GLEnum2["MAX_COMBINED_UNIFORM_BLOCKS"] = 35374] = "MAX_COMBINED_UNIFORM_BLOCKS";
|
|
13739
|
+
GLEnum2[GLEnum2["MAX_UNIFORM_BUFFER_BINDINGS"] = 35375] = "MAX_UNIFORM_BUFFER_BINDINGS";
|
|
13740
|
+
GLEnum2[GLEnum2["MAX_UNIFORM_BLOCK_SIZE"] = 35376] = "MAX_UNIFORM_BLOCK_SIZE";
|
|
13741
|
+
GLEnum2[GLEnum2["MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS"] = 35377] = "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS";
|
|
13742
|
+
GLEnum2[GLEnum2["MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS"] = 35379] = "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS";
|
|
13743
|
+
GLEnum2[GLEnum2["UNIFORM_BUFFER_OFFSET_ALIGNMENT"] = 35380] = "UNIFORM_BUFFER_OFFSET_ALIGNMENT";
|
|
13744
|
+
GLEnum2[GLEnum2["ACTIVE_UNIFORM_BLOCKS"] = 35382] = "ACTIVE_UNIFORM_BLOCKS";
|
|
13745
|
+
GLEnum2[GLEnum2["UNIFORM_TYPE"] = 35383] = "UNIFORM_TYPE";
|
|
13746
|
+
GLEnum2[GLEnum2["UNIFORM_SIZE"] = 35384] = "UNIFORM_SIZE";
|
|
13747
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_INDEX"] = 35386] = "UNIFORM_BLOCK_INDEX";
|
|
13748
|
+
GLEnum2[GLEnum2["UNIFORM_OFFSET"] = 35387] = "UNIFORM_OFFSET";
|
|
13749
|
+
GLEnum2[GLEnum2["UNIFORM_ARRAY_STRIDE"] = 35388] = "UNIFORM_ARRAY_STRIDE";
|
|
13750
|
+
GLEnum2[GLEnum2["UNIFORM_MATRIX_STRIDE"] = 35389] = "UNIFORM_MATRIX_STRIDE";
|
|
13751
|
+
GLEnum2[GLEnum2["UNIFORM_IS_ROW_MAJOR"] = 35390] = "UNIFORM_IS_ROW_MAJOR";
|
|
13752
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_BINDING"] = 35391] = "UNIFORM_BLOCK_BINDING";
|
|
13753
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_DATA_SIZE"] = 35392] = "UNIFORM_BLOCK_DATA_SIZE";
|
|
13754
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_ACTIVE_UNIFORMS"] = 35394] = "UNIFORM_BLOCK_ACTIVE_UNIFORMS";
|
|
13755
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"] = 35395] = "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES";
|
|
13756
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"] = 35396] = "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER";
|
|
13757
|
+
GLEnum2[GLEnum2["UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"] = 35398] = "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER";
|
|
13758
|
+
GLEnum2[GLEnum2["OBJECT_TYPE"] = 37138] = "OBJECT_TYPE";
|
|
13759
|
+
GLEnum2[GLEnum2["SYNC_CONDITION"] = 37139] = "SYNC_CONDITION";
|
|
13760
|
+
GLEnum2[GLEnum2["SYNC_STATUS"] = 37140] = "SYNC_STATUS";
|
|
13761
|
+
GLEnum2[GLEnum2["SYNC_FLAGS"] = 37141] = "SYNC_FLAGS";
|
|
13762
|
+
GLEnum2[GLEnum2["SYNC_FENCE"] = 37142] = "SYNC_FENCE";
|
|
13763
|
+
GLEnum2[GLEnum2["SYNC_GPU_COMMANDS_COMPLETE"] = 37143] = "SYNC_GPU_COMMANDS_COMPLETE";
|
|
13764
|
+
GLEnum2[GLEnum2["UNSIGNALED"] = 37144] = "UNSIGNALED";
|
|
13765
|
+
GLEnum2[GLEnum2["SIGNALED"] = 37145] = "SIGNALED";
|
|
13766
|
+
GLEnum2[GLEnum2["ALREADY_SIGNALED"] = 37146] = "ALREADY_SIGNALED";
|
|
13767
|
+
GLEnum2[GLEnum2["TIMEOUT_EXPIRED"] = 37147] = "TIMEOUT_EXPIRED";
|
|
13768
|
+
GLEnum2[GLEnum2["CONDITION_SATISFIED"] = 37148] = "CONDITION_SATISFIED";
|
|
13769
|
+
GLEnum2[GLEnum2["WAIT_FAILED"] = 37149] = "WAIT_FAILED";
|
|
13770
|
+
GLEnum2[GLEnum2["SYNC_FLUSH_COMMANDS_BIT"] = 1] = "SYNC_FLUSH_COMMANDS_BIT";
|
|
13771
|
+
GLEnum2[GLEnum2["COLOR"] = 6144] = "COLOR";
|
|
13772
|
+
GLEnum2[GLEnum2["DEPTH"] = 6145] = "DEPTH";
|
|
13773
|
+
GLEnum2[GLEnum2["STENCIL"] = 6146] = "STENCIL";
|
|
13774
|
+
GLEnum2[GLEnum2["MIN"] = 32775] = "MIN";
|
|
13775
|
+
GLEnum2[GLEnum2["MAX"] = 32776] = "MAX";
|
|
13776
|
+
GLEnum2[GLEnum2["DEPTH_COMPONENT24"] = 33190] = "DEPTH_COMPONENT24";
|
|
13777
|
+
GLEnum2[GLEnum2["STREAM_READ"] = 35041] = "STREAM_READ";
|
|
13778
|
+
GLEnum2[GLEnum2["STREAM_COPY"] = 35042] = "STREAM_COPY";
|
|
13779
|
+
GLEnum2[GLEnum2["STATIC_READ"] = 35045] = "STATIC_READ";
|
|
13780
|
+
GLEnum2[GLEnum2["STATIC_COPY"] = 35046] = "STATIC_COPY";
|
|
13781
|
+
GLEnum2[GLEnum2["DYNAMIC_READ"] = 35049] = "DYNAMIC_READ";
|
|
13782
|
+
GLEnum2[GLEnum2["DYNAMIC_COPY"] = 35050] = "DYNAMIC_COPY";
|
|
13783
|
+
GLEnum2[GLEnum2["DEPTH_COMPONENT32F"] = 36012] = "DEPTH_COMPONENT32F";
|
|
13784
|
+
GLEnum2[GLEnum2["DEPTH32F_STENCIL8"] = 36013] = "DEPTH32F_STENCIL8";
|
|
13785
|
+
GLEnum2[GLEnum2["INVALID_INDEX"] = 4294967295] = "INVALID_INDEX";
|
|
13786
|
+
GLEnum2[GLEnum2["TIMEOUT_IGNORED"] = -1] = "TIMEOUT_IGNORED";
|
|
13787
|
+
GLEnum2[GLEnum2["MAX_CLIENT_WAIT_TIMEOUT_WEBGL"] = 37447] = "MAX_CLIENT_WAIT_TIMEOUT_WEBGL";
|
|
13788
|
+
GLEnum2[GLEnum2["UNMASKED_VENDOR_WEBGL"] = 37445] = "UNMASKED_VENDOR_WEBGL";
|
|
13789
|
+
GLEnum2[GLEnum2["UNMASKED_RENDERER_WEBGL"] = 37446] = "UNMASKED_RENDERER_WEBGL";
|
|
13790
|
+
GLEnum2[GLEnum2["MAX_TEXTURE_MAX_ANISOTROPY_EXT"] = 34047] = "MAX_TEXTURE_MAX_ANISOTROPY_EXT";
|
|
13791
|
+
GLEnum2[GLEnum2["TEXTURE_MAX_ANISOTROPY_EXT"] = 34046] = "TEXTURE_MAX_ANISOTROPY_EXT";
|
|
13792
|
+
GLEnum2[GLEnum2["R16_EXT"] = 33322] = "R16_EXT";
|
|
13793
|
+
GLEnum2[GLEnum2["RG16_EXT"] = 33324] = "RG16_EXT";
|
|
13794
|
+
GLEnum2[GLEnum2["RGB16_EXT"] = 32852] = "RGB16_EXT";
|
|
13795
|
+
GLEnum2[GLEnum2["RGBA16_EXT"] = 32859] = "RGBA16_EXT";
|
|
13796
|
+
GLEnum2[GLEnum2["R16_SNORM_EXT"] = 36760] = "R16_SNORM_EXT";
|
|
13797
|
+
GLEnum2[GLEnum2["RG16_SNORM_EXT"] = 36761] = "RG16_SNORM_EXT";
|
|
13798
|
+
GLEnum2[GLEnum2["RGB16_SNORM_EXT"] = 36762] = "RGB16_SNORM_EXT";
|
|
13799
|
+
GLEnum2[GLEnum2["RGBA16_SNORM_EXT"] = 36763] = "RGBA16_SNORM_EXT";
|
|
13800
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_S3TC_DXT1_EXT"] = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT";
|
|
13801
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_S3TC_DXT1_EXT"] = 33777] = "COMPRESSED_RGBA_S3TC_DXT1_EXT";
|
|
13802
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_S3TC_DXT3_EXT"] = 33778] = "COMPRESSED_RGBA_S3TC_DXT3_EXT";
|
|
13803
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_S3TC_DXT5_EXT"] = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT";
|
|
13804
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB_S3TC_DXT1_EXT"] = 35916] = "COMPRESSED_SRGB_S3TC_DXT1_EXT";
|
|
13805
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT"] = 35917] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT";
|
|
13806
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT"] = 35918] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT";
|
|
13807
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"] = 35919] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT";
|
|
13808
|
+
GLEnum2[GLEnum2["COMPRESSED_RED_RGTC1_EXT"] = 36283] = "COMPRESSED_RED_RGTC1_EXT";
|
|
13809
|
+
GLEnum2[GLEnum2["COMPRESSED_SIGNED_RED_RGTC1_EXT"] = 36284] = "COMPRESSED_SIGNED_RED_RGTC1_EXT";
|
|
13810
|
+
GLEnum2[GLEnum2["COMPRESSED_RED_GREEN_RGTC2_EXT"] = 36285] = "COMPRESSED_RED_GREEN_RGTC2_EXT";
|
|
13811
|
+
GLEnum2[GLEnum2["COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT"] = 36286] = "COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT";
|
|
13812
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_BPTC_UNORM_EXT"] = 36492] = "COMPRESSED_RGBA_BPTC_UNORM_EXT";
|
|
13813
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT"] = 36493] = "COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT";
|
|
13814
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT"] = 36494] = "COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT";
|
|
13815
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT"] = 36495] = "COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT";
|
|
13816
|
+
GLEnum2[GLEnum2["COMPRESSED_R11_EAC"] = 37488] = "COMPRESSED_R11_EAC";
|
|
13817
|
+
GLEnum2[GLEnum2["COMPRESSED_SIGNED_R11_EAC"] = 37489] = "COMPRESSED_SIGNED_R11_EAC";
|
|
13818
|
+
GLEnum2[GLEnum2["COMPRESSED_RG11_EAC"] = 37490] = "COMPRESSED_RG11_EAC";
|
|
13819
|
+
GLEnum2[GLEnum2["COMPRESSED_SIGNED_RG11_EAC"] = 37491] = "COMPRESSED_SIGNED_RG11_EAC";
|
|
13820
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB8_ETC2"] = 37492] = "COMPRESSED_RGB8_ETC2";
|
|
13821
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA8_ETC2_EAC"] = 37493] = "COMPRESSED_RGBA8_ETC2_EAC";
|
|
13822
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ETC2"] = 37494] = "COMPRESSED_SRGB8_ETC2";
|
|
13823
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"] = 37495] = "COMPRESSED_SRGB8_ALPHA8_ETC2_EAC";
|
|
13824
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"] = 37496] = "COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2";
|
|
13825
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"] = 37497] = "COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2";
|
|
13826
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_PVRTC_4BPPV1_IMG"] = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG";
|
|
13827
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_PVRTC_4BPPV1_IMG"] = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG";
|
|
13828
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_PVRTC_2BPPV1_IMG"] = 35841] = "COMPRESSED_RGB_PVRTC_2BPPV1_IMG";
|
|
13829
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_PVRTC_2BPPV1_IMG"] = 35843] = "COMPRESSED_RGBA_PVRTC_2BPPV1_IMG";
|
|
13830
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_ETC1_WEBGL"] = 36196] = "COMPRESSED_RGB_ETC1_WEBGL";
|
|
13831
|
+
GLEnum2[GLEnum2["COMPRESSED_RGB_ATC_WEBGL"] = 35986] = "COMPRESSED_RGB_ATC_WEBGL";
|
|
13832
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL"] = 35986] = "COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL";
|
|
13833
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"] = 34798] = "COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL";
|
|
13834
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_4x4_KHR"] = 37808] = "COMPRESSED_RGBA_ASTC_4x4_KHR";
|
|
13835
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_5x4_KHR"] = 37809] = "COMPRESSED_RGBA_ASTC_5x4_KHR";
|
|
13836
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_5x5_KHR"] = 37810] = "COMPRESSED_RGBA_ASTC_5x5_KHR";
|
|
13837
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_6x5_KHR"] = 37811] = "COMPRESSED_RGBA_ASTC_6x5_KHR";
|
|
13838
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_6x6_KHR"] = 37812] = "COMPRESSED_RGBA_ASTC_6x6_KHR";
|
|
13839
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_8x5_KHR"] = 37813] = "COMPRESSED_RGBA_ASTC_8x5_KHR";
|
|
13840
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_8x6_KHR"] = 37814] = "COMPRESSED_RGBA_ASTC_8x6_KHR";
|
|
13841
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_8x8_KHR"] = 37815] = "COMPRESSED_RGBA_ASTC_8x8_KHR";
|
|
13842
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_10x5_KHR"] = 37816] = "COMPRESSED_RGBA_ASTC_10x5_KHR";
|
|
13843
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_10x6_KHR"] = 37817] = "COMPRESSED_RGBA_ASTC_10x6_KHR";
|
|
13844
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_10x8_KHR"] = 37818] = "COMPRESSED_RGBA_ASTC_10x8_KHR";
|
|
13845
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_10x10_KHR"] = 37819] = "COMPRESSED_RGBA_ASTC_10x10_KHR";
|
|
13846
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_12x10_KHR"] = 37820] = "COMPRESSED_RGBA_ASTC_12x10_KHR";
|
|
13847
|
+
GLEnum2[GLEnum2["COMPRESSED_RGBA_ASTC_12x12_KHR"] = 37821] = "COMPRESSED_RGBA_ASTC_12x12_KHR";
|
|
13848
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR"] = 37840] = "COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR";
|
|
13849
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR"] = 37841] = "COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR";
|
|
13850
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR"] = 37842] = "COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR";
|
|
13851
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR"] = 37843] = "COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR";
|
|
13852
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR"] = 37844] = "COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR";
|
|
13853
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR"] = 37845] = "COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR";
|
|
13854
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR"] = 37846] = "COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR";
|
|
13855
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR"] = 37847] = "COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR";
|
|
13856
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR"] = 37848] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR";
|
|
13857
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR"] = 37849] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR";
|
|
13858
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR"] = 37850] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR";
|
|
13859
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR"] = 37851] = "COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR";
|
|
13860
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR"] = 37852] = "COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR";
|
|
13861
|
+
GLEnum2[GLEnum2["COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR"] = 37853] = "COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR";
|
|
13862
|
+
GLEnum2[GLEnum2["QUERY_COUNTER_BITS_EXT"] = 34916] = "QUERY_COUNTER_BITS_EXT";
|
|
13863
|
+
GLEnum2[GLEnum2["CURRENT_QUERY_EXT"] = 34917] = "CURRENT_QUERY_EXT";
|
|
13864
|
+
GLEnum2[GLEnum2["QUERY_RESULT_EXT"] = 34918] = "QUERY_RESULT_EXT";
|
|
13865
|
+
GLEnum2[GLEnum2["QUERY_RESULT_AVAILABLE_EXT"] = 34919] = "QUERY_RESULT_AVAILABLE_EXT";
|
|
13866
|
+
GLEnum2[GLEnum2["TIME_ELAPSED_EXT"] = 35007] = "TIME_ELAPSED_EXT";
|
|
13867
|
+
GLEnum2[GLEnum2["TIMESTAMP_EXT"] = 36392] = "TIMESTAMP_EXT";
|
|
13868
|
+
GLEnum2[GLEnum2["GPU_DISJOINT_EXT"] = 36795] = "GPU_DISJOINT_EXT";
|
|
13869
|
+
GLEnum2[GLEnum2["COMPLETION_STATUS_KHR"] = 37297] = "COMPLETION_STATUS_KHR";
|
|
13870
|
+
GLEnum2[GLEnum2["DEPTH_CLAMP_EXT"] = 34383] = "DEPTH_CLAMP_EXT";
|
|
13871
|
+
GLEnum2[GLEnum2["FIRST_VERTEX_CONVENTION_WEBGL"] = 36429] = "FIRST_VERTEX_CONVENTION_WEBGL";
|
|
13872
|
+
GLEnum2[GLEnum2["LAST_VERTEX_CONVENTION_WEBGL"] = 36430] = "LAST_VERTEX_CONVENTION_WEBGL";
|
|
13873
|
+
GLEnum2[GLEnum2["PROVOKING_VERTEX_WEBL"] = 36431] = "PROVOKING_VERTEX_WEBL";
|
|
13874
|
+
GLEnum2[GLEnum2["POLYGON_MODE_WEBGL"] = 2880] = "POLYGON_MODE_WEBGL";
|
|
13875
|
+
GLEnum2[GLEnum2["POLYGON_OFFSET_LINE_WEBGL"] = 10754] = "POLYGON_OFFSET_LINE_WEBGL";
|
|
13876
|
+
GLEnum2[GLEnum2["LINE_WEBGL"] = 6913] = "LINE_WEBGL";
|
|
13877
|
+
GLEnum2[GLEnum2["FILL_WEBGL"] = 6914] = "FILL_WEBGL";
|
|
13878
|
+
GLEnum2[GLEnum2["MAX_CLIP_DISTANCES_WEBGL"] = 3378] = "MAX_CLIP_DISTANCES_WEBGL";
|
|
13879
|
+
GLEnum2[GLEnum2["MAX_CULL_DISTANCES_WEBGL"] = 33529] = "MAX_CULL_DISTANCES_WEBGL";
|
|
13880
|
+
GLEnum2[GLEnum2["MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL"] = 33530] = "MAX_COMBINED_CLIP_AND_CULL_DISTANCES_WEBGL";
|
|
13881
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE0_WEBGL"] = 12288] = "CLIP_DISTANCE0_WEBGL";
|
|
13882
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE1_WEBGL"] = 12289] = "CLIP_DISTANCE1_WEBGL";
|
|
13883
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE2_WEBGL"] = 12290] = "CLIP_DISTANCE2_WEBGL";
|
|
13884
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE3_WEBGL"] = 12291] = "CLIP_DISTANCE3_WEBGL";
|
|
13885
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE4_WEBGL"] = 12292] = "CLIP_DISTANCE4_WEBGL";
|
|
13886
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE5_WEBGL"] = 12293] = "CLIP_DISTANCE5_WEBGL";
|
|
13887
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE6_WEBGL"] = 12294] = "CLIP_DISTANCE6_WEBGL";
|
|
13888
|
+
GLEnum2[GLEnum2["CLIP_DISTANCE7_WEBGL"] = 12295] = "CLIP_DISTANCE7_WEBGL";
|
|
13889
|
+
GLEnum2[GLEnum2["POLYGON_OFFSET_CLAMP_EXT"] = 36379] = "POLYGON_OFFSET_CLAMP_EXT";
|
|
13890
|
+
GLEnum2[GLEnum2["LOWER_LEFT_EXT"] = 36001] = "LOWER_LEFT_EXT";
|
|
13891
|
+
GLEnum2[GLEnum2["UPPER_LEFT_EXT"] = 36002] = "UPPER_LEFT_EXT";
|
|
13892
|
+
GLEnum2[GLEnum2["NEGATIVE_ONE_TO_ONE_EXT"] = 37726] = "NEGATIVE_ONE_TO_ONE_EXT";
|
|
13893
|
+
GLEnum2[GLEnum2["ZERO_TO_ONE_EXT"] = 37727] = "ZERO_TO_ONE_EXT";
|
|
13894
|
+
GLEnum2[GLEnum2["CLIP_ORIGIN_EXT"] = 37724] = "CLIP_ORIGIN_EXT";
|
|
13895
|
+
GLEnum2[GLEnum2["CLIP_DEPTH_MODE_EXT"] = 37725] = "CLIP_DEPTH_MODE_EXT";
|
|
13896
|
+
GLEnum2[GLEnum2["SRC1_COLOR_WEBGL"] = 35065] = "SRC1_COLOR_WEBGL";
|
|
13897
|
+
GLEnum2[GLEnum2["SRC1_ALPHA_WEBGL"] = 34185] = "SRC1_ALPHA_WEBGL";
|
|
13898
|
+
GLEnum2[GLEnum2["ONE_MINUS_SRC1_COLOR_WEBGL"] = 35066] = "ONE_MINUS_SRC1_COLOR_WEBGL";
|
|
13899
|
+
GLEnum2[GLEnum2["ONE_MINUS_SRC1_ALPHA_WEBGL"] = 35067] = "ONE_MINUS_SRC1_ALPHA_WEBGL";
|
|
13900
|
+
GLEnum2[GLEnum2["MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL"] = 35068] = "MAX_DUAL_SOURCE_DRAW_BUFFERS_WEBGL";
|
|
13901
|
+
GLEnum2[GLEnum2["MIRROR_CLAMP_TO_EDGE_EXT"] = 34627] = "MIRROR_CLAMP_TO_EDGE_EXT";
|
|
13902
|
+
})(GLEnum || (GLEnum = {}));
|
|
13903
|
+
|
|
13482
13904
|
// src/api/parse-map.ts
|
|
13483
|
-
var import_core11 = __toESM(require_core());
|
|
13905
|
+
var import_core11 = __toESM(require_core(), 1);
|
|
13484
13906
|
|
|
13485
13907
|
// src/api/layer-map.ts
|
|
13486
|
-
var import_moment_timezone = __toESM(require_moment_timezone2());
|
|
13487
|
-
var import_aggregation_layers = __toESM(require_aggregation_layers());
|
|
13488
|
-
var import_layers4 = __toESM(require_layers());
|
|
13489
|
-
var import_geo_layers7 = __toESM(require_geo_layers());
|
|
13908
|
+
var import_moment_timezone = __toESM(require_moment_timezone2(), 1);
|
|
13909
|
+
var import_aggregation_layers = __toESM(require_aggregation_layers(), 1);
|
|
13910
|
+
var import_layers4 = __toESM(require_layers(), 1);
|
|
13911
|
+
var import_geo_layers7 = __toESM(require_geo_layers(), 1);
|
|
13490
13912
|
var SCALE_FUNCS = {
|
|
13491
13913
|
linear: linear2,
|
|
13492
13914
|
ordinal,
|
|
@@ -13521,12 +13943,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13521
13943
|
variance
|
|
13522
13944
|
};
|
|
13523
13945
|
var hexToRGBA = (c) => {
|
|
13524
|
-
const {
|
|
13525
|
-
r,
|
|
13526
|
-
g,
|
|
13527
|
-
b,
|
|
13528
|
-
opacity
|
|
13529
|
-
} = rgb(c);
|
|
13946
|
+
const { r, g, b, opacity } = rgb(c);
|
|
13530
13947
|
return [r, g, b, 255 * opacity];
|
|
13531
13948
|
};
|
|
13532
13949
|
var sharedPropMap = {
|
|
@@ -13557,12 +13974,8 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13557
13974
|
}
|
|
13558
13975
|
};
|
|
13559
13976
|
var aggregationVisConfig = {
|
|
13560
|
-
colorAggregation: (x) => ({
|
|
13561
|
-
|
|
13562
|
-
}),
|
|
13563
|
-
colorRange: (x) => ({
|
|
13564
|
-
colorRange: x.colors.map(hexToRGBA)
|
|
13565
|
-
}),
|
|
13977
|
+
colorAggregation: (x) => ({ colorAggregation: AGGREGATION[x] || AGGREGATION.sum }),
|
|
13978
|
+
colorRange: (x) => ({ colorRange: x.colors.map(hexToRGBA) }),
|
|
13566
13979
|
coverage: "coverage",
|
|
13567
13980
|
elevationPercentile: ["elevationLowerPercentile", "elevationUpperPercentile"],
|
|
13568
13981
|
percentile: ["lowerPercentile", "upperPercentile"]
|
|
@@ -13575,14 +13988,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13575
13988
|
wrapLongitude: false
|
|
13576
13989
|
};
|
|
13577
13990
|
function mergePropMaps(a = {}, b = {}) {
|
|
13578
|
-
return {
|
|
13579
|
-
...a,
|
|
13580
|
-
...b,
|
|
13581
|
-
visConfig: {
|
|
13582
|
-
...a.visConfig,
|
|
13583
|
-
...b.visConfig
|
|
13584
|
-
}
|
|
13585
|
-
};
|
|
13991
|
+
return { ...a, ...b, visConfig: { ...a.visConfig, ...b.visConfig } };
|
|
13586
13992
|
}
|
|
13587
13993
|
function getLayer(type, config, dataset) {
|
|
13588
13994
|
let basePropMap = sharedPropMap;
|
|
@@ -13600,15 +14006,9 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13600
14006
|
Layer: import_layers4.GeoJsonLayer,
|
|
13601
14007
|
propMap: {
|
|
13602
14008
|
columns: {
|
|
13603
|
-
altitude: (x) => ({
|
|
13604
|
-
parameters: {
|
|
13605
|
-
depthTest: Boolean(x)
|
|
13606
|
-
}
|
|
13607
|
-
})
|
|
14009
|
+
altitude: (x) => ({ parameters: { depthTest: Boolean(x) } })
|
|
13608
14010
|
},
|
|
13609
|
-
visConfig: {
|
|
13610
|
-
outline: "stroked"
|
|
13611
|
-
}
|
|
14011
|
+
visConfig: { outline: "stroked" }
|
|
13612
14012
|
}
|
|
13613
14013
|
},
|
|
13614
14014
|
geojson: {
|
|
@@ -13616,55 +14016,23 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13616
14016
|
},
|
|
13617
14017
|
grid: {
|
|
13618
14018
|
Layer: import_aggregation_layers.CPUGridLayer,
|
|
13619
|
-
propMap: {
|
|
13620
|
-
|
|
13621
|
-
...aggregationVisConfig,
|
|
13622
|
-
worldUnitSize: (x) => ({
|
|
13623
|
-
cellSize: 1e3 * x
|
|
13624
|
-
})
|
|
13625
|
-
}
|
|
13626
|
-
},
|
|
13627
|
-
defaultProps: {
|
|
13628
|
-
getPosition
|
|
13629
|
-
}
|
|
14019
|
+
propMap: { visConfig: { ...aggregationVisConfig, worldUnitSize: (x) => ({ cellSize: 1e3 * x }) } },
|
|
14020
|
+
defaultProps: { getPosition }
|
|
13630
14021
|
},
|
|
13631
14022
|
heatmap: {
|
|
13632
14023
|
Layer: import_aggregation_layers.HeatmapLayer,
|
|
13633
|
-
propMap: {
|
|
13634
|
-
|
|
13635
|
-
...aggregationVisConfig,
|
|
13636
|
-
radius: "radiusPixels"
|
|
13637
|
-
}
|
|
13638
|
-
},
|
|
13639
|
-
defaultProps: {
|
|
13640
|
-
getPosition
|
|
13641
|
-
}
|
|
14024
|
+
propMap: { visConfig: { ...aggregationVisConfig, radius: "radiusPixels" } },
|
|
14025
|
+
defaultProps: { getPosition }
|
|
13642
14026
|
},
|
|
13643
14027
|
hexagon: {
|
|
13644
14028
|
Layer: import_aggregation_layers.HexagonLayer,
|
|
13645
|
-
propMap: {
|
|
13646
|
-
|
|
13647
|
-
...aggregationVisConfig,
|
|
13648
|
-
worldUnitSize: (x) => ({
|
|
13649
|
-
radius: 1e3 * x
|
|
13650
|
-
})
|
|
13651
|
-
}
|
|
13652
|
-
},
|
|
13653
|
-
defaultProps: {
|
|
13654
|
-
getPosition
|
|
13655
|
-
}
|
|
14029
|
+
propMap: { visConfig: { ...aggregationVisConfig, worldUnitSize: (x) => ({ radius: 1e3 * x }) } },
|
|
14030
|
+
defaultProps: { getPosition }
|
|
13656
14031
|
},
|
|
13657
14032
|
hexagonId: {
|
|
13658
14033
|
Layer: import_geo_layers7.H3HexagonLayer,
|
|
13659
|
-
propMap: {
|
|
13660
|
-
|
|
13661
|
-
coverage: "coverage"
|
|
13662
|
-
}
|
|
13663
|
-
},
|
|
13664
|
-
defaultProps: {
|
|
13665
|
-
getHexagon: (d) => d[hexagonId],
|
|
13666
|
-
stroked: false
|
|
13667
|
-
}
|
|
14034
|
+
propMap: { visConfig: { coverage: "coverage" } },
|
|
14035
|
+
defaultProps: { getHexagon: (d) => d[hexagonId], stroked: false }
|
|
13668
14036
|
}
|
|
13669
14037
|
};
|
|
13670
14038
|
const layer = layerTypeDefs[type];
|
|
@@ -13672,10 +14040,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13672
14040
|
return {
|
|
13673
14041
|
...layer,
|
|
13674
14042
|
propMap: mergePropMaps(basePropMap, layer.propMap),
|
|
13675
|
-
defaultProps: {
|
|
13676
|
-
...defaultProps9,
|
|
13677
|
-
...layer.defaultProps
|
|
13678
|
-
}
|
|
14043
|
+
defaultProps: { ...defaultProps9, ...layer.defaultProps }
|
|
13679
14044
|
};
|
|
13680
14045
|
}
|
|
13681
14046
|
function layerFromTileDataset(scheme, type) {
|
|
@@ -13694,21 +14059,15 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13694
14059
|
const {
|
|
13695
14060
|
aggregationExp,
|
|
13696
14061
|
aggregationResLevel,
|
|
13697
|
-
data: {
|
|
13698
|
-
scheme
|
|
13699
|
-
}
|
|
14062
|
+
data: { scheme }
|
|
13700
14063
|
} = dataset;
|
|
13701
14064
|
return {
|
|
13702
14065
|
Layer: layerFromTileDataset(scheme),
|
|
13703
14066
|
propMap: basePropMap,
|
|
13704
14067
|
defaultProps: {
|
|
13705
14068
|
...defaultProps9,
|
|
13706
|
-
...aggregationExp && {
|
|
13707
|
-
|
|
13708
|
-
},
|
|
13709
|
-
...aggregationResLevel && {
|
|
13710
|
-
aggregationResLevel
|
|
13711
|
-
},
|
|
14069
|
+
...aggregationExp && { aggregationExp },
|
|
14070
|
+
...aggregationResLevel && { aggregationResLevel },
|
|
13712
14071
|
uniqueIdProperty: "geoid"
|
|
13713
14072
|
}
|
|
13714
14073
|
};
|
|
@@ -13720,9 +14079,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13720
14079
|
if (scaleType === "quantile" && attribute.quantiles) {
|
|
13721
14080
|
return attribute.quantiles.global ? attribute.quantiles.global[scaleLength] : attribute.quantiles[scaleLength];
|
|
13722
14081
|
}
|
|
13723
|
-
let {
|
|
13724
|
-
min: min2
|
|
13725
|
-
} = attribute;
|
|
14082
|
+
let { min: min2 } = attribute;
|
|
13726
14083
|
if (scaleType === "log" && min2 === 0) {
|
|
13727
14084
|
min2 = 1e-5;
|
|
13728
14085
|
}
|
|
@@ -13730,7 +14087,11 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13730
14087
|
}
|
|
13731
14088
|
function domainFromValues(values, scaleType) {
|
|
13732
14089
|
if (scaleType === "ordinal" || scaleType === "point") {
|
|
13733
|
-
return groupSort(
|
|
14090
|
+
return groupSort(
|
|
14091
|
+
values,
|
|
14092
|
+
(g) => -g.length,
|
|
14093
|
+
(d) => d
|
|
14094
|
+
);
|
|
13734
14095
|
} else if (scaleType === "quantile") {
|
|
13735
14096
|
return values.sort((a, b) => a - b);
|
|
13736
14097
|
} else if (scaleType === "log") {
|
|
@@ -13741,15 +14102,11 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13741
14102
|
}
|
|
13742
14103
|
function calculateDomain(data, name, scaleType, scaleLength) {
|
|
13743
14104
|
if (data.tilestats) {
|
|
13744
|
-
const {
|
|
13745
|
-
attributes
|
|
13746
|
-
} = data.tilestats.layers[0];
|
|
14105
|
+
const { attributes } = data.tilestats.layers[0];
|
|
13747
14106
|
const attribute = attributes.find((a) => a.attribute === name);
|
|
13748
14107
|
return domainFromAttribute(attribute, scaleType, scaleLength);
|
|
13749
14108
|
} else if (data.features) {
|
|
13750
|
-
const values = data.features.map(({
|
|
13751
|
-
properties
|
|
13752
|
-
}) => properties[name]);
|
|
14109
|
+
const values = data.features.map(({ properties }) => properties[name]);
|
|
13753
14110
|
return domainFromValues(values, scaleType);
|
|
13754
14111
|
} else if (Array.isArray(data) && data[0][name] !== void 0) {
|
|
13755
14112
|
const values = data.map((properties) => properties[name]);
|
|
@@ -13763,10 +14120,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13763
14120
|
if (object) {
|
|
13764
14121
|
return accessor(object.properties || object.__source.object.properties);
|
|
13765
14122
|
}
|
|
13766
|
-
const {
|
|
13767
|
-
data: data2,
|
|
13768
|
-
index
|
|
13769
|
-
} = info;
|
|
14123
|
+
const { data: data2, index } = info;
|
|
13770
14124
|
const proxy = createBinaryProxy(data2, index);
|
|
13771
14125
|
return accessor(proxy);
|
|
13772
14126
|
};
|
|
@@ -13791,20 +14145,12 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13791
14145
|
}
|
|
13792
14146
|
throw new Error(`Could not find property for any accessor key: ${keys}`);
|
|
13793
14147
|
}
|
|
13794
|
-
function getColorValueAccessor({
|
|
13795
|
-
name
|
|
13796
|
-
}, colorAggregation, data) {
|
|
14148
|
+
function getColorValueAccessor({ name }, colorAggregation, data) {
|
|
13797
14149
|
const aggregator = AGGREGATION_FUNC[colorAggregation];
|
|
13798
14150
|
const accessor = (values) => aggregator(values, (p) => p[name]);
|
|
13799
14151
|
return normalizeAccessor(accessor, data);
|
|
13800
14152
|
}
|
|
13801
|
-
function getColorAccessor({
|
|
13802
|
-
name,
|
|
13803
|
-
colorColumn
|
|
13804
|
-
}, scaleType, {
|
|
13805
|
-
aggregation,
|
|
13806
|
-
range: range2
|
|
13807
|
-
}, opacity, data) {
|
|
14153
|
+
function getColorAccessor({ name, colorColumn }, scaleType, { aggregation, range: range2 }, opacity, data) {
|
|
13808
14154
|
const scale = calculateLayerScale(colorColumn || name, scaleType, range2, data);
|
|
13809
14155
|
const alpha = opacityToAlpha(opacity);
|
|
13810
14156
|
let accessorKeys = getAccessorKeys(name, aggregation);
|
|
@@ -13813,11 +14159,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13813
14159
|
accessorKeys = findAccessorKey(accessorKeys, properties);
|
|
13814
14160
|
}
|
|
13815
14161
|
const propertyValue = properties[accessorKeys[0]];
|
|
13816
|
-
const {
|
|
13817
|
-
r,
|
|
13818
|
-
g,
|
|
13819
|
-
b
|
|
13820
|
-
} = rgb(scale(propertyValue));
|
|
14162
|
+
const { r, g, b } = rgb(scale(propertyValue));
|
|
13821
14163
|
return [r, g, b, propertyValue === null ? 0 : alpha];
|
|
13822
14164
|
};
|
|
13823
14165
|
return normalizeAccessor(accessor, data);
|
|
@@ -13827,10 +14169,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13827
14169
|
let domain = [];
|
|
13828
14170
|
let scaleColor = [];
|
|
13829
14171
|
if (scaleType !== "identity") {
|
|
13830
|
-
const {
|
|
13831
|
-
colorMap,
|
|
13832
|
-
colors
|
|
13833
|
-
} = range2;
|
|
14172
|
+
const { colorMap, colors } = range2;
|
|
13834
14173
|
if (Array.isArray(colorMap)) {
|
|
13835
14174
|
colorMap.forEach(([value, color2]) => {
|
|
13836
14175
|
domain.push(value);
|
|
@@ -13850,11 +14189,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13850
14189
|
return scale;
|
|
13851
14190
|
}
|
|
13852
14191
|
var FALLBACK_ICON = "data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iNTAiLz4NCjwvc3ZnPg==";
|
|
13853
|
-
function getIconUrlAccessor(field, range2, {
|
|
13854
|
-
fallbackUrl,
|
|
13855
|
-
maxIconSize,
|
|
13856
|
-
useMaskedIcons
|
|
13857
|
-
}, data) {
|
|
14192
|
+
function getIconUrlAccessor(field, range2, { fallbackUrl, maxIconSize, useMaskedIcons }, data) {
|
|
13858
14193
|
const urlToUnpackedIcon = (url) => ({
|
|
13859
14194
|
id: `${url}@@${maxIconSize}`,
|
|
13860
14195
|
url,
|
|
@@ -13871,10 +14206,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13871
14206
|
return () => unknownIcon;
|
|
13872
14207
|
}
|
|
13873
14208
|
const mapping = {};
|
|
13874
|
-
for (const {
|
|
13875
|
-
value,
|
|
13876
|
-
markerUrl
|
|
13877
|
-
} of range2.markerMap) {
|
|
14209
|
+
for (const { value, markerUrl } of range2.markerMap) {
|
|
13878
14210
|
if (markerUrl) {
|
|
13879
14211
|
mapping[value] = urlToUnpackedIcon(markerUrl);
|
|
13880
14212
|
}
|
|
@@ -13886,23 +14218,15 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13886
14218
|
return normalizeAccessor(accessor, data);
|
|
13887
14219
|
}
|
|
13888
14220
|
function getMaxMarkerSize(visConfig, visualChannels) {
|
|
13889
|
-
const {
|
|
13890
|
-
|
|
13891
|
-
radius
|
|
13892
|
-
} = visConfig;
|
|
13893
|
-
const {
|
|
13894
|
-
radiusField,
|
|
13895
|
-
sizeField
|
|
13896
|
-
} = visualChannels;
|
|
14221
|
+
const { radiusRange, radius } = visConfig;
|
|
14222
|
+
const { radiusField, sizeField } = visualChannels;
|
|
13897
14223
|
const field = radiusField || sizeField;
|
|
13898
14224
|
return Math.ceil(radiusRange && field ? radiusRange[1] : radius);
|
|
13899
14225
|
}
|
|
13900
14226
|
function negateAccessor(accessor) {
|
|
13901
14227
|
return typeof accessor === "function" ? (d, i) => -accessor(d, i) : -accessor;
|
|
13902
14228
|
}
|
|
13903
|
-
function getSizeAccessor({
|
|
13904
|
-
name
|
|
13905
|
-
}, scaleType, aggregation, range2, data) {
|
|
14229
|
+
function getSizeAccessor({ name }, scaleType, aggregation, range2, data) {
|
|
13906
14230
|
const scale = scaleType ? SCALE_FUNCS[scaleType]() : identity3;
|
|
13907
14231
|
if (scaleType) {
|
|
13908
14232
|
if (aggregation !== "count") {
|
|
@@ -13927,10 +14251,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13927
14251
|
timestamp: (s) => import_moment_timezone.default.utc(s).format("X"),
|
|
13928
14252
|
default: String
|
|
13929
14253
|
};
|
|
13930
|
-
function getTextAccessor({
|
|
13931
|
-
name,
|
|
13932
|
-
type
|
|
13933
|
-
}, data) {
|
|
14254
|
+
function getTextAccessor({ name, type }, data) {
|
|
13934
14255
|
const format2 = FORMATS[type] || FORMATS.default;
|
|
13935
14256
|
const accessor = (properties) => {
|
|
13936
14257
|
return format2(properties[name]);
|
|
@@ -13939,24 +14260,13 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13939
14260
|
}
|
|
13940
14261
|
|
|
13941
14262
|
// src/api/parse-map.ts
|
|
13942
|
-
var import_extensions2 = __toESM(require_extensions());
|
|
14263
|
+
var import_extensions2 = __toESM(require_extensions(), 1);
|
|
13943
14264
|
var collisionFilterExtension = new import_extensions2.CollisionFilterExtension();
|
|
13944
14265
|
function parseMap(json) {
|
|
13945
|
-
const {
|
|
13946
|
-
keplerMapConfig,
|
|
13947
|
-
datasets,
|
|
13948
|
-
token
|
|
13949
|
-
} = json;
|
|
14266
|
+
const { keplerMapConfig, datasets, token } = json;
|
|
13950
14267
|
assert(keplerMapConfig.version === "v1", "Only support Kepler v1");
|
|
13951
|
-
const {
|
|
13952
|
-
|
|
13953
|
-
mapStyle
|
|
13954
|
-
} = keplerMapConfig.config;
|
|
13955
|
-
const {
|
|
13956
|
-
layers,
|
|
13957
|
-
layerBlending,
|
|
13958
|
-
interactionConfig
|
|
13959
|
-
} = keplerMapConfig.config.visState;
|
|
14268
|
+
const { mapState, mapStyle } = keplerMapConfig.config;
|
|
14269
|
+
const { layers, layerBlending, interactionConfig } = keplerMapConfig.config.visState;
|
|
13960
14270
|
return {
|
|
13961
14271
|
id: json.id,
|
|
13962
14272
|
title: json.title,
|
|
@@ -13966,29 +14276,16 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
13966
14276
|
initialViewState: mapState,
|
|
13967
14277
|
mapStyle,
|
|
13968
14278
|
token,
|
|
13969
|
-
layers: layers.reverse().map(({
|
|
13970
|
-
id: id4,
|
|
13971
|
-
type,
|
|
13972
|
-
config,
|
|
13973
|
-
visualChannels
|
|
13974
|
-
}) => {
|
|
14279
|
+
layers: layers.reverse().map(({ id: id4, type, config, visualChannels }) => {
|
|
13975
14280
|
try {
|
|
13976
|
-
const {
|
|
13977
|
-
dataId
|
|
13978
|
-
} = config;
|
|
14281
|
+
const { dataId } = config;
|
|
13979
14282
|
const dataset = datasets.find((d) => d.id === dataId);
|
|
13980
14283
|
assert(dataset, `No dataset matching dataId: ${dataId}`);
|
|
13981
|
-
const {
|
|
13982
|
-
data
|
|
13983
|
-
} = dataset;
|
|
14284
|
+
const { data } = dataset;
|
|
13984
14285
|
assert(data, `No data loaded for dataId: ${dataId}`);
|
|
13985
|
-
const {
|
|
13986
|
-
Layer,
|
|
13987
|
-
propMap,
|
|
13988
|
-
defaultProps: defaultProps10
|
|
13989
|
-
} = getLayer(type, config, dataset);
|
|
14286
|
+
const { Layer: Layer6, propMap, defaultProps: defaultProps10 } = getLayer(type, config, dataset);
|
|
13990
14287
|
const styleProps = createStyleProps(config, propMap);
|
|
13991
|
-
return new
|
|
14288
|
+
return new Layer6({
|
|
13992
14289
|
id: id4,
|
|
13993
14290
|
data,
|
|
13994
14291
|
...defaultProps10,
|
|
@@ -14007,15 +14304,13 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14007
14304
|
}
|
|
14008
14305
|
function createParametersProp(layerBlending, parameters) {
|
|
14009
14306
|
if (layerBlending === "additive") {
|
|
14010
|
-
parameters.blendFunc = [
|
|
14011
|
-
parameters.blendEquation =
|
|
14307
|
+
parameters.blendFunc = [GLEnum.SRC_ALPHA, GLEnum.DST_ALPHA];
|
|
14308
|
+
parameters.blendEquation = GLEnum.FUNC_ADD;
|
|
14012
14309
|
} else if (layerBlending === "subtractive") {
|
|
14013
|
-
parameters.blendFunc = [
|
|
14014
|
-
parameters.blendEquation = [
|
|
14310
|
+
parameters.blendFunc = [GLEnum.ONE, GLEnum.ONE_MINUS_DST_COLOR, GLEnum.SRC_ALPHA, GLEnum.DST_ALPHA];
|
|
14311
|
+
parameters.blendEquation = [GLEnum.FUNC_SUBTRACT, GLEnum.FUNC_ADD];
|
|
14015
14312
|
}
|
|
14016
|
-
return Object.keys(parameters).length ? {
|
|
14017
|
-
parameters
|
|
14018
|
-
} : {};
|
|
14313
|
+
return Object.keys(parameters).length ? { parameters } : {};
|
|
14019
14314
|
}
|
|
14020
14315
|
function createInteractionProps(interactionConfig) {
|
|
14021
14316
|
const pickable = interactionConfig && interactionConfig.tooltip.enabled;
|
|
@@ -14070,25 +14365,17 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14070
14365
|
strokeColorField,
|
|
14071
14366
|
strokeColorScale
|
|
14072
14367
|
} = visualChannels;
|
|
14073
|
-
let {
|
|
14074
|
-
heightField,
|
|
14075
|
-
heightScale
|
|
14076
|
-
} = visualChannels;
|
|
14368
|
+
let { heightField, heightScale } = visualChannels;
|
|
14077
14369
|
if (type === "hexagonId") {
|
|
14078
14370
|
heightField = sizeField;
|
|
14079
14371
|
heightScale = sizeScale;
|
|
14080
14372
|
}
|
|
14081
|
-
const {
|
|
14082
|
-
textLabel,
|
|
14083
|
-
visConfig
|
|
14084
|
-
} = config;
|
|
14373
|
+
const { textLabel, visConfig } = config;
|
|
14085
14374
|
const result = {};
|
|
14086
14375
|
if (type === "grid" || type === "hexagon") {
|
|
14087
14376
|
result.colorScaleType = colorScale;
|
|
14088
14377
|
if (colorField) {
|
|
14089
|
-
const {
|
|
14090
|
-
colorAggregation
|
|
14091
|
-
} = config.visConfig;
|
|
14378
|
+
const { colorAggregation } = config.visConfig;
|
|
14092
14379
|
if (!AGGREGATION[colorAggregation]) {
|
|
14093
14380
|
result.getColorValue = getColorValueAccessor(colorField, colorAggregation, data);
|
|
14094
14381
|
} else {
|
|
@@ -14096,27 +14383,21 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14096
14383
|
}
|
|
14097
14384
|
}
|
|
14098
14385
|
} else if (colorField) {
|
|
14099
|
-
const {
|
|
14100
|
-
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14386
|
+
const { colorAggregation: aggregation, colorRange: range2 } = visConfig;
|
|
14387
|
+
result.getFillColor = getColorAccessor(
|
|
14388
|
+
colorField,
|
|
14389
|
+
colorScale,
|
|
14390
|
+
{ aggregation, range: range2 },
|
|
14391
|
+
visConfig.opacity,
|
|
14392
|
+
data
|
|
14393
|
+
);
|
|
14107
14394
|
}
|
|
14108
14395
|
if (type === "point") {
|
|
14109
14396
|
const altitude = config.columns?.altitude;
|
|
14110
14397
|
if (altitude) {
|
|
14111
14398
|
result.dataTransform = (data2) => {
|
|
14112
|
-
data2.features.forEach(({
|
|
14113
|
-
geometry
|
|
14114
|
-
properties
|
|
14115
|
-
}) => {
|
|
14116
|
-
const {
|
|
14117
|
-
type: type2,
|
|
14118
|
-
coordinates
|
|
14119
|
-
} = geometry;
|
|
14399
|
+
data2.features.forEach(({ geometry, properties }) => {
|
|
14400
|
+
const { type: type2, coordinates } = geometry;
|
|
14120
14401
|
if (type2 === "Point") {
|
|
14121
14402
|
coordinates[2] = properties[altitude];
|
|
14122
14403
|
}
|
|
@@ -14126,40 +14407,46 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14126
14407
|
}
|
|
14127
14408
|
}
|
|
14128
14409
|
if (radiusField || sizeField) {
|
|
14129
|
-
result.getPointRadius = getSizeAccessor(
|
|
14410
|
+
result.getPointRadius = getSizeAccessor(
|
|
14411
|
+
radiusField || sizeField,
|
|
14412
|
+
radiusScale || sizeScale,
|
|
14413
|
+
visConfig.sizeAggregation,
|
|
14414
|
+
visConfig.radiusRange || visConfig.sizeRange,
|
|
14415
|
+
data
|
|
14416
|
+
);
|
|
14130
14417
|
}
|
|
14131
14418
|
if (strokeColorField) {
|
|
14132
14419
|
const fallbackOpacity = type === "point" ? visConfig.opacity : 1;
|
|
14133
14420
|
const opacity = visConfig.strokeOpacity !== void 0 ? visConfig.strokeOpacity : fallbackOpacity;
|
|
14134
|
-
const {
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14421
|
+
const { strokeColorAggregation: aggregation, strokeColorRange: range2 } = visConfig;
|
|
14422
|
+
result.getLineColor = getColorAccessor(
|
|
14423
|
+
strokeColorField,
|
|
14424
|
+
strokeColorScale,
|
|
14425
|
+
{ aggregation, range: range2 },
|
|
14426
|
+
opacity,
|
|
14427
|
+
data
|
|
14428
|
+
);
|
|
14142
14429
|
}
|
|
14143
14430
|
if (heightField && visConfig.enable3d) {
|
|
14144
|
-
result.getElevation = getSizeAccessor(
|
|
14431
|
+
result.getElevation = getSizeAccessor(
|
|
14432
|
+
heightField,
|
|
14433
|
+
heightScale,
|
|
14434
|
+
visConfig.heightAggregation,
|
|
14435
|
+
visConfig.heightRange || visConfig.sizeRange,
|
|
14436
|
+
data
|
|
14437
|
+
);
|
|
14145
14438
|
}
|
|
14146
14439
|
if (visConfig.customMarkers) {
|
|
14147
14440
|
const maxIconSize = getMaxMarkerSize(visConfig, visualChannels);
|
|
14148
|
-
const {
|
|
14149
|
-
|
|
14150
|
-
getFillColor
|
|
14151
|
-
} = result;
|
|
14152
|
-
const {
|
|
14153
|
-
customMarkersUrl,
|
|
14154
|
-
customMarkersRange,
|
|
14155
|
-
filled: useMaskedIcons
|
|
14156
|
-
} = visConfig;
|
|
14441
|
+
const { getPointRadius, getFillColor } = result;
|
|
14442
|
+
const { customMarkersUrl, customMarkersRange, filled: useMaskedIcons } = visConfig;
|
|
14157
14443
|
result.pointType = "icon";
|
|
14158
|
-
result.getIcon = getIconUrlAccessor(
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
useMaskedIcons
|
|
14162
|
-
|
|
14444
|
+
result.getIcon = getIconUrlAccessor(
|
|
14445
|
+
visualChannels.customMarkersField,
|
|
14446
|
+
customMarkersRange,
|
|
14447
|
+
{ fallbackUrl: customMarkersUrl, maxIconSize, useMaskedIcons },
|
|
14448
|
+
data
|
|
14449
|
+
);
|
|
14163
14450
|
result._subLayerProps = {
|
|
14164
14451
|
"points-icon": {
|
|
14165
14452
|
loadOptions: {
|
|
@@ -14181,7 +14468,9 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14181
14468
|
result.getIconSize = getPointRadius;
|
|
14182
14469
|
}
|
|
14183
14470
|
if (visualChannels.rotationField) {
|
|
14184
|
-
result.getIconAngle = negateAccessor(
|
|
14471
|
+
result.getIconAngle = negateAccessor(
|
|
14472
|
+
getSizeAccessor(visualChannels.rotationField, void 0, null, void 0, data)
|
|
14473
|
+
);
|
|
14185
14474
|
}
|
|
14186
14475
|
} else if (type === "point" || type === "tileset") {
|
|
14187
14476
|
result.pointType = "circle";
|
|
@@ -14207,9 +14496,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14207
14496
|
result.pointType = `${result.pointType}+text`;
|
|
14208
14497
|
result.textCharacterSet = "auto";
|
|
14209
14498
|
result.textFontFamily = "Inter, sans";
|
|
14210
|
-
result.textFontSettings = {
|
|
14211
|
-
sdf: true
|
|
14212
|
-
};
|
|
14499
|
+
result.textFontSettings = { sdf: true };
|
|
14213
14500
|
result.textFontWeight = 600;
|
|
14214
14501
|
result.textOutlineWidth = 3;
|
|
14215
14502
|
result._subLayerProps = {
|
|
@@ -14219,11 +14506,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14219
14506
|
extensions: [collisionFilterExtension],
|
|
14220
14507
|
collisionEnabled: true,
|
|
14221
14508
|
collisionGroup,
|
|
14222
|
-
...result.getPointRadius ? {
|
|
14223
|
-
getRadius: result.getPointRadius
|
|
14224
|
-
} : {
|
|
14225
|
-
radiusScale: visConfig.radius
|
|
14226
|
-
},
|
|
14509
|
+
...result.getPointRadius ? { getRadius: result.getPointRadius } : { radiusScale: visConfig.radius },
|
|
14227
14510
|
...secondaryField && {
|
|
14228
14511
|
getSecondaryText,
|
|
14229
14512
|
getSecondaryColor,
|
|
@@ -14237,13 +14520,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14237
14520
|
}
|
|
14238
14521
|
function createLoadOptions(accessToken) {
|
|
14239
14522
|
return {
|
|
14240
|
-
loadOptions: {
|
|
14241
|
-
fetch: {
|
|
14242
|
-
headers: {
|
|
14243
|
-
Authorization: `Bearer ${accessToken}`
|
|
14244
|
-
}
|
|
14245
|
-
}
|
|
14246
|
-
}
|
|
14523
|
+
loadOptions: { fetch: { headers: { Authorization: `Bearer ${accessToken}` } } }
|
|
14247
14524
|
};
|
|
14248
14525
|
}
|
|
14249
14526
|
|
|
@@ -14271,69 +14548,34 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14271
14548
|
headers
|
|
14272
14549
|
};
|
|
14273
14550
|
if (type === "tileset") {
|
|
14274
|
-
dataset.data = await vectorTilesetSource({
|
|
14275
|
-
...globalOptions,
|
|
14276
|
-
tableName: source
|
|
14277
|
-
});
|
|
14551
|
+
dataset.data = await vectorTilesetSource({ ...globalOptions, tableName: source });
|
|
14278
14552
|
} else {
|
|
14279
14553
|
const [spatialDataType, spatialDataColumn] = geoColumn ? geoColumn.split(":") : ["geom"];
|
|
14280
14554
|
if (spatialDataType === "geom") {
|
|
14281
|
-
const options = {
|
|
14282
|
-
...globalOptions,
|
|
14283
|
-
spatialDataColumn
|
|
14284
|
-
};
|
|
14555
|
+
const options = { ...globalOptions, spatialDataColumn };
|
|
14285
14556
|
if (type === "table") {
|
|
14286
|
-
dataset.data = await vectorTableSource({
|
|
14287
|
-
...options,
|
|
14288
|
-
columns,
|
|
14289
|
-
tableName: source
|
|
14290
|
-
});
|
|
14557
|
+
dataset.data = await vectorTableSource({ ...options, columns, tableName: source });
|
|
14291
14558
|
} else if (type === "query") {
|
|
14292
14559
|
dataset.data = await vectorQuerySource({
|
|
14293
14560
|
...options,
|
|
14561
|
+
columns,
|
|
14294
14562
|
sqlQuery: source,
|
|
14295
14563
|
queryParameters
|
|
14296
14564
|
});
|
|
14297
14565
|
}
|
|
14298
14566
|
} else if (spatialDataType === "h3") {
|
|
14299
|
-
const options = {
|
|
14300
|
-
...globalOptions,
|
|
14301
|
-
aggregationExp,
|
|
14302
|
-
aggregationResLevel,
|
|
14303
|
-
spatialDataColumn
|
|
14304
|
-
};
|
|
14567
|
+
const options = { ...globalOptions, aggregationExp, aggregationResLevel, spatialDataColumn };
|
|
14305
14568
|
if (type === "table") {
|
|
14306
|
-
dataset.data = await h3TableSource({
|
|
14307
|
-
...options,
|
|
14308
|
-
columns,
|
|
14309
|
-
tableName: source
|
|
14310
|
-
});
|
|
14569
|
+
dataset.data = await h3TableSource({ ...options, tableName: source });
|
|
14311
14570
|
} else if (type === "query") {
|
|
14312
|
-
dataset.data = await h3QuerySource({
|
|
14313
|
-
...options,
|
|
14314
|
-
sqlQuery: source,
|
|
14315
|
-
queryParameters
|
|
14316
|
-
});
|
|
14571
|
+
dataset.data = await h3QuerySource({ ...options, sqlQuery: source, queryParameters });
|
|
14317
14572
|
}
|
|
14318
14573
|
} else if (spatialDataType === "quadbin") {
|
|
14319
|
-
const options = {
|
|
14320
|
-
...globalOptions,
|
|
14321
|
-
aggregationExp,
|
|
14322
|
-
aggregationResLevel,
|
|
14323
|
-
spatialDataColumn
|
|
14324
|
-
};
|
|
14574
|
+
const options = { ...globalOptions, aggregationExp, aggregationResLevel, spatialDataColumn };
|
|
14325
14575
|
if (type === "table") {
|
|
14326
|
-
dataset.data = await quadbinTableSource({
|
|
14327
|
-
...options,
|
|
14328
|
-
columns,
|
|
14329
|
-
tableName: source
|
|
14330
|
-
});
|
|
14576
|
+
dataset.data = await quadbinTableSource({ ...options, tableName: source });
|
|
14331
14577
|
} else if (type === "query") {
|
|
14332
|
-
dataset.data = await quadbinQuerySource({
|
|
14333
|
-
...options,
|
|
14334
|
-
sqlQuery: source,
|
|
14335
|
-
queryParameters
|
|
14336
|
-
});
|
|
14578
|
+
dataset.data = await quadbinQuerySource({ ...options, sqlQuery: source, queryParameters });
|
|
14337
14579
|
}
|
|
14338
14580
|
}
|
|
14339
14581
|
}
|
|
@@ -14345,14 +14587,7 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14345
14587
|
return cacheChanged;
|
|
14346
14588
|
}
|
|
14347
14589
|
async function _fetchTilestats(attribute, dataset, accessToken, apiBaseUrl) {
|
|
14348
|
-
const {
|
|
14349
|
-
connectionName,
|
|
14350
|
-
data,
|
|
14351
|
-
id: id4,
|
|
14352
|
-
source,
|
|
14353
|
-
type,
|
|
14354
|
-
queryParameters
|
|
14355
|
-
} = dataset;
|
|
14590
|
+
const { connectionName, data, id: id4, source, type, queryParameters } = dataset;
|
|
14356
14591
|
const errorContext = {
|
|
14357
14592
|
requestType: "Tile stats",
|
|
14358
14593
|
connection: connectionName,
|
|
@@ -14362,15 +14597,13 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14362
14597
|
if (!("tilestats" in data)) {
|
|
14363
14598
|
throw new CartoAPIError(new Error(`Invalid dataset for tilestats: ${id4}`), errorContext);
|
|
14364
14599
|
}
|
|
14365
|
-
const baseUrl2 = buildStatsUrl({
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
...dataset
|
|
14369
|
-
});
|
|
14370
|
-
const headers = {
|
|
14371
|
-
Authorization: `Bearer ${accessToken}`
|
|
14372
|
-
};
|
|
14600
|
+
const baseUrl2 = buildStatsUrl({ attribute, apiBaseUrl, ...dataset });
|
|
14601
|
+
const client = new URLSearchParams(data.tiles[0]).get("client");
|
|
14602
|
+
const headers = { Authorization: `Bearer ${accessToken}` };
|
|
14373
14603
|
const parameters = {};
|
|
14604
|
+
if (client) {
|
|
14605
|
+
parameters.client = client;
|
|
14606
|
+
}
|
|
14374
14607
|
if (type === "query") {
|
|
14375
14608
|
parameters.q = source;
|
|
14376
14609
|
if (queryParameters) {
|
|
@@ -14383,56 +14616,42 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14383
14616
|
parameters,
|
|
14384
14617
|
errorContext
|
|
14385
14618
|
});
|
|
14386
|
-
const {
|
|
14387
|
-
attributes
|
|
14388
|
-
} = data.tilestats.layers[0];
|
|
14619
|
+
const { attributes } = data.tilestats.layers[0];
|
|
14389
14620
|
const index = attributes.findIndex((d) => d.attribute === attribute);
|
|
14390
14621
|
attributes[index] = stats;
|
|
14391
14622
|
return true;
|
|
14392
14623
|
}
|
|
14393
|
-
async function fillInMapDatasets({
|
|
14394
|
-
datasets
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
const promises = datasets.map((dataset) => _fetchMapDataset(dataset, token, apiBaseUrl, clientId, headers));
|
|
14624
|
+
async function fillInMapDatasets({ datasets, token }, clientId, apiBaseUrl, headers) {
|
|
14625
|
+
const promises = datasets.map(
|
|
14626
|
+
(dataset) => _fetchMapDataset(dataset, token, apiBaseUrl, clientId, headers)
|
|
14627
|
+
);
|
|
14398
14628
|
return await Promise.all(promises);
|
|
14399
14629
|
}
|
|
14400
|
-
async function fillInTileStats({
|
|
14401
|
-
datasets,
|
|
14402
|
-
keplerMapConfig,
|
|
14403
|
-
token
|
|
14404
|
-
}, apiBaseUrl) {
|
|
14630
|
+
async function fillInTileStats({ datasets, keplerMapConfig, token }, apiBaseUrl) {
|
|
14405
14631
|
const attributes = [];
|
|
14406
|
-
const {
|
|
14407
|
-
layers
|
|
14408
|
-
} = keplerMapConfig.config.visState;
|
|
14632
|
+
const { layers } = keplerMapConfig.config.visState;
|
|
14409
14633
|
for (const layer of layers) {
|
|
14410
14634
|
for (const channel of Object.keys(layer.visualChannels)) {
|
|
14411
14635
|
const attribute = layer.visualChannels[channel]?.name;
|
|
14412
14636
|
if (attribute) {
|
|
14413
14637
|
const dataset = datasets.find((d) => d.id === layer.config.dataId);
|
|
14414
14638
|
if (dataset && dataset.type !== "tileset" && dataset.data.tilestats) {
|
|
14415
|
-
attributes.push({
|
|
14416
|
-
attribute,
|
|
14417
|
-
dataset
|
|
14418
|
-
});
|
|
14639
|
+
attributes.push({ attribute, dataset });
|
|
14419
14640
|
}
|
|
14420
14641
|
}
|
|
14421
14642
|
}
|
|
14422
14643
|
}
|
|
14423
14644
|
const filteredAttributes = [];
|
|
14424
14645
|
for (const a of attributes) {
|
|
14425
|
-
if (!filteredAttributes.find(
|
|
14426
|
-
attribute,
|
|
14427
|
-
|
|
14428
|
-
}) => attribute === a.attribute && dataset === a.dataset)) {
|
|
14646
|
+
if (!filteredAttributes.find(
|
|
14647
|
+
({ attribute, dataset }) => attribute === a.attribute && dataset === a.dataset
|
|
14648
|
+
)) {
|
|
14429
14649
|
filteredAttributes.push(a);
|
|
14430
14650
|
}
|
|
14431
14651
|
}
|
|
14432
|
-
const promises = filteredAttributes.map(
|
|
14433
|
-
attribute,
|
|
14434
|
-
|
|
14435
|
-
}) => _fetchTilestats(attribute, dataset, token, apiBaseUrl));
|
|
14652
|
+
const promises = filteredAttributes.map(
|
|
14653
|
+
({ attribute, dataset }) => _fetchTilestats(attribute, dataset, token, apiBaseUrl)
|
|
14654
|
+
);
|
|
14436
14655
|
return await Promise.all(promises);
|
|
14437
14656
|
}
|
|
14438
14657
|
async function fetchMap({
|
|
@@ -14448,21 +14667,14 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14448
14667
|
if (autoRefresh || onNewData) {
|
|
14449
14668
|
assert(onNewData, "Must define `onNewData` when using autoRefresh");
|
|
14450
14669
|
assert(typeof onNewData === "function", "`onNewData` must be a function");
|
|
14451
|
-
assert(
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
});
|
|
14457
|
-
const errorContext = {
|
|
14458
|
-
|
|
14459
|
-
mapId: cartoMapId
|
|
14460
|
-
};
|
|
14461
|
-
const map2 = await requestWithParameters({
|
|
14462
|
-
baseUrl: baseUrl2,
|
|
14463
|
-
headers,
|
|
14464
|
-
errorContext
|
|
14465
|
-
});
|
|
14670
|
+
assert(
|
|
14671
|
+
typeof autoRefresh === "number" && autoRefresh > 0,
|
|
14672
|
+
"`autoRefresh` must be a positive number"
|
|
14673
|
+
);
|
|
14674
|
+
}
|
|
14675
|
+
const baseUrl2 = buildPublicMapUrl({ apiBaseUrl, cartoMapId });
|
|
14676
|
+
const errorContext = { requestType: "Public map", mapId: cartoMapId };
|
|
14677
|
+
const map2 = await requestWithParameters({ baseUrl: baseUrl2, headers, errorContext });
|
|
14466
14678
|
let stopAutoRefresh;
|
|
14467
14679
|
if (autoRefresh) {
|
|
14468
14680
|
const intervalId = setInterval(async () => {
|
|
@@ -14478,19 +14690,13 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14478
14690
|
clearInterval(intervalId);
|
|
14479
14691
|
};
|
|
14480
14692
|
}
|
|
14481
|
-
const geojsonLayers = map2.keplerMapConfig.config.visState.layers.filter(
|
|
14482
|
-
type
|
|
14483
|
-
|
|
14484
|
-
const geojsonDatasetIds = geojsonLayers.map(({
|
|
14485
|
-
config
|
|
14486
|
-
}) => config.dataId);
|
|
14693
|
+
const geojsonLayers = map2.keplerMapConfig.config.visState.layers.filter(
|
|
14694
|
+
({ type }) => type === "geojson" || type === "point"
|
|
14695
|
+
);
|
|
14696
|
+
const geojsonDatasetIds = geojsonLayers.map(({ config }) => config.dataId);
|
|
14487
14697
|
map2.datasets.forEach((dataset) => {
|
|
14488
14698
|
if (geojsonDatasetIds.includes(dataset.id)) {
|
|
14489
|
-
const {
|
|
14490
|
-
config
|
|
14491
|
-
} = geojsonLayers.find(({
|
|
14492
|
-
config: config2
|
|
14493
|
-
}) => config2.dataId === dataset.id);
|
|
14699
|
+
const { config } = geojsonLayers.find(({ config: config2 }) => config2.dataId === dataset.id);
|
|
14494
14700
|
dataset.format = "geojson";
|
|
14495
14701
|
if (!dataset.geoColumn && config.columns.geojson) {
|
|
14496
14702
|
dataset.geoColumn = config.columns.geojson;
|
|
@@ -14499,18 +14705,16 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14499
14705
|
});
|
|
14500
14706
|
await fillInMapDatasets(map2, clientId, apiBaseUrl, headers);
|
|
14501
14707
|
await fillInTileStats(map2, apiBaseUrl);
|
|
14502
|
-
const out = {
|
|
14503
|
-
...parseMap(map2),
|
|
14504
|
-
...{
|
|
14505
|
-
stopAutoRefresh
|
|
14506
|
-
}
|
|
14507
|
-
};
|
|
14708
|
+
const out = { ...parseMap(map2), ...{ stopAutoRefresh } };
|
|
14508
14709
|
const textLayers = out.layers.filter((layer) => {
|
|
14509
14710
|
const pointType = layer.props.pointType || "";
|
|
14510
14711
|
return pointType.includes("text");
|
|
14511
14712
|
});
|
|
14512
14713
|
if (textLayers.length && window.FontFace && !document.fonts.check("12px Inter")) {
|
|
14513
|
-
const font = new FontFace(
|
|
14714
|
+
const font = new FontFace(
|
|
14715
|
+
"Inter",
|
|
14716
|
+
"url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2)"
|
|
14717
|
+
);
|
|
14514
14718
|
await font.load().then((f) => document.fonts.add(f));
|
|
14515
14719
|
}
|
|
14516
14720
|
return out;
|
|
@@ -14524,20 +14728,12 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14524
14728
|
sqlQuery,
|
|
14525
14729
|
queryParameters
|
|
14526
14730
|
} = options;
|
|
14527
|
-
const urlParameters = {
|
|
14528
|
-
q: sqlQuery
|
|
14529
|
-
};
|
|
14731
|
+
const urlParameters = { q: sqlQuery };
|
|
14530
14732
|
if (queryParameters) {
|
|
14531
14733
|
urlParameters.queryParameters = JSON.stringify(queryParameters);
|
|
14532
14734
|
}
|
|
14533
|
-
const baseUrl2 = buildQueryUrl({
|
|
14534
|
-
|
|
14535
|
-
connectionName
|
|
14536
|
-
});
|
|
14537
|
-
const headers = {
|
|
14538
|
-
Authorization: `Bearer ${options.accessToken}`,
|
|
14539
|
-
...options.headers
|
|
14540
|
-
};
|
|
14735
|
+
const baseUrl2 = buildQueryUrl({ apiBaseUrl, connectionName });
|
|
14736
|
+
const headers = { Authorization: `Bearer ${options.accessToken}`, ...options.headers };
|
|
14541
14737
|
const errorContext = {
|
|
14542
14738
|
requestType: "SQL",
|
|
14543
14739
|
connection: options.connectionName,
|
|
@@ -14577,8 +14773,8 @@ ${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
|
14577
14773
|
|
|
14578
14774
|
// ../layers/bundle/peer-dependency.ts
|
|
14579
14775
|
var peer_dependency_exports = {};
|
|
14580
|
-
var import_layers5 = __toESM(require_layers());
|
|
14581
|
-
__reExport(peer_dependency_exports, __toESM(require_layers()));
|
|
14776
|
+
var import_layers5 = __toESM(require_layers(), 1);
|
|
14777
|
+
__reExport(peer_dependency_exports, __toESM(require_layers(), 1));
|
|
14582
14778
|
if (!import_layers5.GeoJsonLayer) {
|
|
14583
14779
|
throw new Error("@deck.gl/layers is not found");
|
|
14584
14780
|
}
|