API Docs for: 2.0.0

Class PartitionList

Class defined in: src/node-partitionlist.js:27
PartitionList( )
src/node-partitionlist.js:27
addButtonToItem( id, buttonId, type, geometry )
src/node-partitionlist.js:486

Add an interactable button to a partition in the list

Parameters:
  • id <String>

    id of partition

  • buttonId <String>

    id of button

  • type <String>

    "rectangle" or "circle"

  • geometry <Object>

    defines button (rectangle = {x: , y: , w: , h: }, circle = {x: , y: , r: })

editButtonOnItem( id, buttonId, type, geometry )
src/node-partitionlist.js:499

Edit an interactable button for an item in the list

Parameters:
  • id <String>

    id of item

  • buttonId <String>

    id of button

  • type <String>

    "rectangle" or "circle"

  • geometry <Object>

    defines button (rectangle = {x: , y: , w: , h: }, circle = {x: , y: , r: })

editButtonVisibilityOnItem( id, buttonId, visible )
src/node-partitionlist.js:512

Edit visibility for an interactable button for an item in the list

Parameters:
  • id <String>

    id of item

  • buttonId <String>

    id of button

  • visible <Boolean>

    whether or not the button is visible

Object findButtonByPoint( id, point )
src/node-partitionlist.js:524

Test to see which button is under a given point

Parameters:
Returns: <Object>

button button under the point