@pixldocs/canvas-renderer 0.5.199 → 0.5.200
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-CEUoSPy-.cjs → index-B0b3u83I.cjs} +6 -6
- package/dist/{index-CEUoSPy-.cjs.map → index-B0b3u83I.cjs.map} +1 -1
- package/dist/{index-CyCjpD2N.js → index-oOW9gtoq.js} +6 -6
- package/dist/{index-CyCjpD2N.js.map → index-oOW9gtoq.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-D57BlzeZ.js → vectorPdfExport-BLeFZX_c.js} +4 -4
- package/dist/{vectorPdfExport-D57BlzeZ.js.map → vectorPdfExport-BLeFZX_c.js.map} +1 -1
- package/dist/{vectorPdfExport-Dq4rWmf6.cjs → vectorPdfExport-CV6GxECJ.cjs} +4 -4
- package/dist/{vectorPdfExport-Dq4rWmf6.cjs.map → vectorPdfExport-CV6GxECJ.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-B0b3u83I.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" } });
|
|
@@ -2573,7 +2573,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2573
2573
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2574
2574
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2575
2575
|
try {
|
|
2576
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2576
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-B0b3u83I.cjs")).then((n) => n.canvasImageLoader);
|
|
2577
2577
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2578
2578
|
} catch {
|
|
2579
2579
|
return null;
|
|
@@ -3364,7 +3364,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
let fetchUrl = imageUrl;
|
|
3366
3366
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3367
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3367
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-B0b3u83I.cjs")).then((n) => n.canvasImageLoader);
|
|
3368
3368
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3369
3369
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3370
3370
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5371,4 +5371,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5371
5371
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5372
5372
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5373
5373
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5374
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5374
|
+
//# sourceMappingURL=vectorPdfExport-CV6GxECJ.cjs.map
|