@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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10616,7 +10616,10 @@ function setInTree(nodes, elementId, targetProperty, value) {
|
|
|
10616
10616
|
node[targetProperty] = value;
|
|
10617
10617
|
}
|
|
10618
10618
|
if (targetProperty === "text" && node.type === "text") {
|
|
10619
|
-
|
|
10619
|
+
const overflowPolicy = String(node.overflowPolicy ?? "grow-and-push");
|
|
10620
|
+
if (overflowPolicy !== "auto-shrink") {
|
|
10621
|
+
delete node.height;
|
|
10622
|
+
}
|
|
10620
10623
|
}
|
|
10621
10624
|
if ((targetProperty === "src" || targetProperty === "imageUrl") && node.type === "image") {
|
|
10622
10625
|
delete node.imageNaturalWidth;
|