Skip to content

Commit

Permalink
apexcharts#4592 Toolbar PNG export with desired scale or width
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-tsc committed Jul 31, 2024
1 parent 02f6374 commit 88ccc61
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/apexcharts.amd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/apexcharts.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/apexcharts.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/apexcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9192,8 +9192,8 @@
key: "exportToPng",
value: function exportToPng() {
var _this2 = this;
var scale = this.w.config.chart.toolbar.export.png.scale;
var width = this.w.config.chart.toolbar.export.png.width;
var scale = this.w.config.chart.toolbar.export.scale;
var width = this.w.config.chart.toolbar.export.width;
var option = scale ? {
scale: scale
} : width ? {
Expand Down
2 changes: 1 addition & 1 deletion dist/apexcharts.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/modules/Exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ class Exports {
}

exportToPng() {
const scale = this.w.config.chart.toolbar.export.png.scale
const width = this.w.config.chart.toolbar.export.png.width
const scale = this.w.config.chart.toolbar.export.scale
const width = this.w.config.chart.toolbar.export.width
const option = scale ? {scale: scale}: width? {width: width}: undefined
this.dataURI(option).then(({ imgURI, blob }) => {
if (blob) {
Expand Down

0 comments on commit 88ccc61

Please sign in to comment.