summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-16 18:11:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-16 18:11:13 +0900
commit6637766554954a5a59eb68f210a00644555ba607 (patch)
tree69fa4824a0f6cb039409cb3b8543150a6979e7bb /src/client
parent12.32.0 (diff)
downloadmisskey-6637766554954a5a59eb68f210a00644555ba607.tar.gz
misskey-6637766554954a5a59eb68f210a00644555ba607.tar.bz2
misskey-6637766554954a5a59eb68f210a00644555ba607.zip
feat(pages): Add arc method
Diffstat (limited to 'src/client')
-rw-r--r--src/client/scripts/aoiscript/evaluator.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/scripts/aoiscript/evaluator.ts b/src/client/scripts/aoiscript/evaluator.ts
index e911be2caf..e85a8c83f2 100644
--- a/src/client/scripts/aoiscript/evaluator.ts
+++ b/src/client/scripts/aoiscript/evaluator.ts
@@ -56,6 +56,7 @@ export class ASEvaluator {
['close_path', values.FN_NATIVE(() => { ctx.closePath() })],
['move_to', values.FN_NATIVE(([x, y]) => { ctx.moveTo(x.value, y.value) })],
['line_to', values.FN_NATIVE(([x, y]) => { ctx.lineTo(x.value, y.value) })],
+ ['arc', values.FN_NATIVE(([x, y, radius, startAngle, endAngle]) => { ctx.arc(x.value, y.value, radius.value, startAngle.value, endAngle.value) })],
['fill', values.FN_NATIVE(() => { ctx.fill() })],
['stroke', values.FN_NATIVE(() => { ctx.stroke() })],
]));