mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 20:39:15 +01:00
feat(pages): Add rect method
This commit is contained in:
parent
9139c863bf
commit
75d59a9c9b
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ export class ASEvaluator {
|
||||||
['move_to', values.FN_NATIVE(([x, y]) => { ctx.moveTo(x.value, y.value) })],
|
['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) })],
|
['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) })],
|
['arc', values.FN_NATIVE(([x, y, radius, startAngle, endAngle]) => { ctx.arc(x.value, y.value, radius.value, startAngle.value, endAngle.value) })],
|
||||||
|
['rect', values.FN_NATIVE(([x, y, width, height]) => { ctx.rect(x.value, y.value, width.value, height.value) })],
|
||||||
['fill', values.FN_NATIVE(() => { ctx.fill() })],
|
['fill', values.FN_NATIVE(() => { ctx.fill() })],
|
||||||
['stroke', values.FN_NATIVE(() => { ctx.stroke() })],
|
['stroke', values.FN_NATIVE(() => { ctx.stroke() })],
|
||||||
]));
|
]));
|
||||||
|
|
Loading…
Reference in a new issue