Skip to content

@graphty/graphty-element / index / ViewInsets

Interface: ViewInsets ​

Defined in: graphty-element/src/camera/types.ts:99

Margins of the drawing surface that something else covers, such as a key or a toolbar laid over the canvas, in CSS pixels per side. Every fit keeps the elements it frames out of them, and in 3D the camera's center of view is the center of what is left. A side left out is 0.

Properties ​

bottom? ​

readonly optional bottom?: number

Defined in: graphty-element/src/camera/types.ts:102


left? ​

readonly optional left?: number

Defined in: graphty-element/src/camera/types.ts:103


readonly optional right?: number

Defined in: graphty-element/src/camera/types.ts:101


top? ​

readonly optional top?: number

Defined in: graphty-element/src/camera/types.ts:100