mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 05:36:38 +08:00
Merge pull request #647 from UndeadRedPanda/master
Added ellipse passthrough to context
This commit is contained in:
commit
0b249a78d8
@ -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);
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ suite('Context', function() {
|
||||
'arc',
|
||||
'arcTo',
|
||||
'rect',
|
||||
'ellipse'
|
||||
'fill',
|
||||
'stroke',
|
||||
'clip',
|
||||
|
Loading…
Reference in New Issue
Block a user