Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with integrating flowchart.js #53

Open
sobanhameed opened this issue May 11, 2015 · 5 comments
Open

Issues with integrating flowchart.js #53

sobanhameed opened this issue May 11, 2015 · 5 comments

Comments

@sobanhameed
Copy link

I am seeing this error show up in the logs from rapheal.js on rendering the example you guys have. I have included rapheal.js already.

Error: Invalid value for attribute preserveAspectRatio="meet"

Is this something you guys have noticed? Also I am seeing weird behavior where the same content is being rendered differently (non deterministic). See below. I will dig deeper into this issue but if you have any pointers it will be great.

screen shot 2015-05-11 at 12 54 27 am
screen shot 2015-05-11 at 12 54 39 am

@sobanhameed
Copy link
Author

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.

@justinwong85
Copy link

@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?

@dmk23
Copy link

dmk23 commented Jun 7, 2017

@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!

@alwinn1977
Copy link

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

@jln-dk
Copy link

jln-dk commented Mar 10, 2020

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants