sverweij / mscgen_js

text => sequence charts
https://mscgen.js.org
GNU General Public License v3.0
206 stars 25 forks source link

Feature request for virtual arc (arrow up/down) #261

Closed bmoesdijk closed 5 years ago

bmoesdijk commented 5 years ago

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

N.A.

Context

example UML mscgen code: msc { arcgradient=20, hscale=0.6; a [label="",linecolor="white"], b [label="", linecolor="white"], c [label="", linecolor="white"];

b rbox b [label="textBox 1b", linecolor="grey", textbgcolor="grey"], b => a [arcskip="2", linecolor="black"], b => c [arcskip="2", linecolor="black"], b => b [arcskip="90", linecolor="black"]; /* Should draw a vertical line over b from one step to the next. (in this example the 2 rbox-es on b; 1b -> 2b) |||; a rbox a [label="textBox 2a", linecolor="grey", textbgcolor="grey"], b rbox b [label="testBox 2b", linecolor="green",textbgcolor="green"], c rbox c [label="testBox 2c", linecolor="green",textbgcolor="green"]; }

Your Environment

sverweij commented 5 years ago

@bmoesdijk The chart I get from your msc looks like a graph:

untitled

Is it intentional to get a graph-like representation? What is it you want to accomplish?

bmoesdijk commented 5 years ago

Our MailScanner believes that the attachment to this message sent to you

From: boudewijn@moesdijk.com

Subject: Re: [sverweij/mscgen_js] Feature request for virtual arc (arrowup/down) (#261)

is Unsolicited Commercial Email (spam). Unless you are sure that this message is incorrectly thought to be spam, please delete this message without opening it. Opening spam messages might allow the spammer to verify your email address.

If you believe that this message has been incorrectly marked as spam, please forward this email to postmaster.

Date: 20190913

bmoesdijk commented 5 years ago

This is what I would like to accomplish. Screen Shot 2019-09-20 at 17 40 09

As you can see in the example diagram above the vertical line in the middle is currently not possible to draw. With the support of a vertical line it allows me to draw UML like diagrams. E.g. hierarchical diagrams or organograms, etc.

sverweij commented 5 years ago

If you want to accomplish that you might be better of with a tool that is geared towards graph modelling:

bmoesdijk commented 5 years ago

Thanks a lot! I will have a look at these alternatives

Kind regards Boudewijn

On 20 Sep 2019, at 20:46, Sander Verweij notifications@github.com wrote:

If you want to accomplish that you might be better of with a tool that is geared towards graph modelling:

GraphViz is excellent for that - you can try it online at viz-js, and in the atom editor with the graphviz-preview-plus package. If you're looking for something conceptually higher level than graphviz you can consider nomnoml - which is also text based and seems to have a nice layout algorithm If you're into writing UML state machines you could use state machine cat (atom package: state-machine-cat-preview)- which I wrote for that purpose. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/sverweij/mscgen_js/issues/261?email_source=notifications\u0026email_token=AHB34IZJKPTJOBX27BL2O7TQKULABA5CNFSM4IWOT7PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7HSGBQ#issuecomment-533668614", "url": "https://github.com/sverweij/mscgen_js/issues/261?email_source=notifications\u0026email_token=AHB34IZJKPTJOBX27BL2O7TQKULABA5CNFSM4IWOT7PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7HSGBQ#issuecomment-533668614", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.