Skip to content
pixi-silk
GitHub repository
Function

combineSelection

import { combineSelection } from 'pixi-silk/ui/marquee';
function combineSelection(
   base: readonly Container<ContainerChild>[], 
   hits: readonly Container<ContainerChild>[], 
   op: MarqueeOp
): readonly Container<ContainerChild>[];

Combines a selection with what a marquee covers. add appends hits not in base, keeping order. subtract removes them. Always returns a new array.

Parameters#

ParameterType
basereadonly Container<ContainerChild>[]
hitsreadonly Container<ContainerChild>[]
opMarqueeOp

Returns#

readonly Container<ContainerChild>[]