hdr-canvas 0.0.3 → 0.0.5

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.
@@ -5872,6 +5872,11 @@ class Uint16Image {
5872
5872
  }
5873
5873
  this.colorSpace = Uint16Image.DEFAULT_COLORSPACE;
5874
5874
  }
5875
+ clone() {
5876
+ const i = new Uint16Image(this.width, this.height, this.colorSpace);
5877
+ i.data = this.data.slice();
5878
+ return i;
5879
+ }
5875
5880
  }
5876
5881
  Uint16Image.DEFAULT_COLORSPACE = "rec2100-hlg";
5877
5882
  Uint16Image.SDR_MULTIPLIER = 2 ** 16 - 1;