timdp / swirly

A marble diagram generator.
https://swirly.dev
MIT License
118 stars 3 forks source link

Multiline operator support (and lines without |) #48

Open ildar2 opened 1 year ago

ildar2 commented 1 year ago

Hi! Love your tool! Is there a way to make a single big operator box with a bunch of stuff in it? (and also show a hot flow without ending it with a |)

Because for now this input:

--a---------

> some operator
> continuation

Looks like this: diagram-2

Expected result: diagram-3-2

P.S. yeah, I can make two separate operators, but that's not it

ildar2 commented 1 year ago

Also I've noticed that you can't have different variables with the same text. I wanted to illustrate 500 errors on different requests using different styling, but first marbles' style gets overwritten

[styles.f]
fill_color = #75bbfd

[styles.g]
fill_color = #68d594

[styles.d]
fill_color = #75bbfd

[styles.c]
fill_color = #68d594

  --f--g----d---c----|
title = Network events:
f := 500
g := 502
d := 200
c := 200

results in: diagram-4