hdr-canvas 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hdr-canvas.cjs +5 -0
- package/dist/hdr-canvas.cjs.map +1 -1
- package/dist/hdr-canvas.d.ts +1 -0
- package/dist/hdr-canvas.js +5 -0
- package/dist/hdr-canvas.js.map +1 -1
- package/dist/hdr-canvas.min.js +1 -1
- package/dist/hdr-canvas.min.js.map +1 -1
- package/package.json +2 -2
- package/src/Uint16Image.ts +7 -1
package/dist/hdr-canvas.cjs
CHANGED
@@ -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;
|