@pixldocs/canvas-renderer 0.5.209 → 0.5.210
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-DQF_on2h.cjs → index-54CXM_hR.cjs} +10 -9
- package/dist/index-54CXM_hR.cjs.map +1 -0
- package/dist/{index-DOIdbh-Q.js → index-DwYUddYW.js} +10 -9
- package/dist/index-DwYUddYW.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-B04JIcJr.cjs → vectorPdfExport-BSK-Z1p4.cjs} +4 -4
- package/dist/{vectorPdfExport-B04JIcJr.cjs.map → vectorPdfExport-BSK-Z1p4.cjs.map} +1 -1
- package/dist/{vectorPdfExport-C0GsER0C.js → vectorPdfExport-Ch6GbQqO.js} +4 -4
- package/dist/{vectorPdfExport-C0GsER0C.js.map → vectorPdfExport-Ch6GbQqO.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DOIdbh-Q.js.map +0 -1
- package/dist/index-DQF_on2h.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-54CXM_hR.cjs");
|
|
4
4
|
exports.DEPLOYMENT_VERSION_MARKER = index.DEPLOYMENT_VERSION_MARKER;
|
|
5
5
|
exports.FONT_FALLBACK_DEVANAGARI = index.FONT_FALLBACK_DEVANAGARI;
|
|
6
6
|
exports.FONT_FALLBACK_MATH = index.FONT_FALLBACK_MATH;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, b, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5 } from "./index-
|
|
1
|
+
import { D, F, o, q, s, P, t, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, b, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5 } from "./index-DwYUddYW.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEPLOYMENT_VERSION_MARKER,
|
|
4
4
|
F as FONT_FALLBACK_DEVANAGARI,
|
|
@@ -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-54CXM_hR.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" } });
|
|
@@ -2820,7 +2820,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2820
2820
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2821
2821
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2822
2822
|
try {
|
|
2823
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2823
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-54CXM_hR.cjs")).then((n) => n.canvasImageLoader);
|
|
2824
2824
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2825
2825
|
} catch {
|
|
2826
2826
|
return null;
|
|
@@ -3627,7 +3627,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
let fetchUrl = imageUrl;
|
|
3629
3629
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3630
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3630
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-54CXM_hR.cjs")).then((n) => n.canvasImageLoader);
|
|
3631
3631
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3632
3632
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3633
3633
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5704,4 +5704,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5704
5704
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5705
5705
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5706
5706
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5707
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5707
|
+
//# sourceMappingURL=vectorPdfExport-BSK-Z1p4.cjs.map
|