From d19441f3ae752acd2a2512f33321418f1a72b4d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Apr 2020 19:51:09 +0900 Subject: [PATCH] fix(client): Fix lint --- src/client/scripts/hpml/lib.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/scripts/hpml/lib.ts b/src/client/scripts/hpml/lib.ts index 8050ba825..eaa237b73 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(); + } } });