For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface Property<T, R>
interface Property<T, R> {
name: string;
specification: StylePropertySpecification;
interpolate(a: R, b: R, t: number): R;
possiblyEvaluate(
value: PropertyValue<T, R>,
parameters: EvaluationParameters,
canonical?: CanonicalTileID,
availableImages?: string[],
): R;
}
name: string;
specification: StylePropertySpecification;
interpolate(a: R, b: R, t: number): R;
possiblyEvaluate(
value: PropertyValue<T, R>,
parameters: EvaluationParameters,
canonical?: CanonicalTileID,
availableImages?: string[],
): R;
}
Type Parameters
- T
- R
Implemented by
Index
Properties
Methods
Methods
interpolate
possiblyEvaluate
- possiblyEvaluate(
value: PropertyValue<T, R>,
parameters: EvaluationParameters,
canonical?: CanonicalTileID,
availableImages?: string[],
): RParameters
- value: PropertyValue<T, R>
- parameters: EvaluationParameters
Optionalcanonical: CanonicalTileIDOptionalavailableImages: string[]
Returns R
Internal
Implementations of the
Propertyinterface:The type
Tis the fully-evaluated value type (e.g.number,string,Color). The typeRis the intermediate "possibly evaluated" value type. See below.There are two main implementations of the interface -- one for properties that allow data-driven values, and one for properties that don't. There are a few "special case" implementations as well: one for properties which cross-fade between two values rather than interpolating, one for
heatmap-colorandline-gradient, and one forlight-position.