Menu

#9 boxes connected with two lines are not rendered properly

v1.0 (example)
open
nobody
None
5
2014-05-20
2014-05-20
No

See this:

+-----------+
| upper box |
+-+------+--+
| |
| |
+-+------+---+
| bottom box |
+------------+

Here I have two boxes (upper and bottom), and they are connected to each other with two lines.

Unfortunately, ditaa renders this as three separate boxes, without any connections.
I understand this is a tricky case, but it's also a case that is often used when working with networking diagrams.. I don't know how this could be solved automatically, but some kind of tag like {notbox} would be enough to sort this out.

Related

Bugs: #9

Discussion

  • Mateusz Viste

    Mateusz Viste - 2014-05-20

    damn, the sourceforge formatting broke my example ascii graph :/ here it is again, in non-broken form:

    +-----------+
    | upper box |
    +-+------+--+
      |      |
      |      |
    +-+------+---+
    | bottom box |
    +------------+
    
     

    Last edit: Mateusz Viste 2014-05-20
    • Stathis Sideris

      Stathis Sideris - 2014-05-20

      Would it make sense to have arrowheads on one or both sides of the line? I
      think that would stop it being rendered as a box.

      On 20 May 2014 11:04, Mateusz Viste mv_fox@users.sf.net wrote:

      damn, the sourceforge formatting broke my example ascii graph :/ here is
      again in non-broken form:

      +-----------+ upper box +-+------+--+
      +-+------+---+

      Status: open
      Group: v1.0 (example)
      Created: Tue May 20, 2014 10:02 AM UTC by Mateusz Viste
      Last Updated: Tue May 20, 2014 10:02 AM UTC
      Owner: nobody

      See this:

      +-----------+
      | upper box |
      +-+------+--+
      | |
      | |
      +-+------+---+
      | bottom box |
      +------------+

      Here I have two boxes (upper and bottom), and they are connected to each
      other with two lines.

      Unfortunately, ditaa renders this as three separate boxes, without any
      connections.
      I understand this is a tricky case, but it's also a case that is often
      used when working with networking diagrams.. I don't know how this could be
      solved automatically, but some kind of tag like {notbox} would be enough to
      sort this out.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ditaa/bugs/9/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #9

  • Stathis Sideris

    Stathis Sideris - 2014-05-20

    Would it make sense to have arrowheads on one or both sides of the line? I think that would stop it being rendered as a box.

     
    • Mateusz Viste

      Mateusz Viste - 2014-05-20

      Yes, you are right - indeed if I add arrows, then the problem disappears, but I end up with meaningless arrows on my diagram, which still doesn't make much sense :)

      But this gives me another idea - a possible alternative solution to the "notbox" tag would be to define some "invisible arrows" (ie a way to say "this is a line").

       

Log in to post a comment.

MongoDB Logo MongoDB