Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Define direction for edge at connection point in mxGraph #508

Closed
lprc opened this issue Sep 8, 2020 · 1 comment
Closed

Define direction for edge at connection point in mxGraph #508

lprc opened this issue Sep 8, 2020 · 1 comment

Comments

@lprc
Copy link

lprc commented Sep 8, 2020

Since I don't get a response on StackOverflow using the tag mxgraph as suggested in the Readme of the main repo, I'll try it here. (SO thread)

I have a T-piece for splitting and edge into two. Is it possible to define a direction for edges which are connected to the connection points of the T-piece? I need to use the orthogonalEdgeStyle. Maybe STYLE_PORT_CONSTRAINT can help here but I don't quiet know how to use it. I tried inserting e.g. portConstraint=west,east; into the style of the T-piece but with no appeal. I would have to be able to do it for each connection constraint individually anyways.

What it looks like now:

What I want it to look like:

Thanks!

@PrudhviMadasu
Copy link

You can use mxMarker.addMarker and get the style of edge and append new style
Use startArrow and endArrow to decide in which direction you need a pointer

@davidjgraph davidjgraph transferred this issue from another repository Nov 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants