@samatawy/diagrams
    Preparing search index...

    Interface ShadowStyle

    ShadowStyle defines the properties of a shadow effect that can be applied to nodes in the diagram.

    interface ShadowStyle {
        name: string;
        color?: string;
        blur: number;
        offset: IPoint;
    }
    Index

    Properties

    Properties

    name: string

    The name of the shadow style, used for display purposes in the UI when selecting a shadow effect.

    color?: string

    The color of the shadow, 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 shadow color based on the node's properties or theme.

    blur: number

    The blur radius of the shadow, which determines how blurry the shadow appears. A higher value results in a softer, more diffuse shadow, while a value of 0 creates a sharp shadow with no blur.

    offset: IPoint

    The offset of the shadow, which determines the horizontal and vertical displacement of the shadow relative to the node. Positive values move the shadow right and down, while negative values move it left and up. The offset has an x component for horizontal displacement and a y component for vertical displacement, allowing for directional shadows (e.g., a shadow that appears to the right and below the node).