@pixldocs/canvas-renderer 0.5.128 → 0.5.129
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-DP6tfo-F.js → index-BinoVoB5.js} +3 -3
- package/dist/{index-DP6tfo-F.js.map → index-BinoVoB5.js.map} +1 -1
- package/dist/{index-Ds1WDn3c.cjs → index-Cnc7FwzD.cjs} +3 -3
- package/dist/{index-Ds1WDn3c.cjs.map → index-Cnc7FwzD.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-XAlrioM6.js → vectorPdfExport-DrXSoUpy.js} +4 -4
- package/dist/{vectorPdfExport-XAlrioM6.js.map → vectorPdfExport-DrXSoUpy.js.map} +1 -1
- package/dist/{vectorPdfExport-De27t708.cjs → vectorPdfExport-Dsh0IaH2.cjs} +4 -4
- package/dist/{vectorPdfExport-De27t708.cjs.map → vectorPdfExport-Dsh0IaH2.cjs.map} +1 -1
- package/package.json +2 -2
|
@@ -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-Cnc7FwzD.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-Cr8l-y3z.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2131,7 +2131,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2131
2131
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2132
2132
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2133
2133
|
try {
|
|
2134
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2134
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-Cnc7FwzD.cjs")).then((n) => n.canvasImageLoader);
|
|
2135
2135
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2136
2136
|
} catch {
|
|
2137
2137
|
return null;
|
|
@@ -2912,7 +2912,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
let fetchUrl = imageUrl;
|
|
2914
2914
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
2915
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
2915
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-Cnc7FwzD.cjs")).then((n) => n.canvasImageLoader);
|
|
2916
2916
|
if (isPrivateUrl(imageUrl)) return null;
|
|
2917
2917
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
2918
2918
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -4892,4 +4892,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
|
|
|
4892
4892
|
exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
4893
4893
|
exports.preparePagesForExport = preparePagesForExport;
|
|
4894
4894
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
4895
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
4895
|
+
//# sourceMappingURL=vectorPdfExport-Dsh0IaH2.cjs.map
|