new module:InputConnector(appInstance, left, top)
Call the constructor from the parent Connector class and set isInputConnector to true.
Parameters:
Name | Type | Description |
---|---|---|
appInstance |
App | link to the App instance that this connector will belong to |
left |
number | horizontal position defined in grid units (SVG pixels divided by the grid size) |
top |
number | vertical position defined in grid units (SVG pixels divided by the grid size) |
Extends
- Connector
Methods
-
removeWireIdAndUpdate(wireId)
-
remove the wire (by calling the removeWireIdAndUpdate of Connector) and update state of this connector by setting it to undefined using the setState method
Parameters:
Name Type Description wireId
string ID of the Wire
-
setState(state)
-
Call the setState method of Connector and than refresh the state of the connected Box
Parameters:
Name Type Description state
Logic.state new Logic.state of the connector