@pixldocs/canvas-renderer 0.5.173 → 0.5.174
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-ZehEOqUB.cjs → index-BH1kJLpb.cjs} +11 -9
- package/dist/{index-ZehEOqUB.cjs.map → index-BH1kJLpb.cjs.map} +1 -1
- package/dist/{index-ChHYFk0E.js → index-DLAkGTqW.js} +11 -9
- package/dist/{index-ChHYFk0E.js.map → index-DLAkGTqW.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CyTa-D1p.js → vectorPdfExport-B4B0CPjW.js} +8 -4
- package/dist/{vectorPdfExport-CyTa-D1p.js.map → vectorPdfExport-B4B0CPjW.js.map} +1 -1
- package/dist/{vectorPdfExport-BWDj55kq.cjs → vectorPdfExport-wyGn4ybk.cjs} +8 -4
- package/dist/{vectorPdfExport-BWDj55kq.cjs.map → vectorPdfExport-wyGn4ybk.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BH1kJLpb.cjs");
|
|
4
4
|
exports.DEPLOYMENT_VERSION_MARKER = index.DEPLOYMENT_VERSION_MARKER;
|
|
5
5
|
exports.FONT_FALLBACK_DEVANAGARI = index.FONT_FALLBACK_DEVANAGARI;
|
|
6
6
|
exports.FONT_FALLBACK_MATH = index.FONT_FALLBACK_MATH;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, b, M, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1 } from "./index-
|
|
1
|
+
import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, b, M, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1 } from "./index-DLAkGTqW.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEPLOYMENT_VERSION_MARKER,
|
|
4
4
|
F as FONT_FALLBACK_DEVANAGARI,
|
|
@@ -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-DLAkGTqW.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;
|
|
@@ -2500,7 +2500,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2500
2500
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2501
2501
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2502
2502
|
try {
|
|
2503
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2503
|
+
const { getNormalizedSvgUrl } = await import("./index-DLAkGTqW.js").then((n) => n.a2);
|
|
2504
2504
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2505
2505
|
} catch {
|
|
2506
2506
|
return null;
|
|
@@ -3291,7 +3291,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
let fetchUrl = imageUrl;
|
|
3293
3293
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3294
|
-
const { isPrivateUrl } = await import("./index-
|
|
3294
|
+
const { isPrivateUrl } = await import("./index-DLAkGTqW.js").then((n) => n.a2);
|
|
3295
3295
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3296
3296
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3297
3297
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5070,6 +5070,10 @@ async function exportMultiPagePdf(pages, options) {
|
|
|
5070
5070
|
const { replaceGradientTextFillsWithFirstStop } = await import("./svgTextToPath-ra4EhtBL.js");
|
|
5071
5071
|
preppedSvgString = replaceGradientTextFillsWithFirstStop(liveSvgString);
|
|
5072
5072
|
}
|
|
5073
|
+
console.log("[client-pdf-export] gradient text mode", {
|
|
5074
|
+
pdfTextMode,
|
|
5075
|
+
outlinedGradientText: pdfTextMode === "auto" || pdfTextMode === "pixel-perfect"
|
|
5076
|
+
});
|
|
5073
5077
|
} catch (gradErr) {
|
|
5074
5078
|
console.warn("[client-pdf-export] gradient-text fill resolution failed", gradErr);
|
|
5075
5079
|
}
|
|
@@ -5291,4 +5295,4 @@ export {
|
|
|
5291
5295
|
preparePagesForExport,
|
|
5292
5296
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
5293
5297
|
};
|
|
5294
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5298
|
+
//# sourceMappingURL=vectorPdfExport-B4B0CPjW.js.map
|