Re:It's always been you, Canvas2D
by mysteryDate on Friday March 04, 2022 @09:32AM
(#30555294)
These are all available as of Chrome M99! Thanks for reminding me to update caniuse!
What about all the other browsers?
Re:It's always been you, Canvas2D
by mysteryDate on Friday March 04, 2022 @09:57AM
(#30555690)
So, these functions are are now currently part of the whatwg spec, so other browsers have stated their intention to implement them and this is underway.
Wonderful!
New is always frustrating.
Instead I'll write my own context.reset_bogus() that simply calls canvas.width = canvas.width
Same for round rect. Some of the other features though ... not so simple, ha ha.
ctx.createConicGradient() - 15.15% of users (Firefox since 90 and Safari since 15, not yet in Chromium/Blink without `new-canvas-2d-api` flag)
https://caniuse.com/?search=createConicGradient
Not found on "Can I Use":
- All text modifiers
- ctx.roundRect()
- context.reset()
- CanvasFilter
- contextlost/contextrestored
Anyone know when these will be available in browsers?
Looks like in chrome they are all under the `new-canvas-2d-api` flag:
https://chromestatus.com/feature/6051647656558592