Skip to content

@graphty/graphty-element / index / isLighting

Function: isLighting() ​

isLighting(value): value is "flat" | "studio" | "headlight" | "matte"

Defined in: graphty-element/src/config/Lighting.ts:31

Whether a value is one of the LIGHTING_VALUES.

Parameters ​

value ​

unknown

The value to check.

Returns ​

value is "flat" | "studio" | "headlight" | "matte"

True when it names a lighting.