Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 45 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"readme": "README.md",
"license": "MIT",
"dependencies": {
"canvas": "^2.8.0",
"canvas": "^2.11.2",
"tslib": "^2.3.1"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class ChartJSNodeCanvas {
configuration.options.animation = false as any;
const context = canvas.getContext('2d');
(global as any).Image = this._image; // Some plugins use this API
const chart = new this._chartJs(context, configuration);
const chart = new this._chartJs(context as any, configuration);
delete (global as any).Image;
return chart;
}
Expand Down