RulerState
import type { RulerState } from 'pixi-silk/ui/ruler';
The reactive state of a Ruler.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
cursor | Signal<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 |
selection | Signal<WorldRect | null> | The highlighted extent in world units, or null. Updated every frame while it follows objects. | ui/ruler.ts:61 |