@pixldocs/canvas-renderer 0.5.203 → 0.5.204
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-C2gJ23dU.js → index-BfLA9Iqt.js} +44 -25
- package/dist/{index-C2gJ23dU.js.map → index-BfLA9Iqt.js.map} +1 -1
- package/dist/{index-CZ28FLrz.cjs → index-pfkM2NbI.cjs} +44 -25
- package/dist/{index-CZ28FLrz.cjs.map → index-pfkM2NbI.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-xsu5ahea.cjs → vectorPdfExport-BzQh8tO6.cjs} +4 -4
- package/dist/{vectorPdfExport-xsu5ahea.cjs.map → vectorPdfExport-BzQh8tO6.cjs.map} +1 -1
- package/dist/{vectorPdfExport-B8tazQjy.js → vectorPdfExport-NpBdL1eb.js} +4 -4
- package/dist/{vectorPdfExport-B8tazQjy.js.map → vectorPdfExport-NpBdL1eb.js.map} +1 -1
- package/package.json +1 -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 { 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-
|
|
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-BfLA9Iqt.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;
|
|
@@ -2678,7 +2678,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2678
2678
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2679
2679
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2680
2680
|
try {
|
|
2681
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2681
|
+
const { getNormalizedSvgUrl } = await import("./index-BfLA9Iqt.js").then((n) => n.a6);
|
|
2682
2682
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2683
2683
|
} catch {
|
|
2684
2684
|
return null;
|
|
@@ -3469,7 +3469,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
let fetchUrl = imageUrl;
|
|
3471
3471
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3472
|
-
const { isPrivateUrl } = await import("./index-
|
|
3472
|
+
const { isPrivateUrl } = await import("./index-BfLA9Iqt.js").then((n) => n.a6);
|
|
3473
3473
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3474
3474
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3475
3475
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5478,4 +5478,4 @@ export {
|
|
|
5478
5478
|
preparePagesForExport,
|
|
5479
5479
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
5480
5480
|
};
|
|
5481
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5481
|
+
//# sourceMappingURL=vectorPdfExport-NpBdL1eb.js.map
|