mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +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',
|
'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);
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ suite('Context', function() {
|
|||||||
'arc',
|
'arc',
|
||||||
'arcTo',
|
'arcTo',
|
||||||
'rect',
|
'rect',
|
||||||
|
'ellipse'
|
||||||
'fill',
|
'fill',
|
||||||
'stroke',
|
'stroke',
|
||||||
'clip',
|
'clip',
|
||||||
|
Loading…
Reference in New Issue
Block a user