Class Shadow

Hierarchy

  • Shadow

Constructors

Properties

affectStroke: boolean

Whether the shadow should affect stroke operations

Default


blur: number

Shadow blur

color: string

Shadow color

Default


id: number
includeDefaultValues: boolean

Indicates whether toObject should include default values

Default


nonScaling: boolean

When false, the shadow will scale with the object. When true, the shadow's offsetX, offsetY, and blur will not be affected by the object's scale. default to false

Default


offsetX: number

Shadow horizontal offset

Default


offsetY: number

Shadow vertical offset

Default


ownDefaults: Partial<TClassProperties<Shadow>> = shadowDefaultValues
reOffsetsAndBlur: RegExp = ...

Regex matching shadow offsetX, offsetY and blur (ex: "2px 2px 10px rgba(0,0,0,0.2)", "rgb(0,255,0) 2px 2px")

Methods

  • Parameters

    • value: string

      Shadow value to parse

    Returns {
        blur: number;
        color: string;
        offsetX: number;
        offsetY: number;
    }

    Shadow object with color, offsetX, offsetY and blur

    • blur: number
    • color: string
    • offsetX: number
    • offsetY: number

Generated using TypeDoc