GoJS API
/ to search
    Preparing search index...

    Variable FiguresConst

    Figures: {
        BarH: "BarH";
        BarV: "BarV";
        Border: "Border";
        Borders: "Borders";
        Capsule: "Capsule";
        Circle: "Circle";
        Diamond: "Diamond";
        Ellipse: "Ellipse";
        LineDown: "LineDown";
        LineH: "LineH";
        LineLeft: "LineLeft";
        LineRight: "LineRight";
        LineUp: "LineUp";
        LineV: "LineV";
        MinusLine: "MinusLine";
        None: "None";
        PlusLine: "PlusLine";
        Rectangle: "Rectangle";
        RoundedBottomRectangle: "RoundedBottomRectangle";
        RoundedLeftRectangle: "RoundedLeftRectangle";
        RoundedRectangle: "RoundedRectangle";
        RoundedRightRectangle: "RoundedRightRectangle";
        RoundedTopRectangle: "RoundedTopRectangle";
        Square: "Square";
        Triangle: "Triangle";
        TriangleDown: "TriangleDown";
        TriangleLeft: "TriangleLeft";
        TriangleRight: "TriangleRight";
        TriangleUp: "TriangleUp";
        XLine: "XLine";
    } = ...

    All built-in figure names for Shape.figure. Use these constants instead of plain strings for autocomplete and type safety.

    Example:

    new go.Shape({ figure: go.Figures.RoundedRectangle })
    // equivalent to:
    new go.Shape({ figure: "RoundedRectangle" })

    Type Declaration

    • ReadonlyBarH: "BarH"
    • ReadonlyBarV: "BarV"
    • ReadonlyBorder: "Border"
    • ReadonlyBorders: "Borders"
    • ReadonlyCapsule: "Capsule"
    • ReadonlyCircle: "Circle"
    • ReadonlyDiamond: "Diamond"
    • ReadonlyEllipse: "Ellipse"
    • ReadonlyLineDown: "LineDown"
    • ReadonlyLineH: "LineH"
    • ReadonlyLineLeft: "LineLeft"
    • ReadonlyLineRight: "LineRight"
    • ReadonlyLineUp: "LineUp"
    • ReadonlyLineV: "LineV"
    • ReadonlyMinusLine: "MinusLine"
    • ReadonlyNone: "None"
    • ReadonlyPlusLine: "PlusLine"
    • ReadonlyRectangle: "Rectangle"
    • ReadonlyRoundedBottomRectangle: "RoundedBottomRectangle"
    • ReadonlyRoundedLeftRectangle: "RoundedLeftRectangle"
    • ReadonlyRoundedRectangle: "RoundedRectangle"
    • ReadonlyRoundedRightRectangle: "RoundedRightRectangle"
    • ReadonlyRoundedTopRectangle: "RoundedTopRectangle"
    • ReadonlySquare: "Square"
    • ReadonlyTriangle: "Triangle"
    • ReadonlyTriangleDown: "TriangleDown"
    • ReadonlyTriangleLeft: "TriangleLeft"
    • ReadonlyTriangleRight: "TriangleRight"
    • ReadonlyTriangleUp: "TriangleUp"
    • ReadonlyXLine: "XLine"
    since

    4.0