stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

Add a way to pass 2d options to DOM.context2d like willReadFrequently

Open bennyschudel opened this issue 9 months ago • 1 comments

Hi

Can we add a way here to pass options to getContext('2d'). It seems to me that willReadFrequently is only possible when getting the context for the first time.

https://github.com/observablehq/stdlib/blob/493bf210f5fcd9360cf87a961403aa963ba08c96/src/dom/context2d.js#L7

Best Benny

bennyschudel avatar May 15 '25 08:05 bennyschudel

Fwiw, there's a pending PR: #273

mootari avatar May 15 '25 08:05 mootari