@pixldocs/canvas-renderer 0.5.74 → 0.5.75

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.
package/dist/index.js CHANGED
@@ -10597,7 +10597,10 @@ function setInTree(nodes, elementId, targetProperty, value) {
10597
10597
  node[targetProperty] = value;
10598
10598
  }
10599
10599
  if (targetProperty === "text" && node.type === "text") {
10600
- delete node.height;
10600
+ const overflowPolicy = String(node.overflowPolicy ?? "grow-and-push");
10601
+ if (overflowPolicy !== "auto-shrink") {
10602
+ delete node.height;
10603
+ }
10601
10604
  }
10602
10605
  if ((targetProperty === "src" || targetProperty === "imageUrl") && node.type === "image") {
10603
10606
  delete node.imageNaturalWidth;