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 TransitioningPropertyValue<T, R>
Type Parameters
- T
- R
Index
Constructors
constructor
- new TransitioningPropertyValue<T, R>(
property: Property<T, R>,
value: PropertyValue<T, R>,
prior: TransitioningPropertyValue<T, R>,
transition: TransitionSpecification,
now: number,
): TransitioningPropertyValue<T, R>Type Parameters
- T
- R
Parameters
- property: Property<T, R>
- value: PropertyValue<T, R>
- prior: TransitioningPropertyValue<T, R>
- transition: TransitionSpecification
- now: number
Returns TransitioningPropertyValue<T, R>
Methods
possiblyEvaluate
- possiblyEvaluate(
parameters: EvaluationParameters,
canonical: CanonicalTileID,
availableImages: string[],
): RParameters
- parameters: EvaluationParameters
- canonical: CanonicalTileID
- availableImages: string[]
Returns R
Internal
TransitioningPropertyValueimplements the first of two intermediate steps in the evaluation chain of a paint property value. In this step, transitions between old and new values are handled: as long as the transition is in progress,TransitioningPropertyValuemaintains a reference to the prior value, and interpolates between it and the new value based on the current time and the configured transition duration and delay. The product is the next step in the evaluation chain: the "possibly evaluated" result typeR. See below for more on this concept.