Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Possible to click endpoints to create link via LinkingTool?

$
0
0

@turnert wrote:

TL;DR: "The LinkingTool lets a user draw a new Link between two ports, using a mouse-drag operation." - Can I use this using mouse-click operations?

For the system I'm working on, we need to be able to create links by clicking between two points rather than dragging. I'll be able to handle this outside GoJS by creating my own system to manage state of a linkingTool-esque state machine, but I would rather be able to do so using the levers GoJS provides.

The sort of functionality we're looking for is as follows:

  • User clicks on port of Node A and then port of Node B. A link is drawn
  • User clicks on diagram, a placeholder node is created, user clicks on port of Node B. A link is drawn between placeholder and Node B.
  • User clicks on diagram, a placeholder node is created, user clicks on diagram again and a second placeholder is created. A link is drawn between placeholders.

We don't need any sort of "virtual" link drawn; only the true link after the second click is needed.

Is this something that would be reasonably do-able with GoJS or would it be more effective for me to create a system outside of GoJS to handle the state and link/node creation?

Any feedback would be appreciated, thanks!

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles