GoalViewContextValue
Defined in: packages/react/src/goal-view-context.ts:5
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
frame | readonly | GoalFrame | The goal-mouth coordinate system the view was given by type. | packages/react/src/goal-view-context.ts:7 |
layout | readonly | GoalLayout | Where the view sits in the SVG, and its pixels per metre. | packages/react/src/goal-view-context.ts:9 |
toPixel | readonly | (y, z, inset?) => GoalPoint | undefined | A 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 |