Module components/layer-manager/common
Type aliases
ExprEditorProps
Expr
Editor
Props
<T>: { locale
: string; value
?: ExprOr<T>; onChange
: any }Type parameters
Type declaration
locale: string
Optional value?: ExprOr<T>
onChange:function
- onChange(value: undefined | ExprOr<T>): void
Variables
Const NumberExprEditor
Number
Expr
Editor
: React.FC<ExprEditorProps<number> & { max
?: number; min
?: number }> = ...Const SliderExprEditor
Slider
Expr
Editor
: React.FC<ExprEditorProps<number> & { labelStepSize
?: number; max
?: number; min
?: number }> = ...Functions
contrast
- contrast(colorHex: undefined | string, threshold?: number): string
Parameters
colorHex: undefined | string
threshold: number = 128
Returns string