@pixldocs/canvas-renderer 0.5.49 → 0.5.51

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
@@ -221,7 +221,7 @@ export declare function normalizeFontFamily(fontStack: string): string;
221
221
  * Package version banner. Bump alongside package.json so we can confirm
222
222
  * (via browser:log) that the deployed bundle matches the expected build.
223
223
  */
224
- export declare const PACKAGE_VERSION = "0.5.48";
224
+ export declare const PACKAGE_VERSION = "0.5.50";
225
225
 
226
226
  export declare interface PageSettings {
227
227
  backgroundColor?: string;
package/dist/index.js CHANGED
@@ -12321,7 +12321,7 @@ function PixldocsPreview(props) {
12321
12321
  !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..." }) })
12322
12322
  ] });
12323
12323
  }
12324
- const PACKAGE_VERSION = "0.5.48";
12324
+ const PACKAGE_VERSION = "0.5.50";
12325
12325
  let __underlineFixInstalled = false;
12326
12326
  function installUnderlineFix(fab) {
12327
12327
  var _a;
@@ -15016,10 +15016,10 @@ async function rasterizeShadowMarkers(svg) {
15016
15016
  const scale = 2;
15017
15017
  const pxW = Math.min(4096, Math.max(8, Math.ceil(bw * scale)));
15018
15018
  const pxH = Math.min(4096, Math.max(8, Math.ceil(bh * scale)));
15019
- const stdDev = Math.max(0, blur);
15019
+ const stdDev = Math.max(0, blur / 2);
15020
15020
  const filterId = `pdShadowBlur_${Math.random().toString(36).slice(2, 9)}`;
15021
15021
  const styleBlock = fontFaceCss ? `<style>${fontFaceCss}</style>` : "";
15022
- const miniSvg = `<svg xmlns="${SVG_NS}" xmlns:xlink="${XLINK_NS}" width="${pxW}" height="${pxH}" viewBox="${bx} ${by} ${bw} ${bh}"><defs>${styleBlock}<filter id="${filterId}" x="-50%" y="-50%" width="200%" height="200%" color-interpolation-filters="sRGB"><feOffset dx="${ox}" dy="${oy}" result="offsetShadow" /><feGaussianBlur in="offsetShadow" stdDeviation="${stdDev}" /></filter></defs><g filter="url(#${filterId})">${innerXml}</g></svg>`;
15022
+ const miniSvg = `<svg xmlns="${SVG_NS}" xmlns:xlink="${XLINK_NS}" width="${pxW}" height="${pxH}" viewBox="${bx} ${by} ${bw} ${bh}">${styleBlock}<defs><filter id="${filterId}" filterUnits="userSpaceOnUse" x="${bx}" y="${by}" width="${bw}" height="${bh}" color-interpolation-filters="sRGB"><feOffset dx="${ox}" dy="${oy}" result="offsetShadow" /><feGaussianBlur in="offsetShadow" stdDeviation="${stdDev}" /></filter></defs><g filter="url(#${filterId})">${innerXml}</g></svg>`;
15023
15023
  const dataUrl = await rasterSvgToPngDataUrl(miniSvg, pxW, pxH);
15024
15024
  if (!dataUrl) {
15025
15025
  (_c = marker.parentNode) == null ? void 0 : _c.removeChild(marker);