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 Layout<Props>
Type Parameters
- Props
Index
Constructors
Methods
Methods
getValue
hasProperty
Parameters
- name: string
Returns boolean
hasValue
possiblyEvaluate
- possiblyEvaluate(
parameters: EvaluationParameters,
canonical?: CanonicalTileID,
availableImages?: string[],
): PossiblyEvaluated<Props, any>Parameters
- parameters: EvaluationParameters
Optionalcanonical: CanonicalTileIDOptionalavailableImages: string[]
Returns PossiblyEvaluated<Props, any>
serialize
Returns any
Because layout properties are not transitionable, they have a simpler representation and evaluation chain than paint properties:
PropertyValues are possibly evaluated, producing possibly evaluated values, which are then fully evaluated.Layoutstores a map of all (property name,PropertyValue) pairs for layout properties of a given layer type. It can calculate the possibly-evaluated values for all of them at once, producing aPossiblyEvaluatedinstance for the same set of properties.