SelectionOutline: hover and selection outlines.
import { SelectionOutline, boundsQuad, padQuad, scaleQuad } from 'pixi-silk/ui/outline';
Classes#
| Class | Description |
|---|
| SelectionOutline | Animated bounds around one or more objects, for hover and selection in editors. |
Interfaces#
Type Aliases#
| Type Alias | Description |
|---|
| OutlineMode | How an outline looks: a quiet hover line or an accented selected frame. |
| Quad | Four corners of a box, clockwise from top left, in the outline’s space. |
Functions#
| Function | Description |
|---|
| boundsQuad | Corners of target’s local bounds, mapped into space. Rotated objects give a rotated box. Measures the bounds on each call. |
| padQuad | Pushes every side of a quad outwards by pad, along the quad’s own axes. A negative pad shrinks it. |
| scaleQuad | Scales a quad about its centre by k. Returns the same quad when k is 1, a new one otherwise. |
| unionQuad | Axis-aligned box around several quads. An empty list gives an infinite, inverted box. |