@pixldocs/canvas-renderer 0.5.160 → 0.5.161
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-CmhkyT2o.js → index-Co0kEgTl.js} +5 -226
- package/dist/index-Co0kEgTl.js.map +1 -0
- package/dist/{index-CtUEIsYl.cjs → index-OWSb_i03.cjs} +5 -226
- package/dist/index-OWSb_i03.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-2NNilLNC.js → vectorPdfExport-B_T8jiQ3.js} +4 -4
- package/dist/{vectorPdfExport-2NNilLNC.js.map → vectorPdfExport-B_T8jiQ3.js.map} +1 -1
- package/dist/{vectorPdfExport-DEMJeh_t.cjs → vectorPdfExport-CqdQi3YK.cjs} +4 -4
- package/dist/{vectorPdfExport-DEMJeh_t.cjs.map → vectorPdfExport-CqdQi3YK.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CmhkyT2o.js.map +0 -1
- package/dist/index-CtUEIsYl.cjs.map +0 -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-OWSb_i03.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BTEVnYX8.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2478,7 +2478,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2478
2478
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2479
2479
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2480
2480
|
try {
|
|
2481
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2481
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-OWSb_i03.cjs")).then((n) => n.canvasImageLoader);
|
|
2482
2482
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2483
2483
|
} catch {
|
|
2484
2484
|
return null;
|
|
@@ -3259,7 +3259,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
let fetchUrl = imageUrl;
|
|
3261
3261
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3262
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3262
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-OWSb_i03.cjs")).then((n) => n.canvasImageLoader);
|
|
3263
3263
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3264
3264
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3265
3265
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5241,4 +5241,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5241
5241
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5242
5242
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5243
5243
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5244
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5244
|
+
//# sourceMappingURL=vectorPdfExport-CqdQi3YK.cjs.map
|