@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_at?: ArrowDirection;
        arrow_type?: 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_at?: ArrowDirection

    The direction of the arrow on the stroke, which can be 'start', 'end', 'both', or 'none'. If the arrow direction is undefined, the rendering logic may choose a default direction based on the node's properties or theme.

    arrow_type?: ArrowType

    The type of the arrow on the stroke, which can be 'solid_triangle', 'hollow_triangle', 'solid_diamond', 'hollow_diamond', 'solid_circle', 'hollow_circle', or 'none'. If the arrow type is undefined, the rendering logic may choose a default type based on the node's properties or theme.