pencil.js / path / InstructionCallback
Type Alias: InstructionCallback
ts
type InstructionCallback = (path, target, previousPosition, ...args) => void;Defined in: path.ts:15
Function executed by an instruction
Parameters
| Parameter | Type | Description |
|---|---|---|
path | Path2D | Current drawing path |
target | Position | Target position |
previousPosition | Position | Position from where instruction started |
...args | never[] | Additional arguments of the instruction |
Returns
void
