@pixldocs/canvas-renderer 0.5.118 → 0.5.119
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-Gf5_pgK7.cjs → index-81pAjQOk.cjs} +4 -4
- package/dist/{index-Gf5_pgK7.cjs.map → index-81pAjQOk.cjs.map} +1 -1
- package/dist/{index-LbVR8GZp.js → index-CuTWdeXZ.js} +4 -4
- package/dist/{index-LbVR8GZp.js.map → index-CuTWdeXZ.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/{pdfFonts-ts7v2Fja.js → pdfFonts-CB5z77qO.js} +23 -5
- package/dist/pdfFonts-CB5z77qO.js.map +1 -0
- package/dist/{pdfFonts-BSytIe1x.cjs → pdfFonts-CHHpRsRK.cjs} +23 -5
- package/dist/pdfFonts-CHHpRsRK.cjs.map +1 -0
- package/dist/{svgTextToPath-FrpfjI8G.js → svgTextToPath-B6FmPvcr.js} +2 -2
- package/dist/{svgTextToPath-FrpfjI8G.js.map → svgTextToPath-B6FmPvcr.js.map} +1 -1
- package/dist/{svgTextToPath-ByZSG1vO.cjs → svgTextToPath-B77kYzHp.cjs} +2 -2
- package/dist/{svgTextToPath-ByZSG1vO.cjs.map → svgTextToPath-B77kYzHp.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CJd8RINw.js → vectorPdfExport-BrHHt_7L.js} +5 -5
- package/dist/{vectorPdfExport-CJd8RINw.js.map → vectorPdfExport-BrHHt_7L.js.map} +1 -1
- package/dist/{vectorPdfExport-DMv7QYM5.cjs → vectorPdfExport-CyJXH2cR.cjs} +5 -5
- package/dist/{vectorPdfExport-DMv7QYM5.cjs.map → vectorPdfExport-CyJXH2cR.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/pdfFonts-BSytIe1x.cjs.map +0 -1
- package/dist/pdfFonts-ts7v2Fja.js.map +0 -1
|
@@ -3,8 +3,8 @@ 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-
|
|
7
|
-
const pdfFonts = require("./pdfFonts-
|
|
6
|
+
const index = require("./index-81pAjQOk.cjs");
|
|
7
|
+
const pdfFonts = require("./pdfFonts-CHHpRsRK.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
10
|
if (e) {
|
|
@@ -1993,7 +1993,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
1993
1993
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
1994
1994
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
1995
1995
|
try {
|
|
1996
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
1996
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-81pAjQOk.cjs")).then((n) => n.canvasImageLoader);
|
|
1997
1997
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
1998
1998
|
} catch {
|
|
1999
1999
|
return null;
|
|
@@ -2774,7 +2774,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
let fetchUrl = imageUrl;
|
|
2776
2776
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
2777
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
2777
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-81pAjQOk.cjs")).then((n) => n.canvasImageLoader);
|
|
2778
2778
|
if (isPrivateUrl(imageUrl)) return null;
|
|
2779
2779
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
2780
2780
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -4763,4 +4763,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
|
|
|
4763
4763
|
exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
4764
4764
|
exports.preparePagesForExport = preparePagesForExport;
|
|
4765
4765
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
4766
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
4766
|
+
//# sourceMappingURL=vectorPdfExport-CyJXH2cR.cjs.map
|