dev
    Preparing search index...

    Interface ElementStyle

    Element style.

    interface ElementStyle {
        fillStyle?: string;
        lineDash?: string;
        lineWidth?: number;
        shadowBlur?: number;
        shadowColor?: string;
        strokeStyle?: string;
    }
    Index

    Properties

    fillStyle?: string

    CSS color used with context fill command.

    Examples: 'red', '#ff0000', '#ff000010', 'rgb(255,0,0)'

    See CSS Legal Color Values

    lineDash?: string
    lineWidth?: number

    Line width, 1.0 by default.

    shadowBlur?: number

    Level of blur applied to shadows.

    Values that are not finite numbers greater than or equal to zero are ignored.

    shadowColor?: string

    CSS color used for the shadow.

    Examples: 'red', '#ff0000', '#ff000010', 'rgb(255,0,0)'

    See CSS Legal Color Values

    strokeStyle?: string

    CSS color used with context stroke command.

    Examples: 'red', '#ff0000', '#ff000010', 'rgb(255,0,0)'

    See CSS Legal Color Values