Skip to content
pixi-silk
GitHub repository
Interface

GridLevel

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

One level of a CanvasGrid, as gridLevels returns it.

Properties#

PropertyTypeDescriptionDefined in
alphanumberOpacity this level adds, 0..1, so the lines it shares with coarser levels add up to theirs.ui/grid.ts:19
spacingnumberDistance between lines on screen, in CSS pixels (step times the zoom).ui/grid.ts:17
stepnumberDistance between lines, in world units.ui/grid.ts:15