Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/style-spec/expression/expression.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 903 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/style-spec/expression/expression.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/style-spec/expression/expression.js
-
curl -L -o expression.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/style-spec/expression/expression.js
903 Bytes
| // @flow | |
| import type {Type} from './types'; | |
| import type ParsingContext from './parsing_context'; | |
| import type EvaluationContext from './evaluation_context'; | |
| type SerializedExpression = Array<mixed> | string | number | boolean | null; | |
| export interface Expression { | |
| +type: Type; | |
| evaluate(ctx: EvaluationContext): any; | |
| eachChild(fn: Expression => void): void; | |
| /** | |
| * Statically analyze the expression, attempting to enumerate possible outputs. Returns | |
| * false if the complete set of outputs is statically undecidable, otherwise true. | |
| */ | |
| outputDefined(): boolean; | |
| serialize(): SerializedExpression; | |
| } | |
| export type ExpressionParser = (args: $ReadOnlyArray<mixed>, context: ParsingContext) => ?Expression; | |
| export type ExpressionRegistration = Class<Expression> & { +parse: ExpressionParser }; | |
| export type ExpressionRegistry = {[_: string]: ExpressionRegistration}; | |