Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not draggable elements with setContainer #34

Open
LilKiwi opened this issue Nov 21, 2017 · 1 comment
Open

not draggable elements with setContainer #34

LilKiwi opened this issue Nov 21, 2017 · 1 comment

Comments

@LilKiwi
Copy link

LilKiwi commented Nov 21, 2017

Hello people,
I have following problem ...
I used jsplumb in a project using a plumber-service.ts.
if I write following:

constructor(_flowchartService: FlowChartService) {
this.jsPlumb.setContainer("flowdesigner");
}

I see my arrows and stubs, but they are not draggable.. (on reload they are draggable again)
if I write it like this

constructor(_flowchart: FlowChart) {
this.jsPlumb.setContainer("flowdesigner");
this.jsPlumb.bind("connection", (info) => {
      that._flowchart.addConnection(info);
      this.jsPlumb.select(info).addOverlay(["Arrow", { width: 10, length: 30, location: 1 }]);//without that i dont have arrows on reload
})
}

I get double arrows and connections. i can drag the first connection and detach it, but the second is still visible.
if i dont set the container neither stubs nor arrows are shown
Any idea how to make it draggable in the service? Or how to fix the double connection issue?
(the draggable is set in another component)

@LilKiwi
Copy link
Author

LilKiwi commented Nov 21, 2017

Updae: even if I put the setcontainer into the component constructor where the draggable is, it still doesnt let me drag the items

@sporritt sporritt transferred this issue from jsplumb/jsplumb Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant