@leapfrog/interactive-canvas 1.5.0 → 1.5.2
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.
|
@@ -485,7 +485,8 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
485
485
|
if (oc(canvas.getDimensionsRestrictions()).fixed(false))
|
|
486
486
|
return;
|
|
487
487
|
var dimensions = canvas.getDimensions();
|
|
488
|
-
var
|
|
488
|
+
var minHeight = oc(canvas.getDimensionsRestrictions()).height.min(MIN_MAGNITUDE);
|
|
489
|
+
var targetDimensions = canvas.getDimensions().withSize(dimensions.width, minHeight);
|
|
489
490
|
while (targetDimensions.heightPx < requiredHeight) {
|
|
490
491
|
targetDimensions = targetDimensions.withSize(dimensions.width, targetDimensions.height + 1);
|
|
491
492
|
}
|
|
@@ -1112,6 +1113,7 @@ var Border = /** @class */ (function (_super) {
|
|
|
1112
1113
|
_this.strokeWidth$ = new BehaviorSubject(0);
|
|
1113
1114
|
_this.canvas = canvas;
|
|
1114
1115
|
_this.strokeWidth$.next(_this.fabricObject.strokeWidth);
|
|
1116
|
+
_this.fabricObject.set({ "fill": null });
|
|
1115
1117
|
_this.updatePosition();
|
|
1116
1118
|
return _this;
|
|
1117
1119
|
}
|
|
@@ -487,7 +487,8 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
487
487
|
if (tsOptchain.oc(canvas.getDimensionsRestrictions()).fixed(false))
|
|
488
488
|
return;
|
|
489
489
|
var dimensions = canvas.getDimensions();
|
|
490
|
-
var
|
|
490
|
+
var minHeight = tsOptchain.oc(canvas.getDimensionsRestrictions()).height.min(MIN_MAGNITUDE);
|
|
491
|
+
var targetDimensions = canvas.getDimensions().withSize(dimensions.width, minHeight);
|
|
491
492
|
while (targetDimensions.heightPx < requiredHeight) {
|
|
492
493
|
targetDimensions = targetDimensions.withSize(dimensions.width, targetDimensions.height + 1);
|
|
493
494
|
}
|
|
@@ -1114,6 +1115,7 @@ var Border = /** @class */ (function (_super) {
|
|
|
1114
1115
|
_this.strokeWidth$ = new rxjs.BehaviorSubject(0);
|
|
1115
1116
|
_this.canvas = canvas;
|
|
1116
1117
|
_this.strokeWidth$.next(_this.fabricObject.strokeWidth);
|
|
1118
|
+
_this.fabricObject.set({ "fill": null });
|
|
1117
1119
|
_this.updatePosition();
|
|
1118
1120
|
return _this;
|
|
1119
1121
|
}
|