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#
| Parameter | Type |
|---|---|
base | readonly Container<ContainerChild>[] |
hits | readonly Container<ContainerChild>[] |
op | MarqueeOp |
Returns#
readonly Container<ContainerChild>[]