Skip to content
pixi-silk
GitHub repository
Function

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#

ParameterType
selectionSelection<T>
outlineOutlineLike<T>
hover?OutlineLike<T>

Returns#

() => void