API Docs for:
Show:

StrokeComponent Class

Represent a simple StrokeComponent input component

Methods

addT

(
  • t
)

Add a timestamp to the list

Parameters:

  • t Number

addX

(
  • x
)

Add a x to the list of x coordinates

Parameters:

  • x Number

addY

(
  • y
)

Add a y to the list of y coordinates

Parameters:

  • y Number

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:

setBoundingBox

(
  • boundingBox
)

Set input component bounding-box

Parameters:

setT

(
  • t
)

Set the list of timestamps

Parameters:

  • t Number

setType

(
  • type
)

Set the type of the input component

Parameters:

  • type String

setX

(
  • x
)

Set the list of x coordinates

Parameters:

  • x Number

setY

(
  • y
)

Set the list of y coordinates

Parameters:

  • y Number