jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.76k stars 738 forks source link

Drawflow with Angular #340

Closed runrevben closed 2 years ago

runrevben commented 2 years ago

Hi, I'm looking into using this library in an Angular project. Has anyone wrapped it yet or in the process of doing that? If not, I would be up for taking that on.

Cheers,

B

jerosoler commented 2 years ago

Hello,

You can use with angular, as it is vanilla javascript. There is currently no wrapped.

You can see more information: https://github.com/jerosoler/Drawflow/issues/160

Jero

RoyaghRamo commented 2 years ago

I've tried doing it on Angular Check out my project here https://github.com/RoyaghRamo/angular-drawflow-example Maybe it can be of help

HenrryJK commented 1 year ago

Doesn't work for node 18.15.0

jerosoler commented 1 year ago

What error? The lib is for frotend.

cdufrechou commented 1 year ago

I'm using node 14.16.0 and the https://github.com/RoyaghRamo/angular-drawflow-example doesn't work for me. The npm install is ok if a choose Angular CLI 13.1.2 as specified but => the ng serve is KO

=> problem of missing component (draw-board/draw-board.component) => problem of bootstrap if i try to suppress link to draw-board.component in code: [Cannot find module '@ng-bootstrap/ng-bootstrap']

So I it's not easy to know the level of incompatibility with my node.js, I search a good example of use of drawflow as i has been attempted by RoyaghRamo :(

My goal is to be able to manage DrawFlow to :

So I think angular is needed to refer your project and to add a "layer" to be able to do all that complex things. But perhaps I have to derivate directly from the Drawflow project ....

So a good example can help to understand what solution to choose.

Regards

Nagaraj172004 commented 1 year ago

Uncaught TypeError: Cannot read properties of null (reading 'clientWidth') at addNodeToDrawFlow ((index):137:41) at drop ((index):128:9) at HTMLDivElement.ondrop ((index):336:9)

Thank you for your draflow @jerosoler , its really helpfull, im facing issue drawflow using Angular , im using Angular , when i drag in and drag out the node im getting this error, can anyone tell me where i mistake , Thanks in advance , Pls check attached snap below , Thank you image

Faizi9321 commented 1 year ago

I've tried doing it on Angular Check out my project here https://github.com/RoyaghRamo/angular-drawflow-example Maybe it can be of help

when run project show nothing only show empty canvas

digambardeshmukh12 commented 1 year ago

I've tried doing it on Angular Check out my project here https://github.com/RoyaghRamo/angular-drawflow-example Maybe it can be of help

I tried to run your project but they show errors like An unhandled exception occurred: Cannot find module 'node: util' Require stack:

I use angular 13 and node 14

lucasguarasp commented 7 months ago

I'm creating a project in Angular based on drawflow, to create conversation scripts on WhatsApp if you want to take a look, it's still public, maybe when it's ready I'll launch the repository

https://github.com/lucasguarasp/wflow-bot image

eugenedw commented 6 months ago

@lucasguarasp, thank you!!! made just a few minor tweaks to make it a standalone component, works perfectly.

corinaivn commented 6 months ago

Hi! I was wondering if anyone managed to register Angular components as custom nodes. Thanks!