Files
rough/bin/common/core.d.ts
2018-06-18 13:08:58 -07:00

30 lines
670 B
TypeScript

export interface Options {
maxRandomnessOffset: number;
roughness: number;
bowing: number;
stroke: string;
strokeWidth: number;
curveTightness: number;
curveStepCount: number;
fill: string | null;
fillStyle: string;
fillWeight: number;
hachureAngle: number;
hachureGap: number;
}
export declare type OpType = 'move' | 'bcurveTo' | 'lineTo';
export declare type OpSetType = 'path' | 'fillPath' | 'fillSketch';
export interface Op {
op: OpType;
data: number[];
}
export interface OpSet {
type: OpSetType;
ops: Op[];
}
export interface Drawable {
shape: string;
options: Options;
sets: OpSet[];
}