Skip to content
pixi-silk
GitHub repository
Interface

RulerState

import type { RulerState } from 'pixi-silk/ui/ruler';

The reactive state of a Ruler.

Properties#

PropertyTypeDescriptionDefined in
cursorSignal<PointData | null>Pointer position on the element in CSS pixels, or null when it is away. Set it yourself with trackCursor: false.ui/ruler.ts:59
selectionSignal<WorldRect | null>The highlighted extent in world units, or null. Updated every frame while it follows objects.ui/ruler.ts:61