UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

38 lines 2.13 kB
import { type NumberValue, type ScaleSymLog } from '@mui/x-charts-vendor/d3-scale'; /** * Constructs a new continuous scale with the specified range, the constant 1, the default interpolator and clamping disabled. * The domain defaults to [0, 1]. * If range is not specified, it defaults to [0, 1]. * * The first generic corresponds to the data type of the range elements. * The second generic corresponds to the data type of the output elements generated by the scale. * The third generic corresponds to the data type of the unknown value. * * If range element and output element type differ, the interpolator factory used with the scale must match this behavior and * convert the interpolated range element to a corresponding output element. * * The range must be set in accordance with the range element type. * * The interpolator factory may be set using the interpolate(...) method of the scale. * * @param range Array of range values. */ export declare function scaleSymlog<Range = number, Output = Range, Unknown = never>(range?: Iterable<Range>): ScaleSymLog<Range, Output, Unknown>; /** * Constructs a new continuous scale with the specified domain and range, the constant 1, the default interpolator and clamping disabled. * * The first generic corresponds to the data type of the range elements. * The second generic corresponds to the data type of the output elements generated by the scale. * The third generic corresponds to the data type of the unknown value. * * If range element and output element type differ, the interpolator factory used with the scale must match this behavior and * convert the interpolated range element to a corresponding output element. * * The range must be set in accordance with the range element type. * * The interpolator factory may be set using the interpolate(...) method of the scale. * * @param domain Array of numeric domain values. * @param range Array of range values. */ export declare function scaleSymlog<Range, Output = Range, Unknown = never>(domain: Iterable<NumberValue>, range: Iterable<Range>): ScaleSymLog<Range, Output, Unknown>;