SpacingMarkersOptions
import type { SpacingMarkersOptions } from 'pixi-silk/ui/spacing';
Options of SpacingMarkers.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
color? | ColorSource | Marker colour, also the pill fill. Default 0xff24bd. | ui/spacing.ts:227 |
format? | (value: number) => string | Turns a gap into the pill text. Default rounds to a whole number. | ui/spacing.ts:231 |
lines? | boolean | Draws alignment lines too. Default true. With false, show() drops the lines it gets. | ui/spacing.ts:233 |
space? | Container<ContainerChild> | The space the rectangles are in, usually the camera’s world. With the markers outside that space, lines and pills keep their screen size at any zoom. Default the markers’ parent. | ui/spacing.ts:225 |
textColor? | ColorSource | Pill text colour. Default white. | ui/spacing.ts:229 |
ticker? | Ticker | null | Ticker that runs fades and redraws. Default Ticker.shared. With null, call SpacingMarkers.tick yourself. | ui/spacing.ts:235 |