Skip to main content

GeneratedGridBackground

A background that generates an SVG grid based upon the current content bounds, ensuring that there is always a grid visible underneath the content. The grid may consist of lines or dots - control this via the gridType option.

The size of the grid can be mandated in the options for the background, or it can be extracted from the UI.

You can hide/show the background grid via the hide(), show(), toggle() or setVisible(boolean) methods.

Methods

_setVisible()

_setVisible(v): void

Sets the visible state of the grid

Parameters

v

boolean

Returns

void

Implementation of

Background._setVisible