GoJS API
/ to search
    Preparing search index...

    Enumeration Orientation

    This enumeration specifies possible values for GraphObject.segmentOrientation.

    since

    3.0

    Index

    Enumeration Members

    Along: 21

    Rotate the object to have the same angle as the segment it is at; use this orientation for arrow heads.

    Minus90: 23

    Rotate the object counter-clockwise 90 degrees to be perpendicular to the angle of the segment it is at.

    Minus90Upright: 27

    Rotate the object counter-clockwise 90 degrees to be perpendicular to the angle of the segment it is at, just like Minus90, but never upside down; this is typically only used for TextBlocks or Panels that contain text.

    None: 0

    Do not rotate the object along the segment.

    Opposite: 24

    Rotate the object to be 180 degrees opposite from the angle of the segment it is at.

    Plus90: 22

    Rotate the object clockwise 90 degrees to be perpendicular to the angle of the segment it is at.

    Plus90Upright: 26

    Rotate the object clockwise 90 degrees to be perpendicular to the angle of the segment it is at, just like Plus90, but never upside down; this is typically only used for TextBlocks or Panels that contain text.

    Upright: 25

    Rotate the object to have the same angle as the segment it is at, just like Along, but never upside down; this is typically only used for TextBlocks or Panels that contain text.

    Upright45: 28

    Rotate the object to have the same angle as the segment it is at, but never upside down and never angled more than +/- 45 degrees: when the segment's angle is with 45 degrees of vertical (90 or 270 degrees), the object's angle is set to zero; this is typically only used for TextBlocks or Panels that contain text.