@visx/scale
Advanced tools
Comparing version 1.1.0 to 1.3.0-alpha.0
export { default as scaleBand } from './scales/band'; | ||
export { default as scalePoint } from './scales/point'; | ||
export { default as scaleLinear } from './scales/linear'; | ||
export { default as scaleRadial } from './scales/radial'; | ||
export { default as scaleTime } from './scales/time'; | ||
@@ -5,0 +6,0 @@ export { default as scaleUtc } from './scales/utc'; |
export { default as scaleBand } from './scales/band'; | ||
export { default as scalePoint } from './scales/point'; | ||
export { default as scaleLinear } from './scales/linear'; | ||
export { default as scaleRadial } from './scales/radial'; | ||
export { default as scaleTime } from './scales/time'; | ||
@@ -5,0 +6,0 @@ export { default as scaleUtc } from './scales/utc'; |
@@ -8,2 +8,3 @@ "use strict"; | ||
scaleLinear: true, | ||
scaleRadial: true, | ||
scaleTime: true, | ||
@@ -26,3 +27,3 @@ scaleUtc: true, | ||
}; | ||
exports.toString = exports.getTicks = exports.coerceNumber = exports.inferScaleType = exports.updateScale = exports.createScale = exports.scaleSqrt = exports.scaleThreshold = exports.scaleSymlog = exports.scaleQuantile = exports.scaleQuantize = exports.scaleOrdinal = exports.scalePower = exports.scaleLog = exports.scaleUtc = exports.scaleTime = exports.scaleLinear = exports.scalePoint = exports.scaleBand = void 0; | ||
exports.toString = exports.getTicks = exports.coerceNumber = exports.inferScaleType = exports.updateScale = exports.createScale = exports.scaleSqrt = exports.scaleThreshold = exports.scaleSymlog = exports.scaleQuantile = exports.scaleQuantize = exports.scaleOrdinal = exports.scalePower = exports.scaleLog = exports.scaleUtc = exports.scaleTime = exports.scaleRadial = exports.scaleLinear = exports.scalePoint = exports.scaleBand = void 0; | ||
@@ -41,2 +42,6 @@ var _band = _interopRequireDefault(require("./scales/band")); | ||
var _radial = _interopRequireDefault(require("./scales/radial")); | ||
exports.scaleRadial = _radial.default; | ||
var _time = _interopRequireDefault(require("./scales/time")); | ||
@@ -43,0 +48,0 @@ |
@@ -15,2 +15,3 @@ import { DefaultThresholdInput, PickD3Scale } from '../types/Scale'; | ||
symlog: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"symlog", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "constant" | "clamp" | "nice" | "domain" | "zero" | "range" | "reverse" | "type">, "constant" | "clamp" | "nice" | "domain" | "zero" | "range" | "reverse">; | ||
radial: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"radial", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "clamp" | "nice" | "domain" | "round" | "range" | "reverse" | "unknown" | "type">, "clamp" | "nice" | "domain" | "round" | "range" | "reverse" | "unknown">; | ||
time: Pick<import("../types/ScaleConfig").TimeScaleConfig<Output>, "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse">; | ||
@@ -17,0 +18,0 @@ utc: Pick<import("../types/ScaleConfig").UtcScaleConfig<Output>, "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse">; |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateLinearScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleLinear<Output, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"linear", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse" | "type">, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleLinear<Output, Output>; | ||
export default function createLinearScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'linear', Output>): import("d3-scale").ScaleLinear<Output, Output>; | ||
export declare const updateLinearScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleLinear<Output, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"linear", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse" | "type">, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleLinear<Output, Output, never>; | ||
export default function createLinearScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'linear', Output>): import("d3-scale").ScaleLinear<Output, Output, never>; | ||
//# sourceMappingURL=linear.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateLogScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleLogarithmic<Output, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"log", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "base" | "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse" | "type">, "base" | "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleLogarithmic<Output, Output>; | ||
export default function createLogScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'log', Output>): import("d3-scale").ScaleLogarithmic<Output, Output>; | ||
export declare const updateLogScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleLogarithmic<Output, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"log", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "base" | "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse" | "type">, "base" | "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleLogarithmic<Output, Output, never>; | ||
export default function createLogScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'log', Output>): import("d3-scale").ScaleLogarithmic<Output, Output, never>; | ||
//# sourceMappingURL=log.d.ts.map |
import { DefaultOutput, StringLike } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateOrdinalScale: <Output = DefaultOutput, DiscreteInput extends StringLike = StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleOrdinal<DiscreteInput, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"ordinal", DiscreteInput[], Output[]>, "domain" | "range" | "reverse" | "unknown" | "type">, "domain" | "range" | "reverse" | "unknown"> | undefined) => import("d3-scale").ScaleOrdinal<DiscreteInput, Output>; | ||
export default function createOrdinalScale<DiscreteInput extends StringLike = StringLike, Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'ordinal', Output, DiscreteInput>): import("d3-scale").ScaleOrdinal<DiscreteInput, Output>; | ||
export declare const updateOrdinalScale: <Output = DefaultOutput, DiscreteInput extends StringLike = StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleOrdinal<DiscreteInput, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"ordinal", DiscreteInput[], Output[]>, "domain" | "range" | "reverse" | "unknown" | "type">, "domain" | "range" | "reverse" | "unknown"> | undefined) => import("d3-scale").ScaleOrdinal<DiscreteInput, Output, never>; | ||
export default function createOrdinalScale<DiscreteInput extends StringLike = StringLike, Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'ordinal', Output, DiscreteInput>): import("d3-scale").ScaleOrdinal<DiscreteInput, Output, never>; | ||
//# sourceMappingURL=ordinal.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updatePowScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScalePower<Output, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"pow", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "exponent" | "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse" | "type">, "exponent" | "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScalePower<Output, Output>; | ||
export default function createPowScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'pow', Output>): import("d3-scale").ScalePower<Output, Output>; | ||
export declare const updatePowScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScalePower<Output, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"pow", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "exponent" | "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse" | "type">, "exponent" | "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScalePower<Output, Output, never>; | ||
export default function createPowScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'pow', Output>): import("d3-scale").ScalePower<Output, Output, never>; | ||
//# sourceMappingURL=power.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateQuantileScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleQuantile<Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"quantile", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "domain" | "range" | "reverse" | "type">, "domain" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleQuantile<Output>; | ||
export default function createQuantileScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'quantile', Output>): import("d3-scale").ScaleQuantile<Output>; | ||
export declare const updateQuantileScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleQuantile<Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"quantile", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "domain" | "range" | "reverse" | "type">, "domain" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleQuantile<Output, never>; | ||
export default function createQuantileScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'quantile', Output>): import("d3-scale").ScaleQuantile<Output, never>; | ||
//# sourceMappingURL=quantile.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateQuantizeScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleQuantize<Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"quantize", [number | Date, number | Date], Output[]>, "nice" | "domain" | "zero" | "range" | "reverse" | "type">, "nice" | "domain" | "zero" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleQuantize<Output>; | ||
export default function createQuantizeScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'quantize', Output>): import("d3-scale").ScaleQuantize<Output>; | ||
export declare const updateQuantizeScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleQuantize<Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"quantize", [number | Date, number | Date], Output[]>, "nice" | "domain" | "zero" | "range" | "reverse" | "type">, "nice" | "domain" | "zero" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleQuantize<Output, never>; | ||
export default function createQuantizeScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'quantize', Output>): import("d3-scale").ScaleQuantize<Output, never>; | ||
//# sourceMappingURL=quantize.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateSqrtScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScalePower<Output, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"sqrt", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse" | "type">, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScalePower<Output, Output>; | ||
export default function createSqrtScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'sqrt', Output>): import("d3-scale").ScalePower<Output, Output>; | ||
export declare const updateSqrtScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScalePower<Output, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"sqrt", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse" | "type">, "clamp" | "nice" | "domain" | "zero" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScalePower<Output, Output, never>; | ||
export default function createSqrtScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'sqrt', Output>): import("d3-scale").ScalePower<Output, Output, never>; | ||
//# sourceMappingURL=squareRoot.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateSymlogScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleSymLog<Output, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"symlog", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "constant" | "clamp" | "nice" | "domain" | "zero" | "range" | "reverse" | "type">, "constant" | "clamp" | "nice" | "domain" | "zero" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleSymLog<Output, Output>; | ||
export default function createSymlogScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'symlog', Output>): import("d3-scale").ScaleSymLog<Output, Output>; | ||
export declare const updateSymlogScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleSymLog<Output, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"symlog", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "constant" | "clamp" | "nice" | "domain" | "zero" | "range" | "reverse" | "type">, "constant" | "clamp" | "nice" | "domain" | "zero" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleSymLog<Output, Output, never>; | ||
export default function createSymlogScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'symlog', Output>): import("d3-scale").ScaleSymLog<Output, Output, never>; | ||
//# sourceMappingURL=symlog.d.ts.map |
import { DefaultOutput, StringLike } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
import { DefaultThresholdInput } from '../types/Scale'; | ||
export declare const updateThresholdScale: <Output = DefaultOutput, DiscreteInput extends StringLike = StringLike, ThresholdInput extends DefaultThresholdInput = DefaultThresholdInput>(scale: import("d3-scale").ScaleThreshold<ThresholdInput, Output>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"threshold", ThresholdInput[], Output[]>, "domain" | "range" | "reverse" | "type">, "domain" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleThreshold<ThresholdInput, Output>; | ||
export default function createThresholdScale<ThresholdInput extends DefaultThresholdInput = DefaultThresholdInput, Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'threshold', Output, StringLike, ThresholdInput>): import("d3-scale").ScaleThreshold<ThresholdInput, Output>; | ||
export declare const updateThresholdScale: <Output = DefaultOutput, DiscreteInput extends StringLike = StringLike, ThresholdInput extends DefaultThresholdInput = DefaultThresholdInput>(scale: import("d3-scale").ScaleThreshold<ThresholdInput, Output, never>, config?: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"threshold", ThresholdInput[], Output[]>, "domain" | "range" | "reverse" | "type">, "domain" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleThreshold<ThresholdInput, Output, never>; | ||
export default function createThresholdScale<ThresholdInput extends DefaultThresholdInput = DefaultThresholdInput, Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'threshold', Output, StringLike, ThresholdInput>): import("d3-scale").ScaleThreshold<ThresholdInput, Output, never>; | ||
//# sourceMappingURL=threshold.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateTimeScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleTime<Output, Output>, config?: Pick<import("../types/ScaleConfig").TimeScaleConfig<Output>, "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleTime<Output, Output>; | ||
export default function createTimeScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'time', Output>): import("d3-scale").ScaleTime<Output, Output>; | ||
export declare const updateTimeScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleTime<Output, Output, never>, config?: Pick<import("../types/ScaleConfig").TimeScaleConfig<Output>, "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleTime<Output, Output, never>; | ||
export default function createTimeScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'time', Output>): import("d3-scale").ScaleTime<Output, Output, never>; | ||
//# sourceMappingURL=time.d.ts.map |
import { DefaultOutput } from '../types/Base'; | ||
import { PickScaleConfigWithoutType } from '../types/ScaleConfig'; | ||
export declare const updateUtcScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleTime<Output, Output>, config?: Pick<import("../types/ScaleConfig").UtcScaleConfig<Output>, "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleTime<Output, Output>; | ||
export default function createUtcScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'utc', Output>): import("d3-scale").ScaleTime<Output, Output>; | ||
export declare const updateUtcScale: <Output = DefaultOutput, DiscreteInput extends import("../types/Base").StringLike = import("../types/Base").StringLike, ThresholdInput extends import("..").DefaultThresholdInput = import("..").DefaultThresholdInput>(scale: import("d3-scale").ScaleTime<Output, Output, never>, config?: Pick<import("../types/ScaleConfig").UtcScaleConfig<Output>, "clamp" | "nice" | "domain" | "interpolate" | "round" | "range" | "reverse"> | undefined) => import("d3-scale").ScaleTime<Output, Output, never>; | ||
export default function createUtcScale<Output = DefaultOutput>(config?: PickScaleConfigWithoutType<'utc', Output>): import("d3-scale").ScaleTime<Output, Output, never>; | ||
//# sourceMappingURL=utc.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { ScaleOrdinal, ScaleLinear, ScaleLogarithmic, ScalePower, ScaleTime, ScaleQuantile, ScaleQuantize, ScaleThreshold, ScalePoint, ScaleBand, ScaleSymLog } from 'd3-scale'; | ||
import { ScaleOrdinal, ScaleLinear, ScaleLogarithmic, ScalePower, ScaleRadial, ScaleTime, ScaleQuantile, ScaleQuantize, ScaleThreshold, ScalePoint, ScaleBand, ScaleSymLog } from 'd3-scale'; | ||
import { StringLike, DefaultOutput, ValueOf } from './Base'; | ||
@@ -16,2 +16,3 @@ export declare type DefaultThresholdInput = number | string | Date; | ||
symlog: ScaleSymLog<Output, Output>; | ||
radial: ScaleRadial<Output, Output>; | ||
time: ScaleTime<Output, Output>; | ||
@@ -18,0 +19,0 @@ utc: ScaleTime<Output, Output>; |
@@ -16,2 +16,3 @@ import { BaseScaleConfig } from './BaseScaleConfig'; | ||
export declare type SymlogScaleConfig<Output = DefaultOutput> = CreateScaleConfig<'symlog', ContinuousDomain, Output[], 'clamp' | 'constant' | 'nice' | 'zero'>; | ||
export declare type RadialScaleConfig<Output = DefaultOutput> = CreateScaleConfig<'radial', ContinuousDomain, Output[], 'clamp' | 'nice' | 'round' | 'unknown'>; | ||
export declare type QuantileScaleConfig<Output = DefaultOutput> = CreateScaleConfig<'quantile', ContinuousDomain, Output[]>; | ||
@@ -53,2 +54,3 @@ export declare type QuantizeScaleConfig<Output = DefaultOutput> = CreateScaleConfig<'quantize', [ContinuousInput, ContinuousInput], Output[], 'nice' | 'zero'>; | ||
symlog: SymlogScaleConfig<Output>; | ||
radial: RadialScaleConfig<Output>; | ||
time: TimeScaleConfig<Output>; | ||
@@ -68,3 +70,3 @@ utc: UtcScaleConfig<Output>; | ||
/** Scales that take continuous domains and return continuous ranges */ | ||
export declare type ContinuousScaleType = 'linear' | 'log' | 'pow' | 'sqrt' | 'symlog' | TimeScaleType; | ||
export declare type ContinuousScaleType = 'linear' | 'log' | 'pow' | 'sqrt' | 'symlog' | 'radial' | TimeScaleType; | ||
/** Scales that convert continuous domains to discrete ranges */ | ||
@@ -71,0 +73,0 @@ export declare type DiscretizingScaleType = 'quantile' | 'quantize' | 'threshold'; |
{ | ||
"name": "@visx/scale", | ||
"version": "1.1.0", | ||
"version": "1.3.0-alpha.0", | ||
"description": "visx scale", | ||
@@ -35,6 +35,6 @@ "sideEffects": false, | ||
"@types/d3-interpolate": "^1.3.1", | ||
"@types/d3-scale": "^3.1.0", | ||
"@types/d3-scale": "^3.2.1", | ||
"@types/d3-time": "^1.0.10", | ||
"d3-interpolate": "^1.4.0", | ||
"d3-scale": "^3.0.1", | ||
"d3-scale": "^3.2.3", | ||
"d3-time": "^1.1.0" | ||
@@ -45,3 +45,3 @@ }, | ||
}, | ||
"gitHead": "2370dc7ace913ffbcf729f64059fee50498d66a4" | ||
"gitHead": "d11b08238456bf5031df5da238d2bafa0d062316" | ||
} |
@@ -113,2 +113,20 @@ # @visx/scale | ||
### Radial scale | ||
[Original d3 docs](https://github.com/d3/d3-scale/blob/master/README.md#scaleRadial) | ||
Example: | ||
```js | ||
const scale = Scale.scaleRadial({ | ||
/* | ||
range, | ||
round, | ||
domain, | ||
nice = false, | ||
clamp = false, | ||
*/ | ||
}); | ||
``` | ||
### Ordinal scale | ||
@@ -115,0 +133,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138884
179
1665
269
1
Updated@types/d3-scale@^3.2.1
Updatedd3-scale@^3.2.3