@pixldocs/canvas-renderer 0.5.168 → 0.5.169
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-DgX2Y94P.cjs → index-Bg1FRZ3d.cjs} +8 -6
- package/dist/{index-oFnROAcT.js.map → index-Bg1FRZ3d.cjs.map} +1 -1
- package/dist/{index-oFnROAcT.js → index-qJRuErt-.js} +8 -6
- package/dist/index-qJRuErt-.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Bw2WQNoU.cjs → vectorPdfExport-BU855BbG.cjs} +4 -4
- package/dist/{vectorPdfExport-Bw2WQNoU.cjs.map → vectorPdfExport-BU855BbG.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DCy1uYUF.js → vectorPdfExport-C2jE125-.js} +4 -4
- package/dist/{vectorPdfExport-DCy1uYUF.js.map → vectorPdfExport-C2jE125-.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DgX2Y94P.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-Bg1FRZ3d.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, b, M, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0 } 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, b, M, N, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0 } from "./index-qJRuErt-.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-Bg1FRZ3d.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" } });
|
|
@@ -2519,7 +2519,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2519
2519
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2520
2520
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2521
2521
|
try {
|
|
2522
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2522
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-Bg1FRZ3d.cjs")).then((n) => n.canvasImageLoader);
|
|
2523
2523
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2524
2524
|
} catch {
|
|
2525
2525
|
return null;
|
|
@@ -3300,7 +3300,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3300
3300
|
}
|
|
3301
3301
|
let fetchUrl = imageUrl;
|
|
3302
3302
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3303
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3303
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-Bg1FRZ3d.cjs")).then((n) => n.canvasImageLoader);
|
|
3304
3304
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3305
3305
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3306
3306
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5282,4 +5282,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5282
5282
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5283
5283
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5284
5284
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5285
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5285
|
+
//# sourceMappingURL=vectorPdfExport-BU855BbG.cjs.map
|