Skip to content
pixi-silk
GitHub repository
Interface

PenInput

import type { PenInput } from 'pixi-silk/ui/pathgizmo';

What the pointer is on and which modifiers are down, for PenTool.

Properties#

PropertyTypeDescriptionDefined in
alt?booleanAlt: the drag moves only the outgoing handle.ui/pathgizmo.ts:46
on?"last" | "first" | nullThe press landed on the path’s first or last anchor.ui/pathgizmo.ts:44
shift?booleanShift: handles and new anchors keep to 45 degree steps.ui/pathgizmo.ts:48