API Docs for: 3.0.0pr2
Show:

WiresDelegate Class

WiresDelegate is an extension for Widgets to manipulate a list of wires.

The WidgetParent/WidgetChild relationship isn't sufficient because wires have 2 parents, so we use this extension instead of WidgetParent

Constructor

WiresDelegate

(
  • config
)

Parameters:

  • config Object

    configuration object

Methods

addWire

(
  • wire
)

Add a wire to this terminal.

Parameters:

  • wire Wire

    Wire instance to add

destroyWires

()

Remove all wires

getConnected

() Array

Returns a list of all the terminals connected to this terminal through its wires.

Returns:

Array:

List of all connected terminals

redrawAllWires

()

Redraw all the wires connected to this terminal

removeWire

()

When a wire is destroyed