computeGoalLayout()
function computeGoalLayout(width, height): GoalLayout;Defined in: packages/core/src/goal/layout.ts:50
Fits the view into width x height pixels, keeping its proportions and
centring it in whichever direction has room to spare.
Parameters
| Parameter | Type |
|---|---|
width | number |
height | number |