@d3fc/d3fc-chart
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [5.1.1](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-chart@5.1.0...@d3fc/d3fc-chart@5.1.1) (2021-04-29) | ||
### Bug Fixes | ||
* remove deprecated export from d3fc-chart ([9bd27a9](https://github.com/d3fc/d3fc/commit/9bd27a9)) | ||
* type rebinding from chart Scale generics ([732e5f3](https://github.com/d3fc/d3fc/commit/732e5f3)) | ||
# [5.1.0](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-chart@5.0.7...@d3fc/d3fc-chart@5.1.0) (2021-04-28) | ||
@@ -8,0 +20,0 @@ |
@@ -1,3 +0,1 @@ | ||
export { default as chartSvgCartesian } from './src/svg/cartesian'; | ||
export { default as chartCanvasCartesian } from './src/canvas/cartesian'; | ||
export { default as chartCartesian } from './src/cartesian'; |
{ | ||
"name": "@d3fc/d3fc-chart", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "A simple Cartesian chart component that renders to canvas or SVG.", | ||
@@ -38,3 +38,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "6a7e7be9f026bae7a8d97fe48d7c4930d649fcb4" | ||
"gitHead": "6751a7db2e14118ded177238ed1014ff4170330e" | ||
} |
@@ -249,7 +249,7 @@ import type { ScaleIdentity } from 'd3-scale'; | ||
& AnyMethods<PrefixProperties<OmitPrefixes<XScale>, 'x'>> | ||
& AnyMethods<PrefixProperties<OmitPrefixes<XScale>, 'y'>> | ||
& AnyMethods<PrefixProperties<OmitPrefixes<YScale>, 'y'>> | ||
& AnyMethods<PrefixProperties<AxisD3fc<any>, 'x'>> | ||
& AnyMethods<PrefixProperties<AxisD3fc<any>, 'y'>>; | ||
export type Fallback<T> = undefined extends T ? ScaleIdentity : T; | ||
export type Fallback<T> = T extends undefined ? ScaleIdentity : T; | ||
@@ -256,0 +256,0 @@ export interface Scale { |
@@ -69,1 +69,9 @@ import * as d3 from 'd3'; | ||
expectType<boolean>(chart.useDevicePixelRatio()); | ||
// Correctly rebinds methods from non ScaleIdentity scales | ||
const chartScaleBand = chartCartesian(d3.scaleBand(), d3.scaleLinear()); | ||
expectType<any>(chartScaleBand.xPadding()); | ||
expectType<any>(chartScaleBand.xPadding(5)); | ||
expectType<any>(chartScaleBand.yNice()); | ||
expectType<any>(chartScaleBand.yNice(5)); |
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
100444
1179