Giter VIP home page Giter VIP logo

Comments (10)

sverweij avatar sverweij commented on May 21, 2024 2

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

sverweij avatar sverweij commented on May 21, 2024

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

sverweij avatar sverweij commented on May 21, 2024

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;

before after

from state-machine-cat.

LevelbossMike avatar LevelbossMike commented on May 21, 2024

this looks great! Is this already released? I still see the old behavior in the web-editor

bildschirmfoto 2018-10-22 um 09 50 08

from state-machine-cat.

namibj avatar namibj commented on May 21, 2024

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.

sverweij avatar sverweij commented on May 21, 2024

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.

sverweij avatar sverweij commented on May 21, 2024

hi @LevelbossMike - a ping as promised: the PR above tries to fix the issue. I've published a first beta version:

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.

sverweij avatar sverweij commented on May 21, 2024

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.

LevelbossMike avatar LevelbossMike commented on May 21, 2024

@sverweij looks great 🍻 👍

from state-machine-cat.

sverweij avatar sverweij commented on May 21, 2024

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

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.