Added ellipse passthrough to context

This commit is contained in:
William Théroux
2019-05-10 00:09:05 +02:00
parent ca417be48e
commit 5c36b85868
2 changed files with 5 additions and 0 deletions

View File

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

View File

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