Skip to content
pixi-silk
GitHub repository
Interface

SpacingMarkersOptions

import type { SpacingMarkersOptions } from 'pixi-silk/ui/spacing';

Options of SpacingMarkers.

Properties#

PropertyTypeDescriptionDefined in
color?ColorSourceMarker colour, also the pill fill. Default 0xff24bd.ui/spacing.ts:227
format?(value: number) => stringTurns a gap into the pill text. Default rounds to a whole number.ui/spacing.ts:231
lines?booleanDraws 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?ColorSourcePill text colour. Default white.ui/spacing.ts:229
ticker?Ticker | nullTicker that runs fades and redraws. Default Ticker.shared. With null, call SpacingMarkers.tick yourself.ui/spacing.ts:235