@pixldocs/canvas-renderer 0.5.142 → 0.5.143
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-MJxDhnDv.js → index-CUpy7HO9.js} +8 -4
- package/dist/{index-MJxDhnDv.js.map → index-CUpy7HO9.js.map} +1 -1
- package/dist/{index-CBXAcuts.cjs → index-r5VzSOHa.cjs} +8 -4
- package/dist/{index-CBXAcuts.cjs.map → index-r5VzSOHa.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CnC7-RiI.js → vectorPdfExport-GvaizFte.js} +4 -4
- package/dist/{vectorPdfExport-CnC7-RiI.js.map → vectorPdfExport-GvaizFte.js.map} +1 -1
- package/dist/{vectorPdfExport-fTlcySFg.cjs → vectorPdfExport-JVEe_tSQ.cjs} +4 -4
- package/dist/{vectorPdfExport-fTlcySFg.cjs.map → vectorPdfExport-JVEe_tSQ.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-r5VzSOHa.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BTEVnYX8.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2267,7 +2267,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2267
2267
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2268
2268
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2269
2269
|
try {
|
|
2270
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2270
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-r5VzSOHa.cjs")).then((n) => n.canvasImageLoader);
|
|
2271
2271
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2272
2272
|
} catch {
|
|
2273
2273
|
return null;
|
|
@@ -3048,7 +3048,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
let fetchUrl = imageUrl;
|
|
3050
3050
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3051
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3051
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-r5VzSOHa.cjs")).then((n) => n.canvasImageLoader);
|
|
3052
3052
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3053
3053
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3054
3054
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5029,4 +5029,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
|
|
|
5029
5029
|
exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
5030
5030
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5031
5031
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5032
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5032
|
+
//# sourceMappingURL=vectorPdfExport-JVEe_tSQ.cjs.map
|