Skip to content

Commit 89503b0

Browse files
committed
build: update deps
1 parent 9e23eb0 commit 89503b0

File tree

6 files changed

+1745
-1794
lines changed

6 files changed

+1745
-1794
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ npm-debug.log*
88
.npm
99
/.yarnrc.yml
1010
/.yarn
11-
/.pnp.js
11+
/.pnp.*
1212

1313
# Build files
1414
/.tmp

package.json

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"src/**/*.tsx"
5151
],
5252
"peerDependencies": {
53-
"chart.js": "^3.3.2"
53+
"chart.js": "^3.5.0"
5454
},
5555
"browserslist": [
5656
"Firefox ESR",
@@ -61,42 +61,42 @@
6161
"@sgratzl/boxplots": "^1.2.2"
6262
},
6363
"devDependencies": {
64-
"@rollup/plugin-commonjs": "^19.0.0",
65-
"@rollup/plugin-node-resolve": "^13.0.0",
66-
"@rollup/plugin-replace": "^2.4.2",
67-
"@rollup/plugin-typescript": "^8.2.1",
68-
"@types/jest": "^26.0.23",
69-
"@types/jest-image-snapshot": "^4.3.0",
70-
"@types/node": "^15.12.2",
71-
"@typescript-eslint/eslint-plugin": "^4.26.1",
72-
"@typescript-eslint/parser": "^4.26.1",
64+
"@rollup/plugin-commonjs": "^20.0.0",
65+
"@rollup/plugin-node-resolve": "^13.0.4",
66+
"@rollup/plugin-replace": "^3.0.0",
67+
"@rollup/plugin-typescript": "^8.2.5",
68+
"@types/jest": "^26.0.24",
69+
"@types/jest-image-snapshot": "^4.3.1",
70+
"@types/node": "^16.4.13",
71+
"@typescript-eslint/eslint-plugin": "^4.29.0",
72+
"@typescript-eslint/parser": "^4.29.0",
7373
"@yarnpkg/pnpify": "^2.4.0",
7474
"canvas": "^2.8.0",
7575
"canvas-5-polyfill": "^0.1.5",
76-
"chart.js": "^3.3.2",
77-
"eslint": "^7.28.0",
76+
"chart.js": "^3.5.0",
77+
"eslint": "^7.32.0",
7878
"eslint-config-airbnb-typescript": "^12.3.1",
7979
"eslint-config-prettier": "^8.3.0",
8080
"eslint-config-react-app": "^6.0.0",
81-
"eslint-plugin-flowtype": "^5.7.2",
81+
"eslint-plugin-flowtype": "^5.9.0",
8282
"eslint-plugin-import": "^2.23.4",
8383
"eslint-plugin-jsx-a11y": "^6.4.1",
8484
"eslint-plugin-prettier": "^3.4.0",
8585
"eslint-plugin-react": "^7.24.0",
8686
"eslint-plugin-react-hooks": "^4.2.0",
87-
"jest": "^27.0.4",
88-
"jest-image-snapshot": "^4.5.0",
89-
"prettier": "^2.3.1",
90-
"release-it": "^14.8.0",
87+
"jest": "^27.0.6",
88+
"jest-image-snapshot": "^4.5.1",
89+
"prettier": "^2.3.2",
90+
"release-it": "^14.10.1",
9191
"rimraf": "^3.0.2",
92-
"rollup": "^2.51.1",
92+
"rollup": "^2.56.0",
9393
"rollup-plugin-cleanup": "^3.2.1",
9494
"rollup-plugin-dts": "^3.0.2",
9595
"rollup-plugin-terser": "^7.0.2",
96-
"ts-jest": "^27.0.3",
97-
"tslib": "^2.2.0",
98-
"typedoc": "^0.20.36",
99-
"typescript": "^4.3.2"
96+
"ts-jest": "^27.0.4",
97+
"tslib": "^2.3.0",
98+
"typedoc": "^0.21.5",
99+
"typescript": "^4.3.5"
100100
},
101101
"scripts": {
102102
"clean": "rimraf build docs node_modules \"*.tgz\" \"*.tsbuildinfo\"",
@@ -119,8 +119,9 @@
119119
"release:pre": "release-it --disable-metrics --npm.skipChecks --preRelease=alpha --npm.tag=next"
120120
},
121121
"dependenciesMeta": {
122-
"chart.js@3.3.2": {
122+
"chart.js@3.5.0": {
123123
"unplugged": true
124124
}
125-
}
125+
},
126+
"packageManager": "yarn@3.0.0"
126127
}

src/controllers/BoxPlotController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ declare module 'chart.js' {
7171
datasetOptions: BoxPlotControllerDatasetOptions;
7272
defaultDataPoint: BoxPlotDataPoint;
7373
scales: keyof CartesianScaleTypeRegistry;
74+
metaExtensions: Record<string, never>;
7475
parsedDataType: IBoxPlot & ChartTypeRegistry['bar']['parsedDataType'];
7576
};
7677
}

src/controllers/ViolinController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ declare module 'chart.js' {
7878
datasetOptions: ViolinControllerDatasetOptions;
7979
defaultDataPoint: ViolinDataPoint;
8080
scales: keyof CartesianScaleTypeRegistry;
81+
metaExtensions: Record<string, never>;
8182
parsedDataType: IViolin & ChartTypeRegistry['bar']['parsedDataType'];
8283
};
8384
}

src/elements/Violin.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ export class Violin extends StatsBase<IViolinElementProps, IViolinElementOptions
4444
this._drawItems(ctx);
4545
}
4646

47-
protected _drawCoords(ctx: CanvasRenderingContext2D, props: IViolinElementProps): void {
47+
protected _drawCoords(
48+
ctx: CanvasRenderingContext2D,
49+
props: Pick<IViolinElementProps, 'x' | 'coords' | 'y' | 'maxEstimate' | 'width' | 'height' | 'min' | 'max'>
50+
): void {
4851
ctx.beginPath();
4952
if (this.isVertical()) {
50-
const { x } = props;
51-
const { width } = props;
53+
const { x, width } = props;
5254
const factor = width / 2 / props.maxEstimate;
5355
ctx.moveTo(x, props.min);
5456
props.coords.forEach((c) => {
@@ -61,8 +63,7 @@ export class Violin extends StatsBase<IViolinElementProps, IViolinElementOptions
6163
});
6264
ctx.lineTo(x, props.max);
6365
} else {
64-
const { y } = props;
65-
const { height } = props;
66+
const { y, height } = props;
6667
const factor = height / 2 / props.maxEstimate;
6768
ctx.moveTo(props.min, y);
6869
props.coords.forEach((c) => {

0 commit comments

Comments
 (0)