@samatawy/diagrams
    Preparing search index...

    Interface StrokeStyle

    StrokeStyle defines the properties of a stroke (outline) that can be applied to nodes in the diagram, including color, width, dash pattern, and arrow direction.

    interface StrokeStyle {
        color?: string;
        width?: number;
        dash?: string | number[];
        arrow_start?: ArrowType;
        arrow_end?: ArrowType;
    }
    Index

    Properties

    color?: string

    The color of the stroke, which can be a CSS color string (e.g., '#000000' for black) or undefined for a default color. If the color is undefined, the rendering logic may choose a default stroke color based on the node's properties or theme.

    width?: number

    The width of the stroke, which can be a number representing the width in pixels or undefined for a default width. If the width is undefined, the rendering logic may choose a default stroke width based on the node's properties or theme.

    dash?: string | number[]

    The dash pattern of the stroke, which can be a string representing a predefined pattern ('solid', 'dashed', 'dotted', 'dashdot') or an array of numbers for a custom pattern. If the dash pattern is undefined, the rendering logic may choose a default pattern based on the node's properties or theme.

    arrow_start?: ArrowType

    The type of arrowhead at the start of the stroke, which can be one of the predefined ArrowType values or undefined for no arrowhead. If the arrow type is undefined, the rendering logic may choose a default arrow type based on the node's properties or theme.

    arrow_end?: ArrowType

    The type of arrowhead at the end of the stroke, which can be one of the predefined ArrowType values or undefined for no arrowhead. If the arrow type is undefined, the rendering logic may choose a default arrow type based on the node's properties or theme.