Methods
draw(canvas)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas |
- Implements:
- Source:
fill(canvas, piece, figure)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
piece |
Piece | |
figure |
Figure |
- Implements:
- Source:
initialize(canvas, id)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
id |
string |
- Implements:
- Source:
label(_canvas, piece, figure)
Parameters:
Name | Type | Description |
---|---|---|
_canvas |
Canvas | |
piece |
Piece | |
figure |
Figure |
- Implements:
- Source:
logicalTranslate(_canvas, piece, group)
Parameters:
Name | Type | Description |
---|---|---|
_canvas |
Canvas | |
piece |
Piece | |
group |
* |
- Implements:
- Source:
onDrag(canvas, piece, group, f)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
piece |
Piece | |
group |
Group | |
f |
VectorAction |
- Implements:
- Source:
onDragEnd(_canvas, _piece, group, f)
Parameters:
Name | Type | Description |
---|---|---|
_canvas |
Canvas | |
_piece |
Piece | |
group |
Group | |
f |
Action |
- Implements:
- Source:
physicalTranslate(_canvas, group, piece)
Parameters:
Name | Type | Description |
---|---|---|
_canvas |
Canvas | |
group |
Group | |
piece |
Piece |
- Implements:
- Source:
registerKeyboardGestures(canvas, gestures)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
gestures |
object |
- Implements:
- Source:
reinitialize(canvas)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas |
- Implements:
- Source:
resize(canvas, width, height)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
width |
number | |
height |
number |
- Implements:
- Source:
scale(canvas, factor)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
factor |
Vector |
- Implements:
- Source:
sketch(canvas, piece, figure, outline)
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas | |
piece |
Piece | |
figure |
Figure | |
outline |
Outline |
- Implements:
- Source: