@pixldocs/canvas-renderer 0.5.139 → 0.5.141
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-O3SyxMKA.js → index-DA3Nf1nG.js} +22 -15
- package/dist/{index-O3SyxMKA.js.map → index-DA3Nf1nG.js.map} +1 -1
- package/dist/{index-nnyTwr9Y.cjs → index-auyDeEWG.cjs} +22 -15
- package/dist/{index-nnyTwr9Y.cjs.map → index-auyDeEWG.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{pdfFonts-BU2Lqz_O.cjs → pdfFonts-BTEVnYX8.cjs} +3 -1
- package/dist/{pdfFonts-BU2Lqz_O.cjs.map → pdfFonts-BTEVnYX8.cjs.map} +1 -1
- package/dist/{pdfFonts-BVHbPFEz.js → pdfFonts-b3_bv7F0.js} +3 -1
- package/dist/{pdfFonts-BVHbPFEz.js.map → pdfFonts-b3_bv7F0.js.map} +1 -1
- package/dist/{svgTextToPath-GeR0CexD.cjs → svgTextToPath-DolCNU9g.cjs} +2 -2
- package/dist/{svgTextToPath-GeR0CexD.cjs.map → svgTextToPath-DolCNU9g.cjs.map} +1 -1
- package/dist/{svgTextToPath-DG7rcbDE.js → svgTextToPath-ws6Fh3rx.js} +2 -2
- package/dist/{svgTextToPath-DG7rcbDE.js.map → svgTextToPath-ws6Fh3rx.js.map} +1 -1
- package/dist/{vectorPdfExport-Cj8x52ZL.js → vectorPdfExport-Bkg5qekb.js} +6 -6
- package/dist/{vectorPdfExport-Cj8x52ZL.js.map → vectorPdfExport-Bkg5qekb.js.map} +1 -1
- package/dist/{vectorPdfExport-GD7LeQPa.cjs → vectorPdfExport-v46WzRNa.cjs} +6 -6
- package/dist/{vectorPdfExport-GD7LeQPa.cjs.map → vectorPdfExport-v46WzRNa.cjs.map} +1 -1
- package/package.json +1 -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-auyDeEWG.cjs");
|
|
7
|
+
const pdfFonts = require("./pdfFonts-BTEVnYX8.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
10
|
if (e) {
|
|
@@ -31,7 +31,7 @@ async function embedFontsForSvg(pdf, svgStr) {
|
|
|
31
31
|
FONT_FALLBACK_SYMBOLS: FONT_FALLBACK_SYMBOLS2,
|
|
32
32
|
FONT_FALLBACK_DEVANAGARI: FONT_FALLBACK_DEVANAGARI2,
|
|
33
33
|
FONT_FALLBACK_MATH: FONT_FALLBACK_MATH2
|
|
34
|
-
} = await Promise.resolve().then(() => require("./pdfFonts-
|
|
34
|
+
} = await Promise.resolve().then(() => require("./pdfFonts-BTEVnYX8.cjs"));
|
|
35
35
|
const parser = new DOMParser();
|
|
36
36
|
const doc = parser.parseFromString(svgStr, "image/svg+xml");
|
|
37
37
|
const textEls = Array.from(doc.querySelectorAll("text, tspan, textPath"));
|
|
@@ -2246,7 +2246,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2246
2246
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2247
2247
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2248
2248
|
try {
|
|
2249
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2249
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-auyDeEWG.cjs")).then((n) => n.canvasImageLoader);
|
|
2250
2250
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2251
2251
|
} catch {
|
|
2252
2252
|
return null;
|
|
@@ -3027,7 +3027,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3027
3027
|
}
|
|
3028
3028
|
let fetchUrl = imageUrl;
|
|
3029
3029
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3030
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3030
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-auyDeEWG.cjs")).then((n) => n.canvasImageLoader);
|
|
3031
3031
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3032
3032
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3033
3033
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5008,4 +5008,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
|
|
|
5008
5008
|
exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
5009
5009
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5010
5010
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5011
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5011
|
+
//# sourceMappingURL=vectorPdfExport-v46WzRNa.cjs.map
|