bindOutline
import { bindOutline } from 'pixi-silk/selection';
function bindOutline<T>(
selection: Selection<T>,
outline: OutlineLike<T>,
hover?: OutlineLike<T>
): () => void;
Frames the selection with outline. Pass a second outline to show the hovered item too, while
it is not selected. Returns the function that stops following.
Type Parameters#
| Type Parameter |
|---|
T |
Parameters#
| Parameter | Type |
|---|---|
selection | Selection<T> |
outline | OutlineLike<T> |
hover? | OutlineLike<T> |
Returns#
() => void