Jero Soler

Results 367 comments of Jero Soler

Hello, The minimap is an example of the possibilities. You could modify the file: https://github.com/jerosoler/drawflow-minimap-example/blob/main/minimap-drawflow.js The nodeCreated event function to create a div with a width and height based on...

There isn't just one way. You just have to get to the `updateNodeDataFromId` function. In vue 3 you can see an example here, in this case without event bus. https://github.com/jerosoler/drawflow-vue3-example

Hello, I could do something like that. ```javascript editor.changeModule = function (name) { this.module = name; this.precanvas.innerHTML = ""; this.canvas_x = 0; this.canvas_y = 0; this.pos_x = 0; this.pos_y =...

How do you add those nodes and those connections? With the mouse UI? or by programming?

Hello The problem is that it is updating the connections by the nodes. You could comment the following lines in function addConnection: ```javascript this.updateConnectionNodes('node-'+id_output); this.updateConnectionNodes('node-'+id_input); ``` And delaying the execution...

You can see in the vue3 example. How do we pass the property df. - https://github.com/jerosoler/drawflow-vue3-example/blob/dbd08ca8156a4aae7a8c5d4f9fe5f29a0f5b0a58/src/components/drawflow.vue#L82C8-L82C8 To access from the nodes. - https://github.com/jerosoler/drawflow-vue3-example/blob/dbd08ca8156a4aae7a8c5d4f9fe5f29a0f5b0a58/src/components/nodes/node2.vue#L56C7-L56C7 I don't know if this will help...

🤔 Creating standalone apps? With "createApp"?

View example implementation with vue3 - Repo: https://github.com/jerosoler/drawflow-vue3-example - Demo: https://jerosoler.github.io/drawflow-vue3-example/

In principle the only change would be the one provided in the documentation. https://github.com/jerosoler/Drawflow#for-vue-2-example You can look in this file, the implementation: https://github.com/jerosoler/drawflow-vue3-example/blob/master/src/components/drawflow.vue