Skip to content

Kirby 5.6.3

$svg->viewBox()

Returns the viewBox as min-x, min-y, width, height

$svg->viewBox(): array|null

Return types

arrayornull

This method modifies the existing $svg object it is applied to and returns it again.

Parent class

Kirby\Image\Svg