ViewBox
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
optionalx: any
optionaly: string | number
optionalwidth: string | number
optionalheight: string | number
Returns ViewBox
Properties
height
initialized
width
x
y
Methods
addPadding
Parameters
padding: { bottom: number; left: number; right: number; top: number }
Returns void
clone
Returns ViewBox
fitsInViewBox
Check whether current viewBox fits inside of another viewBox
Parameters
viewBox: ViewBox
optionalatLeastByOneDimension: boolean
Returns boolean
toArray
Returns an array containing viewBox numbers
Returns number[]
toString
Returns a string with viewBox numbers
Returns string
update
Updates viewbox with new numbers
Parameters
x: any
optionaly: string | number
optionalwidth: string | number
optionalheight: string | number
Returns void
Adds padding to the viewBox