Details

    • Type: New Feature Request New Feature Request
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Environment:

      Description

      Current implementation always link the conenctors from the center of each elements. On crowded elements (i.e VLAN elements/electrical diagram) this can end up with a spiderweb. Using different conenctors can allow to have a cleaner states. The provided patch implements a way to define the anchors for each end of the connector. If we provide a side, it calculate the created line (corner to corner) and calculate the shortest path to reach the side. Since we uses a 2D and the line is finite, we only have to compare 3 points: line start, middle, line end. We form 2 lines (a point is a line with start=middle=end) and determine what point to point is the shortest. This gives the connector start and end coordinates.

      Effect is displayed in the provided png.

      1. map_connectors_anchors.patch
        48 kB
        Martin Brassard
      1. map.php.png
        12 kB

        Activity

        Hide
        Martin Brassard added a comment -

        Forgot to specify: the current implementation uses the link drawtype field to store the anchors. A cleaner implementation would add two fiels (anchor1 and anchor2 for example) in the sysmaps_links table and store the information there.

        Show
        Martin Brassard added a comment - Forgot to specify: the current implementation uses the link drawtype field to store the anchors. A cleaner implementation would add two fiels (anchor1 and anchor2 for example) in the sysmaps_links table and store the information there.
        Hide
        Alexei Vladishev added a comment -

        Thanks for the great suggestion, will be considered for inclusion.

        Show
        Alexei Vladishev added a comment - Thanks for the great suggestion, will be considered for inclusion.

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Brassard
          • Votes:
            7 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: