Comments (10)
@LevelbossMike I haven't released it yet - have to do some juggling in the dot
reporter to get to the result. I'll let you know in this thread when I have something testable ready.
from state-machine-cat.
@LevelbossMike thanks for raising this issue, and yes, that needs to be improved. (also the self-transitions from non-nested entities have become a bit too tiny for my taste since the last major change). I'll try to tweak the output into submission.
Your add-on looks cool and very useful 👍 - wish something like this would exist for angular...
(And thanks for the compliments 😊 )
from state-machine-cat.
Intermediate update: below you see the current situation and what I came up with after some graphviz trickery:
ns {
s => s: hi;
};
ns => ns: hi;
from state-machine-cat.
this looks great! Is this already released? I still see the old behavior in the web-editor
from state-machine-cat.
I found a solution for this issue, but it seems to only be applicable to fdp.
You need to use splines=compound
instead of splines=true
,
and the state transitions/edges have to start/end on the "cluster_
"
node instead of the invisible helper node inside the cluster, as is currently done. The lhead="cluster_
"
inside the brackets has to/should be removed.
It might be necessary to also remove rankdir=LR
and add overlap=scale
, at least those seem to have solved it for me.
from state-machine-cat.
Thanks @namibj! - I'll tweak the fdp
output specifically to include you recommendations in a separate PR. (I wish we could do the same for dot
!)
For the dot
(and probably the osage
) algorithm I'm afraid we're stuck with another helper node to guide the self transition outside the clustered node...
from state-machine-cat.
hi @LevelbossMike - a ping as promised: the PR above tries to fix the issue. I've published a first beta version:
- on npm (as [email protected] in the beta channel)
- on https://state-machine-cat.js.org/dev (beware: this will load slower than the regular site as it contains debugging information, source maps - and is not minified to boot)
I've already found two kinks to iron out (see the PR - @namibj already pointed out one of em) - but am curious if this works well enough for your scenario(s).
from state-machine-cat.
Update: just deployed a fix for the first of the two kinks (with direction left-right
and right-left
self transitions to composite states look sorta ok now as well) and published them on npm ([email protected]) and on https://state-machine-cat.js.org/dev.
from state-machine-cat.
@sverweij looks great 🍻 👍
from state-machine-cat.
@LevelbossMike I've merged the PR, released to npm as 4.1.5 and to the main branch on state-machine-cat.js.org.
Thanks again for raising the issue and for the prompt feedback!
from state-machine-cat.
Related Issues (20)
- 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
- bump fast-xml-parser to >=4.1.2
- [Feature request] Package to anaconda HOT 5
- No "exports" main defined HOT 1
- Example in the documentation for a composite state with history, entry and exit actions and a set of substates HOT 3
- Error while using state-machine-cat in NUXT application HOT 1
- sweep(slow): replace the chai assertion library with node:assert statements HOT 3
- Initial state HOT 2
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.