Nutrient Web SDK
    Preparing search index...

    Variable LINE_CAP_PRESETS

    LINE_CAP_PRESETS: (
        | "square"
        | "circle"
        | "diamond"
        | "openArrow"
        | "closedArrow"
        | "butt"
        | "reverseOpenArrow"
        | "reverseClosedArrow"
        | "slash"
        | "none"
    )[] = ...

    The list of line cap styles available in the start-cap and end-cap dropdowns of the Line and Polyline annotation secondary toolbars. Setting this option controls which caps users can choose. It does not change the default cap applied to new annotations.

    The order of values determines the order items appear in the dropdown. Both the start-cap and end-cap dropdowns reflect the same list.

    This is a display filter only: annotations already saved with a cap type not present in your preset will still render correctly; the cap simply will not be offered in the toolbar.

    Setting this to an empty array ([]) empties the dropdown entirely.

    Valid values:

    Value Description
    "none" No cap (flat endpoint)
    "square" Filled square
    "circle" Filled circle
    "diamond" Filled diamond
    "openArrow" Open arrowhead (outline only)
    "closedArrow" Filled arrowhead
    "butt" Perpendicular flat line
    "reverseOpenArrow" Open arrowhead pointing inward
    "reverseClosedArrow" Filled arrowhead pointing inward
    "slash" Diagonal slash
    ["none", "square", "circle", "diamond", "openArrow", "closedArrow", "butt", "reverseOpenArrow", "reverseClosedArrow", "slash"]
    
    NutrientViewer.Options.LINE_CAP_PRESETS = ["none", "openArrow", "closedArrow"]
    
    NutrientViewer.Options.LINE_CAP_PRESETS = ["square", "circle", "openArrow", "closedArrow"]
    
    NutrientViewer.Options.LINE_CAP_PRESETS = []
    
    NutrientViewer.Options.LINE_CAP_PRESETS = [
    "none", "square", "circle", "diamond",
    "openArrow", "closedArrow", "butt",
    "reverseOpenArrow", "reverseClosedArrow", "slash"
    ]