@leapfrog/interactive-canvas 1.14.3 → 1.14.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.
|
@@ -410,6 +410,7 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
410
410
|
var footerObjects = objects[0];
|
|
411
411
|
var bodyObjects = objects[1];
|
|
412
412
|
var bodyWidth = canvasDimensions.widthPx - canvasMargin.right - canvasMargin.left;
|
|
413
|
+
canvas.redraw();
|
|
413
414
|
//Make one pass and set the widths of all elements. This will force objects with dynamic heights (like text) to take on their necessary height before trying to lay them out.
|
|
414
415
|
this.applyWidths(allObjects, bodyWidth);
|
|
415
416
|
var bodyRows = this.getRows(bodyObjects);
|
|
@@ -2559,6 +2560,8 @@ var Text = /** @class */ (function (_super) {
|
|
|
2559
2560
|
var entry = orderedListMarkerEntities[lineIndex];
|
|
2560
2561
|
var fontSize = this.getValueOfPropertyAt(lineIndex, 0, "fontSize");
|
|
2561
2562
|
var fontFamily = this.getValueOfPropertyAt(lineIndex, 0, "fontFamily");
|
|
2563
|
+
var fontWeight = this.getValueOfPropertyAt(lineIndex, 0, "fontWeight");
|
|
2564
|
+
var fontStyle = this.getValueOfPropertyAt(lineIndex, 0, "fontStyle");
|
|
2562
2565
|
var color = this.getValueOfPropertyAt(lineIndex, 0, "fill");
|
|
2563
2566
|
var angle = fabricText.angle;
|
|
2564
2567
|
var theta = angle * Math.PI / 180;
|
|
@@ -2574,6 +2577,8 @@ var Text = /** @class */ (function (_super) {
|
|
|
2574
2577
|
width: 1,
|
|
2575
2578
|
fontSize: fontSize,
|
|
2576
2579
|
fontFamily: fontFamily,
|
|
2580
|
+
fontWeight: fontWeight,
|
|
2581
|
+
fontStyle: fontStyle,
|
|
2577
2582
|
fill: color,
|
|
2578
2583
|
left: fabricText.left + xOffset,
|
|
2579
2584
|
top: fabricText.top + yOffset,
|
|
@@ -412,6 +412,7 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
412
412
|
var footerObjects = objects[0];
|
|
413
413
|
var bodyObjects = objects[1];
|
|
414
414
|
var bodyWidth = canvasDimensions.widthPx - canvasMargin.right - canvasMargin.left;
|
|
415
|
+
canvas.redraw();
|
|
415
416
|
//Make one pass and set the widths of all elements. This will force objects with dynamic heights (like text) to take on their necessary height before trying to lay them out.
|
|
416
417
|
this.applyWidths(allObjects, bodyWidth);
|
|
417
418
|
var bodyRows = this.getRows(bodyObjects);
|
|
@@ -2561,6 +2562,8 @@ var Text = /** @class */ (function (_super) {
|
|
|
2561
2562
|
var entry = orderedListMarkerEntities[lineIndex];
|
|
2562
2563
|
var fontSize = this.getValueOfPropertyAt(lineIndex, 0, "fontSize");
|
|
2563
2564
|
var fontFamily = this.getValueOfPropertyAt(lineIndex, 0, "fontFamily");
|
|
2565
|
+
var fontWeight = this.getValueOfPropertyAt(lineIndex, 0, "fontWeight");
|
|
2566
|
+
var fontStyle = this.getValueOfPropertyAt(lineIndex, 0, "fontStyle");
|
|
2564
2567
|
var color = this.getValueOfPropertyAt(lineIndex, 0, "fill");
|
|
2565
2568
|
var angle = fabricText.angle;
|
|
2566
2569
|
var theta = angle * Math.PI / 180;
|
|
@@ -2576,6 +2579,8 @@ var Text = /** @class */ (function (_super) {
|
|
|
2576
2579
|
width: 1,
|
|
2577
2580
|
fontSize: fontSize,
|
|
2578
2581
|
fontFamily: fontFamily,
|
|
2582
|
+
fontWeight: fontWeight,
|
|
2583
|
+
fontStyle: fontStyle,
|
|
2579
2584
|
fill: color,
|
|
2580
2585
|
left: fabricText.left + xOffset,
|
|
2581
2586
|
top: fabricText.top + yOffset,
|