inferAnchorType
import { inferAnchorType } from 'pixi-silk/path';
function inferAnchorType(anchor: Pick<PathAnchor, "in" | "out">, tolerance?: number): AnchorType;
The type an anchor’s handles imply: mirrored, smooth or corner.
Parameters#
| Parameter | Type | Default value |
|---|---|---|
anchor | Pick<PathAnchor, "in" | "out"> | undefined |
tolerance | number | 1e-3 |