@pixldocs/canvas-renderer 0.5.180 → 0.5.182

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 { g as getCanvasForPage, c as captureFabricCanvasSvgForPdf, f as findNodeById, a as getAbsoluteBounds, p as parseTextMarkdown, r as renderSmartElementToSvg, n as normalizeShapeType, h as hasEdgeFade, b as getProxiedImageUrl, d as bakeEdgeFade, i as isElement, e as isGroup, j as buildRoundedTrianglePath, A as API_URL, k as getImageProxyFetchOptions, l as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, m as getTrianglePoints } from "./index-DdrxSxRr.js";
4
+ import { g as getCanvasForPage, c as captureFabricCanvasSvgForPdf, f as findNodeById, a as getAbsoluteBounds, p as parseTextMarkdown, r as renderSmartElementToSvg, n as normalizeShapeType, h as hasEdgeFade, d as getProxiedImageUrl, e as bakeEdgeFade, i as isElement, j as isGroup, k as buildRoundedTrianglePath, A as API_URL, l as getImageProxyFetchOptions, m as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, o as getTrianglePoints } from "./index-CcCXKYy6.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;
@@ -2506,7 +2506,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
2506
2506
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
2507
2507
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
2508
2508
  try {
2509
- const { getNormalizedSvgUrl } = await import("./index-DdrxSxRr.js").then((n) => n.a2);
2509
+ const { getNormalizedSvgUrl } = await import("./index-CcCXKYy6.js").then((n) => n.a3);
2510
2510
  return await getNormalizedSvgUrl(imageUrl, colorMap);
2511
2511
  } catch {
2512
2512
  return null;
@@ -3297,7 +3297,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
3297
3297
  }
3298
3298
  let fetchUrl = imageUrl;
3299
3299
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
3300
- const { isPrivateUrl } = await import("./index-DdrxSxRr.js").then((n) => n.a2);
3300
+ const { isPrivateUrl } = await import("./index-CcCXKYy6.js").then((n) => n.a3);
3301
3301
  if (isPrivateUrl(imageUrl)) return null;
3302
3302
  const proxyUrl = new URL(`${API_URL}/image-proxy`);
3303
3303
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5293,4 +5293,4 @@ export {
5293
5293
  preparePagesForExport,
5294
5294
  rewriteSvgFontsForJsPDFWithSourceMeta
5295
5295
  };
5296
- //# sourceMappingURL=vectorPdfExport-DCZJhOmn.js.map
5296
+ //# sourceMappingURL=vectorPdfExport-BpRBLtU-.js.map