@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.
- package/dist/{index-DQF_on2h.cjs → index-54CXM_hR.cjs} +10 -9
- package/dist/index-54CXM_hR.cjs.map +1 -0
- package/dist/{index-DOIdbh-Q.js → index-DwYUddYW.js} +10 -9
- package/dist/index-DwYUddYW.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-B04JIcJr.cjs → vectorPdfExport-BSK-Z1p4.cjs} +4 -4
- package/dist/{vectorPdfExport-B04JIcJr.cjs.map → vectorPdfExport-BSK-Z1p4.cjs.map} +1 -1
- package/dist/{vectorPdfExport-C0GsER0C.js → vectorPdfExport-Ch6GbQqO.js} +4 -4
- package/dist/{vectorPdfExport-C0GsER0C.js.map → vectorPdfExport-Ch6GbQqO.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DOIdbh-Q.js.map +0 -1
- package/dist/index-DQF_on2h.cjs.map +0 -1
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
5690
|
+
//# sourceMappingURL=vectorPdfExport-Ch6GbQqO.js.map
|