panelHitTest
import { panelHitTest } from 'pixi-silk/ui/panel';
function panelHitTest(targets:
| readonly Container<ContainerChild>[]
| (() => readonly Container<ContainerChild>[])): (point: PointData) => boolean;
A test for the camera’s ignore option: true for a point (in the stage’s space) over any of
targets, so wheels and pans over panels stay with the panels.
Parameters#
| Parameter | Type |
|---|---|
targets | | readonly Container<ContainerChild>[] | (() => readonly Container<ContainerChild>[]) |
Returns#
(point: PointData) => boolean
Example#
const camera = new Camera({ world, element: app.canvas, ignore: panelHitTest([layers, inspector]) });