tracking-code-which-will-go-to-the-HEAD LinkAction

Class

LinkAction

LinkAction(pluginData, viewport, layout)

Action to link component to another.
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.

View Source draw/action/LinkAction.js, line 7

Members

boolean

# isInit

Whether the action is initialized or not.

View Source draw/action/LinkAction.js, line 21

null
Stored link for finalize.

View Source draw/action/LinkAction.js, line 26

Methods

# execute(event) → {boolean}

Draw temporary link and store link for finalize.
Parameters:
Name Type Description
event object The event containing the target information.

View Source draw/action/LinkAction.js, line 34

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.

View Source draw/action/LinkAction.js, line 70

Need to draw to remove temporary link.
boolean