Comments (6)
Hi @sverweij ! Thank you very much for the quick response.
I can confirm your fix is working for my original use case.
from state-machine-cat.
hi @joeriexelmans thanks for raising this issue - it seems you've bumped into a bug. I've reproduced it and have found a likely root cause. I hope to fix it over the coming days - I'll keep you posted in this thread.
from state-machine-cat.
@joeriexelmans Found a fix quicker than anticipated - I've put it up on https://sverweij.gitlab.io/state-machine-cat/ and published it on npm with the beta tag ([email protected]
).
=> Could you verify if it works for your original use case as well?
I'll publish to the regular npm/ state-machine-cat.js.org and the atom package later this week.
B.t.w. Thanks for your excellent bug description - it helped a lot in narrowing down the fix. Your example now renders like this:
from state-machine-cat.
hi @joeriexelmans thanks for testing & getting back! I've published version 6.0.4 to npm and state-machine-cat.js.org (the atom package will follow later)
from state-machine-cat.
@sverweij By the way, if you are interested in a bunch of statecharts that I rendered, you can have a look at this directory of this branch of this repository:
https://msdl.uantwerpen.be/git/simon/SCCD/src/joeri/test/test_files
Most images look pretty OK. They will look better when Graphviz' dot starts natively supporting true edges between clusters :)
The project I'm working on is my master thesis: A statechart interpreter with configurable semantic variability (see http://msdl.cs.mcgill.ca/people/joeri/10_Thesis). The input format uses XML and based on SCXML, but differs in some ways. To render statecharts, the input format is loaded to an internal state tree representation (which serves as input to the interpreter), and this tree is then converted to your 'smcat' format in a dirty script.
Statecharts written in XML are difficult to read, especially since I'm dealing with many different XML files that serve as tests to the interpreter. It's a huge help being able to render my statecharts.
from state-machine-cat.
@joeriexelmans o wow that looks like cool master thesis. Thanks for sharing this!
render.py is the conversion script?
I'm still looking for an alternative to GraphViz that has the capabilities needed for state machines, but that look better (so pretty OK gets to wow that's nice!) and have better native web support.
from state-machine-cat.
Related Issues (20)
- Sometimes transition text is strangely placed HOT 4
- Sometimes the size of a state rectangle is unnecessarily large HOT 1
- support mermaid stateDiagram syntax HOT 3
- smcat fails with: Invalid asm.js: Function definition doesn't match use HOT 6
- SVG conformance ? HOT 17
- Having trouble creating multiply nested loops HOT 2
- Add optional "class" attribute to nodes and links - improved styling and interactivity HOT 6
- Overlapping transition and composite state name label HOT 3
- Publish UMD format to npm HOT 5
- Weighted Edges HOT 4
- TypeError with v9.0.0 HOT 10
- Grammar railroad diagram HOT 4
- Add support for doActivities in SCXML model representation HOT 9
- sm cat syntax does not allow to define multiple initital pseudo-states
- Multiple internal transitions are not rendered nicely HOT 3
- Vim syntax support HOT 3
- Having issue reusing smcat online interpreter
- Add an ESM distribution in addition to CommonJS HOT 3
- Export to png and pdf option HOT 5
- Advantages over PlantUML? HOT 1
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 state-machine-cat.