anchorsInRect
import { anchorsInRect } from 'pixi-silk/path';
function anchorsInRect(path: BezierPath, rect: {
height: number;
width: number;
x: number;
y: number;
}): number[];
Indices of the anchors inside a rectangle, edges included, for marquee selection. A negative width or height works. Handles are ignored.
Parameters#
| Parameter | Type |
|---|---|
path | BezierPath |
rect | { height: number; width: number; x: number; y: number; } |
rect.height | number |
rect.width | number |
rect.x | number |
rect.y | number |
Returns#
number[]