onScreen#

Interfaces#

Extent#

Defined in: arranger/src/onScreen.ts:6

A width and a height in pixels; 0 where nothing is measured yet.

Properties#

height#

readonly height: number

Defined in: arranger/src/onScreen.ts:8

width#

readonly width: number

Defined in: arranger/src/onScreen.ts:7

Functions#

onScreen()#

onScreen(place, size, screen): FlagPlace

Defined in: arranger/src/onScreen.ts:24

The flag at place (flagPlace: right of the wedge it marks), size wide and high, shifted by exactly the amount that keeps it inside the canvas screen (its visible area, from its top-left corner): a flag past the right or bottom border moves left or up until its right or bottom edge lies on that border, one past the left or top border moves right or down until its left or top edge lies on it, and a flag inside stays where it starts. A flag larger than the canvas along an axis keeps its left or top edge on the border, so its beginning stays readable. Along an axis where the canvas or the flag measures 0 (not laid out yet) nothing is shifted. The pole is not moved: it stands at the abscissa it marks.

Parameters#

place#

FlagPlace

size#

Extent

screen#

Extent

Returns#

FlagPlace