@pixldocs/canvas-renderer 0.5.203 → 0.5.205
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-CZ28FLrz.cjs → index-CGi2L90_.cjs} +48 -27
- package/dist/{index-CZ28FLrz.cjs.map → index-CGi2L90_.cjs.map} +1 -1
- package/dist/{index-C2gJ23dU.js → index-DBuMPh9u.js} +48 -27
- package/dist/{index-C2gJ23dU.js.map → index-DBuMPh9u.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-B8tazQjy.js → vectorPdfExport-CZyBCnFF.js} +4 -4
- package/dist/{vectorPdfExport-B8tazQjy.js.map → vectorPdfExport-CZyBCnFF.js.map} +1 -1
- package/dist/{vectorPdfExport-xsu5ahea.cjs → vectorPdfExport-LmnOwVt3.cjs} +4 -4
- package/dist/{vectorPdfExport-xsu5ahea.cjs.map → vectorPdfExport-LmnOwVt3.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-CGi2L90_.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BTj2f465.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2697,7 +2697,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2697
2697
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2698
2698
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2699
2699
|
try {
|
|
2700
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2700
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-CGi2L90_.cjs")).then((n) => n.canvasImageLoader);
|
|
2701
2701
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2702
2702
|
} catch {
|
|
2703
2703
|
return null;
|
|
@@ -3488,7 +3488,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
let fetchUrl = imageUrl;
|
|
3490
3490
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3491
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3491
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-CGi2L90_.cjs")).then((n) => n.canvasImageLoader);
|
|
3492
3492
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3493
3493
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3494
3494
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5495,4 +5495,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5495
5495
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5496
5496
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5497
5497
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5498
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5498
|
+
//# sourceMappingURL=vectorPdfExport-LmnOwVt3.cjs.map
|