fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
19 lines (15 loc) • 342 B
text/typescript
import type { TEvent } from '../EventTypeDefs';
import type { Point } from '../Point';
export type TBrushEventData = TEvent & { pointer: Point };
export type CircleBrushPoint = {
x: number;
y: number;
radius: number;
fill: string;
};
export type SprayBrushPoint = {
x: number;
y: number;
width: number;
opacity: number;
};