作成日: 2023/01/27 最終更新日: 2023/02/22
文書種別
制限事項
詳細
Google ChromeやMicrosoft EdgeなどChromiumベースのブラウザで開発者ツールを開いたとき、下記のような警告が表示されます。
Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
この現象はGoogle Chromeのアップデートにより発生しています。
Google開発者ガイドによると、Canvas要素のgetContext("2d") オブジェクトのwillReadFrequentlyプロパティをtrueに設定しない場合に警告が表示されます。
回避方法
この制限事項はSpreadJS(Ver.16.0.4)で改善されました。SpreadJS(Ver.16.0.4)以降のバージョンでは警告は表示されません。
参考
https://www.dynamsoft.com/web-twain/docs/faq/chrome-106-107-warning.html
https://udn.realityripple.com/docs/Web/API/HTMLCanvasElement/getContext
https://stackoverflow.com/questions/74020182/canvas2d-multiple-readback-operations-using-getimagedata-are-faster-with-the-wi