PitchKit
API Reference@pitchkit/coreFunctions

createPixelTransform()

function createPixelTransform(dimensions, viewport): PixelTransform;

Defined in: packages/core/src/transform/pixel-transform.ts:13

Builds the provider-coordinates -> pixel-space transform for a single render. This is PitchKit's "internal scale + transform pipeline" (PRD §8.2): every layer calls toPixel() and inherits this single source of truth, so pitch geometry and data marks always stay aligned.

Parameters

ParameterType
dimensionsPitchDimensions
viewportViewport

Returns

PixelTransform

On this page