Classes
Methods
destroy()
Delete the wire and free start node and end node
- Source:
draw()
Draw this Wire
- Source:
generateNodeValue()
Generate this node Value
- Source:
getStartNode() → {Node}
Get wire start node
- Source:
Returns:
Wire start node
- Type
- Node
isMouseOver() → {Boolean}
Called to check if mouse is over
- Source:
Returns:
Boolean Value
- Type
- Boolean
setEndNode(endNode)
Set this wire end node
Parameters:
Name | Type | Description |
---|---|---|
endNode |
Node | wire end node |
- Source:
updateEnd(endX, endY)
Change wire end
Parameters:
Name | Type | Description |
---|---|---|
endX |
number | New end X coordinate |
endY |
number | New end Y coordinate |
- Source: