@leapfrog/interactive-canvas 2.0.22-beta-4 → 2.0.22-beta-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.
|
@@ -3489,11 +3489,10 @@ class AbstractInteractiveCanvas {
|
|
|
3489
3489
|
* @override
|
|
3490
3490
|
* @inheritDoc
|
|
3491
3491
|
*/
|
|
3492
|
-
createPNGStream() {
|
|
3493
|
-
//return (this.fabricCanvas as any).createPNGStream();
|
|
3492
|
+
createPNGStream(multiplier) {
|
|
3494
3493
|
const options = {
|
|
3495
3494
|
format: "png",
|
|
3496
|
-
multiplier:
|
|
3495
|
+
multiplier: multiplier || this.IMAGE_CAPTURE_COEFFICIENT,
|
|
3497
3496
|
enableRetinaScaling: true
|
|
3498
3497
|
};
|
|
3499
3498
|
return this.fabricCanvas.toDataURL(options);
|
|
@@ -3510,11 +3510,10 @@ class AbstractInteractiveCanvas {
|
|
|
3510
3510
|
* @override
|
|
3511
3511
|
* @inheritDoc
|
|
3512
3512
|
*/
|
|
3513
|
-
createPNGStream() {
|
|
3514
|
-
//return (this.fabricCanvas as any).createPNGStream();
|
|
3513
|
+
createPNGStream(multiplier) {
|
|
3515
3514
|
const options = {
|
|
3516
3515
|
format: "png",
|
|
3517
|
-
multiplier:
|
|
3516
|
+
multiplier: multiplier || this.IMAGE_CAPTURE_COEFFICIENT,
|
|
3518
3517
|
enableRetinaScaling: true
|
|
3519
3518
|
};
|
|
3520
3519
|
return this.fabricCanvas.toDataURL(options);
|