Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support trapezoid / mux shapes for ascii diagrams #134

Open
mithro opened this issue May 14, 2019 · 2 comments
Open

Support trapezoid / mux shapes for ascii diagrams #134

mithro opened this issue May 14, 2019 · 2 comments

Comments

@mithro
Copy link

mithro commented May 14, 2019

The following shapes are really useful in logic diagrams;

 |\
 | |
 | |
 |/

 +--\
 |  |
 |  |
 +--/

The simplest implementation would be just to do a box with different styles for the corners.

More advanced would be to actually do the one side as an angle like the following;

 |\
 | \
 |  |
 | /
 |/


 +-\
 |  \
 |   |
 |  /
 +-/

 +--\
 |   \
 |    |
 |   /
 +--/

This is an example diagram that I ended up doing with these style of shapes;

   +-------------------------------------------------------------------+
   |                                                                   |
   |       +------------+                                              |
ia1|------>|i1          |                                              |
   |       |   childa  o|-+------------------------------------------->|o0
ia2|-->|\  |            | |                                            |
   |   ||->|i2          | |                                            |
ia3|-->|/  +------------+ |  +----------+                              |
   |                      +->|i childb o|-+-->|\                       |
   |                      |  +----------+ |   ||   +----------+        |
   |                      |               |   ||-->|i childc o|-->|\   |
   |                      +------------------>||   +----------+   ||   |
   |                      |               |   |/                  ||   |
   |                      |               |             /-------->||-->|o1
   |                      |               \-------------/         ||   |
   |                      |                                       ||   |
   |                      \-------------------------------------->|/   |
   |                                                                   |
   +-------------------------------------------------------------------+
@Qix-
Copy link
Collaborator

Qix- commented May 14, 2019

I think custom shapes in general would be a cool feature to have. I need to think about how it would work, though. Might consider this for AF3.

@Qix- Qix- added this to the asciiflow3 milestone Jun 15, 2020
@Qix-
Copy link
Collaborator

Qix- commented Mar 9, 2021

@lewish do you have any strong opinions on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants