Skip to content

anim-format (runtime format) / vectorBounds

Function: vectorBounds() ​

ts
function vectorBounds(v): object;

the local bounds of vector art, strokes included (THE box: the SVG's viewBox, the exporter's sprite placement); empty art = 0, 0, 1 × 1

Parameters ​

ParameterType
vAnimVector

Returns ​

object

NameType
hnumber
wnumber
xnumber
ynumber

HereSplash — 2D animation for the web