Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@d3fc/d3fc-chart

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-chart - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

12

CHANGELOG.md

@@ -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 @@

2

index.d.ts

@@ -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));
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc