Skip to content
pixi-silk
GitHub repository
Function

toggleAnchorType

import { toggleAnchorType } from 'pixi-silk/path';
function toggleAnchorType(path: BezierPath, index: number): BezierPath;

Switches anchor index between a sharp corner (handles removed) and a smooth curve.

Parameters#

ParameterType
pathBezierPath
indexnumber

Returns#

BezierPath