@geoinsight/react-components 1.0.4 → 1.0.6
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/.pnp.cjs +2014 -3638
- package/.yarn/install-state.gz +0 -0
- package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/package.json +1 -1
- package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
- package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/CHANGELOG.md +70 -85
- package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/package.json +11 -11
- package/dist/cjs/components/button/index.stories.d.ts +12 -9
- package/dist/cjs/components/map/map-mapbox.d.ts +0 -1
- package/dist/cjs/index.css +67 -184
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.js +47 -213
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/button/index.stories.d.ts +12 -9
- package/dist/esm/components/map/map-mapbox.d.ts +0 -1
- package/dist/esm/index.css +67 -184
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +49 -192
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -5
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/.ready +0 -0
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/LICENSE.txt +0 -116
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/README.md +0 -149
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/banner.ts +0 -4
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/check-bundle-size.js +0 -77
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-debug-index-file.ts +0 -19
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-query-test-fixtures.ts +0 -126
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-shaders.ts +0 -35
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-struct-arrays.ts +0 -437
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-style-code.ts +0 -280
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-style-spec.ts +0 -323
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-typings.ts +0 -26
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/readme.md +0 -52
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/release-notes.js +0 -45
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/rollup_plugin_minify_style_spec.ts +0 -25
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/rollup_plugins.ts +0 -52
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp-worker.js +0 -2
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp-worker.js.map +0 -1
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp.js +0 -2
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp.js.map +0 -1
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-dev.js +0 -51935
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.css +0 -1
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.d.ts +0 -11736
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.js +0 -44
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.js.map +0 -1
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/package.json +0 -1
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/style-spec/index.d.ts +0 -1768
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/package.json +0 -182
- package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/postinstall.js +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/.editorconfig +0 -7
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/.ready +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/LICENSE +0 -21
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/README.md +0 -108
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/LICENSE-PVRTexToolCLI.txt +0 -52
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/LICENSE-astcenc.txt +0 -137
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/LICENSE-crunch.txt +0 -25
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/PVRTexToolCLI +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/astcenc +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/crunch +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/LICENSE-PVRTexToolCLI.txt +0 -52
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/LICENSE-astcenc.txt +0 -137
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/LICENSE-crunch.txt +0 -25
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/PVRTexToolCLI +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/astcenc +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/crunch +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/texture-compressor.js +0 -3
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/LICENSE-PVRTexToolCLI.txt +0 -52
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/LICENSE-astcenc.txt +0 -137
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/LICENSE-crunch.txt +0 -25
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/PVRTexToolCLI.exe +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/astcenc.exe +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/crunch.exe +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/argsHandler.js +0 -101
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/argsHandler.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithCrunch.js +0 -48
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithCrunch.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithPVRTexTool.js +0 -51
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithPVRTexTool.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/spawnProcess.js +0 -45
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/spawnProcess.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/validateArgs.js +0 -36
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/validateArgs.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/constants.js +0 -85
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/constants.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/index.js +0 -33
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/index.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/utilities.js +0 -52
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/utilities.js.map +0 -1
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/package.json +0 -37
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/argsHandler.d.ts +0 -14
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/compressWithCrunch.d.ts +0 -5
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/compressWithPVRTexTool.d.ts +0 -5
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/spawnProcess.d.ts +0 -9
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/validateArgs.d.ts +0 -11
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/constants.d.ts +0 -45
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/index.d.ts +0 -5
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/utilities.d.ts +0 -43
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/RECOMMENDED_PARAMETERS.md +0 -17
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/SUPPORTED_DEVICES_TABLE.md +0 -47
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/SUPPORTED_PARAMETERS.md +0 -154
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/KTXLoader.js +0 -149
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-astc-4x4.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-astc-8x8.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt1.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt1A.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt3.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt5.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-etc1.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-etc2.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-etc2A.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc2BPP.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc2BPPA.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc4BPP.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc4BPPA.ktx +0 -0
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/main.js +0 -195
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/index.html +0 -37
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/argsHandler.ts +0 -135
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/compressWithCrunch.ts +0 -66
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/compressWithPVRTexTool.ts +0 -91
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/spawnProcess.ts +0 -57
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/validateArgs.ts +0 -53
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/constants.ts +0 -86
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/index.ts +0 -37
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/utilities.ts +0 -57
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/package.json +0 -37
- package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/tslint.json +0 -12
- /package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/.ready +0 -0
- /package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/.ready +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/LICENSE +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/Visitor.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/Visitor.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/binding.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/binding.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/bindings/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/bindings/binding_core_wasm/package.json +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/index.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/index.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/postinstall.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/spack.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/spack.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/util.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/util.js +0 -0
|
@@ -1,1768 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v6.12.0
|
|
2
|
-
|
|
3
|
-
import Point from '@mapbox/point-geometry';
|
|
4
|
-
|
|
5
|
-
declare const _default: any;
|
|
6
|
-
/**
|
|
7
|
-
* Format a MapLibre GL Style. Returns a stringified style with its keys
|
|
8
|
-
* sorted in the same order as the reference style.
|
|
9
|
-
*
|
|
10
|
-
* The optional `space` argument is passed to
|
|
11
|
-
* [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify)
|
|
12
|
-
* to generate formatted output.
|
|
13
|
-
*
|
|
14
|
-
* If `space` is unspecified, a default of `2` spaces will be used.
|
|
15
|
-
*
|
|
16
|
-
* @private
|
|
17
|
-
* @param {Object} style a MapLibre GL Style
|
|
18
|
-
* @param {number} [space] space argument to pass to `JSON.stringify`
|
|
19
|
-
* @returns {string} stringified formatted JSON
|
|
20
|
-
* @example
|
|
21
|
-
* var fs = require('fs');
|
|
22
|
-
* var format = require('maplibre-gl-style-spec').format;
|
|
23
|
-
* var style = fs.readFileSync('./source.json', 'utf8');
|
|
24
|
-
* fs.writeFileSync('./dest.json', format(style));
|
|
25
|
-
* fs.writeFileSync('./dest.min.json', format(style, 0));
|
|
26
|
-
*/
|
|
27
|
-
export declare function format(style: any, space?: number): string;
|
|
28
|
-
export declare type ColorSpecification = string;
|
|
29
|
-
export declare type PaddingSpecification = number | number[];
|
|
30
|
-
export declare type FormattedSpecification = string;
|
|
31
|
-
export declare type ResolvedImageSpecification = string;
|
|
32
|
-
export declare type PromoteIdSpecification = {
|
|
33
|
-
[_: string]: string;
|
|
34
|
-
} | string;
|
|
35
|
-
export declare type ExpressionInputType = string | number | boolean;
|
|
36
|
-
export declare type CollatorExpressionSpecification = [
|
|
37
|
-
"collator",
|
|
38
|
-
{
|
|
39
|
-
"case-sensitive"?: boolean | ExpressionSpecification;
|
|
40
|
-
"diacritic-sensitive"?: boolean | ExpressionSpecification;
|
|
41
|
-
locale?: string | ExpressionSpecification;
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
export declare type InterpolationSpecification = [
|
|
45
|
-
"linear"
|
|
46
|
-
] | [
|
|
47
|
-
"exponential",
|
|
48
|
-
number | ExpressionSpecification
|
|
49
|
-
] | [
|
|
50
|
-
"cubic-bezier",
|
|
51
|
-
number | ExpressionSpecification,
|
|
52
|
-
number | ExpressionSpecification,
|
|
53
|
-
number | ExpressionSpecification,
|
|
54
|
-
number | ExpressionSpecification
|
|
55
|
-
];
|
|
56
|
-
export declare type ExpressionSpecification = [
|
|
57
|
-
"array",
|
|
58
|
-
unknown | ExpressionSpecification
|
|
59
|
-
] | [
|
|
60
|
-
"array",
|
|
61
|
-
ExpressionInputType | ExpressionSpecification,
|
|
62
|
-
unknown | ExpressionSpecification
|
|
63
|
-
] | [
|
|
64
|
-
"array",
|
|
65
|
-
ExpressionInputType | ExpressionSpecification,
|
|
66
|
-
number | ExpressionSpecification,
|
|
67
|
-
unknown | ExpressionSpecification
|
|
68
|
-
] | [
|
|
69
|
-
"boolean",
|
|
70
|
-
...(unknown | ExpressionSpecification)[],
|
|
71
|
-
unknown | ExpressionSpecification
|
|
72
|
-
] | CollatorExpressionSpecification | [
|
|
73
|
-
"format",
|
|
74
|
-
...(string | [
|
|
75
|
-
"image",
|
|
76
|
-
ExpressionSpecification
|
|
77
|
-
] | ExpressionSpecification | {
|
|
78
|
-
"font-scale"?: number | ExpressionSpecification;
|
|
79
|
-
"text-font"?: string[] | ExpressionSpecification;
|
|
80
|
-
"text-color": ColorSpecification | ExpressionSpecification;
|
|
81
|
-
})[]
|
|
82
|
-
] | [
|
|
83
|
-
"image",
|
|
84
|
-
unknown | ExpressionSpecification
|
|
85
|
-
] | [
|
|
86
|
-
"literal",
|
|
87
|
-
unknown
|
|
88
|
-
] | [
|
|
89
|
-
"number",
|
|
90
|
-
unknown | ExpressionSpecification,
|
|
91
|
-
...(unknown | ExpressionSpecification)[]
|
|
92
|
-
] | [
|
|
93
|
-
"number-format",
|
|
94
|
-
number | ExpressionSpecification,
|
|
95
|
-
{
|
|
96
|
-
"locale"?: string | ExpressionSpecification;
|
|
97
|
-
"currency"?: string | ExpressionSpecification;
|
|
98
|
-
"min-fraction-digits"?: number | ExpressionSpecification;
|
|
99
|
-
"max-fraction-digits"?: number | ExpressionSpecification;
|
|
100
|
-
}
|
|
101
|
-
] | [
|
|
102
|
-
"object",
|
|
103
|
-
unknown | ExpressionSpecification,
|
|
104
|
-
...(unknown | ExpressionSpecification)[]
|
|
105
|
-
] | [
|
|
106
|
-
"string",
|
|
107
|
-
unknown | ExpressionSpecification,
|
|
108
|
-
...(unknown | ExpressionSpecification)[]
|
|
109
|
-
] | [
|
|
110
|
-
"to-boolean",
|
|
111
|
-
unknown | ExpressionSpecification
|
|
112
|
-
] | [
|
|
113
|
-
"to-color",
|
|
114
|
-
unknown | ExpressionSpecification,
|
|
115
|
-
...(unknown | ExpressionSpecification)[]
|
|
116
|
-
] | [
|
|
117
|
-
"to-number",
|
|
118
|
-
unknown | ExpressionSpecification,
|
|
119
|
-
...(unknown | ExpressionSpecification)[]
|
|
120
|
-
] | [
|
|
121
|
-
"to-string",
|
|
122
|
-
unknown | ExpressionSpecification
|
|
123
|
-
] | [
|
|
124
|
-
"accumulated"
|
|
125
|
-
] | [
|
|
126
|
-
"feature-state",
|
|
127
|
-
string
|
|
128
|
-
] | [
|
|
129
|
-
"geometry-type"
|
|
130
|
-
] | [
|
|
131
|
-
"id"
|
|
132
|
-
] | [
|
|
133
|
-
"line-progress"
|
|
134
|
-
] | [
|
|
135
|
-
"properties"
|
|
136
|
-
] | [
|
|
137
|
-
"at",
|
|
138
|
-
number | ExpressionSpecification,
|
|
139
|
-
ExpressionSpecification
|
|
140
|
-
] | [
|
|
141
|
-
"get",
|
|
142
|
-
string | ExpressionSpecification,
|
|
143
|
-
(Record<string, unknown> | ExpressionSpecification)?
|
|
144
|
-
] | [
|
|
145
|
-
"has",
|
|
146
|
-
string | ExpressionSpecification,
|
|
147
|
-
(Record<string, unknown> | ExpressionSpecification)?
|
|
148
|
-
] | [
|
|
149
|
-
"in",
|
|
150
|
-
ExpressionInputType | ExpressionSpecification,
|
|
151
|
-
ExpressionInputType | ExpressionSpecification
|
|
152
|
-
] | [
|
|
153
|
-
"index-of",
|
|
154
|
-
ExpressionInputType | ExpressionSpecification,
|
|
155
|
-
ExpressionInputType | ExpressionSpecification
|
|
156
|
-
] | [
|
|
157
|
-
"length",
|
|
158
|
-
string | ExpressionSpecification
|
|
159
|
-
] | [
|
|
160
|
-
"slice",
|
|
161
|
-
string | ExpressionSpecification,
|
|
162
|
-
number | ExpressionSpecification
|
|
163
|
-
] | [
|
|
164
|
-
"!",
|
|
165
|
-
boolean | ExpressionSpecification
|
|
166
|
-
] | [
|
|
167
|
-
"!=",
|
|
168
|
-
ExpressionInputType | ExpressionSpecification,
|
|
169
|
-
ExpressionInputType | ExpressionSpecification,
|
|
170
|
-
CollatorExpressionSpecification?
|
|
171
|
-
] | [
|
|
172
|
-
"<",
|
|
173
|
-
ExpressionInputType | ExpressionSpecification,
|
|
174
|
-
ExpressionInputType | ExpressionSpecification,
|
|
175
|
-
CollatorExpressionSpecification?
|
|
176
|
-
] | [
|
|
177
|
-
"<=",
|
|
178
|
-
ExpressionInputType | ExpressionSpecification,
|
|
179
|
-
ExpressionInputType | ExpressionSpecification,
|
|
180
|
-
CollatorExpressionSpecification?
|
|
181
|
-
] | [
|
|
182
|
-
"==",
|
|
183
|
-
ExpressionInputType | ExpressionSpecification,
|
|
184
|
-
ExpressionInputType | ExpressionSpecification,
|
|
185
|
-
CollatorExpressionSpecification?
|
|
186
|
-
] | [
|
|
187
|
-
">",
|
|
188
|
-
ExpressionInputType | ExpressionSpecification,
|
|
189
|
-
ExpressionInputType | ExpressionSpecification,
|
|
190
|
-
CollatorExpressionSpecification?
|
|
191
|
-
] | [
|
|
192
|
-
">=",
|
|
193
|
-
ExpressionInputType | ExpressionSpecification,
|
|
194
|
-
ExpressionInputType | ExpressionSpecification,
|
|
195
|
-
CollatorExpressionSpecification?
|
|
196
|
-
] | [
|
|
197
|
-
"all",
|
|
198
|
-
...(boolean | ExpressionSpecification)[]
|
|
199
|
-
] | [
|
|
200
|
-
"any",
|
|
201
|
-
...(boolean | ExpressionSpecification)[]
|
|
202
|
-
] | [
|
|
203
|
-
"case",
|
|
204
|
-
boolean | ExpressionSpecification,
|
|
205
|
-
ExpressionInputType | ExpressionSpecification,
|
|
206
|
-
...(boolean | ExpressionInputType | ExpressionSpecification)[],
|
|
207
|
-
ExpressionInputType | ExpressionSpecification
|
|
208
|
-
] | [
|
|
209
|
-
"coalesce",
|
|
210
|
-
...(ExpressionInputType | ExpressionSpecification)[]
|
|
211
|
-
] | [
|
|
212
|
-
"match",
|
|
213
|
-
ExpressionInputType | ExpressionSpecification,
|
|
214
|
-
ExpressionInputType | ExpressionInputType[],
|
|
215
|
-
ExpressionInputType | ExpressionSpecification,
|
|
216
|
-
...(ExpressionInputType | ExpressionInputType[] | ExpressionSpecification)[],
|
|
217
|
-
ExpressionInputType
|
|
218
|
-
] | [
|
|
219
|
-
"within",
|
|
220
|
-
unknown | ExpressionSpecification
|
|
221
|
-
] | [
|
|
222
|
-
"interpolate",
|
|
223
|
-
InterpolationSpecification,
|
|
224
|
-
number | ExpressionSpecification,
|
|
225
|
-
...(number | number[] | ColorSpecification)[]
|
|
226
|
-
] | [
|
|
227
|
-
"interpolate-hcl",
|
|
228
|
-
InterpolationSpecification,
|
|
229
|
-
number | ExpressionSpecification,
|
|
230
|
-
...(number | ColorSpecification)[]
|
|
231
|
-
] | [
|
|
232
|
-
"interpolate-lab",
|
|
233
|
-
InterpolationSpecification,
|
|
234
|
-
number | ExpressionSpecification,
|
|
235
|
-
...(number | ColorSpecification)[]
|
|
236
|
-
] | [
|
|
237
|
-
"step",
|
|
238
|
-
number | ExpressionSpecification,
|
|
239
|
-
ExpressionInputType | ExpressionSpecification,
|
|
240
|
-
...(number | ExpressionInputType | ExpressionSpecification)[]
|
|
241
|
-
] | [
|
|
242
|
-
"let",
|
|
243
|
-
string,
|
|
244
|
-
ExpressionInputType | ExpressionSpecification,
|
|
245
|
-
...(string | ExpressionInputType | ExpressionSpecification)[]
|
|
246
|
-
] | [
|
|
247
|
-
"var",
|
|
248
|
-
string
|
|
249
|
-
] | [
|
|
250
|
-
"concat",
|
|
251
|
-
...(ExpressionInputType | ExpressionSpecification)[]
|
|
252
|
-
] | [
|
|
253
|
-
"downcase",
|
|
254
|
-
string | ExpressionSpecification
|
|
255
|
-
] | [
|
|
256
|
-
"is-supported-script",
|
|
257
|
-
string | ExpressionSpecification
|
|
258
|
-
] | [
|
|
259
|
-
"resolved-locale",
|
|
260
|
-
CollatorExpressionSpecification
|
|
261
|
-
] | [
|
|
262
|
-
"upcase",
|
|
263
|
-
string | ExpressionSpecification
|
|
264
|
-
] | [
|
|
265
|
-
"rgb",
|
|
266
|
-
number | ExpressionSpecification,
|
|
267
|
-
number | ExpressionSpecification,
|
|
268
|
-
number | ExpressionSpecification
|
|
269
|
-
] | [
|
|
270
|
-
"rgba",
|
|
271
|
-
number | ExpressionSpecification,
|
|
272
|
-
number | ExpressionSpecification,
|
|
273
|
-
number | ExpressionSpecification,
|
|
274
|
-
number | ExpressionSpecification
|
|
275
|
-
] | [
|
|
276
|
-
"to-rgba",
|
|
277
|
-
ColorSpecification | ExpressionSpecification
|
|
278
|
-
] | [
|
|
279
|
-
"-",
|
|
280
|
-
number | ExpressionSpecification,
|
|
281
|
-
(number | ExpressionSpecification)?
|
|
282
|
-
] | [
|
|
283
|
-
"*",
|
|
284
|
-
number | ExpressionSpecification,
|
|
285
|
-
number | ExpressionSpecification,
|
|
286
|
-
...(number | ExpressionSpecification)[]
|
|
287
|
-
] | [
|
|
288
|
-
"/",
|
|
289
|
-
number | ExpressionSpecification,
|
|
290
|
-
number | ExpressionSpecification
|
|
291
|
-
] | [
|
|
292
|
-
"%",
|
|
293
|
-
number | ExpressionSpecification,
|
|
294
|
-
number | ExpressionSpecification
|
|
295
|
-
] | [
|
|
296
|
-
"^",
|
|
297
|
-
number | ExpressionSpecification,
|
|
298
|
-
number | ExpressionSpecification
|
|
299
|
-
] | [
|
|
300
|
-
"+",
|
|
301
|
-
...(number | ExpressionSpecification)[]
|
|
302
|
-
] | [
|
|
303
|
-
"abs",
|
|
304
|
-
number | ExpressionSpecification
|
|
305
|
-
] | [
|
|
306
|
-
"acos",
|
|
307
|
-
number | ExpressionSpecification
|
|
308
|
-
] | [
|
|
309
|
-
"asin",
|
|
310
|
-
number | ExpressionSpecification
|
|
311
|
-
] | [
|
|
312
|
-
"atan",
|
|
313
|
-
number | ExpressionSpecification
|
|
314
|
-
] | [
|
|
315
|
-
"ceil",
|
|
316
|
-
number | ExpressionSpecification
|
|
317
|
-
] | [
|
|
318
|
-
"cos",
|
|
319
|
-
number | ExpressionSpecification
|
|
320
|
-
] | [
|
|
321
|
-
"distance",
|
|
322
|
-
Record<string, unknown> | ExpressionSpecification
|
|
323
|
-
] | [
|
|
324
|
-
"ExpressionSpecification"
|
|
325
|
-
] | [
|
|
326
|
-
"floor",
|
|
327
|
-
number | ExpressionSpecification
|
|
328
|
-
] | [
|
|
329
|
-
"ln",
|
|
330
|
-
number | ExpressionSpecification
|
|
331
|
-
] | [
|
|
332
|
-
"ln2"
|
|
333
|
-
] | [
|
|
334
|
-
"log10",
|
|
335
|
-
number | ExpressionSpecification
|
|
336
|
-
] | [
|
|
337
|
-
"log2",
|
|
338
|
-
number | ExpressionSpecification
|
|
339
|
-
] | [
|
|
340
|
-
"max",
|
|
341
|
-
number | ExpressionSpecification,
|
|
342
|
-
...(number | ExpressionSpecification)[]
|
|
343
|
-
] | [
|
|
344
|
-
"min",
|
|
345
|
-
number | ExpressionSpecification,
|
|
346
|
-
...(number | ExpressionSpecification)[]
|
|
347
|
-
] | [
|
|
348
|
-
"pi"
|
|
349
|
-
] | [
|
|
350
|
-
"round",
|
|
351
|
-
number | ExpressionSpecification
|
|
352
|
-
] | [
|
|
353
|
-
"sin",
|
|
354
|
-
number | ExpressionSpecification
|
|
355
|
-
] | [
|
|
356
|
-
"sqrt",
|
|
357
|
-
number | ExpressionSpecification
|
|
358
|
-
] | [
|
|
359
|
-
"tan",
|
|
360
|
-
number | ExpressionSpecification
|
|
361
|
-
] | [
|
|
362
|
-
"zoom"
|
|
363
|
-
] | [
|
|
364
|
-
"heatmap-density"
|
|
365
|
-
];
|
|
366
|
-
export declare type ExpressionFilterSpecification = boolean | ExpressionSpecification;
|
|
367
|
-
export declare type LegacyFilterSpecification = [
|
|
368
|
-
"has",
|
|
369
|
-
string
|
|
370
|
-
] | [
|
|
371
|
-
"!has",
|
|
372
|
-
string
|
|
373
|
-
] | [
|
|
374
|
-
"==",
|
|
375
|
-
string,
|
|
376
|
-
string | number | boolean
|
|
377
|
-
] | [
|
|
378
|
-
"!=",
|
|
379
|
-
string,
|
|
380
|
-
string | number | boolean
|
|
381
|
-
] | [
|
|
382
|
-
">",
|
|
383
|
-
string,
|
|
384
|
-
string | number | boolean
|
|
385
|
-
] | [
|
|
386
|
-
">=",
|
|
387
|
-
string,
|
|
388
|
-
string | number | boolean
|
|
389
|
-
] | [
|
|
390
|
-
"<",
|
|
391
|
-
string,
|
|
392
|
-
string | number | boolean
|
|
393
|
-
] | [
|
|
394
|
-
"<=",
|
|
395
|
-
string,
|
|
396
|
-
string | number | boolean
|
|
397
|
-
] | [
|
|
398
|
-
"in",
|
|
399
|
-
string,
|
|
400
|
-
...(string | number | boolean)[]
|
|
401
|
-
] | [
|
|
402
|
-
"!in",
|
|
403
|
-
string,
|
|
404
|
-
...(string | number | boolean)[]
|
|
405
|
-
] | [
|
|
406
|
-
"all",
|
|
407
|
-
...LegacyFilterSpecification[]
|
|
408
|
-
] | [
|
|
409
|
-
"any",
|
|
410
|
-
...LegacyFilterSpecification[]
|
|
411
|
-
] | [
|
|
412
|
-
"none",
|
|
413
|
-
...LegacyFilterSpecification[]
|
|
414
|
-
];
|
|
415
|
-
export declare type FilterSpecification = ExpressionFilterSpecification | LegacyFilterSpecification;
|
|
416
|
-
export declare type TransitionSpecification = {
|
|
417
|
-
duration?: number;
|
|
418
|
-
delay?: number;
|
|
419
|
-
};
|
|
420
|
-
export declare type CameraFunctionSpecification<T> = {
|
|
421
|
-
type: "exponential";
|
|
422
|
-
stops: Array<[
|
|
423
|
-
number,
|
|
424
|
-
T
|
|
425
|
-
]>;
|
|
426
|
-
} | {
|
|
427
|
-
type: "interval";
|
|
428
|
-
stops: Array<[
|
|
429
|
-
number,
|
|
430
|
-
T
|
|
431
|
-
]>;
|
|
432
|
-
};
|
|
433
|
-
export declare type SourceFunctionSpecification<T> = {
|
|
434
|
-
type: "exponential";
|
|
435
|
-
stops: Array<[
|
|
436
|
-
number,
|
|
437
|
-
T
|
|
438
|
-
]>;
|
|
439
|
-
property: string;
|
|
440
|
-
default?: T;
|
|
441
|
-
} | {
|
|
442
|
-
type: "interval";
|
|
443
|
-
stops: Array<[
|
|
444
|
-
number,
|
|
445
|
-
T
|
|
446
|
-
]>;
|
|
447
|
-
property: string;
|
|
448
|
-
default?: T;
|
|
449
|
-
} | {
|
|
450
|
-
type: "categorical";
|
|
451
|
-
stops: Array<[
|
|
452
|
-
string | number | boolean,
|
|
453
|
-
T
|
|
454
|
-
]>;
|
|
455
|
-
property: string;
|
|
456
|
-
default?: T;
|
|
457
|
-
} | {
|
|
458
|
-
type: "identity";
|
|
459
|
-
property: string;
|
|
460
|
-
default?: T;
|
|
461
|
-
};
|
|
462
|
-
export declare type CompositeFunctionSpecification<T> = {
|
|
463
|
-
type: "exponential";
|
|
464
|
-
stops: Array<[
|
|
465
|
-
{
|
|
466
|
-
zoom: number;
|
|
467
|
-
value: number;
|
|
468
|
-
},
|
|
469
|
-
T
|
|
470
|
-
]>;
|
|
471
|
-
property: string;
|
|
472
|
-
default?: T;
|
|
473
|
-
} | {
|
|
474
|
-
type: "interval";
|
|
475
|
-
stops: Array<[
|
|
476
|
-
{
|
|
477
|
-
zoom: number;
|
|
478
|
-
value: number;
|
|
479
|
-
},
|
|
480
|
-
T
|
|
481
|
-
]>;
|
|
482
|
-
property: string;
|
|
483
|
-
default?: T;
|
|
484
|
-
} | {
|
|
485
|
-
type: "categorical";
|
|
486
|
-
stops: Array<[
|
|
487
|
-
{
|
|
488
|
-
zoom: number;
|
|
489
|
-
value: string | number | boolean;
|
|
490
|
-
},
|
|
491
|
-
T
|
|
492
|
-
]>;
|
|
493
|
-
property: string;
|
|
494
|
-
default?: T;
|
|
495
|
-
};
|
|
496
|
-
export declare type PropertyValueSpecification<T> = T | CameraFunctionSpecification<T> | ExpressionSpecification;
|
|
497
|
-
export declare type DataDrivenPropertyValueSpecification<T> = T | CameraFunctionSpecification<T> | SourceFunctionSpecification<T> | CompositeFunctionSpecification<T> | ExpressionSpecification;
|
|
498
|
-
export declare type StyleSpecification = {
|
|
499
|
-
"version": 8;
|
|
500
|
-
"name"?: string;
|
|
501
|
-
"metadata"?: unknown;
|
|
502
|
-
"center"?: Array<number>;
|
|
503
|
-
"zoom"?: number;
|
|
504
|
-
"bearing"?: number;
|
|
505
|
-
"pitch"?: number;
|
|
506
|
-
"light"?: LightSpecification;
|
|
507
|
-
"terrain"?: TerrainSpecification;
|
|
508
|
-
"sources": {
|
|
509
|
-
[_: string]: SourceSpecification;
|
|
510
|
-
};
|
|
511
|
-
"sprite"?: string;
|
|
512
|
-
"glyphs"?: string;
|
|
513
|
-
"transition"?: TransitionSpecification;
|
|
514
|
-
"layers": Array<LayerSpecification>;
|
|
515
|
-
};
|
|
516
|
-
export declare type LightSpecification = {
|
|
517
|
-
"anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
518
|
-
"position"?: PropertyValueSpecification<[
|
|
519
|
-
number,
|
|
520
|
-
number,
|
|
521
|
-
number
|
|
522
|
-
]>;
|
|
523
|
-
"color"?: PropertyValueSpecification<ColorSpecification>;
|
|
524
|
-
"intensity"?: PropertyValueSpecification<number>;
|
|
525
|
-
};
|
|
526
|
-
export declare type TerrainSpecification = {
|
|
527
|
-
"source": string;
|
|
528
|
-
"exaggeration"?: number;
|
|
529
|
-
"elevationOffset"?: number;
|
|
530
|
-
};
|
|
531
|
-
export declare type VectorSourceSpecification = {
|
|
532
|
-
"type": "vector";
|
|
533
|
-
"url"?: string;
|
|
534
|
-
"tiles"?: Array<string>;
|
|
535
|
-
"bounds"?: [
|
|
536
|
-
number,
|
|
537
|
-
number,
|
|
538
|
-
number,
|
|
539
|
-
number
|
|
540
|
-
];
|
|
541
|
-
"scheme"?: "xyz" | "tms";
|
|
542
|
-
"minzoom"?: number;
|
|
543
|
-
"maxzoom"?: number;
|
|
544
|
-
"attribution"?: string;
|
|
545
|
-
"promoteId"?: PromoteIdSpecification;
|
|
546
|
-
"volatile"?: boolean;
|
|
547
|
-
};
|
|
548
|
-
export declare type RasterSourceSpecification = {
|
|
549
|
-
"type": "raster";
|
|
550
|
-
"url"?: string;
|
|
551
|
-
"tiles"?: Array<string>;
|
|
552
|
-
"bounds"?: [
|
|
553
|
-
number,
|
|
554
|
-
number,
|
|
555
|
-
number,
|
|
556
|
-
number
|
|
557
|
-
];
|
|
558
|
-
"minzoom"?: number;
|
|
559
|
-
"maxzoom"?: number;
|
|
560
|
-
"tileSize"?: number;
|
|
561
|
-
"scheme"?: "xyz" | "tms";
|
|
562
|
-
"attribution"?: string;
|
|
563
|
-
"volatile"?: boolean;
|
|
564
|
-
};
|
|
565
|
-
export declare type RasterDEMSourceSpecification = {
|
|
566
|
-
"type": "raster-dem";
|
|
567
|
-
"url"?: string;
|
|
568
|
-
"tiles"?: Array<string>;
|
|
569
|
-
"bounds"?: [
|
|
570
|
-
number,
|
|
571
|
-
number,
|
|
572
|
-
number,
|
|
573
|
-
number
|
|
574
|
-
];
|
|
575
|
-
"minzoom"?: number;
|
|
576
|
-
"maxzoom"?: number;
|
|
577
|
-
"tileSize"?: number;
|
|
578
|
-
"attribution"?: string;
|
|
579
|
-
"encoding"?: "terrarium" | "mapbox";
|
|
580
|
-
"volatile"?: boolean;
|
|
581
|
-
};
|
|
582
|
-
export declare type GeoJSONSourceSpecification = {
|
|
583
|
-
"type": "geojson";
|
|
584
|
-
"data"?: unknown;
|
|
585
|
-
"maxzoom"?: number;
|
|
586
|
-
"attribution"?: string;
|
|
587
|
-
"buffer"?: number;
|
|
588
|
-
"filter"?: unknown;
|
|
589
|
-
"tolerance"?: number;
|
|
590
|
-
"cluster"?: boolean;
|
|
591
|
-
"clusterRadius"?: number;
|
|
592
|
-
"clusterMaxZoom"?: number;
|
|
593
|
-
"clusterMinPoints"?: number;
|
|
594
|
-
"clusterProperties"?: unknown;
|
|
595
|
-
"lineMetrics"?: boolean;
|
|
596
|
-
"generateId"?: boolean;
|
|
597
|
-
"promoteId"?: PromoteIdSpecification;
|
|
598
|
-
};
|
|
599
|
-
export declare type VideoSourceSpecification = {
|
|
600
|
-
"type": "video";
|
|
601
|
-
"urls": Array<string>;
|
|
602
|
-
"coordinates": [
|
|
603
|
-
[
|
|
604
|
-
number,
|
|
605
|
-
number
|
|
606
|
-
],
|
|
607
|
-
[
|
|
608
|
-
number,
|
|
609
|
-
number
|
|
610
|
-
],
|
|
611
|
-
[
|
|
612
|
-
number,
|
|
613
|
-
number
|
|
614
|
-
],
|
|
615
|
-
[
|
|
616
|
-
number,
|
|
617
|
-
number
|
|
618
|
-
]
|
|
619
|
-
];
|
|
620
|
-
};
|
|
621
|
-
export declare type ImageSourceSpecification = {
|
|
622
|
-
"type": "image";
|
|
623
|
-
"url": string;
|
|
624
|
-
"coordinates": [
|
|
625
|
-
[
|
|
626
|
-
number,
|
|
627
|
-
number
|
|
628
|
-
],
|
|
629
|
-
[
|
|
630
|
-
number,
|
|
631
|
-
number
|
|
632
|
-
],
|
|
633
|
-
[
|
|
634
|
-
number,
|
|
635
|
-
number
|
|
636
|
-
],
|
|
637
|
-
[
|
|
638
|
-
number,
|
|
639
|
-
number
|
|
640
|
-
]
|
|
641
|
-
];
|
|
642
|
-
};
|
|
643
|
-
export declare type SourceSpecification = VectorSourceSpecification | RasterSourceSpecification | RasterDEMSourceSpecification | GeoJSONSourceSpecification | VideoSourceSpecification | ImageSourceSpecification;
|
|
644
|
-
export declare type FillLayerSpecification = {
|
|
645
|
-
"id": string;
|
|
646
|
-
"type": "fill";
|
|
647
|
-
"metadata"?: unknown;
|
|
648
|
-
"source": string;
|
|
649
|
-
"source-layer"?: string;
|
|
650
|
-
"minzoom"?: number;
|
|
651
|
-
"maxzoom"?: number;
|
|
652
|
-
"filter"?: FilterSpecification;
|
|
653
|
-
"layout"?: {
|
|
654
|
-
"fill-sort-key"?: DataDrivenPropertyValueSpecification<number>;
|
|
655
|
-
"visibility"?: "visible" | "none";
|
|
656
|
-
};
|
|
657
|
-
"paint"?: {
|
|
658
|
-
"fill-antialias"?: PropertyValueSpecification<boolean>;
|
|
659
|
-
"fill-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
660
|
-
"fill-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
661
|
-
"fill-outline-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
662
|
-
"fill-translate"?: PropertyValueSpecification<[
|
|
663
|
-
number,
|
|
664
|
-
number
|
|
665
|
-
]>;
|
|
666
|
-
"fill-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
667
|
-
"fill-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
export declare type LineLayerSpecification = {
|
|
671
|
-
"id": string;
|
|
672
|
-
"type": "line";
|
|
673
|
-
"metadata"?: unknown;
|
|
674
|
-
"source": string;
|
|
675
|
-
"source-layer"?: string;
|
|
676
|
-
"minzoom"?: number;
|
|
677
|
-
"maxzoom"?: number;
|
|
678
|
-
"filter"?: FilterSpecification;
|
|
679
|
-
"layout"?: {
|
|
680
|
-
"line-cap"?: PropertyValueSpecification<"butt" | "round" | "square">;
|
|
681
|
-
"line-join"?: DataDrivenPropertyValueSpecification<"bevel" | "round" | "miter">;
|
|
682
|
-
"line-miter-limit"?: PropertyValueSpecification<number>;
|
|
683
|
-
"line-round-limit"?: PropertyValueSpecification<number>;
|
|
684
|
-
"line-sort-key"?: DataDrivenPropertyValueSpecification<number>;
|
|
685
|
-
"visibility"?: "visible" | "none";
|
|
686
|
-
};
|
|
687
|
-
"paint"?: {
|
|
688
|
-
"line-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
689
|
-
"line-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
690
|
-
"line-translate"?: PropertyValueSpecification<[
|
|
691
|
-
number,
|
|
692
|
-
number
|
|
693
|
-
]>;
|
|
694
|
-
"line-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
695
|
-
"line-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
696
|
-
"line-gap-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
697
|
-
"line-offset"?: DataDrivenPropertyValueSpecification<number>;
|
|
698
|
-
"line-blur"?: DataDrivenPropertyValueSpecification<number>;
|
|
699
|
-
"line-dasharray"?: PropertyValueSpecification<Array<number>>;
|
|
700
|
-
"line-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
701
|
-
"line-gradient"?: ExpressionSpecification;
|
|
702
|
-
};
|
|
703
|
-
};
|
|
704
|
-
export declare type SymbolLayerSpecification = {
|
|
705
|
-
"id": string;
|
|
706
|
-
"type": "symbol";
|
|
707
|
-
"metadata"?: unknown;
|
|
708
|
-
"source": string;
|
|
709
|
-
"source-layer"?: string;
|
|
710
|
-
"minzoom"?: number;
|
|
711
|
-
"maxzoom"?: number;
|
|
712
|
-
"filter"?: FilterSpecification;
|
|
713
|
-
"layout"?: {
|
|
714
|
-
"symbol-placement"?: PropertyValueSpecification<"point" | "line" | "line-center">;
|
|
715
|
-
"symbol-spacing"?: PropertyValueSpecification<number>;
|
|
716
|
-
"symbol-avoid-edges"?: PropertyValueSpecification<boolean>;
|
|
717
|
-
"symbol-sort-key"?: DataDrivenPropertyValueSpecification<number>;
|
|
718
|
-
"symbol-z-order"?: PropertyValueSpecification<"auto" | "viewport-y" | "source">;
|
|
719
|
-
"icon-allow-overlap"?: PropertyValueSpecification<boolean>;
|
|
720
|
-
"icon-overlap"?: PropertyValueSpecification<"never" | "always" | "cooperative">;
|
|
721
|
-
"icon-ignore-placement"?: PropertyValueSpecification<boolean>;
|
|
722
|
-
"icon-optional"?: PropertyValueSpecification<boolean>;
|
|
723
|
-
"icon-rotation-alignment"?: PropertyValueSpecification<"map" | "viewport" | "auto">;
|
|
724
|
-
"icon-size"?: DataDrivenPropertyValueSpecification<number>;
|
|
725
|
-
"icon-text-fit"?: PropertyValueSpecification<"none" | "width" | "height" | "both">;
|
|
726
|
-
"icon-text-fit-padding"?: PropertyValueSpecification<[
|
|
727
|
-
number,
|
|
728
|
-
number,
|
|
729
|
-
number,
|
|
730
|
-
number
|
|
731
|
-
]>;
|
|
732
|
-
"icon-image"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
733
|
-
"icon-rotate"?: DataDrivenPropertyValueSpecification<number>;
|
|
734
|
-
"icon-padding"?: DataDrivenPropertyValueSpecification<PaddingSpecification>;
|
|
735
|
-
"icon-keep-upright"?: PropertyValueSpecification<boolean>;
|
|
736
|
-
"icon-offset"?: DataDrivenPropertyValueSpecification<[
|
|
737
|
-
number,
|
|
738
|
-
number
|
|
739
|
-
]>;
|
|
740
|
-
"icon-anchor"?: DataDrivenPropertyValueSpecification<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
|
|
741
|
-
"icon-pitch-alignment"?: PropertyValueSpecification<"map" | "viewport" | "auto">;
|
|
742
|
-
"text-pitch-alignment"?: PropertyValueSpecification<"map" | "viewport" | "auto">;
|
|
743
|
-
"text-rotation-alignment"?: PropertyValueSpecification<"map" | "viewport" | "viewport-glyph" | "auto">;
|
|
744
|
-
"text-field"?: DataDrivenPropertyValueSpecification<FormattedSpecification>;
|
|
745
|
-
"text-font"?: DataDrivenPropertyValueSpecification<Array<string>>;
|
|
746
|
-
"text-size"?: DataDrivenPropertyValueSpecification<number>;
|
|
747
|
-
"text-max-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
748
|
-
"text-line-height"?: PropertyValueSpecification<number>;
|
|
749
|
-
"text-letter-spacing"?: DataDrivenPropertyValueSpecification<number>;
|
|
750
|
-
"text-justify"?: DataDrivenPropertyValueSpecification<"auto" | "left" | "center" | "right">;
|
|
751
|
-
"text-radial-offset"?: DataDrivenPropertyValueSpecification<number>;
|
|
752
|
-
"text-variable-anchor"?: PropertyValueSpecification<Array<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">>;
|
|
753
|
-
"text-anchor"?: DataDrivenPropertyValueSpecification<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
|
|
754
|
-
"text-max-angle"?: PropertyValueSpecification<number>;
|
|
755
|
-
"text-writing-mode"?: PropertyValueSpecification<Array<"horizontal" | "vertical">>;
|
|
756
|
-
"text-rotate"?: DataDrivenPropertyValueSpecification<number>;
|
|
757
|
-
"text-padding"?: PropertyValueSpecification<number>;
|
|
758
|
-
"text-keep-upright"?: PropertyValueSpecification<boolean>;
|
|
759
|
-
"text-transform"?: DataDrivenPropertyValueSpecification<"none" | "uppercase" | "lowercase">;
|
|
760
|
-
"text-offset"?: DataDrivenPropertyValueSpecification<[
|
|
761
|
-
number,
|
|
762
|
-
number
|
|
763
|
-
]>;
|
|
764
|
-
"text-allow-overlap"?: PropertyValueSpecification<boolean>;
|
|
765
|
-
"text-overlap"?: PropertyValueSpecification<"never" | "always" | "cooperative">;
|
|
766
|
-
"text-ignore-placement"?: PropertyValueSpecification<boolean>;
|
|
767
|
-
"text-optional"?: PropertyValueSpecification<boolean>;
|
|
768
|
-
"visibility"?: "visible" | "none";
|
|
769
|
-
};
|
|
770
|
-
"paint"?: {
|
|
771
|
-
"icon-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
772
|
-
"icon-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
773
|
-
"icon-halo-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
774
|
-
"icon-halo-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
775
|
-
"icon-halo-blur"?: DataDrivenPropertyValueSpecification<number>;
|
|
776
|
-
"icon-translate"?: PropertyValueSpecification<[
|
|
777
|
-
number,
|
|
778
|
-
number
|
|
779
|
-
]>;
|
|
780
|
-
"icon-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
781
|
-
"text-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
782
|
-
"text-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
783
|
-
"text-halo-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
784
|
-
"text-halo-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
785
|
-
"text-halo-blur"?: DataDrivenPropertyValueSpecification<number>;
|
|
786
|
-
"text-translate"?: PropertyValueSpecification<[
|
|
787
|
-
number,
|
|
788
|
-
number
|
|
789
|
-
]>;
|
|
790
|
-
"text-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
791
|
-
};
|
|
792
|
-
};
|
|
793
|
-
export declare type CircleLayerSpecification = {
|
|
794
|
-
"id": string;
|
|
795
|
-
"type": "circle";
|
|
796
|
-
"metadata"?: unknown;
|
|
797
|
-
"source": string;
|
|
798
|
-
"source-layer"?: string;
|
|
799
|
-
"minzoom"?: number;
|
|
800
|
-
"maxzoom"?: number;
|
|
801
|
-
"filter"?: FilterSpecification;
|
|
802
|
-
"layout"?: {
|
|
803
|
-
"circle-sort-key"?: DataDrivenPropertyValueSpecification<number>;
|
|
804
|
-
"visibility"?: "visible" | "none";
|
|
805
|
-
};
|
|
806
|
-
"paint"?: {
|
|
807
|
-
"circle-radius"?: DataDrivenPropertyValueSpecification<number>;
|
|
808
|
-
"circle-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
809
|
-
"circle-blur"?: DataDrivenPropertyValueSpecification<number>;
|
|
810
|
-
"circle-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
811
|
-
"circle-translate"?: PropertyValueSpecification<[
|
|
812
|
-
number,
|
|
813
|
-
number
|
|
814
|
-
]>;
|
|
815
|
-
"circle-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
816
|
-
"circle-pitch-scale"?: PropertyValueSpecification<"map" | "viewport">;
|
|
817
|
-
"circle-pitch-alignment"?: PropertyValueSpecification<"map" | "viewport">;
|
|
818
|
-
"circle-stroke-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
819
|
-
"circle-stroke-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
820
|
-
"circle-stroke-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
export declare type HeatmapLayerSpecification = {
|
|
824
|
-
"id": string;
|
|
825
|
-
"type": "heatmap";
|
|
826
|
-
"metadata"?: unknown;
|
|
827
|
-
"source": string;
|
|
828
|
-
"source-layer"?: string;
|
|
829
|
-
"minzoom"?: number;
|
|
830
|
-
"maxzoom"?: number;
|
|
831
|
-
"filter"?: FilterSpecification;
|
|
832
|
-
"layout"?: {
|
|
833
|
-
"visibility"?: "visible" | "none";
|
|
834
|
-
};
|
|
835
|
-
"paint"?: {
|
|
836
|
-
"heatmap-radius"?: DataDrivenPropertyValueSpecification<number>;
|
|
837
|
-
"heatmap-weight"?: DataDrivenPropertyValueSpecification<number>;
|
|
838
|
-
"heatmap-intensity"?: PropertyValueSpecification<number>;
|
|
839
|
-
"heatmap-color"?: ExpressionSpecification;
|
|
840
|
-
"heatmap-opacity"?: PropertyValueSpecification<number>;
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
export declare type FillExtrusionLayerSpecification = {
|
|
844
|
-
"id": string;
|
|
845
|
-
"type": "fill-extrusion";
|
|
846
|
-
"metadata"?: unknown;
|
|
847
|
-
"source": string;
|
|
848
|
-
"source-layer"?: string;
|
|
849
|
-
"minzoom"?: number;
|
|
850
|
-
"maxzoom"?: number;
|
|
851
|
-
"filter"?: FilterSpecification;
|
|
852
|
-
"layout"?: {
|
|
853
|
-
"visibility"?: "visible" | "none";
|
|
854
|
-
};
|
|
855
|
-
"paint"?: {
|
|
856
|
-
"fill-extrusion-opacity"?: PropertyValueSpecification<number>;
|
|
857
|
-
"fill-extrusion-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
858
|
-
"fill-extrusion-translate"?: PropertyValueSpecification<[
|
|
859
|
-
number,
|
|
860
|
-
number
|
|
861
|
-
]>;
|
|
862
|
-
"fill-extrusion-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
863
|
-
"fill-extrusion-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
864
|
-
"fill-extrusion-height"?: DataDrivenPropertyValueSpecification<number>;
|
|
865
|
-
"fill-extrusion-base"?: DataDrivenPropertyValueSpecification<number>;
|
|
866
|
-
"fill-extrusion-vertical-gradient"?: PropertyValueSpecification<boolean>;
|
|
867
|
-
};
|
|
868
|
-
};
|
|
869
|
-
export declare type RasterLayerSpecification = {
|
|
870
|
-
"id": string;
|
|
871
|
-
"type": "raster";
|
|
872
|
-
"metadata"?: unknown;
|
|
873
|
-
"source": string;
|
|
874
|
-
"source-layer"?: string;
|
|
875
|
-
"minzoom"?: number;
|
|
876
|
-
"maxzoom"?: number;
|
|
877
|
-
"filter"?: FilterSpecification;
|
|
878
|
-
"layout"?: {
|
|
879
|
-
"visibility"?: "visible" | "none";
|
|
880
|
-
};
|
|
881
|
-
"paint"?: {
|
|
882
|
-
"raster-opacity"?: PropertyValueSpecification<number>;
|
|
883
|
-
"raster-hue-rotate"?: PropertyValueSpecification<number>;
|
|
884
|
-
"raster-brightness-min"?: PropertyValueSpecification<number>;
|
|
885
|
-
"raster-brightness-max"?: PropertyValueSpecification<number>;
|
|
886
|
-
"raster-saturation"?: PropertyValueSpecification<number>;
|
|
887
|
-
"raster-contrast"?: PropertyValueSpecification<number>;
|
|
888
|
-
"raster-resampling"?: PropertyValueSpecification<"linear" | "nearest">;
|
|
889
|
-
"raster-fade-duration"?: PropertyValueSpecification<number>;
|
|
890
|
-
};
|
|
891
|
-
};
|
|
892
|
-
export declare type HillshadeLayerSpecification = {
|
|
893
|
-
"id": string;
|
|
894
|
-
"type": "hillshade";
|
|
895
|
-
"metadata"?: unknown;
|
|
896
|
-
"source": string;
|
|
897
|
-
"source-layer"?: string;
|
|
898
|
-
"minzoom"?: number;
|
|
899
|
-
"maxzoom"?: number;
|
|
900
|
-
"filter"?: FilterSpecification;
|
|
901
|
-
"layout"?: {
|
|
902
|
-
"visibility"?: "visible" | "none";
|
|
903
|
-
};
|
|
904
|
-
"paint"?: {
|
|
905
|
-
"hillshade-illumination-direction"?: PropertyValueSpecification<number>;
|
|
906
|
-
"hillshade-illumination-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
907
|
-
"hillshade-exaggeration"?: PropertyValueSpecification<number>;
|
|
908
|
-
"hillshade-shadow-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
909
|
-
"hillshade-highlight-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
910
|
-
"hillshade-accent-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
export declare type BackgroundLayerSpecification = {
|
|
914
|
-
"id": string;
|
|
915
|
-
"type": "background";
|
|
916
|
-
"metadata"?: unknown;
|
|
917
|
-
"minzoom"?: number;
|
|
918
|
-
"maxzoom"?: number;
|
|
919
|
-
"layout"?: {
|
|
920
|
-
"visibility"?: "visible" | "none";
|
|
921
|
-
};
|
|
922
|
-
"paint"?: {
|
|
923
|
-
"background-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
924
|
-
"background-pattern"?: PropertyValueSpecification<ResolvedImageSpecification>;
|
|
925
|
-
"background-opacity"?: PropertyValueSpecification<number>;
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
export declare type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | RasterLayerSpecification | HillshadeLayerSpecification | BackgroundLayerSpecification;
|
|
929
|
-
/**
|
|
930
|
-
* Migrate a Mapbox GL Style to the latest version.
|
|
931
|
-
*
|
|
932
|
-
* @private
|
|
933
|
-
* @alias migrate
|
|
934
|
-
* @param {StyleSpecification} style a MapLibre GL Style
|
|
935
|
-
* @returns {StyleSpecification} a migrated style
|
|
936
|
-
* @example
|
|
937
|
-
* var fs = require('fs');
|
|
938
|
-
* var migrate = require('maplibre-gl-style-spec').migrate;
|
|
939
|
-
* var style = fs.readFileSync('./style.json', 'utf8');
|
|
940
|
-
* fs.writeFileSync('./style.json', JSON.stringify(migrate(style)));
|
|
941
|
-
*/
|
|
942
|
-
export function migrate(style: StyleSpecification): StyleSpecification;
|
|
943
|
-
export function composite(style: StyleSpecification): StyleSpecification;
|
|
944
|
-
/**
|
|
945
|
-
* Given an array of layers, some of which may contain `ref` properties
|
|
946
|
-
* whose value is the `id` of another property, return a new array where
|
|
947
|
-
* such layers have been augmented with the 'type', 'source', etc. properties
|
|
948
|
-
* from the parent layer, and the `ref` property has been removed.
|
|
949
|
-
*
|
|
950
|
-
* The input is not modified. The output may contain references to portions
|
|
951
|
-
* of the input.
|
|
952
|
-
*
|
|
953
|
-
* @private
|
|
954
|
-
* @param {Array<Layer>} layers
|
|
955
|
-
* @returns {Array<Layer>}
|
|
956
|
-
*/
|
|
957
|
-
export declare function derefLayers(layers: any): any;
|
|
958
|
-
declare function diffStyles(before: any, after: any): any[];
|
|
959
|
-
export declare class ValidationError {
|
|
960
|
-
message: string;
|
|
961
|
-
identifier: string;
|
|
962
|
-
line: number;
|
|
963
|
-
constructor(key: string, value: any & {
|
|
964
|
-
__line__: number;
|
|
965
|
-
}, message: string, identifier?: string | null);
|
|
966
|
-
}
|
|
967
|
-
export declare class ParsingError {
|
|
968
|
-
message: string;
|
|
969
|
-
error: Error;
|
|
970
|
-
line: number;
|
|
971
|
-
constructor(error: Error);
|
|
972
|
-
}
|
|
973
|
-
declare class ExpressionParsingError extends Error {
|
|
974
|
-
key: string;
|
|
975
|
-
message: string;
|
|
976
|
-
constructor(key: string, message: string);
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* An RGBA color value. Create instances from color strings using the static
|
|
980
|
-
* method `Color.parse`. The constructor accepts RGB channel values in the range
|
|
981
|
-
* `[0, 1]`, premultiplied by A.
|
|
982
|
-
*
|
|
983
|
-
* @param {number} r The red channel.
|
|
984
|
-
* @param {number} g The green channel.
|
|
985
|
-
* @param {number} b The blue channel.
|
|
986
|
-
* @param {number} a The alpha channel.
|
|
987
|
-
* @private
|
|
988
|
-
*/
|
|
989
|
-
export declare class Color {
|
|
990
|
-
r: number;
|
|
991
|
-
g: number;
|
|
992
|
-
b: number;
|
|
993
|
-
a: number;
|
|
994
|
-
constructor(r: number, g: number, b: number, a?: number);
|
|
995
|
-
static black: Color;
|
|
996
|
-
static white: Color;
|
|
997
|
-
static transparent: Color;
|
|
998
|
-
static red: Color;
|
|
999
|
-
/**
|
|
1000
|
-
* Parses valid CSS color strings and returns a `Color` instance.
|
|
1001
|
-
* @returns A `Color` instance, or `undefined` if the input is not a valid color string.
|
|
1002
|
-
*/
|
|
1003
|
-
static parse(input?: string | Color | null): Color | void;
|
|
1004
|
-
/**
|
|
1005
|
-
* Returns an RGBA string representing the color value.
|
|
1006
|
-
*
|
|
1007
|
-
* @returns An RGBA string.
|
|
1008
|
-
* @example
|
|
1009
|
-
* var purple = new Color.parse('purple');
|
|
1010
|
-
* purple.toString; // = "rgba(128,0,128,1)"
|
|
1011
|
-
* var translucentGreen = new Color.parse('rgba(26, 207, 26, .73)');
|
|
1012
|
-
* translucentGreen.toString(); // = "rgba(26,207,26,0.73)"
|
|
1013
|
-
*/
|
|
1014
|
-
toString(): string;
|
|
1015
|
-
toArray(): [
|
|
1016
|
-
number,
|
|
1017
|
-
number,
|
|
1018
|
-
number,
|
|
1019
|
-
number
|
|
1020
|
-
];
|
|
1021
|
-
}
|
|
1022
|
-
declare class Intl$Collator {
|
|
1023
|
-
constructor(locales?: string | string[], options?: CollatorOptions);
|
|
1024
|
-
compare(a: string, b: string): number;
|
|
1025
|
-
resolvedOptions(): any;
|
|
1026
|
-
}
|
|
1027
|
-
export declare type CollatorOptions = {
|
|
1028
|
-
localeMatcher?: "lookup" | "best fit";
|
|
1029
|
-
usage?: "sort" | "search";
|
|
1030
|
-
sensitivity?: "base" | "accent" | "case" | "variant";
|
|
1031
|
-
ignorePunctuation?: boolean;
|
|
1032
|
-
numeric?: boolean;
|
|
1033
|
-
caseFirst?: "upper" | "lower" | "false";
|
|
1034
|
-
};
|
|
1035
|
-
declare class Collator {
|
|
1036
|
-
locale: string | null;
|
|
1037
|
-
sensitivity: "base" | "accent" | "case" | "variant";
|
|
1038
|
-
collator: Intl$Collator;
|
|
1039
|
-
constructor(caseSensitive: boolean, diacriticSensitive: boolean, locale: string | null);
|
|
1040
|
-
compare(lhs: string, rhs: string): number;
|
|
1041
|
-
resolvedLocale(): string;
|
|
1042
|
-
}
|
|
1043
|
-
export declare type ResolvedImageOptions = {
|
|
1044
|
-
name: string;
|
|
1045
|
-
available: boolean;
|
|
1046
|
-
};
|
|
1047
|
-
declare class ResolvedImage {
|
|
1048
|
-
name: string;
|
|
1049
|
-
available: boolean;
|
|
1050
|
-
constructor(options: ResolvedImageOptions);
|
|
1051
|
-
toString(): string;
|
|
1052
|
-
static fromString(name: string): ResolvedImage | null;
|
|
1053
|
-
}
|
|
1054
|
-
declare class FormattedSection {
|
|
1055
|
-
text: string;
|
|
1056
|
-
image: ResolvedImage | null;
|
|
1057
|
-
scale: number | null;
|
|
1058
|
-
fontStack: string | null;
|
|
1059
|
-
textColor: Color | null;
|
|
1060
|
-
constructor(text: string, image: ResolvedImage | null, scale: number | null, fontStack: string | null, textColor: Color | null);
|
|
1061
|
-
}
|
|
1062
|
-
declare class Formatted {
|
|
1063
|
-
sections: Array<FormattedSection>;
|
|
1064
|
-
constructor(sections: Array<FormattedSection>);
|
|
1065
|
-
static fromString(unformatted: string): Formatted;
|
|
1066
|
-
isEmpty(): boolean;
|
|
1067
|
-
static factory(text: Formatted | string): Formatted;
|
|
1068
|
-
toString(): string;
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* A set of four numbers representing padding around a box. Create instances from
|
|
1072
|
-
* bare arrays or numeric values using the static method `Padding.parse`.
|
|
1073
|
-
* @private
|
|
1074
|
-
*/
|
|
1075
|
-
export declare class Padding {
|
|
1076
|
-
/** Padding values are in CSS order: top, right, bottom, left */
|
|
1077
|
-
values: [
|
|
1078
|
-
number,
|
|
1079
|
-
number,
|
|
1080
|
-
number,
|
|
1081
|
-
number
|
|
1082
|
-
];
|
|
1083
|
-
constructor(values: [
|
|
1084
|
-
number,
|
|
1085
|
-
number,
|
|
1086
|
-
number,
|
|
1087
|
-
number
|
|
1088
|
-
]);
|
|
1089
|
-
/**
|
|
1090
|
-
* Numeric padding values
|
|
1091
|
-
* @returns A `Padding` instance, or `undefined` if the input is not a valid padding value.
|
|
1092
|
-
*/
|
|
1093
|
-
static parse(input?: number | number[] | Padding | null): Padding | void;
|
|
1094
|
-
toString(): string;
|
|
1095
|
-
}
|
|
1096
|
-
export declare type NullTypeT = {
|
|
1097
|
-
kind: "null";
|
|
1098
|
-
};
|
|
1099
|
-
export declare type NumberTypeT = {
|
|
1100
|
-
kind: "number";
|
|
1101
|
-
};
|
|
1102
|
-
export declare type StringTypeT = {
|
|
1103
|
-
kind: "string";
|
|
1104
|
-
};
|
|
1105
|
-
export declare type BooleanTypeT = {
|
|
1106
|
-
kind: "boolean";
|
|
1107
|
-
};
|
|
1108
|
-
export declare type ColorTypeT = {
|
|
1109
|
-
kind: "color";
|
|
1110
|
-
};
|
|
1111
|
-
export declare type ObjectTypeT = {
|
|
1112
|
-
kind: "object";
|
|
1113
|
-
};
|
|
1114
|
-
export declare type ValueTypeT = {
|
|
1115
|
-
kind: "value";
|
|
1116
|
-
};
|
|
1117
|
-
export declare type ErrorTypeT = {
|
|
1118
|
-
kind: "error";
|
|
1119
|
-
};
|
|
1120
|
-
export declare type CollatorTypeT = {
|
|
1121
|
-
kind: "collator";
|
|
1122
|
-
};
|
|
1123
|
-
export declare type FormattedTypeT = {
|
|
1124
|
-
kind: "formatted";
|
|
1125
|
-
};
|
|
1126
|
-
export declare type PaddingTypeT = {
|
|
1127
|
-
kind: "padding";
|
|
1128
|
-
};
|
|
1129
|
-
export declare type ResolvedImageTypeT = {
|
|
1130
|
-
kind: "resolvedImage";
|
|
1131
|
-
};
|
|
1132
|
-
export declare type EvaluationKind = "constant" | "source" | "camera" | "composite";
|
|
1133
|
-
export declare type Type = NullTypeT | NumberTypeT | StringTypeT | BooleanTypeT | ColorTypeT | ObjectTypeT | ValueTypeT | // eslint-disable-line no-use-before-define
|
|
1134
|
-
ArrayType | ErrorTypeT | CollatorTypeT | FormattedTypeT | PaddingTypeT | ResolvedImageTypeT;
|
|
1135
|
-
export declare type ArrayType = {
|
|
1136
|
-
kind: "array";
|
|
1137
|
-
itemType: Type;
|
|
1138
|
-
N: number;
|
|
1139
|
-
};
|
|
1140
|
-
export declare type Value = null | string | boolean | number | Color | Collator | Formatted | Padding | ResolvedImage | ReadonlyArray<Value> | {
|
|
1141
|
-
readonly [x: string]: Value;
|
|
1142
|
-
};
|
|
1143
|
-
declare class LngLatBounds {
|
|
1144
|
-
_ne: LngLat;
|
|
1145
|
-
_sw: LngLat;
|
|
1146
|
-
constructor(sw?: any, ne?: any);
|
|
1147
|
-
/**
|
|
1148
|
-
* Set the northeast corner of the bounding box
|
|
1149
|
-
*
|
|
1150
|
-
* @param {LngLatLike} ne a {@link LngLatLike} object describing the northeast corner of the bounding box.
|
|
1151
|
-
* @returns {LngLatBounds} `this`
|
|
1152
|
-
*/
|
|
1153
|
-
setNorthEast(ne: LngLatLike): this;
|
|
1154
|
-
/**
|
|
1155
|
-
* Set the southwest corner of the bounding box
|
|
1156
|
-
*
|
|
1157
|
-
* @param {LngLatLike} sw a {@link LngLatLike} object describing the southwest corner of the bounding box.
|
|
1158
|
-
* @returns {LngLatBounds} `this`
|
|
1159
|
-
*/
|
|
1160
|
-
setSouthWest(sw: LngLatLike): this;
|
|
1161
|
-
/**
|
|
1162
|
-
* Extend the bounds to include a given LngLatLike or LngLatBoundsLike.
|
|
1163
|
-
*
|
|
1164
|
-
* @param {LngLatLike|LngLatBoundsLike} obj object to extend to
|
|
1165
|
-
* @returns {LngLatBounds} `this`
|
|
1166
|
-
*/
|
|
1167
|
-
extend(obj: LngLatLike | LngLatBoundsLike): any;
|
|
1168
|
-
/**
|
|
1169
|
-
* Returns the geographical coordinate equidistant from the bounding box's corners.
|
|
1170
|
-
*
|
|
1171
|
-
* @returns {LngLat} The bounding box's center.
|
|
1172
|
-
* @example
|
|
1173
|
-
* var llb = new maplibregl.LngLatBounds([-73.9876, 40.7661], [-73.9397, 40.8002]);
|
|
1174
|
-
* llb.getCenter(); // = LngLat {lng: -73.96365, lat: 40.78315}
|
|
1175
|
-
*/
|
|
1176
|
-
getCenter(): LngLat;
|
|
1177
|
-
/**
|
|
1178
|
-
* Returns the southwest corner of the bounding box.
|
|
1179
|
-
*
|
|
1180
|
-
* @returns {LngLat} The southwest corner of the bounding box.
|
|
1181
|
-
*/
|
|
1182
|
-
getSouthWest(): LngLat;
|
|
1183
|
-
/**
|
|
1184
|
-
* Returns the northeast corner of the bounding box.
|
|
1185
|
-
*
|
|
1186
|
-
* @returns {LngLat} The northeast corner of the bounding box.
|
|
1187
|
-
*/
|
|
1188
|
-
getNorthEast(): LngLat;
|
|
1189
|
-
/**
|
|
1190
|
-
* Returns the northwest corner of the bounding box.
|
|
1191
|
-
*
|
|
1192
|
-
* @returns {LngLat} The northwest corner of the bounding box.
|
|
1193
|
-
*/
|
|
1194
|
-
getNorthWest(): LngLat;
|
|
1195
|
-
/**
|
|
1196
|
-
* Returns the southeast corner of the bounding box.
|
|
1197
|
-
*
|
|
1198
|
-
* @returns {LngLat} The southeast corner of the bounding box.
|
|
1199
|
-
*/
|
|
1200
|
-
getSouthEast(): LngLat;
|
|
1201
|
-
/**
|
|
1202
|
-
* Returns the west edge of the bounding box.
|
|
1203
|
-
*
|
|
1204
|
-
* @returns {number} The west edge of the bounding box.
|
|
1205
|
-
*/
|
|
1206
|
-
getWest(): number;
|
|
1207
|
-
/**
|
|
1208
|
-
* Returns the south edge of the bounding box.
|
|
1209
|
-
*
|
|
1210
|
-
* @returns {number} The south edge of the bounding box.
|
|
1211
|
-
*/
|
|
1212
|
-
getSouth(): number;
|
|
1213
|
-
/**
|
|
1214
|
-
* Returns the east edge of the bounding box.
|
|
1215
|
-
*
|
|
1216
|
-
* @returns {number} The east edge of the bounding box.
|
|
1217
|
-
*/
|
|
1218
|
-
getEast(): number;
|
|
1219
|
-
/**
|
|
1220
|
-
* Returns the north edge of the bounding box.
|
|
1221
|
-
*
|
|
1222
|
-
* @returns {number} The north edge of the bounding box.
|
|
1223
|
-
*/
|
|
1224
|
-
getNorth(): number;
|
|
1225
|
-
/**
|
|
1226
|
-
* Returns the bounding box represented as an array.
|
|
1227
|
-
*
|
|
1228
|
-
* @returns {Array<Array<number>>} The bounding box represented as an array, consisting of the
|
|
1229
|
-
* southwest and northeast coordinates of the bounding represented as arrays of numbers.
|
|
1230
|
-
* @example
|
|
1231
|
-
* var llb = new maplibregl.LngLatBounds([-73.9876, 40.7661], [-73.9397, 40.8002]);
|
|
1232
|
-
* llb.toArray(); // = [[-73.9876, 40.7661], [-73.9397, 40.8002]]
|
|
1233
|
-
*/
|
|
1234
|
-
toArray(): number[][];
|
|
1235
|
-
/**
|
|
1236
|
-
* Return the bounding box represented as a string.
|
|
1237
|
-
*
|
|
1238
|
-
* @returns {string} The bounding box represents as a string of the format
|
|
1239
|
-
* `'LngLatBounds(LngLat(lng, lat), LngLat(lng, lat))'`.
|
|
1240
|
-
* @example
|
|
1241
|
-
* var llb = new maplibregl.LngLatBounds([-73.9876, 40.7661], [-73.9397, 40.8002]);
|
|
1242
|
-
* llb.toString(); // = "LngLatBounds(LngLat(-73.9876, 40.7661), LngLat(-73.9397, 40.8002))"
|
|
1243
|
-
*/
|
|
1244
|
-
toString(): string;
|
|
1245
|
-
/**
|
|
1246
|
-
* Check if the bounding box is an empty/`null`-type box.
|
|
1247
|
-
*
|
|
1248
|
-
* @returns {boolean} True if bounds have been defined, otherwise false.
|
|
1249
|
-
*/
|
|
1250
|
-
isEmpty(): boolean;
|
|
1251
|
-
/**
|
|
1252
|
-
* Check if the point is within the bounding box.
|
|
1253
|
-
*
|
|
1254
|
-
* @param {LngLatLike} lnglat geographic point to check against.
|
|
1255
|
-
* @returns {boolean} True if the point is within the bounding box.
|
|
1256
|
-
* @example
|
|
1257
|
-
* var llb = new maplibregl.LngLatBounds(
|
|
1258
|
-
* new maplibregl.LngLat(-73.9876, 40.7661),
|
|
1259
|
-
* new maplibregl.LngLat(-73.9397, 40.8002)
|
|
1260
|
-
* );
|
|
1261
|
-
*
|
|
1262
|
-
* var ll = new maplibregl.LngLat(-73.9567, 40.7789);
|
|
1263
|
-
*
|
|
1264
|
-
* console.log(llb.contains(ll)); // = true
|
|
1265
|
-
*/
|
|
1266
|
-
contains(lnglat: LngLatLike): boolean;
|
|
1267
|
-
/**
|
|
1268
|
-
* Converts an array to a `LngLatBounds` object.
|
|
1269
|
-
*
|
|
1270
|
-
* If a `LngLatBounds` object is passed in, the function returns it unchanged.
|
|
1271
|
-
*
|
|
1272
|
-
* Internally, the function calls `LngLat#convert` to convert arrays to `LngLat` values.
|
|
1273
|
-
*
|
|
1274
|
-
* @param {LngLatBoundsLike} input An array of two coordinates to convert, or a `LngLatBounds` object to return.
|
|
1275
|
-
* @returns {LngLatBounds} A new `LngLatBounds` object, if a conversion occurred, or the original `LngLatBounds` object.
|
|
1276
|
-
* @example
|
|
1277
|
-
* var arr = [[-73.9876, 40.7661], [-73.9397, 40.8002]];
|
|
1278
|
-
* var llb = maplibregl.LngLatBounds.convert(arr);
|
|
1279
|
-
* llb; // = LngLatBounds {_sw: LngLat {lng: -73.9876, lat: 40.7661}, _ne: LngLat {lng: -73.9397, lat: 40.8002}}
|
|
1280
|
-
*/
|
|
1281
|
-
static convert(input: LngLatBoundsLike | null): LngLatBounds;
|
|
1282
|
-
}
|
|
1283
|
-
/**
|
|
1284
|
-
* A {@link LngLatBounds} object, an array of {@link LngLatLike} objects in [sw, ne] order,
|
|
1285
|
-
* or an array of numbers in [west, south, east, north] order.
|
|
1286
|
-
*
|
|
1287
|
-
* @typedef {LngLatBounds | [LngLatLike, LngLatLike] | [number, number, number, number]} LngLatBoundsLike
|
|
1288
|
-
* @example
|
|
1289
|
-
* var v1 = new maplibregl.LngLatBounds(
|
|
1290
|
-
* new maplibregl.LngLat(-73.9876, 40.7661),
|
|
1291
|
-
* new maplibregl.LngLat(-73.9397, 40.8002)
|
|
1292
|
-
* );
|
|
1293
|
-
* var v2 = new maplibregl.LngLatBounds([-73.9876, 40.7661], [-73.9397, 40.8002])
|
|
1294
|
-
* var v3 = [[-73.9876, 40.7661], [-73.9397, 40.8002]];
|
|
1295
|
-
*/
|
|
1296
|
-
export declare type LngLatBoundsLike = LngLatBounds | [
|
|
1297
|
-
LngLatLike,
|
|
1298
|
-
LngLatLike
|
|
1299
|
-
] | [
|
|
1300
|
-
number,
|
|
1301
|
-
number,
|
|
1302
|
-
number,
|
|
1303
|
-
number
|
|
1304
|
-
];
|
|
1305
|
-
declare class LngLat {
|
|
1306
|
-
lng: number;
|
|
1307
|
-
lat: number;
|
|
1308
|
-
constructor(lng: number, lat: number);
|
|
1309
|
-
/**
|
|
1310
|
-
* Returns a new `LngLat` object whose longitude is wrapped to the range (-180, 180).
|
|
1311
|
-
*
|
|
1312
|
-
* @returns {LngLat} The wrapped `LngLat` object.
|
|
1313
|
-
* @example
|
|
1314
|
-
* var ll = new maplibregl.LngLat(286.0251, 40.7736);
|
|
1315
|
-
* var wrapped = ll.wrap();
|
|
1316
|
-
* wrapped.lng; // = -73.9749
|
|
1317
|
-
*/
|
|
1318
|
-
wrap(): LngLat;
|
|
1319
|
-
/**
|
|
1320
|
-
* Returns the coordinates represented as an array of two numbers.
|
|
1321
|
-
*
|
|
1322
|
-
* @returns {Array<number>} The coordinates represeted as an array of longitude and latitude.
|
|
1323
|
-
* @example
|
|
1324
|
-
* var ll = new maplibregl.LngLat(-73.9749, 40.7736);
|
|
1325
|
-
* ll.toArray(); // = [-73.9749, 40.7736]
|
|
1326
|
-
*/
|
|
1327
|
-
toArray(): number[];
|
|
1328
|
-
/**
|
|
1329
|
-
* Returns the coordinates represent as a string.
|
|
1330
|
-
*
|
|
1331
|
-
* @returns {string} The coordinates represented as a string of the format `'LngLat(lng, lat)'`.
|
|
1332
|
-
* @example
|
|
1333
|
-
* var ll = new maplibregl.LngLat(-73.9749, 40.7736);
|
|
1334
|
-
* ll.toString(); // = "LngLat(-73.9749, 40.7736)"
|
|
1335
|
-
*/
|
|
1336
|
-
toString(): string;
|
|
1337
|
-
/**
|
|
1338
|
-
* Returns the approximate distance between a pair of coordinates in meters
|
|
1339
|
-
* Uses the Haversine Formula (from R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159)
|
|
1340
|
-
*
|
|
1341
|
-
* @param {LngLat} lngLat coordinates to compute the distance to
|
|
1342
|
-
* @returns {number} Distance in meters between the two coordinates.
|
|
1343
|
-
* @example
|
|
1344
|
-
* var new_york = new maplibregl.LngLat(-74.0060, 40.7128);
|
|
1345
|
-
* var los_angeles = new maplibregl.LngLat(-118.2437, 34.0522);
|
|
1346
|
-
* new_york.distanceTo(los_angeles); // = 3935751.690893987, "true distance" using a non-spherical approximation is ~3966km
|
|
1347
|
-
*/
|
|
1348
|
-
distanceTo(lngLat: LngLat): number;
|
|
1349
|
-
/**
|
|
1350
|
-
* Returns a `LngLatBounds` from the coordinates extended by a given `radius`. The returned `LngLatBounds` completely contains the `radius`.
|
|
1351
|
-
*
|
|
1352
|
-
* @param {number} [radius=0] Distance in meters from the coordinates to extend the bounds.
|
|
1353
|
-
* @returns {LngLatBounds} A new `LngLatBounds` object representing the coordinates extended by the `radius`.
|
|
1354
|
-
* @example
|
|
1355
|
-
* var ll = new maplibregl.LngLat(-73.9749, 40.7736);
|
|
1356
|
-
* ll.toBounds(100).toArray(); // = [[-73.97501862141328, 40.77351016847229], [-73.97478137858673, 40.77368983152771]]
|
|
1357
|
-
*/
|
|
1358
|
-
toBounds(radius?: number): LngLatBounds;
|
|
1359
|
-
/**
|
|
1360
|
-
* Converts an array of two numbers or an object with `lng` and `lat` or `lon` and `lat` properties
|
|
1361
|
-
* to a `LngLat` object.
|
|
1362
|
-
*
|
|
1363
|
-
* If a `LngLat` object is passed in, the function returns it unchanged.
|
|
1364
|
-
*
|
|
1365
|
-
* @param {LngLatLike} input An array of two numbers or object to convert, or a `LngLat` object to return.
|
|
1366
|
-
* @returns {LngLat} A new `LngLat` object, if a conversion occurred, or the original `LngLat` object.
|
|
1367
|
-
* @example
|
|
1368
|
-
* var arr = [-73.9749, 40.7736];
|
|
1369
|
-
* var ll = maplibregl.LngLat.convert(arr);
|
|
1370
|
-
* ll; // = LngLat {lng: -73.9749, lat: 40.7736}
|
|
1371
|
-
*/
|
|
1372
|
-
static convert(input: LngLatLike): LngLat;
|
|
1373
|
-
}
|
|
1374
|
-
/**
|
|
1375
|
-
* A {@link LngLat} object, an array of two numbers representing longitude and latitude,
|
|
1376
|
-
* or an object with `lng` and `lat` or `lon` and `lat` properties.
|
|
1377
|
-
*
|
|
1378
|
-
* @typedef {LngLat | {lng: number, lat: number} | {lon: number, lat: number} | [number, number]} LngLatLike
|
|
1379
|
-
* @example
|
|
1380
|
-
* var v1 = new maplibregl.LngLat(-122.420679, 37.772537);
|
|
1381
|
-
* var v2 = [-122.420679, 37.772537];
|
|
1382
|
-
* var v3 = {lon: -122.420679, lat: 37.772537};
|
|
1383
|
-
*/
|
|
1384
|
-
export declare type LngLatLike = LngLat | {
|
|
1385
|
-
lng: number;
|
|
1386
|
-
lat: number;
|
|
1387
|
-
} | {
|
|
1388
|
-
lon: number;
|
|
1389
|
-
lat: number;
|
|
1390
|
-
} | [
|
|
1391
|
-
number,
|
|
1392
|
-
number
|
|
1393
|
-
];
|
|
1394
|
-
declare class MercatorCoordinate {
|
|
1395
|
-
x: number;
|
|
1396
|
-
y: number;
|
|
1397
|
-
z: number;
|
|
1398
|
-
constructor(x: number, y: number, z?: number);
|
|
1399
|
-
/**
|
|
1400
|
-
* Project a `LngLat` to a `MercatorCoordinate`.
|
|
1401
|
-
*
|
|
1402
|
-
* @param {LngLatLike} lngLatLike The location to project.
|
|
1403
|
-
* @param {number} altitude The altitude in meters of the position.
|
|
1404
|
-
* @returns {MercatorCoordinate} The projected mercator coordinate.
|
|
1405
|
-
* @example
|
|
1406
|
-
* var coord = maplibregl.MercatorCoordinate.fromLngLat({ lng: 0, lat: 0}, 0);
|
|
1407
|
-
* coord; // MercatorCoordinate(0.5, 0.5, 0)
|
|
1408
|
-
*/
|
|
1409
|
-
static fromLngLat(lngLatLike: LngLatLike, altitude?: number): MercatorCoordinate;
|
|
1410
|
-
/**
|
|
1411
|
-
* Returns the `LngLat` for the coordinate.
|
|
1412
|
-
*
|
|
1413
|
-
* @returns {LngLat} The `LngLat` object.
|
|
1414
|
-
* @example
|
|
1415
|
-
* var coord = new maplibregl.MercatorCoordinate(0.5, 0.5, 0);
|
|
1416
|
-
* var lngLat = coord.toLngLat(); // LngLat(0, 0)
|
|
1417
|
-
*/
|
|
1418
|
-
toLngLat(): LngLat;
|
|
1419
|
-
/**
|
|
1420
|
-
* Returns the altitude in meters of the coordinate.
|
|
1421
|
-
*
|
|
1422
|
-
* @returns {number} The altitude in meters.
|
|
1423
|
-
* @example
|
|
1424
|
-
* var coord = new maplibregl.MercatorCoordinate(0, 0, 0.02);
|
|
1425
|
-
* coord.toAltitude(); // 6914.281956295339
|
|
1426
|
-
*/
|
|
1427
|
-
toAltitude(): number;
|
|
1428
|
-
/**
|
|
1429
|
-
* Returns the distance of 1 meter in `MercatorCoordinate` units at this latitude.
|
|
1430
|
-
*
|
|
1431
|
-
* For coordinates in real world units using meters, this naturally provides the scale
|
|
1432
|
-
* to transform into `MercatorCoordinate`s.
|
|
1433
|
-
*
|
|
1434
|
-
* @returns {number} Distance of 1 meter in `MercatorCoordinate` units.
|
|
1435
|
-
*/
|
|
1436
|
-
meterInMercatorCoordinateUnits(): number;
|
|
1437
|
-
}
|
|
1438
|
-
declare class CanonicalTileID {
|
|
1439
|
-
z: number;
|
|
1440
|
-
x: number;
|
|
1441
|
-
y: number;
|
|
1442
|
-
key: string;
|
|
1443
|
-
constructor(z: number, x: number, y: number);
|
|
1444
|
-
equals(id: CanonicalTileID): boolean;
|
|
1445
|
-
url(urls: Array<string>, pixelRatio: number, scheme?: string | null): string;
|
|
1446
|
-
isChildOf(parent: CanonicalTileID): boolean;
|
|
1447
|
-
getTilePoint(coord: MercatorCoordinate): Point;
|
|
1448
|
-
toString(): string;
|
|
1449
|
-
}
|
|
1450
|
-
declare class EvaluationContext {
|
|
1451
|
-
globals: GlobalProperties;
|
|
1452
|
-
feature: Feature;
|
|
1453
|
-
featureState: FeatureState;
|
|
1454
|
-
formattedSection: FormattedSection;
|
|
1455
|
-
availableImages: Array<string>;
|
|
1456
|
-
canonical: CanonicalTileID;
|
|
1457
|
-
_parseColorCache: {
|
|
1458
|
-
[_: string]: Color;
|
|
1459
|
-
};
|
|
1460
|
-
constructor();
|
|
1461
|
-
id(): any;
|
|
1462
|
-
geometryType(): string;
|
|
1463
|
-
geometry(): import("@mapbox/point-geometry")[][];
|
|
1464
|
-
canonicalID(): CanonicalTileID;
|
|
1465
|
-
properties(): {
|
|
1466
|
-
[_: string]: any;
|
|
1467
|
-
};
|
|
1468
|
-
parseColor(input: string): Color;
|
|
1469
|
-
}
|
|
1470
|
-
/**
|
|
1471
|
-
* Expression
|
|
1472
|
-
*/
|
|
1473
|
-
export interface Expression {
|
|
1474
|
-
readonly type: Type;
|
|
1475
|
-
evaluate(ctx: EvaluationContext): any;
|
|
1476
|
-
eachChild(fn: (a: Expression) => void): void;
|
|
1477
|
-
/**
|
|
1478
|
-
* Statically analyze the expression, attempting to enumerate possible outputs. Returns
|
|
1479
|
-
* false if the complete set of outputs is statically undecidable, otherwise true.
|
|
1480
|
-
*/
|
|
1481
|
-
outputDefined(): boolean;
|
|
1482
|
-
}
|
|
1483
|
-
/**
|
|
1484
|
-
* A type used for returning and propagating errors. The first element of the union
|
|
1485
|
-
* represents success and contains a value, and the second represents an error and
|
|
1486
|
-
* contains an error value.
|
|
1487
|
-
* @private
|
|
1488
|
-
*/
|
|
1489
|
-
export declare type Result<T, E> = {
|
|
1490
|
-
result: "success";
|
|
1491
|
-
value: T;
|
|
1492
|
-
} | {
|
|
1493
|
-
result: "error";
|
|
1494
|
-
value: E;
|
|
1495
|
-
};
|
|
1496
|
-
export declare type InterpolationType = {
|
|
1497
|
-
name: "linear";
|
|
1498
|
-
} | {
|
|
1499
|
-
name: "exponential";
|
|
1500
|
-
base: number;
|
|
1501
|
-
} | {
|
|
1502
|
-
name: "cubic-bezier";
|
|
1503
|
-
controlPoints: [
|
|
1504
|
-
number,
|
|
1505
|
-
number,
|
|
1506
|
-
number,
|
|
1507
|
-
number
|
|
1508
|
-
];
|
|
1509
|
-
};
|
|
1510
|
-
export declare type Feature = {
|
|
1511
|
-
readonly type: 1 | 2 | 3 | "Unknown" | "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon";
|
|
1512
|
-
readonly id?: any;
|
|
1513
|
-
readonly properties: {
|
|
1514
|
-
[_: string]: any;
|
|
1515
|
-
};
|
|
1516
|
-
readonly patterns?: {
|
|
1517
|
-
[_: string]: {
|
|
1518
|
-
"min": string;
|
|
1519
|
-
"mid": string;
|
|
1520
|
-
"max": string;
|
|
1521
|
-
};
|
|
1522
|
-
};
|
|
1523
|
-
readonly geometry?: Array<Array<Point>>;
|
|
1524
|
-
};
|
|
1525
|
-
export declare type FeatureState = {
|
|
1526
|
-
[_: string]: any;
|
|
1527
|
-
};
|
|
1528
|
-
export declare type GlobalProperties = Readonly<{
|
|
1529
|
-
zoom: number;
|
|
1530
|
-
heatmapDensity?: number;
|
|
1531
|
-
lineProgress?: number;
|
|
1532
|
-
isSupportedScript?: (_: string) => boolean;
|
|
1533
|
-
accumulated?: Value;
|
|
1534
|
-
}>;
|
|
1535
|
-
declare class StyleExpression {
|
|
1536
|
-
expression: Expression;
|
|
1537
|
-
_evaluator: EvaluationContext;
|
|
1538
|
-
_defaultValue: Value;
|
|
1539
|
-
_warningHistory: {
|
|
1540
|
-
[key: string]: boolean;
|
|
1541
|
-
};
|
|
1542
|
-
_enumValues: {
|
|
1543
|
-
[_: string]: any;
|
|
1544
|
-
};
|
|
1545
|
-
constructor(expression: Expression, propertySpec?: StylePropertySpecification | null);
|
|
1546
|
-
evaluateWithoutErrorHandling(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any;
|
|
1547
|
-
evaluate(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any;
|
|
1548
|
-
}
|
|
1549
|
-
declare function isExpression(expression: unknown): boolean;
|
|
1550
|
-
declare function createExpression(expression: unknown, propertySpec?: StylePropertySpecification | null): Result<StyleExpression, Array<ExpressionParsingError>>;
|
|
1551
|
-
declare class ZoomConstantExpression<Kind extends EvaluationKind> {
|
|
1552
|
-
kind: Kind;
|
|
1553
|
-
isStateDependent: boolean;
|
|
1554
|
-
_styleExpression: StyleExpression;
|
|
1555
|
-
constructor(kind: Kind, expression: StyleExpression);
|
|
1556
|
-
evaluateWithoutErrorHandling(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any;
|
|
1557
|
-
evaluate(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any;
|
|
1558
|
-
}
|
|
1559
|
-
declare class ZoomDependentExpression<Kind extends EvaluationKind> {
|
|
1560
|
-
kind: Kind;
|
|
1561
|
-
zoomStops: Array<number>;
|
|
1562
|
-
isStateDependent: boolean;
|
|
1563
|
-
_styleExpression: StyleExpression;
|
|
1564
|
-
interpolationType: InterpolationType;
|
|
1565
|
-
constructor(kind: Kind, expression: StyleExpression, zoomStops: Array<number>, interpolationType?: InterpolationType);
|
|
1566
|
-
evaluateWithoutErrorHandling(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any;
|
|
1567
|
-
evaluate(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any;
|
|
1568
|
-
interpolationFactor(input: number, lower: number, upper: number): number;
|
|
1569
|
-
}
|
|
1570
|
-
export declare type ConstantExpression = {
|
|
1571
|
-
kind: "constant";
|
|
1572
|
-
readonly evaluate: (globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>) => any;
|
|
1573
|
-
};
|
|
1574
|
-
export declare type SourceExpression = {
|
|
1575
|
-
kind: "source";
|
|
1576
|
-
isStateDependent: boolean;
|
|
1577
|
-
readonly evaluate: (globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection) => any;
|
|
1578
|
-
};
|
|
1579
|
-
export declare type CameraExpression = {
|
|
1580
|
-
kind: "camera";
|
|
1581
|
-
readonly evaluate: (globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>) => any;
|
|
1582
|
-
readonly interpolationFactor: (input: number, lower: number, upper: number) => number;
|
|
1583
|
-
zoomStops: Array<number>;
|
|
1584
|
-
interpolationType: InterpolationType;
|
|
1585
|
-
};
|
|
1586
|
-
export declare type CompositeExpression = {
|
|
1587
|
-
kind: "composite";
|
|
1588
|
-
isStateDependent: boolean;
|
|
1589
|
-
readonly evaluate: (globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection) => any;
|
|
1590
|
-
readonly interpolationFactor: (input: number, lower: number, upper: number) => number;
|
|
1591
|
-
zoomStops: Array<number>;
|
|
1592
|
-
interpolationType: InterpolationType;
|
|
1593
|
-
};
|
|
1594
|
-
export declare type StylePropertyExpression = ConstantExpression | SourceExpression | CameraExpression | CompositeExpression;
|
|
1595
|
-
declare function createPropertyExpression(expressionInput: unknown, propertySpec: StylePropertySpecification): Result<StylePropertyExpression, Array<ExpressionParsingError>>;
|
|
1596
|
-
declare class StylePropertyFunction<T> {
|
|
1597
|
-
_parameters: PropertyValueSpecification<T>;
|
|
1598
|
-
_specification: StylePropertySpecification;
|
|
1599
|
-
kind: EvaluationKind;
|
|
1600
|
-
evaluate: (globals: GlobalProperties, feature?: Feature) => any;
|
|
1601
|
-
interpolationFactor: ((input: number, lower: number, upper: number) => number);
|
|
1602
|
-
zoomStops: Array<number>;
|
|
1603
|
-
constructor(parameters: PropertyValueSpecification<T>, specification: StylePropertySpecification);
|
|
1604
|
-
static deserialize<T>(serialized: {
|
|
1605
|
-
_parameters: PropertyValueSpecification<T>;
|
|
1606
|
-
_specification: StylePropertySpecification;
|
|
1607
|
-
}): StylePropertyFunction<T>;
|
|
1608
|
-
static serialize<T>(input: StylePropertyFunction<T>): {
|
|
1609
|
-
_parameters: PropertyValueSpecification<T>;
|
|
1610
|
-
_specification: StylePropertySpecification;
|
|
1611
|
-
};
|
|
1612
|
-
}
|
|
1613
|
-
declare function normalizePropertyExpression<T>(value: PropertyValueSpecification<T>, specification: StylePropertySpecification): StylePropertyExpression;
|
|
1614
|
-
export declare type FilterExpression = (globalProperties: GlobalProperties, feature: Feature, canonical?: CanonicalTileID) => boolean;
|
|
1615
|
-
export declare type FeatureFilter = {
|
|
1616
|
-
filter: FilterExpression;
|
|
1617
|
-
needGeometry: boolean;
|
|
1618
|
-
};
|
|
1619
|
-
declare function isExpressionFilter(filter: any): filter is ExpressionFilterSpecification;
|
|
1620
|
-
declare function createFilter(filter: any): FeatureFilter;
|
|
1621
|
-
export declare type ExpectedTypes = {
|
|
1622
|
-
[_: string]: ExpressionInputType;
|
|
1623
|
-
};
|
|
1624
|
-
export function convertFilter(filter: FilterSpecification, expectedTypes?: ExpectedTypes): ExpressionFilterSpecification;
|
|
1625
|
-
declare function isFunction(value: any): boolean;
|
|
1626
|
-
declare function createFunction(parameters: any, propertySpec: any): {
|
|
1627
|
-
kind: string;
|
|
1628
|
-
interpolationType: {
|
|
1629
|
-
name: string;
|
|
1630
|
-
};
|
|
1631
|
-
interpolationFactor: any;
|
|
1632
|
-
zoomStops: any[];
|
|
1633
|
-
evaluate({ zoom }: {
|
|
1634
|
-
zoom: any;
|
|
1635
|
-
}, properties: any): any;
|
|
1636
|
-
} | {
|
|
1637
|
-
kind: string;
|
|
1638
|
-
interpolationType: {
|
|
1639
|
-
name: string;
|
|
1640
|
-
base: any;
|
|
1641
|
-
};
|
|
1642
|
-
interpolationFactor: any;
|
|
1643
|
-
zoomStops: any;
|
|
1644
|
-
evaluate: ({ zoom }: {
|
|
1645
|
-
zoom: any;
|
|
1646
|
-
}) => any;
|
|
1647
|
-
} | {
|
|
1648
|
-
kind: string;
|
|
1649
|
-
evaluate(_: any, feature: any): any;
|
|
1650
|
-
interpolationType?: undefined;
|
|
1651
|
-
interpolationFactor?: undefined;
|
|
1652
|
-
zoomStops?: undefined;
|
|
1653
|
-
};
|
|
1654
|
-
declare function convertFunction(parameters: any, propertySpec: StylePropertySpecification): any;
|
|
1655
|
-
declare function eachSource(style: StyleSpecification, callback: (_: SourceSpecification) => void): void;
|
|
1656
|
-
declare function eachLayer(style: StyleSpecification, callback: (_: LayerSpecification) => void): void;
|
|
1657
|
-
export declare type PropertyCallback = (a: {
|
|
1658
|
-
path: [
|
|
1659
|
-
string,
|
|
1660
|
-
"paint" | "layout",
|
|
1661
|
-
string
|
|
1662
|
-
];
|
|
1663
|
-
key: string;
|
|
1664
|
-
value: PropertyValueSpecification<unknown> | DataDrivenPropertyValueSpecification<unknown>;
|
|
1665
|
-
reference: StylePropertySpecification;
|
|
1666
|
-
set: (a: PropertyValueSpecification<unknown> | DataDrivenPropertyValueSpecification<unknown>) => void;
|
|
1667
|
-
}) => void;
|
|
1668
|
-
declare function eachProperty(style: StyleSpecification, options: {
|
|
1669
|
-
paint?: boolean;
|
|
1670
|
-
layout?: boolean;
|
|
1671
|
-
}, callback: PropertyCallback): void;
|
|
1672
|
-
declare function validateStyle(style: StyleSpecification | string | Buffer, styleSpec?: any): Array<ValidationError>;
|
|
1673
|
-
export declare type ExpressionType = "data-driven" | "cross-faded" | "cross-faded-data-driven" | "color-ramp" | "data-constant" | "constant";
|
|
1674
|
-
export declare type ExpressionParameters = Array<"zoom" | "feature" | "feature-state" | "heatmap-density" | "line-progress">;
|
|
1675
|
-
export declare type ExpressionSpecificationDefinition = {
|
|
1676
|
-
interpolated: boolean;
|
|
1677
|
-
parameters: ExpressionParameters;
|
|
1678
|
-
};
|
|
1679
|
-
export declare type StylePropertySpecification = {
|
|
1680
|
-
type: "number";
|
|
1681
|
-
"property-type": ExpressionType;
|
|
1682
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1683
|
-
transition: boolean;
|
|
1684
|
-
default?: number;
|
|
1685
|
-
} | {
|
|
1686
|
-
type: "string";
|
|
1687
|
-
"property-type": ExpressionType;
|
|
1688
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1689
|
-
transition: boolean;
|
|
1690
|
-
default?: string;
|
|
1691
|
-
tokens?: boolean;
|
|
1692
|
-
} | {
|
|
1693
|
-
type: "boolean";
|
|
1694
|
-
"property-type": ExpressionType;
|
|
1695
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1696
|
-
transition: boolean;
|
|
1697
|
-
default?: boolean;
|
|
1698
|
-
} | {
|
|
1699
|
-
type: "enum";
|
|
1700
|
-
"property-type": ExpressionType;
|
|
1701
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1702
|
-
values: {
|
|
1703
|
-
[_: string]: {};
|
|
1704
|
-
};
|
|
1705
|
-
transition: boolean;
|
|
1706
|
-
default?: string;
|
|
1707
|
-
} | {
|
|
1708
|
-
type: "color";
|
|
1709
|
-
"property-type": ExpressionType;
|
|
1710
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1711
|
-
transition: boolean;
|
|
1712
|
-
default?: string;
|
|
1713
|
-
overridable: boolean;
|
|
1714
|
-
} | {
|
|
1715
|
-
type: "array";
|
|
1716
|
-
value: "number";
|
|
1717
|
-
"property-type": ExpressionType;
|
|
1718
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1719
|
-
length?: number;
|
|
1720
|
-
transition: boolean;
|
|
1721
|
-
default?: Array<number>;
|
|
1722
|
-
} | {
|
|
1723
|
-
type: "array";
|
|
1724
|
-
value: "string";
|
|
1725
|
-
"property-type": ExpressionType;
|
|
1726
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1727
|
-
length?: number;
|
|
1728
|
-
transition: boolean;
|
|
1729
|
-
default?: Array<string>;
|
|
1730
|
-
} | {
|
|
1731
|
-
type: "padding";
|
|
1732
|
-
"property-type": ExpressionType;
|
|
1733
|
-
expression?: ExpressionSpecificationDefinition;
|
|
1734
|
-
transition: boolean;
|
|
1735
|
-
default?: number | Array<number>;
|
|
1736
|
-
};
|
|
1737
|
-
export declare const v8: any;
|
|
1738
|
-
export declare const expression: {
|
|
1739
|
-
StyleExpression: typeof StyleExpression;
|
|
1740
|
-
isExpression: typeof isExpression;
|
|
1741
|
-
isExpressionFilter: typeof isExpressionFilter;
|
|
1742
|
-
createExpression: typeof createExpression;
|
|
1743
|
-
createPropertyExpression: typeof createPropertyExpression;
|
|
1744
|
-
normalizePropertyExpression: typeof normalizePropertyExpression;
|
|
1745
|
-
ZoomConstantExpression: typeof ZoomConstantExpression;
|
|
1746
|
-
ZoomDependentExpression: typeof ZoomDependentExpression;
|
|
1747
|
-
StylePropertyFunction: typeof StylePropertyFunction;
|
|
1748
|
-
};
|
|
1749
|
-
declare const styleFunction: {
|
|
1750
|
-
convertFunction: typeof convertFunction;
|
|
1751
|
-
createFunction: typeof createFunction;
|
|
1752
|
-
isFunction: typeof isFunction;
|
|
1753
|
-
};
|
|
1754
|
-
export declare const visit: {
|
|
1755
|
-
eachSource: typeof eachSource;
|
|
1756
|
-
eachLayer: typeof eachLayer;
|
|
1757
|
-
eachProperty: typeof eachProperty;
|
|
1758
|
-
};
|
|
1759
|
-
|
|
1760
|
-
export {
|
|
1761
|
-
_default as latest,
|
|
1762
|
-
createFilter as featureFilter,
|
|
1763
|
-
diffStyles as diff,
|
|
1764
|
-
styleFunction as function,
|
|
1765
|
-
validateStyle as validate,
|
|
1766
|
-
};
|
|
1767
|
-
|
|
1768
|
-
export {};
|