@pixldocs/canvas-renderer 0.5.211 → 0.5.212

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-d8U2oDzI.cjs");
3
+ const index = require("./index-DB8j0PV0.cjs");
4
4
  exports.DEPLOYMENT_VERSION_MARKER = index.DEPLOYMENT_VERSION_MARKER;
5
5
  exports.FONT_FALLBACK_DEVANAGARI = index.FONT_FALLBACK_DEVANAGARI;
6
6
  exports.FONT_FALLBACK_MATH = index.FONT_FALLBACK_MATH;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, b, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5 } from "./index-C0tTvSFQ.js";
1
+ import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, b, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5 } from "./index-B1QDVK5k.js";
2
2
  export {
3
3
  D as DEPLOYMENT_VERSION_MARKER,
4
4
  F as FONT_FALLBACK_DEVANAGARI,
@@ -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-C0tTvSFQ.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-B1QDVK5k.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;
@@ -2951,7 +2951,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
2951
2951
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
2952
2952
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
2953
2953
  try {
2954
- const { getNormalizedSvgUrl } = await import("./index-C0tTvSFQ.js").then((n) => n.a6);
2954
+ const { getNormalizedSvgUrl } = await import("./index-B1QDVK5k.js").then((n) => n.a6);
2955
2955
  return await getNormalizedSvgUrl(imageUrl, colorMap);
2956
2956
  } catch {
2957
2957
  return null;
@@ -3760,7 +3760,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
3760
3760
  }
3761
3761
  let fetchUrl = imageUrl;
3762
3762
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
3763
- const { isPrivateUrl } = await import("./index-C0tTvSFQ.js").then((n) => n.a6);
3763
+ const { isPrivateUrl } = await import("./index-B1QDVK5k.js").then((n) => n.a6);
3764
3764
  if (isPrivateUrl(imageUrl)) return null;
3765
3765
  const proxyUrl = new URL(`${API_URL}/image-proxy`);
3766
3766
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5861,4 +5861,4 @@ export {
5861
5861
  preparePagesForExport,
5862
5862
  rewriteSvgFontsForJsPDFWithSourceMeta
5863
5863
  };
5864
- //# sourceMappingURL=vectorPdfExport-BEGl71uB.js.map
5864
+ //# sourceMappingURL=vectorPdfExport-CN-N0DE8.js.map