BoxShadow

[ Interface ]

export interface BoxShadow {
    color: TcHmi.SolidColor;
    offsetX: number;
    offsetXUnit?: TcHmi.DimensionUnit;
    offsetY: number;
    offsetYUnit?: TcHmi.DimensionUnit;
    inset?: boolean;
    blur?: number;
    blurUnit?: TcHmi.DimensionUnit;
    spread?: number;
    spreadUnit?: TcHmi.DimensionUnit;
}

Properties

Name

Type

Description

color

TcHmi.SolidColor

Color of the shadow

offsetX

number

Numerical value of the distance of the shadow in x-direction

offsetXUnit

TcHmi.DimensionUnit

Unit of the distance of the shadow in x-direction

offsetY

number

Numerical value of the distance of the shadow in y-direction

offsetYUnit

TcHmi.DimensionUnit

Unit of the distance of the shadow in y-direction

inset [ optional ]

boolean

Specifies whether the shadow should be directed inwards.

blur [ optional ]

number

Numerical value of shadow blur

blurUnit [ optional ]

TcHmi.DimensionUnit

Unity of the shadow blur

spread [ optional ]

number

Numerical value of the enlargement or reduction of the shadow

spreadUnit [ optional ]

TcHmi.DimensionUnit

Unit for enlarging or reducing the shadow

Schema: tchmi:framework#/definitions/BoxShadowList

BoxShadow 1:

Available from 1.8