@pixldocs/canvas-renderer 0.5.498 → 0.5.499

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, o as getWorldAngleDeg } from "./index-lbU-Xs_t.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, o as getWorldAngleDeg } from "./index-DV1y20kD.js";
5
5
  import { resetPdfFontRegistry, FONT_FALLBACK_SYMBOLS, FONT_FALLBACK_MATH, FONT_FALLBACK_DEVANAGARI, embedFontWithGoogleFallback, getEmbeddedVariantsList, isFontAvailable, isFamilyEmbedded, resolveBestRegisteredVariant, getEmbeddedJsPDFFontName, resolveFontWeight, doesVariantSupportChar } from "./pdfFonts-B_rPB0OF.js";
6
6
  async function embedFontsForSvg(pdf, svgStr) {
7
7
  var _a;
@@ -3252,7 +3252,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
3252
3252
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
3253
3253
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
3254
3254
  try {
3255
- const { getNormalizedSvgUrl } = await import("./index-lbU-Xs_t.js").then((n) => n.a9);
3255
+ const { getNormalizedSvgUrl } = await import("./index-DV1y20kD.js").then((n) => n.a9);
3256
3256
  return await getNormalizedSvgUrl(imageUrl, colorMap);
3257
3257
  } catch {
3258
3258
  return null;
@@ -4061,7 +4061,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
4061
4061
  }
4062
4062
  let fetchUrl = imageUrl;
4063
4063
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
4064
- const { isPrivateUrl } = await import("./index-lbU-Xs_t.js").then((n) => n.a9);
4064
+ const { isPrivateUrl } = await import("./index-DV1y20kD.js").then((n) => n.a9);
4065
4065
  if (isPrivateUrl(imageUrl)) return null;
4066
4066
  const proxyUrl = new URL(`${API_URL}/image-proxy`);
4067
4067
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5621,7 +5621,7 @@ async function exportFabricCanvasToVectorPdf(_fabricCanvas, options) {
5621
5621
  compress: true
5622
5622
  });
5623
5623
  if (title) {
5624
- pdf.setProperties({ title, creator: "DocuForge" });
5624
+ pdf.setProperties({ title, creator: "PixlDocs" });
5625
5625
  }
5626
5626
  if (backgroundColor && backgroundColor !== "transparent") {
5627
5627
  const bgColor = parseColor(backgroundColor);
@@ -5801,7 +5801,7 @@ async function __exportMultiPagePdfInner(pages, options) {
5801
5801
  compress: true
5802
5802
  });
5803
5803
  if (title) {
5804
- pdf.setProperties({ title, creator: "DocuForge" });
5804
+ pdf.setProperties({ title, creator: "PixlDocs" });
5805
5805
  }
5806
5806
  const fontKeysNeeded = /* @__PURE__ */ new Set();
5807
5807
  const italicKeysNeeded = /* @__PURE__ */ new Set();
@@ -6209,4 +6209,4 @@ export {
6209
6209
  preparePagesForExport,
6210
6210
  rewriteSvgFontsForJsPDFWithSourceMeta
6211
6211
  };
6212
- //# sourceMappingURL=vectorPdfExport-D8iQi9WT.js.map
6212
+ //# sourceMappingURL=vectorPdfExport-DrdqdTij.js.map