@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.d.ts CHANGED
@@ -256,7 +256,7 @@ export declare function normalizeFontFamily(fontStack: string): string;
256
256
  * Package version banner. Bump alongside package.json so we can confirm
257
257
  * (via browser:log) that the deployed bundle matches the expected build.
258
258
  */
259
- export declare const PACKAGE_VERSION = "0.5.74";
259
+ export declare const PACKAGE_VERSION = "0.5.76";
260
260
 
261
261
  export declare interface PageSettings {
262
262
  backgroundColor?: string;
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;
@@ -12531,7 +12534,7 @@ function PixldocsPreview(props) {
12531
12534
  !canvasSettled && /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
12532
12535
  ] });
12533
12536
  }
12534
- const PACKAGE_VERSION = "0.5.74";
12537
+ const PACKAGE_VERSION = "0.5.76";
12535
12538
  let __underlineFixInstalled = false;
12536
12539
  function installUnderlineFix(fab) {
12537
12540
  var _a;
@@ -15617,7 +15620,7 @@ async function assemblePdfFromSvgs(svgResults, options = {}) {
15617
15620
  const firstPage = svgResults[0];
15618
15621
  const orientation = firstPage.width > firstPage.height ? "landscape" : "portrait";
15619
15622
  const PARITY_TAG = "[canvas-renderer][parity-diag][pkg-pdf]";
15620
- console.log(`${PARITY_TAG} pkg-version=0.5.74 pages=${svgResults.length}`);
15623
+ console.log(`${PARITY_TAG} pkg-version=${PACKAGE_VERSION} pages=${svgResults.length}`);
15621
15624
  try {
15622
15625
  for (let pi = 0; pi < svgResults.length; pi++) {
15623
15626
  dumpSvgTextDiagnostics(svgResults[pi].svg, pi, PARITY_TAG, "STAGE-1-raw-toSVG");