Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/style-spec/util/properties.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/style-spec/util/properties.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/style-spec/util/properties.js
-
curl -L -o properties.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/style-spec/util/properties.js
587 Bytes
| // @flow | |
| import type {StylePropertySpecification} from '../style-spec'; | |
| export function supportsPropertyExpression(spec: StylePropertySpecification): boolean { | |
| return spec['property-type'] === 'data-driven' || spec['property-type'] === 'cross-faded-data-driven'; | |
| } | |
| export function supportsZoomExpression(spec: StylePropertySpecification): boolean { | |
| return !!spec.expression && spec.expression.parameters.indexOf('zoom') > -1; | |
| } | |
| export function supportsInterpolation(spec: StylePropertySpecification): boolean { | |
| return !!spec.expression && spec.expression.interpolated; | |
| } | |