Revert "canvas: further investigation"

This reverts commit 845a93a052.
This commit is contained in:
jean-emmanuel 2024-12-30 21:38:59 +01:00
parent 845a93a052
commit 6ed34736f7

View file

@ -207,16 +207,12 @@ class Canvas extends Widget {
return
case 'css':
if (!/\/\*\s*noresize\s*\*\//.test(this.getProp('css'))) resize.check(this.canvas, true)
if (!/\/\*\s*novars\s*\*\//.test(this.getProp('css'))) {
// tmp test
fastdom.measure(()=>{
this.cacheCanvasStyle()
fastdom.mutate(()=>{
this.batchDraw()
})
fastdom.measure(()=>{
this.cacheCanvasStyle()
fastdom.mutate(()=>{
this.batchDraw()
})
}
})
case 'lineWidth':
case 'padding':
resize.check(this.canvas, true)