Files
MapLibreParticleLab/metrics/integration/expression-tests/interpolate/exponential/test.json
2023-03-25 14:46:49 +01:00

27 lines
636 B
JSON

{
"expression": [
"number",
["interpolate", ["exponential", 2], ["number", ["get", "x"]], 1, 2, 3, 6]
],
"inputs": [
[{}, {"properties": {"x": 0}}],
[{}, {"properties": {"x": 1}}],
[{}, {"properties": {"x": 2}}],
[{}, {"properties": {"x": 3}}],
[{}, {"properties": {"x": 4}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "number"
},
"outputs": [2, 2, 3.33333, 6, 6],
"serialized": [
"number",
["interpolate", ["exponential", 2], ["number", ["get", "x"]], 1, 2, 3, 6]
]
}
}