summaryrefslogtreecommitdiff
path: root/src/client/scripts/aoiscript/evaluator.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-19 17:41:01 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-19 17:41:01 +0900
commitf704e7a6025cb3f8ec7e474df70de1b171722bde (patch)
tree63082ab2674a190ba4f7a6e5433781d8afa0202d /src/client/scripts/aoiscript/evaluator.ts
parentfix(client): Fix bug that cannot post when image only (diff)
downloadsharkey-f704e7a6025cb3f8ec7e474df70de1b171722bde.tar.gz
sharkey-f704e7a6025cb3f8ec7e474df70de1b171722bde.tar.bz2
sharkey-f704e7a6025cb3f8ec7e474df70de1b171722bde.zip
enhance(pages): Improve hcart
Diffstat (limited to 'src/client/scripts/aoiscript/evaluator.ts')
-rw-r--r--src/client/scripts/aoiscript/evaluator.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/scripts/aoiscript/evaluator.ts b/src/client/scripts/aoiscript/evaluator.ts
index c88b19da35..dbd4735fde 100644
--- a/src/client/scripts/aoiscript/evaluator.ts
+++ b/src/client/scripts/aoiscript/evaluator.ts
@@ -98,6 +98,7 @@ export class ASEvaluator {
},
options: {
responsive: false,
+ devicePixelRatio: 1.5,
title: {
display: opts.value.has('title'),
text: opts.value.has('title') ? opts.value.get('title').value : '',
@@ -127,8 +128,10 @@ export class ASEvaluator {
...(opts.value.get('type').value === 'radar' ? {
scale: {
ticks: {
+ display: opts.value.has('show_tick_label') ? opts.value.get('show_tick_label').value : false,
min: opts.value.has('min') ? opts.value.get('min').value : undefined,
max: opts.value.has('max') ? opts.value.get('max').value : undefined,
+ maxTicksLimit: 8,
},
pointLabels: {
fontSize: 12
@@ -138,6 +141,7 @@ export class ASEvaluator {
scales: {
yAxes: [{
ticks: {
+ display: opts.value.has('show_tick_label') ? opts.value.get('show_tick_label').value : true,
min: opts.value.has('min') ? opts.value.get('min').value : undefined,
max: opts.value.has('max') ? opts.value.get('max').value : undefined,
}