@pixldocs/canvas-renderer 0.5.206 → 0.5.207
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-B1kaODSZ.cjs → index-BqxoYEaM.cjs} +25 -15
- package/dist/{index-B1kaODSZ.cjs.map → index-BqxoYEaM.cjs.map} +1 -1
- package/dist/{index-CyxNh5Y9.js → index-D4Dis-kD.js} +25 -15
- package/dist/{index-CyxNh5Y9.js.map → index-D4Dis-kD.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-C0s166DN.cjs → vectorPdfExport-Cz5kaWEh.cjs} +4 -4
- package/dist/{vectorPdfExport-C0s166DN.cjs.map → vectorPdfExport-Cz5kaWEh.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CyNCzRhQ.js → vectorPdfExport-HZVoeZf3.js} +4 -4
- package/dist/{vectorPdfExport-CyNCzRhQ.js.map → vectorPdfExport-HZVoeZf3.js.map} +1 -1
- package/package.json +1 -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-BqxoYEaM.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-D4Dis-kD.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-BqxoYEaM.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" } });
|
|
@@ -2699,7 +2699,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2699
2699
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2700
2700
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2701
2701
|
try {
|
|
2702
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2702
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-BqxoYEaM.cjs")).then((n) => n.canvasImageLoader);
|
|
2703
2703
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2704
2704
|
} catch {
|
|
2705
2705
|
return null;
|
|
@@ -3490,7 +3490,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
let fetchUrl = imageUrl;
|
|
3492
3492
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3493
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3493
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-BqxoYEaM.cjs")).then((n) => n.canvasImageLoader);
|
|
3494
3494
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3495
3495
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3496
3496
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5524,4 +5524,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5524
5524
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5525
5525
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5526
5526
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5527
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5527
|
+
//# sourceMappingURL=vectorPdfExport-Cz5kaWEh.cjs.map
|