Skip to content
pixi-silk
GitHub repository
Function

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#

ParameterTypeDefault value
anchorPick<PathAnchor, "in" | "out">undefined
tolerancenumber1e-3

Returns#

AnchorType