@pixldocs/canvas-renderer 0.5.122 → 0.5.123
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-BObeaBCm.cjs → index-BIjYOVnw.cjs} +3 -6
- package/dist/{index-BObeaBCm.cjs.map → index-BIjYOVnw.cjs.map} +1 -1
- package/dist/{index-vqyuTJLz.js → index-CL09cdqm.js} +3 -6
- package/dist/{index-vqyuTJLz.js.map → index-CL09cdqm.js.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-CD0Jz7Cc.js → vectorPdfExport-Cn3c_VYZ.js} +4 -4
- package/dist/{vectorPdfExport-CD0Jz7Cc.js.map → vectorPdfExport-Cn3c_VYZ.js.map} +1 -1
- package/dist/{vectorPdfExport-DIYIL06v.cjs → vectorPdfExport-G2Yz66tj.cjs} +4 -4
- package/dist/{vectorPdfExport-DIYIL06v.cjs.map → vectorPdfExport-G2Yz66tj.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-BIjYOVnw.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BPQ8WSXF.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2041,7 +2041,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2041
2041
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2042
2042
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2043
2043
|
try {
|
|
2044
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2044
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-BIjYOVnw.cjs")).then((n) => n.canvasImageLoader);
|
|
2045
2045
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2046
2046
|
} catch {
|
|
2047
2047
|
return null;
|
|
@@ -2822,7 +2822,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
let fetchUrl = imageUrl;
|
|
2824
2824
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
2825
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
2825
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-BIjYOVnw.cjs")).then((n) => n.canvasImageLoader);
|
|
2826
2826
|
if (isPrivateUrl(imageUrl)) return null;
|
|
2827
2827
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
2828
2828
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -4803,4 +4803,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
|
|
|
4803
4803
|
exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
4804
4804
|
exports.preparePagesForExport = preparePagesForExport;
|
|
4805
4805
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
4806
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
4806
|
+
//# sourceMappingURL=vectorPdfExport-G2Yz66tj.cjs.map
|