five-on-it / apps/client/src/ui/map-view / layerWindow
Function: layerWindow()
layerWindow(
half,w):object
Defined in: apps/client/src/ui/map-view.ts:105
The part of the static layer (drawn over [-half, half] at layerPixels(half)) under a window: its left and top edges and its side, in the layer's pixels (it may stick out of the layer near the level's edges: the canvas draws what lies inside).
Parameters
half
number
w
Pick<MapWindow, "x" | "z" | "span">
Returns
object
side
side:
number
sx
sx:
number
sy
sy:
number