PitchKit
API Reference@pitchkit/coreFunctions

resolve()

function resolve<T, V>(
   prop, 
   d, 
   i
): V;

Defined in: packages/core/src/scene/resolve.ts:8

Resolves a layer's Accessor<T, V> prop for one datum: calls it if it's a function, returns it as-is otherwise. The single place every painter goes through for visual-prop resolution (PRD §8.7's accessor-prop ordering).

Type Parameters

Type Parameter
T
V

Parameters

ParameterType
propAccessor<T, V>
dT
inumber

Returns

V

On this page