PitchKit
API Reference@pitchkit/reactInterfaces

GoalViewContextValue

Defined in: packages/react/src/goal-view-context.ts:5

Properties

PropertyModifierTypeDescriptionDefined in
framereadonlyGoalFrameThe goal-mouth coordinate system the view was given by type.packages/react/src/goal-view-context.ts:7
layoutreadonlyGoalLayoutWhere the view sits in the SVG, and its pixels per metre.packages/react/src/goal-view-context.ts:9
toPixelreadonly(y, z, inset?) => GoalPoint | undefinedA goal-mouth coordinate, in the frame's own units, to pixels. A point outside the view is pinned to its edge, inset pixels inside it, and marked clamped; undefined for a missing coordinate.packages/react/src/goal-view-context.ts:15

On this page