@pixldocs/canvas-renderer 0.5.209 → 0.5.210

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-DOIdbh-Q.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-DwYUddYW.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;
@@ -2801,7 +2801,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
2801
2801
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
2802
2802
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
2803
2803
  try {
2804
- const { getNormalizedSvgUrl } = await import("./index-DOIdbh-Q.js").then((n) => n.a6);
2804
+ const { getNormalizedSvgUrl } = await import("./index-DwYUddYW.js").then((n) => n.a6);
2805
2805
  return await getNormalizedSvgUrl(imageUrl, colorMap);
2806
2806
  } catch {
2807
2807
  return null;
@@ -3608,7 +3608,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
3608
3608
  }
3609
3609
  let fetchUrl = imageUrl;
3610
3610
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
3611
- const { isPrivateUrl } = await import("./index-DOIdbh-Q.js").then((n) => n.a6);
3611
+ const { isPrivateUrl } = await import("./index-DwYUddYW.js").then((n) => n.a6);
3612
3612
  if (isPrivateUrl(imageUrl)) return null;
3613
3613
  const proxyUrl = new URL(`${API_URL}/image-proxy`);
3614
3614
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5687,4 +5687,4 @@ export {
5687
5687
  preparePagesForExport,
5688
5688
  rewriteSvgFontsForJsPDFWithSourceMeta
5689
5689
  };
5690
- //# sourceMappingURL=vectorPdfExport-C0GsER0C.js.map
5690
+ //# sourceMappingURL=vectorPdfExport-Ch6GbQqO.js.map