@pixldocs/canvas-renderer 0.5.217 → 0.5.219

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.
@@ -1,7 +1,7 @@
1
1
  import { jsPDF, ShadingPattern } from "jspdf";
2
2
  import { svg2pdf } from "svg2pdf.js";
3
3
  import * as fabric from "fabric";
4
- import { p as parseTextMarkdown, r as renderSmartElementToSvg, g as getCanvasForPage, c as captureFabricCanvasSvgForPdf, f as findNodeById, a as getAbsoluteBounds, b as getProxiedImageUrl, d as getImageProxyFetchOptions, A as API_URL, n as normalizeShapeType, i as isElement, e as isGroup, h as buildRoundedTrianglePath, j as hasEdgeFade, k as bakeEdgeFade, l as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, m as getTrianglePoints } from "./index-Ci5YA_Ps.js";
4
+ import { p as parseTextMarkdown, r as renderSmartElementToSvg, g as getCanvasForPage, c as captureFabricCanvasSvgForPdf, f as findNodeById, a as getAbsoluteBounds, b as getProxiedImageUrl, d as getImageProxyFetchOptions, A as API_URL, n as normalizeShapeType, i as isElement, e as isGroup, h as buildRoundedTrianglePath, j as hasEdgeFade, k as bakeEdgeFade, l as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, m as getTrianglePoints } from "./index-DbUPI6zs.js";
5
5
  import { resetPdfFontRegistry, FONT_FALLBACK_SYMBOLS, FONT_FALLBACK_MATH, FONT_FALLBACK_DEVANAGARI, embedFontWithGoogleFallback, getEmbeddedVariantsList, isFontAvailable, isFamilyEmbedded, resolveBestRegisteredVariant, getEmbeddedJsPDFFontName, resolveFontWeight, doesVariantSupportChar } from "./pdfFonts-DhEaMTZl.js";
6
6
  async function embedFontsForSvg(pdf, svgStr) {
7
7
  var _a;
@@ -2080,7 +2080,7 @@ async function rasterizeShadowMarkers(svg) {
2080
2080
  const by = parseFloat(marker.getAttribute("data-by") || "0");
2081
2081
  const bw = parseFloat(marker.getAttribute("data-bw") || "0");
2082
2082
  const bh = parseFloat(marker.getAttribute("data-bh") || "0");
2083
- const spread = parseFloat(marker.getAttribute("data-spread") || "0");
2083
+ const spread = 0;
2084
2084
  const alphaRaw = parseFloat(marker.getAttribute("data-alpha") || "1");
2085
2085
  const shadowAlpha = Number.isFinite(alphaRaw) ? Math.max(0, Math.min(1, alphaRaw)) : 1;
2086
2086
  if (!Number.isFinite(bw) || !Number.isFinite(bh) || bw <= 0 || bh <= 0) {
@@ -2955,7 +2955,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
2955
2955
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
2956
2956
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
2957
2957
  try {
2958
- const { getNormalizedSvgUrl } = await import("./index-Ci5YA_Ps.js").then((n) => n.a6);
2958
+ const { getNormalizedSvgUrl } = await import("./index-DbUPI6zs.js").then((n) => n.a6);
2959
2959
  return await getNormalizedSvgUrl(imageUrl, colorMap);
2960
2960
  } catch {
2961
2961
  return null;
@@ -3764,7 +3764,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
3764
3764
  }
3765
3765
  let fetchUrl = imageUrl;
3766
3766
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
3767
- const { isPrivateUrl } = await import("./index-Ci5YA_Ps.js").then((n) => n.a6);
3767
+ const { isPrivateUrl } = await import("./index-DbUPI6zs.js").then((n) => n.a6);
3768
3768
  if (isPrivateUrl(imageUrl)) return null;
3769
3769
  const proxyUrl = new URL(`${API_URL}/image-proxy`);
3770
3770
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5865,4 +5865,4 @@ export {
5865
5865
  preparePagesForExport,
5866
5866
  rewriteSvgFontsForJsPDFWithSourceMeta
5867
5867
  };
5868
- //# sourceMappingURL=vectorPdfExport-DJR9lwsV.js.map
5868
+ //# sourceMappingURL=vectorPdfExport-Dejgf_PM.js.map