StrokeComponent Class
Represent a simple StrokeComponent input component
Constructor
StrokeComponent
()
Item Index
Methods
addT
(
-
t
Add a timestamp to the list
Parameters:
-
tNumber
addX
(
-
x
Add a x to the list of x coordinates
Parameters:
-
xNumber
addY
(
-
y
Add a y to the list of y coordinates
Parameters:
-
yNumber
getT
()
Number
Get the list of timestamps
Returns:
Number:
getType
()
String
Get the type of the input component
Returns:
String:
getX
()
Number
Get the list of x coordinates
Returns:
Number:
getY
()
Number
Get the list of y coordinates
Returns:
Number:
setT
(
-
t
Set the list of timestamps
Parameters:
-
tNumber
setType
(
-
type
Set the type of the input component
Parameters:
-
typeString
setX
(
-
x
Set the list of x coordinates
Parameters:
-
xNumber
setY
(
-
y
Set the list of y coordinates
Parameters:
-
yNumber
toJSON
()
Object
Returns:
Object:
