import { XYComponentConfigInterface } from '../../core/xy-component/config'; import { ContinuousScale } from '../../types/scale'; import { SymbolType } from '../../types/symbol'; import { ColorAccessor, GenericAccessor, NumericAccessor, StringAccessor } from '../../types/accessor'; import { FillPatternType } from '../../styles/patterns'; import { Position } from '../../types/position'; export interface ScatterConfigInterface extends XYComponentConfigInterface { /** Point color accessor function. Default: `d => d.color` */ color?: ColorAccessor; /** Point fill pattern accessor. Resolves to a `FillPatternType`. Default: `undefined` */ pattern?: GenericAccessor; /** * Size of the scatter plot marker (e.g. diameter if `SymbolType.Circle` is used for `shape`) in pixels. * Can be a constant value or an accessor function. But if `sizeRange` is set, then the values will be treated * as an input to `sizeScale`, and the resulting size will be different. * Default: `10` */ size?: NumericAccessor; /** Size scale to be used if the `sizeRange` was set. Default: `Scale.scaleSqrt()` */ sizeScale?: ContinuousScale; /** Size range in the format of `[number, number]` to rescale the input values. Default: `undefined` */ sizeRange?: [number, number]; /** Shape of the scatter point. Accessor function or constant value: `SymbolType.Circle`, `SymbolType.Cross`, `SymbolType.Diamond`, `SymbolType.Square`, * `SymbolType.Star`, `SymbolType.Triangle` or `SymbolType.Wye`. * Default: `SymbolType.Circle` */ shape?: ((d: Datum, i?: number, ...any: unknown[]) => (SymbolType | string)) | SymbolType | string; /** Label accessor function or string. Default: `undefined` */ label?: StringAccessor; /** Label color. Default: `undefined` */ labelColor?: ColorAccessor; /** Hide overlapping labels. Default: `true` */ labelHideOverlapping?: boolean; /** Optional point cursor. Default: `null` */ cursor?: StringAccessor; /** Point color brightness ratio for switching between dark and light text label color. Default: `0.65` */ labelTextBrightnessRatio?: number; /** Label position. Default: `Position.Bottom` */ labelPosition?: GenericAccessor; /** Point stroke color. Default: `undefined` */ strokeColor?: ColorAccessor; /** Point stroke width. Default: `undefined` */ strokeWidth?: NumericAccessor; } export declare const ScatterDefaultConfig: ScatterConfigInterface;