Merge pull request #647 from UndeadRedPanda/master

Added ellipse passthrough to context
This commit is contained in:
Anton Lavrenov 2019-05-09 18:57:31 -05:00 committed by GitHub
commit 0b249a78d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,7 @@ var COMMA = ',',
'createPattern',
'createRadialGradient',
'drawImage',
'ellipse',
'fill',
'fillText',
'getImageData',
@ -324,6 +325,9 @@ export class Context {
_context.drawImage(a0, a1, a2, a3, a4, a5, a6, a7, a8);
}
}
ellipse(a0, a1, a2, a3, a4, a5, a6, a7) {
this._context.ellipse(a0, a1, a2, a3, a4, a5, a6, a7);
}
isPointInPath(x, y) {
return this._context.isPointInPath(x, y);
}

View File

@ -19,6 +19,7 @@ suite('Context', function() {
'arc',
'arcTo',
'rect',
'ellipse'
'fill',
'stroke',
'clip',