question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to draw the Nodes within Drawflow canvas based on user preferred size and position?

See original GitHub issue

I am using the Drawflow within my Vuejs/Nuxtjs application and creating Nodes dynamically upon clicking on the Add Node button. During the addition of the Node within addNode method, I am passing the posx and posy due to which Node is always added to the same place in Drawflow Canvas and I have to drag it to the different place based on my wish.

Is there any way for me to add it to the place I would like directly rather than adding it to the same posx and posy? Also, set the size (height and width) of the Node dynamically? Something like the Drag-and-drop with Draw approach after clicking on the Add Node button?

I have added my code sample in CodeSandbox.

I am really looking forward to some suggestions or work-around. I looking for some suggestions that would look something like this: CPT2111181107-1920x930

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jerosolercommented, Nov 24, 2021

I just saw that the corresponding css was not being applied.

1reaction
jerosolercommented, Nov 23, 2021

Try change this lines:

@import "~/assets/css/drawflow.css";
@import "drawflow/dist/drawflow.min.css";

to

@import "drawflow/dist/drawflow.min.css";
@import "~/assets/css/drawflow.css";

And add css of the library theme: https://element.eleme.io/#/es/component/quickstart

import 'element-ui/lib/theme-chalk/index.css';
Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to draw something on the canvas that I'd ...
You can draw them entirely, but the part supposed to be hidden won't be displayed because it will be drawn outside the canvas....
Read more >
Create diagrams and flows with connectors and lines
This way, a shape brings its lines along with it if it's moved around the board. Click in the toolbar. Select between an...
Read more >
Css draw line - Un gioco da ragazzi?
Instructions. how to draw a vertical line between two divs in html. A basic HR tag displays the way the browser wants to...
Read more >
The Graphics Canvas element - HTML - MDN Web Docs
Use the HTML element with either the canvas scripting API or the WebGL API to draw ... The height of the coordinate space...
Read more >
9 flowchart and diagramming tools for Linux - Opensource.com
Flowcharts are a great way to formalize the methodology for a new ... However, we're increasing our use of G Suite in part...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found