@pixldocs/canvas-renderer 0.4.7 → 0.4.8
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 +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10240,7 +10240,12 @@ function setInTree(nodes, elementId, targetProperty, value) {
|
|
|
10240
10240
|
} else {
|
|
10241
10241
|
node[targetProperty] = value;
|
|
10242
10242
|
}
|
|
10243
|
-
if (targetProperty === "text" && node.type === "text")
|
|
10243
|
+
if (targetProperty === "text" && node.type === "text") {
|
|
10244
|
+
const overflowPolicy = String(node.overflowPolicy ?? "grow-and-push");
|
|
10245
|
+
if (overflowPolicy !== "auto-shrink") {
|
|
10246
|
+
delete node.height;
|
|
10247
|
+
}
|
|
10248
|
+
}
|
|
10244
10249
|
return true;
|
|
10245
10250
|
}
|
|
10246
10251
|
if (node.children && Array.isArray(node.children)) {
|