new ToolCirc(config)
Tool for drawing circles and elipses
Parameters:
Name | Type | Description |
---|---|---|
config |
object | tool config |
Extends
Methods
-
startInput(id, x, y)
-
[startInput description]
Parameters:
Name Type Description id
any unique id in current moment
x
integer x coordinate
y
integer y coordinate
Returns:
- returns new Input for current tool touch
- Type
- Input
-
moveInput(input, x, y, e)
-
[moveInput description]
Parameters:
Name Type Description input
Input [description]
x
number [description]
y
number [description]
e
HTMLEvent [description]
Returns:
[description]
- Type
- undefined
-
finishInput(input, x, y, e)
-
[finishInput description]
Parameters:
Name Type Description input
Input [description]
x
number [description]
y
number [description]
e
HTMLEvent [description]
Returns:
[description]
- Type
- undefined
-
drawFramePath(config, points)
-
Draw engine
Parameters:
Name Type Description config
object Drawing parameters
points
object List of points to draw
Returns:
- Type
- undefined
-
distance(x1, y1, x2, y2)
-
Calculate distance between two points
Parameters:
Name Type Description x1
number start x
y1
number start y
x2
number end x
y2
number end y
- Inherited From:
Returns:
- distance
- Type
- number