@leapfrog/interactive-canvas 1.5.1 → 1.5.3
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.
|
@@ -1113,6 +1113,7 @@ var Border = /** @class */ (function (_super) {
|
|
|
1113
1113
|
_this.strokeWidth$ = new BehaviorSubject(0);
|
|
1114
1114
|
_this.canvas = canvas;
|
|
1115
1115
|
_this.strokeWidth$.next(_this.fabricObject.strokeWidth);
|
|
1116
|
+
_this.fabricObject.set({ "fill": null });
|
|
1116
1117
|
_this.updatePosition();
|
|
1117
1118
|
return _this;
|
|
1118
1119
|
}
|
|
@@ -2403,6 +2404,10 @@ var AbstractInteractiveCanvas = /** @class */ (function () {
|
|
|
2403
2404
|
this.fontLibrary = new FontLibrary();
|
|
2404
2405
|
this.dimensionChangeRejections$ = new Subject();
|
|
2405
2406
|
this.IMAGE_CAPTURE_COEFFICIENT = this.calculateImageCaptureCoefficient();
|
|
2407
|
+
/**
|
|
2408
|
+
* Fabric defaults to only 2 decimal places when saving, which causes havoc on the scaling of large images.
|
|
2409
|
+
*/
|
|
2410
|
+
fabric.Object.NUM_FRACTION_DIGITS = 10;
|
|
2406
2411
|
this.baseDimensions = new PixelCanvasDimensions(this.fabricCanvas.width, this.fabricCanvas.height);
|
|
2407
2412
|
var baseRestrictions = { width: { min: 1 }, height: { min: 1 } };
|
|
2408
2413
|
//Initialize properties
|
|
@@ -1115,6 +1115,7 @@ var Border = /** @class */ (function (_super) {
|
|
|
1115
1115
|
_this.strokeWidth$ = new rxjs.BehaviorSubject(0);
|
|
1116
1116
|
_this.canvas = canvas;
|
|
1117
1117
|
_this.strokeWidth$.next(_this.fabricObject.strokeWidth);
|
|
1118
|
+
_this.fabricObject.set({ "fill": null });
|
|
1118
1119
|
_this.updatePosition();
|
|
1119
1120
|
return _this;
|
|
1120
1121
|
}
|
|
@@ -2403,6 +2404,10 @@ var AbstractInteractiveCanvas = /** @class */ (function () {
|
|
|
2403
2404
|
this.fontLibrary = new FontLibrary();
|
|
2404
2405
|
this.dimensionChangeRejections$ = new rxjs.Subject();
|
|
2405
2406
|
this.IMAGE_CAPTURE_COEFFICIENT = this.calculateImageCaptureCoefficient();
|
|
2407
|
+
/**
|
|
2408
|
+
* Fabric defaults to only 2 decimal places when saving, which causes havoc on the scaling of large images.
|
|
2409
|
+
*/
|
|
2410
|
+
fabric.Object.NUM_FRACTION_DIGITS = 10;
|
|
2406
2411
|
this.baseDimensions = new PixelCanvasDimensions(this.fabricCanvas.width, this.fabricCanvas.height);
|
|
2407
2412
|
var baseRestrictions = { width: { min: 1 }, height: { min: 1 } };
|
|
2408
2413
|
//Initialize properties
|