Code Monkey home page Code Monkey logo

Comments (5)

jln-dk avatar jln-dk commented on May 21, 2024 5

If someone is still interested I have created a React wrapper for flowchart.js: jln-dk/react-flowchart.js

Thanks to Adriano Raiano for creating this library! :)

from flowchart.js.

alwinn1977 avatar alwinn1977 commented on May 21, 2024 2

dmk23, see https://github.com/alwinn1977/react-simple-flowchart

from flowchart.js.

sobanhameed avatar sobanhameed commented on May 21, 2024

Here goes the source:

renderSeqDiagram: function(){ if (this.state.content.flowDescription) { try { if(this.dia) { this.dia.clean(); } var options = {'x': 0, 'y': 0}; this.dia = flowchart.parse(this.state.content.flowDescription); this.dia.drawSVG(this.refs.canvas.getDOMNode(),options); } catch (error) { console.log(error); this.refs.canvas.getDOMNode().innerHTML = error; } } },

I am building a react component.

from flowchart.js.

justinwong85 avatar justinwong85 commented on May 21, 2024

@sobanhameed
I find that i'm getting the same issue as well, for example in my case, I bind a button click to refresh the diagram based on the syntax from a textarea:

A simple flow like this is giving issue too:
st=>start: Workflow Start|
op1=>operation: Operation 1|
e=>end: End

st->op1->e

On the first run, everything is ok but when i rerun again, sometime the line breaks in between
If I run it a couple more time, the item seems to be mis-positioned by getting lower to the right every time

Do you have any solution on the above yet?

from flowchart.js.

dmk23 avatar dmk23 commented on May 21, 2024

@sobanhameed
I've been looking for a React library that wraps around flowchart.js and wonder if you have anything you might be able to share or point me to any open source project

So far this issue is the only thing that comes up in search

Any help/guidance greatly appreciated!

from flowchart.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.