@leapfrog/interactive-canvas 2.0.22-beta-5 → 2.0.22-beta-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.
|
@@ -3490,12 +3490,9 @@ class AbstractInteractiveCanvas {
|
|
|
3490
3490
|
* @inheritDoc
|
|
3491
3491
|
*/
|
|
3492
3492
|
createPNGStream(multiplier) {
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
enableRetinaScaling: true
|
|
3497
|
-
};
|
|
3498
|
-
return this.fabricCanvas.toDataURL(options);
|
|
3493
|
+
({
|
|
3494
|
+
multiplier: multiplier || this.IMAGE_CAPTURE_COEFFICIENT});
|
|
3495
|
+
return this.fabricCanvas.toDataURL();
|
|
3499
3496
|
}
|
|
3500
3497
|
/**
|
|
3501
3498
|
* @override
|
|
@@ -302,7 +302,7 @@ export interface IInteractiveCanvas {
|
|
|
302
302
|
/**
|
|
303
303
|
* Create a PNG stream of the canvas. Only works on headless canvas.
|
|
304
304
|
*/
|
|
305
|
-
createPNGStream(): any;
|
|
305
|
+
createPNGStream(multiplier?: number): any;
|
|
306
306
|
/**
|
|
307
307
|
* Save the current state as an undo point.
|
|
308
308
|
*/
|
|
@@ -3511,12 +3511,9 @@ class AbstractInteractiveCanvas {
|
|
|
3511
3511
|
* @inheritDoc
|
|
3512
3512
|
*/
|
|
3513
3513
|
createPNGStream(multiplier) {
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
enableRetinaScaling: true
|
|
3518
|
-
};
|
|
3519
|
-
return this.fabricCanvas.toDataURL(options);
|
|
3514
|
+
({
|
|
3515
|
+
multiplier: multiplier || this.IMAGE_CAPTURE_COEFFICIENT});
|
|
3516
|
+
return this.fabricCanvas.toDataURL();
|
|
3520
3517
|
}
|
|
3521
3518
|
/**
|
|
3522
3519
|
* @override
|