mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
Added createImageData to context
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
'fill',
|
||||
'fillText',
|
||||
'getImageData',
|
||||
'createImageData',
|
||||
'lineTo',
|
||||
'moveTo',
|
||||
'putImageData',
|
||||
@@ -266,6 +267,15 @@
|
||||
closePath: function() {
|
||||
this._context.closePath();
|
||||
},
|
||||
createImageData: function() {
|
||||
var a = arguments;
|
||||
if(a.length === 2) {
|
||||
return this._context.createImageData(a[0], a[1]);
|
||||
}
|
||||
else if(a.length === 1) {
|
||||
return this._context.createImageData(a[0]);
|
||||
}
|
||||
},
|
||||
createLinearGradient: function() {
|
||||
var a = arguments;
|
||||
return this._context.createLinearGradient(a[0], a[1], a[2], a[3]);
|
||||
|
||||
Reference in New Issue
Block a user