@pixldocs/canvas-renderer 0.5.74 → 0.5.76
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3
- 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;
|
|
@@ -12550,7 +12553,7 @@ function PixldocsPreview(props) {
|
|
|
12550
12553
|
!canvasSettled && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
|
|
12551
12554
|
] });
|
|
12552
12555
|
}
|
|
12553
|
-
const PACKAGE_VERSION = "0.5.
|
|
12556
|
+
const PACKAGE_VERSION = "0.5.76";
|
|
12554
12557
|
let __underlineFixInstalled = false;
|
|
12555
12558
|
function installUnderlineFix(fab) {
|
|
12556
12559
|
var _a;
|
|
@@ -15636,7 +15639,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
|
|
|
15636
15639
|
const firstPage = svgResults[0];
|
|
15637
15640
|
const orientation = firstPage.width > firstPage.height ? "landscape" : "portrait";
|
|
15638
15641
|
const PARITY_TAG = "[canvas-renderer][parity-diag][pkg-pdf]";
|
|
15639
|
-
console.log(`${PARITY_TAG} pkg-version
|
|
15642
|
+
console.log(`${PARITY_TAG} pkg-version=${PACKAGE_VERSION} pages=${svgResults.length}`);
|
|
15640
15643
|
try {
|
|
15641
15644
|
for (let pi = 0; pi < svgResults.length; pi++) {
|
|
15642
15645
|
dumpSvgTextDiagnostics(svgResults[pi].svg, pi, PARITY_TAG, "STAGE-1-raw-toSVG");
|