@pixldocs/canvas-renderer 0.5.50 → 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.js CHANGED
@@ -15016,7 +15016,7 @@ 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
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>`;