@stringsync/vexml
Version:
MusicXML to Vexflow
25 lines (24 loc) • 525 B
TypeScript
import { Point } from '../spatial';
/**
* Pen is a position tracker.
*
* The term "cursor" is overloaded in the codebase, so this is a simple alternative.
*/
export declare class Pen {
private positions;
constructor(initialPosition?: Point);
get x(): number;
get y(): number;
position(): Point;
moveTo(point: {
x: number;
y: number;
}): void;
moveBy(opts: {
dx?: number;
dy?: number;
}): void;
clone(): Pen;
save(): void;
restore(): void;
}