image-sketchpad - v1.0.4 / Modules / Canvas
Ƭ Point: Object
Point - A point on the canvas set by coordinates.
Name | Type | Description |
---|---|---|
x |
number |
X coordinate of point. |
y |
number |
Y coordinate of point. |
Ƭ Stroke: Object
Stroke - A line between two or more Points.
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. |