pikaso
Version:
Seamless, Fully-typed and Fully-tested HTML5 Canvas Library
24 lines (23 loc) • 570 B
TypeScript
import Konva from 'konva';
export declare enum DrawType {
Svg = "Svg",
Text = "Text",
Pencil = "Pencil",
Line = "Line",
Arrow = "Arrow",
Circle = "Circle",
Rect = "Rect",
Ellipse = "Ellipse",
Polygon = "Polygon",
Triangle = "Triangle"
}
export interface DrawingOptions {
measurement?: boolean;
}
export declare interface IDrawableShape {
draw: (config: Partial<Konva.ShapeConfig>) => void;
stopDrawing: () => void;
}
export interface TriangleConfig extends Omit<Konva.RegularPolygonConfig, 'sides'> {
sides?: 3;
}