Jero Soler

Results 367 comments of Jero Soler

In tabs, the element is not usually destroyed. Since it is preloaded, it just hides. You can load multiple editors one for each tab. ```javascript const editor = new Drawflow(document.getElementById("drawflow"));...

Hi @Crystal701 Default no. But I've been experimenting a bit with svelte's REPL. It must be said that I have not touched svelte. But I managed to load a svelte...

Hi! @nishanshashintha1996 Try event "click" or "clickEnd": ```javascript editor.on("click", (e) => { if(e.target.classList[0] === 'parent-drawflow' || e.target.classList[0] === 'drawflow') { console.log("Click on Canvas"); } }) ```

Hello Yes the function is 'updateConnectionNodes(id)' Be careful when passing the parameter. ``` updateConnectionNodes('node-5') // ✔ CORRECT updateConnectionNodes(5) // ⛔ INCORRECT ``` There are some inconsistencies in the functions.

Create an example to see the problem.

How are you grouping the nodes? On the same DOM level? On another level. I see that its child nodes have no inputs or outputs. It reminds me: - https://github.com/jerosoler/Drawflow/issues/363#issuecomment-1050699201...

1: I don't understand. But you can implement a double click event like in the demo. Demo: https://jerosoler.github.io/Drawflow/ File demo: https://github.com/jerosoler/Drawflow/blob/master/docs/index.html#L366 2: View - https://github.com/jerosoler/Drawflow/issues/35

Remove from file: ```javascript export default ``` And load with normal javascript file with script tag.

I just don't understand what the problem is. Register all available nodes. Node registration is for vue or HTML. If you are using html, you can load the html node...

Load data with import methods. `editor.import()` View repo with vue3 https://github.com/jerosoler/drawflow-vue3-example And demo: https://jerosoler.github.io/drawflow-vue3-example/