@pixldocs/canvas-renderer 0.5.136 → 0.5.137
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-DUHE7WhJ.cjs → index-4hpM5w7h.cjs} +9 -3
- package/dist/{index-DUHE7WhJ.cjs.map → index-4hpM5w7h.cjs.map} +1 -1
- package/dist/{index-BHa3ekoF.js → index-Dr5P178V.js} +9 -3
- package/dist/{index-BHa3ekoF.js.map → index-Dr5P178V.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-D3L64sAJ.js → vectorPdfExport-CP-0GqFj.js} +4 -4
- package/dist/{vectorPdfExport-D3L64sAJ.js.map → vectorPdfExport-CP-0GqFj.js.map} +1 -1
- package/dist/{vectorPdfExport-Bq-_OarH.cjs → vectorPdfExport-Cp712xzF.cjs} +4 -4
- package/dist/{vectorPdfExport-Bq-_OarH.cjs.map → vectorPdfExport-Cp712xzF.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-4hpM5w7h.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BU2Lqz_O.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2242,7 +2242,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2242
2242
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2243
2243
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2244
2244
|
try {
|
|
2245
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2245
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-4hpM5w7h.cjs")).then((n) => n.canvasImageLoader);
|
|
2246
2246
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2247
2247
|
} catch {
|
|
2248
2248
|
return null;
|
|
@@ -3023,7 +3023,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
let fetchUrl = imageUrl;
|
|
3025
3025
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3026
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3026
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-4hpM5w7h.cjs")).then((n) => n.canvasImageLoader);
|
|
3027
3027
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3028
3028
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3029
3029
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5004,4 +5004,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
|
|
|
5004
5004
|
exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
5005
5005
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5006
5006
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5007
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5007
|
+
//# sourceMappingURL=vectorPdfExport-Cp712xzF.cjs.map
|