Skip to content
pixi-silk
GitHub repository
Interface

CanvasGridState

import type { CanvasGridState } from 'pixi-silk/ui/grid';

The reactive state of a CanvasGrid. Write to these signals to change the grid.

Properties#

PropertyTypeDescriptionDefined in
axesSignal<boolean>Shows the x = 0 and y = 0 axes. Switches at once, without a fade.ui/grid.ts:66
styleSignal<GridStyle>Lines or dots. Changes crossfade.ui/grid.ts:62
visibleSignal<boolean>Shows or hides the grid with a fade. Starts true. Separate from the container’s visible.ui/grid.ts:64