@nivo/scales
Advanced tools
Comparing version 0.61.0 to 0.62.0
@@ -179,3 +179,3 @@ 'use strict'; | ||
} else if (format !== 'native') { | ||
minValue = normalize(values.min); | ||
minValue = normalize(min); | ||
} | ||
@@ -186,3 +186,3 @@ var maxValue = max; | ||
} else if (format !== 'native') { | ||
maxValue = normalize(values.max); | ||
maxValue = normalize(max); | ||
} | ||
@@ -189,0 +189,0 @@ var scale = useUTC ? d3Scale.scaleUtc() : d3Scale.scaleTime(); |
@@ -173,3 +173,3 @@ import PropTypes from 'prop-types'; | ||
} else if (format !== 'native') { | ||
minValue = normalize(values.min); | ||
minValue = normalize(min); | ||
} | ||
@@ -180,3 +180,3 @@ var maxValue = max; | ||
} else if (format !== 'native') { | ||
maxValue = normalize(values.max); | ||
maxValue = normalize(max); | ||
} | ||
@@ -183,0 +183,0 @@ var scale = useUTC ? scaleUtc() : scaleTime(); |
@@ -177,3 +177,3 @@ (function (global, factory) { | ||
} else if (format !== 'native') { | ||
minValue = normalize(values.min); | ||
minValue = normalize(min); | ||
} | ||
@@ -184,3 +184,3 @@ var maxValue = max; | ||
} else if (format !== 'native') { | ||
maxValue = normalize(values.max); | ||
maxValue = normalize(max); | ||
} | ||
@@ -187,0 +187,0 @@ var scale = useUTC ? d3Scale.scaleUtc() : d3Scale.scaleTime(); |
@@ -22,7 +22,17 @@ /* | ||
export interface TimeScaleFormatted { | ||
type: 'time' | ||
format: string | ||
precision?: 'millisecond' | 'second' | 'minute' | 'hour' | 'month' | 'year' | 'day' | ||
useUTC?: boolean | ||
min?: 'auto' | string | ||
max?: 'auto' | string | ||
} | ||
export interface TimeScale { | ||
type: 'time' | ||
format?: string | ||
precision?: 'millisecond' | 'second' | 'minute' | 'hour' | 'month' | 'year' | 'day' | ||
useUTC?: boolean | ||
min?: 'auto' | Date | ||
max?: 'auto' | Date | ||
} | ||
@@ -37,5 +47,5 @@ | ||
export type Scale = LinearScale | PointScale | TimeScale | LogScale | ||
export type Scale = LinearScale | PointScale | TimeScale | TimeScaleFormatted | LogScale | ||
export type ScaleFunc = (value: string | number | Date) => number | ||
} |
{ | ||
"name": "@nivo/scales", | ||
"version": "0.61.0", | ||
"version": "0.62.0", | ||
"license": "MIT", | ||
@@ -28,3 +28,3 @@ "author": { | ||
}, | ||
"gitHead": "441383999dad1c9697ef6f4bc89b1c19b4505153" | ||
"gitHead": "a98a072c4fe5339457d26f396d032dfc302187bc" | ||
} |
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
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
52815
1229