Hi,
I would like to implement the link userHandle in my application.
I've lifted the code from your DiagramBuilder sample that creates the handle (by the way, you give it a name of Line rather than Link).
I've also added the following 3 statements in my load event:
// Add the link handle
createLinkHandle(); // Code lifted directly from the SF DiagramBuilder sample app
diagram.model.userHandles = userHandles;
diagram._initHandles();
My selection change handler looks like this:
function selectionChangeHandler(args) {
var handles = diagram.model.userHandles;
handles[0].visible = true;
diagram.updateUserHandles(args.element);
}
When I run the app and select a single node, the handle does not show.
I realize I need to be making a lot more checks in my handler above, but for now I'm just trying to get the link handle working when I click on a node.
I'm obviously missing something.
What would that be?
Thanks in advance.
Jim