Comments (5)
You can try to do this via jquery...
Flowchart.js has no idea what is past and future...
from flowchart.js.
I was thinking of something like:
st->op1(color:#FF0000 background-color:#00FF00)->cond
or (better):
op1=>operation(color:#FF0000 background-color:#00FF00): My Operation
from flowchart.js.
I would really recommend to use jquery for that... there shouldn't be too much "styling infos"
$('#op1').attr('fill', '#00FF00');
$('#op1').attr('stroke', '#FF0000');
from flowchart.js.
I was thinking of something like:
st->op1(color:#FF0000 background-color:#00FF00)->cond
or (better):
op1=>operation(color:#FF0000 background-color:#00FF00): My Operation
from flowchart.js.
The jQuery makes sense, sorry that I didn't think about it.
I was musing adding a "color change" item to operation, condition, io, start, stop...
This way I could derive the change point from data without contemplating about how to implement. Something like:
st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes or No?:>http://www.google.com
io=>inputoutput: catch something...
curr=>color: foreground:#FF0000 background:#FFDDDD
future=>color: foreground: #333399 background:#CCCCFF
deadend=>color: foreground:#CCCCCC background:#888888
st->op1->cond
cond(yes)->curr->io-future->e
cond(no)->deadend->sub1(right)->op1
Or...
io(class=future)=>operation
cond(class=current)=>condition
op3(class=deadend)=>operation
You then would only need to generate the class attribute and let the CSS handle the rest.
Eventually even skip the class= and only write op3(deadend)
But I will go with the jquery for now.
from flowchart.js.
Related Issues (20)
- dark mode for http://flowchart.js.org/? HOT 2
- Three parallel lines from start HOT 8
- How can I create below structure? HOT 3
- [Question] How to make two nodes output to the same node? HOT 3
- Not getting the error in code. HOT 10
- Left path not working in parallel. HOT 3
- Open modal popup when clicked on node. HOT 1
- Link not working HOT 5
- Igor? HOT 4
- How do I control the arrow length? HOT 3
- Flow chart scaling and alignment issues HOT 7
- code2flow seems to be more convenient,Whether you have considered changing the syntax like this? HOT 3
- [help] how can i use this lib HOT 1
- I used your example/index.html in pyflowchart
- [Python] Add support for classes HOT 3
- how to use this in typescript? HOT 4
- How to Add Text Direction
- Incorrect element offset HOT 1
- Could you add input, output type? HOT 1
- Items piling on top of each other ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowchart.js.