For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class PropertyValue<T, R>
Type Parameters
- T
- R
Index
Constructors
Properties
Methods
Constructors
constructor
Methods
getGlobalStateRefs
Returns Set<string>
isDataDriven
Returns boolean
possiblyEvaluate
- possiblyEvaluate(
parameters: EvaluationParameters,
canonical?: CanonicalTileID,
availableImages?: string[],
): RParameters
- parameters: EvaluationParameters
Optionalcanonical: CanonicalTileIDOptionalavailableImages: string[]
Returns R
readsGlobalState
Whether the expression reads one of the global state keys in
refs.Parameters
- refs: string[]
Returns boolean
Internal
PropertyValuerepresents the value part of a property key-value unit. It's used to represent both paint and layout property values, and regardless of whether or not their property supports data-driven expressions.PropertyValuestores the raw input value as seen in a style or a runtime styling API call, i.e. one of the following:In addition to storing the original input value,
PropertyValuealso stores a normalized representation, effectively treating functions as if they are expressions, and constant or default values as if they are (constant) expressions.