summaryrefslogtreecommitdiff
path: root/src/client/scripts/hpml
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-22 19:51:09 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-22 19:51:09 +0900
commitd19441f3ae752acd2a2512f33321418f1a72b4d6 (patch)
tree3213acbc3e6e18842877066705536dc2631a3531 /src/client/scripts/hpml
parentrefactor(client): :sparkles: (diff)
downloadmisskey-d19441f3ae752acd2a2512f33321418f1a72b4d6.tar.gz
misskey-d19441f3ae752acd2a2512f33321418f1a72b4d6.tar.bz2
misskey-d19441f3ae752acd2a2512f33321418f1a72b4d6.zip
fix(client): Fix lint
Diffstat (limited to 'src/client/scripts/hpml')
-rw-r--r--src/client/scripts/hpml/lib.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/scripts/hpml/lib.ts b/src/client/scripts/hpml/lib.ts
index 8050ba8255..eaa237b734 100644
--- a/src/client/scripts/hpml/lib.ts
+++ b/src/client/scripts/hpml/lib.ts
@@ -5,14 +5,14 @@ import { values, utils } from '@syuilo/aiscript';
// https://stackoverflow.com/questions/38493564/chart-area-background-color-chartjs
Chart.pluginService.register({
- beforeDraw: function (chart, easing) {
- if (chart.config.options.chartArea && chart.config.options.chartArea.backgroundColor) {
- const ctx = chart.chart.ctx;
- ctx.save();
- ctx.fillStyle = chart.config.options.chartArea.backgroundColor;
- ctx.fillRect(0, 0, chart.chart.width, chart.chart.height);
- ctx.restore();
- }
+ beforeDraw: (chart, easing) => {
+ if (chart.config.options.chartArea && chart.config.options.chartArea.backgroundColor) {
+ const ctx = chart.chart.ctx;
+ ctx.save();
+ ctx.fillStyle = chart.config.options.chartArea.backgroundColor;
+ ctx.fillRect(0, 0, chart.chart.width, chart.chart.height);
+ ctx.restore();
+ }
}
});