@pixldocs/canvas-renderer 0.5.221 → 0.5.222
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-DIokvyoP.cjs → index-BKJxI43i.cjs} +52 -22
- package/dist/{index-DIokvyoP.cjs.map → index-BKJxI43i.cjs.map} +1 -1
- package/dist/{index-mmjF0tPc.js → index-DxL--cfL.js} +52 -22
- package/dist/{index-mmjF0tPc.js.map → index-DxL--cfL.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CZjhPHZh.cjs → vectorPdfExport-CDMnc_eW.cjs} +4 -4
- package/dist/{vectorPdfExport-CZjhPHZh.cjs.map → vectorPdfExport-CDMnc_eW.cjs.map} +1 -1
- package/dist/{vectorPdfExport-BR2dJuvJ.js → vectorPdfExport-CTPOHXtQ.js} +4 -4
- package/dist/{vectorPdfExport-BR2dJuvJ.js.map → vectorPdfExport-CTPOHXtQ.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 { 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-DxL--cfL.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;
|
|
@@ -2955,7 +2955,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2955
2955
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2956
2956
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2957
2957
|
try {
|
|
2958
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2958
|
+
const { getNormalizedSvgUrl } = await import("./index-DxL--cfL.js").then((n) => n.a6);
|
|
2959
2959
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2960
2960
|
} catch {
|
|
2961
2961
|
return null;
|
|
@@ -3764,7 +3764,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3764
3764
|
}
|
|
3765
3765
|
let fetchUrl = imageUrl;
|
|
3766
3766
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3767
|
-
const { isPrivateUrl } = await import("./index-
|
|
3767
|
+
const { isPrivateUrl } = await import("./index-DxL--cfL.js").then((n) => n.a6);
|
|
3768
3768
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3769
3769
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3770
3770
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5865,4 +5865,4 @@ export {
|
|
|
5865
5865
|
preparePagesForExport,
|
|
5866
5866
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
5867
5867
|
};
|
|
5868
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5868
|
+
//# sourceMappingURL=vectorPdfExport-CTPOHXtQ.js.map
|