Skip to content

@graphty/graph-io / positions / ViewerFit

Interface: ViewerFit ​

Defined in: positions/types.ts:92

How the program that draws a file fits coordinates that have no fixed length into its canvas.

Properties ​

padding ​

readonly padding: number

Defined in: positions/types.ts:97

The px the fitted bounding box keeps from each end of the canvas's smaller side; along the longer side the room is that side's share of the same fraction (sigma.js's stagePadding).