Module components/layer-manager/common
Type aliases
ExprEditorProps
Expr
EditorProps<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
ExprEditor: React.FC<ExprEditorProps<number> & { max?: number; min?: number }> = ...Const SliderExprEditor
Slider
ExprEditor: 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