canvas#

Functions#

placedAt()#

placedAt(element, dx, dy, scale?): DrawnElement

Defined in: layout/src/canvas.ts:52

An element drawn at (dx, dy) and the scale scale: each of its positions (u, v) taken to (dx + scale × u, dy + scale × v) and each of its lengths multiplied by scale. An item is drawn at its place so (section 8.6), and every finished position in place coordinates is shifted into the block at scale 1 (section 8.4), where a position becomes u + dx and no length changes.

Parameters#

element#

DrawnElement

dx#

number

dy#

number

scale?#

number = 1

Returns#

DrawnElement


placedAxis()#

placedAxis(axis, dx, dy, scale?): DrawnAxis

Defined in: layout/src/canvas.ts:208

A line’s axis drawn at (dx, dy) and the scale scale, as placedAt draws its line, and its marker and its mark as placedAt draws a wedge and a cross-section line.

Parameters#

axis#

DrawnAxis

dx#

number

dy#

number

scale?#

number = 1

Returns#

DrawnAxis


placedBox()#

placedBox(box, dx, dy, scale?): DrawnBox

Defined in: layout/src/canvas.ts:191

A container’s record drawn at (dx, dy) and the scale scale, as placedAt draws a frame or a card: its x and y, and a band’s line, taken to dx + scale × x, dy + scale × y and dy + scale × line, its width and height multiplied by scale. Its range and what it states stay as they are.

Parameters#

box#

DrawnBox

dx#

number

dy#

number

scale?#

number = 1

Returns#

DrawnBox


scaledStyle()#

scaledStyle(style, scale): Style

Defined in: layout/src/canvas.ts:13

A style at the scale scale: each of its lengths multiplied by it (section 8.6).

Parameters#

style#

Style

scale#

number

Returns#

Style