hdr-canvas 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5932,9 +5932,10 @@ function checkHDRCanvas() {
5932
5932
  }
5933
5933
  }
5934
5934
 
5935
+ const hdr_options = { colorSpace: Uint16Image.DEFAULT_COLORSPACE, pixelFormat: 'float16' };
5935
5936
  function initHDRCanvas(canvas) {
5936
5937
  canvas.configureHighDynamicRange({ mode: 'extended' });
5937
- const ctx = canvas.getContext("2d", { colorSpace: Uint16Image.DEFAULT_COLORSPACE, pixelFormat: 'float16' });
5938
+ const ctx = canvas.getContext("2d", hdr_options);
5938
5939
  return ctx;
5939
5940
  }
5940
5941