@pixldocs/canvas-renderer 0.5.211 → 0.5.212
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-C0tTvSFQ.js → index-B1QDVK5k.js} +71 -11
- package/dist/index-B1QDVK5k.js.map +1 -0
- package/dist/{index-d8U2oDzI.cjs → index-DB8j0PV0.cjs} +71 -11
- package/dist/index-DB8j0PV0.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BEGl71uB.js → vectorPdfExport-CN-N0DE8.js} +4 -4
- package/dist/{vectorPdfExport-BEGl71uB.js.map → vectorPdfExport-CN-N0DE8.js.map} +1 -1
- package/dist/{vectorPdfExport-QzySzFJJ.cjs → vectorPdfExport-zGrrm-iT.cjs} +4 -4
- package/dist/{vectorPdfExport-QzySzFJJ.cjs.map → vectorPdfExport-zGrrm-iT.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-C0tTvSFQ.js.map +0 -1
- package/dist/index-d8U2oDzI.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-DB8j0PV0.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" } });
|
|
@@ -2970,7 +2970,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2970
2970
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2971
2971
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2972
2972
|
try {
|
|
2973
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2973
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-DB8j0PV0.cjs")).then((n) => n.canvasImageLoader);
|
|
2974
2974
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2975
2975
|
} catch {
|
|
2976
2976
|
return null;
|
|
@@ -3779,7 +3779,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3779
3779
|
}
|
|
3780
3780
|
let fetchUrl = imageUrl;
|
|
3781
3781
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3782
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3782
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-DB8j0PV0.cjs")).then((n) => n.canvasImageLoader);
|
|
3783
3783
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3784
3784
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3785
3785
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5878,4 +5878,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5878
5878
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5879
5879
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5880
5880
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5881
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5881
|
+
//# sourceMappingURL=vectorPdfExport-zGrrm-iT.cjs.map
|