mirror of
https://github.com/konvajs/konva.git
synced 2025-12-04 10:58:22 +08:00
new toImage() method to support node caching
This commit is contained in:
6
dist/kinetic-core.js
vendored
6
dist/kinetic-core.js
vendored
@@ -1319,6 +1319,12 @@ Kinetic.Node = Kinetic.Class.extend({
|
||||
return bufferLayer.getCanvas().toDataURL();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* to image
|
||||
*/
|
||||
toImage: function() {
|
||||
return Kinetic.Type._getImage(this.toDataURL());
|
||||
},
|
||||
_setImageData: function(imageData) {
|
||||
if(imageData && imageData.data) {
|
||||
this.imageData = imageData;
|
||||
|
||||
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user