Constructor
# new LinkAction(pluginData, viewport, layout)
Default constructor.
Parameters:
Name | Type | Description |
---|---|---|
pluginData |
DefaultData
|
Plugin data storage. |
viewport |
object
|
D3 selection of the view port. |
layout |
DefaultLayout
|
Layout to organise components. |
Members
Methods
# execute(event) → {boolean}
Draw temporary link and store link for finalize.
Parameters:
Name | Type | Description |
---|---|---|
event |
object
|
The event containing the target information. |
Need to draw to display temporary link.
boolean
# finalize(event) → {boolean}
If target can be linked to source, create link otherwise delete and clear temporary link.
Parameters:
Name | Type | Description |
---|---|---|
event |
object
|
The event containing the target information. |
Need to draw to remove temporary link.
boolean