@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
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jspdf = require("jspdf");
|
|
4
4
|
const svg2pdf_js = require("svg2pdf.js");
|
|
5
5
|
const fabric = require("fabric");
|
|
6
|
-
const index = require("./index-
|
|
6
|
+
const index = require("./index-BH1kJLpb.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BTj2f465.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2519,7 +2519,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2519
2519
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2520
2520
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2521
2521
|
try {
|
|
2522
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2522
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-BH1kJLpb.cjs")).then((n) => n.canvasImageLoader);
|
|
2523
2523
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2524
2524
|
} catch {
|
|
2525
2525
|
return null;
|
|
@@ -3310,7 +3310,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
let fetchUrl = imageUrl;
|
|
3312
3312
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3313
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3313
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-BH1kJLpb.cjs")).then((n) => n.canvasImageLoader);
|
|
3314
3314
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3315
3315
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3316
3316
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5089,6 +5089,10 @@ async function exportMultiPagePdf(pages, options) {
|
|
|
5089
5089
|
const { replaceGradientTextFillsWithFirstStop } = await Promise.resolve().then(() => require("./svgTextToPath-BLk_mcqi.cjs"));
|
|
5090
5090
|
preppedSvgString = replaceGradientTextFillsWithFirstStop(liveSvgString);
|
|
5091
5091
|
}
|
|
5092
|
+
console.log("[client-pdf-export] gradient text mode", {
|
|
5093
|
+
pdfTextMode,
|
|
5094
|
+
outlinedGradientText: pdfTextMode === "auto" || pdfTextMode === "pixel-perfect"
|
|
5095
|
+
});
|
|
5092
5096
|
} catch (gradErr) {
|
|
5093
5097
|
console.warn("[client-pdf-export] gradient-text fill resolution failed", gradErr);
|
|
5094
5098
|
}
|
|
@@ -5308,4 +5312,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5308
5312
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5309
5313
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5310
5314
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5311
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5315
|
+
//# sourceMappingURL=vectorPdfExport-wyGn4ybk.cjs.map
|