Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.5 KB

Canvas.md

File metadata and controls

57 lines (35 loc) · 1.5 KB

image-sketchpad - v1.0.4 / Modules / Canvas

Module: Canvas

Table of contents

Classes

Type aliases

Type aliases

Point

Ƭ Point: Object

Point - A point on the canvas set by coordinates.

Type declaration

Name Type Description
x number X coordinate of point.
y number Y coordinate of point.

Defined in

Canvas/Draw.ts:4


Stroke

Ƭ Stroke: Object

Stroke - A line between two or more Points.

Type declaration

Name Type Description
cap CanvasLineCap {@link CanvasLineCap|Canvas line cap} of the stroke: "butt" | "round" | "square".
color string Color of the stroke.
join CanvasLineJoin {@link CanvasLineJoin|Canvas line join} of the stroke: "bevel" | "miter" | "round".
maxWidth number Max width of the stroke.
miterLimit number Miter limit of the stroke.
points Point[] Points of stroke.
width number Width of the stroke.

Defined in

Canvas/Draw.ts:19