@pixldocs/canvas-renderer 0.5.127 → 0.5.128
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-DAeQbGws.js → index-DP6tfo-F.js} +3 -3
- package/dist/{index-DAeQbGws.js.map → index-DP6tfo-F.js.map} +1 -1
- package/dist/{index-D3W__oF4.cjs → index-Ds1WDn3c.cjs} +3 -3
- package/dist/{index-D3W__oF4.cjs.map → index-Ds1WDn3c.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BDy3-lzN.cjs → vectorPdfExport-De27t708.cjs} +4 -4
- package/dist/{vectorPdfExport-BDy3-lzN.cjs.map → vectorPdfExport-De27t708.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DtWByjEA.js → vectorPdfExport-XAlrioM6.js} +4 -4
- package/dist/{vectorPdfExport-DtWByjEA.js.map → vectorPdfExport-XAlrioM6.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-DP6tfo-F.js";
|
|
5
5
|
import { resetPdfFontRegistry, FONT_FALLBACK_SYMBOLS, FONT_FALLBACK_MATH, FONT_FALLBACK_DEVANAGARI, embedFontWithGoogleFallback, getEmbeddedVariantsList, isFontAvailable, isFamilyEmbedded, resolveBestRegisteredVariant, getEmbeddedJsPDFFontName, resolveFontWeight, doesVariantSupportChar } from "./pdfFonts-Y49FLHuG.js";
|
|
6
6
|
async function embedFontsForSvg(pdf, svgStr) {
|
|
7
7
|
var _a;
|
|
@@ -2112,7 +2112,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2112
2112
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2113
2113
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2114
2114
|
try {
|
|
2115
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2115
|
+
const { getNormalizedSvgUrl } = await import("./index-DP6tfo-F.js").then((n) => n._);
|
|
2116
2116
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2117
2117
|
} catch {
|
|
2118
2118
|
return null;
|
|
@@ -2893,7 +2893,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
let fetchUrl = imageUrl;
|
|
2895
2895
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
2896
|
-
const { isPrivateUrl } = await import("./index-
|
|
2896
|
+
const { isPrivateUrl } = await import("./index-DP6tfo-F.js").then((n) => n._);
|
|
2897
2897
|
if (isPrivateUrl(imageUrl)) return null;
|
|
2898
2898
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
2899
2899
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -4875,4 +4875,4 @@ export {
|
|
|
4875
4875
|
preparePagesForExport,
|
|
4876
4876
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
4877
4877
|
};
|
|
4878
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
4878
|
+
//# sourceMappingURL=vectorPdfExport-XAlrioM6.js.map
|