sverweij / mscgen_js

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

Feature: improve support for visualizing system traces #252

Open exinton opened 6 years ago

exinton commented 6 years ago

Needs ability to display json message with proper indentation

Expected Behavior

The message should display the json format message with proper indentation for better human reading

Current Behavior

The parsing function will ignore white space and newline, as well as center text align.

Possible Solution

add options in the web ui and cli for user to select weather to ignore white space, new line and how the text is aligned.

Steps to Reproduce (for bugs)

A sample txt input is attached

Context

If just passing the title of the message, then the mscgen.js provides very few information to the reader. However, if I want to put the whole json in the label, it's really hard to read now. Now I have to modify the svg file itself to make it not ignore space, and text-aligned to left

We tried to display the system call between modules with mscgen

Your Environment

sverweij commented 6 years ago

First of my apologies for the super long delay in responding to this issue.

Although I know mscgenjs is used for visualising traces (and/ or documenting flows including complete messages), it was not its first design goal. As a consequence the stylesheets that are included and the little design decisions that influence the rendering are geared towards systems modelling - as you discovered.

The way I intend to solve it is

These are not changes I can make overnight (my spare time is limited and the code base is in need of some love regardless of any features) - but I'll place em on the backlog .