sverweij / mscgen_js

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

Feature request: add auto numbering #263

Open Walter-Chang opened 4 years ago

Walter-Chang commented 4 years ago

Xu is decared to be a superset of msgen, but some msgen features, such as auto numbering, are not supported using xu. Chapter 8.4 of MscGen document show the usage of auto numbering, but the property cannot be recognized by Xu.

sverweij commented 4 years ago

Hi @Walter-Chang - Xù is a superset of the mscgen language as described here: http://www.mcternan.me.uk/mscgen/. To the best of my knowledge that doesn't have auto numbering.

The link you provided is for a program/ language called msc-generator, which is a different thing. Apparently, it seems to be called MSC-gen once in a while (which is confusing)...

Walter-Chang commented 4 years ago

Hi Sverweij, Thanks for your explanation. Sorry for confusing msc-generator as msc-gen. Actually, I think auto-numbering is really helpful, especially when I trying to present a long flow. It is easier to keep the presentator and listener on the same page. Can you plan auto-numbering as a feauture of Xù in future, or is there any workaround I can take to implement t it? Thanks again for giving this great tool ! Walter

sverweij commented 4 years ago

@Walter-Chang auto-numbering has been on the mscgenjs core product backlog for some time. T.b.h. I'm not making much progress on mscgen.js features a.t.m. because of other commitments. That said, it should not be super hard to implement once it's figured out what exactly to count (assumption: individual messages, even when they occur at the same time, like 2 and 3 in the chart below - (check?))

mscgenjs_chart

Walter-Chang commented 4 years ago

Hi Sverweij, You are right, it is difficult to judge which line needs to be counted, since there user's requirement varies big. I think one option is to let user decide the line to be counted. We can have 2 types of flags, global auto-number flag and inline flag, just like other properties. Thanks. Walter

stale[bot] commented 4 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.