@pixldocs/canvas-renderer 0.5.120 → 0.5.121
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-DjwTSk_C.cjs → index-D1vSAOoA.cjs} +4 -4
- package/dist/{index-DjwTSk_C.cjs.map → index-D1vSAOoA.cjs.map} +1 -1
- package/dist/{index-Dm9AEQy0.js → index-O3pWbOEB.js} +4 -4
- package/dist/{index-Dm9AEQy0.js.map → index-O3pWbOEB.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{pdfFonts-DpkEz6IN.cjs → pdfFonts-CGJbTRCQ.cjs} +34 -3
- package/dist/pdfFonts-CGJbTRCQ.cjs.map +1 -0
- package/dist/{pdfFonts-BUnZcHhp.js → pdfFonts-CiKT_ha_.js} +34 -3
- package/dist/pdfFonts-CiKT_ha_.js.map +1 -0
- package/dist/{svgTextToPath-DR7QIEWZ.js → svgTextToPath-BUX6rrUo.js} +2 -2
- package/dist/{svgTextToPath-DR7QIEWZ.js.map → svgTextToPath-BUX6rrUo.js.map} +1 -1
- package/dist/{svgTextToPath-DcQKj5Mc.cjs → svgTextToPath-Ce8QSoUf.cjs} +2 -2
- package/dist/{svgTextToPath-DcQKj5Mc.cjs.map → svgTextToPath-Ce8QSoUf.cjs.map} +1 -1
- package/dist/{vectorPdfExport-yAT4k3Je.cjs → vectorPdfExport-CPu9f6GR.cjs} +5 -5
- package/dist/{vectorPdfExport-yAT4k3Je.cjs.map → vectorPdfExport-CPu9f6GR.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CxWPJs_l.js → vectorPdfExport-CganHKyZ.js} +5 -5
- package/dist/{vectorPdfExport-CxWPJs_l.js.map → vectorPdfExport-CganHKyZ.js.map} +1 -1
- package/package.json +1 -1
- package/dist/pdfFonts-BUnZcHhp.js.map +0 -1
- package/dist/pdfFonts-DpkEz6IN.cjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
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, f as findNodeById, a as getAbsoluteBounds, p as parseTextMarkdown, r as renderSmartElementToSvg, n as normalizeShapeType, h as hasEdgeFade, b as getProxiedImageUrl, c as bakeEdgeFade, i as isElement, d as isGroup, e as buildRoundedTrianglePath, A as API_URL, j as getImageProxyFetchOptions, k as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, l as getTrianglePoints } from "./index-
|
|
5
|
-
import { r as resetPdfFontRegistry, F as FONT_FALLBACK_SYMBOLS, a as FONT_FALLBACK_MATH, b as FONT_FALLBACK_DEVANAGARI, e as embedFontWithGoogleFallback, i as isFontAvailable, c as isFamilyEmbedded, d as resolveBestRegisteredVariant, g as getEmbeddedJsPDFFontName, f as resolveFontWeight, h as doesVariantSupportChar } from "./pdfFonts-
|
|
4
|
+
import { g as getCanvasForPage, f as findNodeById, a as getAbsoluteBounds, p as parseTextMarkdown, r as renderSmartElementToSvg, n as normalizeShapeType, h as hasEdgeFade, b as getProxiedImageUrl, c as bakeEdgeFade, i as isElement, d as isGroup, e as buildRoundedTrianglePath, A as API_URL, j as getImageProxyFetchOptions, k as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, l as getTrianglePoints } from "./index-O3pWbOEB.js";
|
|
5
|
+
import { r as resetPdfFontRegistry, F as FONT_FALLBACK_SYMBOLS, a as FONT_FALLBACK_MATH, b as FONT_FALLBACK_DEVANAGARI, e as embedFontWithGoogleFallback, i as isFontAvailable, c as isFamilyEmbedded, d as resolveBestRegisteredVariant, g as getEmbeddedJsPDFFontName, f as resolveFontWeight, h as doesVariantSupportChar } from "./pdfFonts-CiKT_ha_.js";
|
|
6
6
|
async function bakeEdgeFadeIntoDataUrl(dataUrl, element) {
|
|
7
7
|
const fade = element;
|
|
8
8
|
if (!hasEdgeFade(fade)) return null;
|
|
@@ -2022,7 +2022,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2022
2022
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2023
2023
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2024
2024
|
try {
|
|
2025
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2025
|
+
const { getNormalizedSvgUrl } = await import("./index-O3pWbOEB.js").then((n) => n.Z);
|
|
2026
2026
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2027
2027
|
} catch {
|
|
2028
2028
|
return null;
|
|
@@ -2803,7 +2803,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
let fetchUrl = imageUrl;
|
|
2805
2805
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
2806
|
-
const { isPrivateUrl } = await import("./index-
|
|
2806
|
+
const { isPrivateUrl } = await import("./index-O3pWbOEB.js").then((n) => n.Z);
|
|
2807
2807
|
if (isPrivateUrl(imageUrl)) return null;
|
|
2808
2808
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
2809
2809
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -4776,4 +4776,4 @@ export {
|
|
|
4776
4776
|
preparePagesForExport,
|
|
4777
4777
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
4778
4778
|
};
|
|
4779
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
4779
|
+
//# sourceMappingURL=vectorPdfExport-CganHKyZ.js.map
|