canvas-editor-engine 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2123,12 +2123,16 @@ var VagueFilter = function(_super) {
|
|
2123
2123
|
var TempCanvas = function() {
|
2124
2124
|
function TempCanvas() {
|
2125
2125
|
this.canvas = document.createElement("canvas");
|
2126
|
-
this.ctx = this.canvas.getContext("2d"
|
2126
|
+
this.ctx = this.canvas.getContext("2d", {
|
2127
|
+
willReadFrequently: true
|
2128
|
+
});
|
2127
2129
|
}
|
2128
2130
|
TempCanvas.prototype.bindOptions = function(options) {
|
2129
2131
|
this.canvas.width = options.width;
|
2130
2132
|
this.canvas.height = options.height;
|
2131
|
-
this.ctx = this.canvas.getContext("2d"
|
2133
|
+
this.ctx = this.canvas.getContext("2d", {
|
2134
|
+
willReadFrequently: true
|
2135
|
+
});
|
2132
2136
|
};
|
2133
2137
|
TempCanvas.prototype.destroy = function() {
|
2134
2138
|
this.canvas.remove();
|