Change canvas style from initial to unset
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ export function createCanvasContext2D(
|
|||||||
canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300);
|
canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300);
|
||||||
} else {
|
} else {
|
||||||
canvas = document.createElement('canvas');
|
canvas = document.createElement('canvas');
|
||||||
canvas.style.all = 'initial';
|
canvas.style.all = 'unset';
|
||||||
}
|
}
|
||||||
if (opt_width) {
|
if (opt_width) {
|
||||||
canvas.width = opt_width;
|
canvas.width = opt_width;
|
||||||
|
|||||||
Reference in New Issue
Block a user