class
DrawingCanvas
Source: canvas-layers.
Extention class that provides drawing abilities
new DrawingCanvas(canvas)
Construct a new instance of the Canvas class
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
canvas |
|
|
The canvas to instantiate the class upon. |
- Returns
Methods
setFillStyle(style) → undefined
Set the CSS color style background of the shape
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
style |
string |
|
- Returns
-
undefined
setLineWidth(width) → undefined
Set the border or line width;
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
width |
Number |
|
- Returns
-
undefined
setStrokeStyle(style) → undefined
Set the CSS color style of the border or line
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
style |
string |
|
- Returns
-
undefined