Skip to content

editor / ViewBox

Type Alias: ViewBox ​

ViewBox = object

Defined in: render/view-box.ts:2

Visible region of an SVG canvas, in user units (viewBox attribute).

Properties ​

height ​

readonly height: number

Defined in: render/view-box.ts:4

Height of the region.


width ​

readonly width: number

Defined in: render/view-box.ts:6

Width of the region.


x ​

readonly x: number

Defined in: render/view-box.ts:8

Abscissa of the region's top-left corner.


y ​

readonly y: number

Defined in: render/view-box.ts:10

Ordinate of the region's top-left corner.