@pixldocs/canvas-renderer 0.5.199 → 0.5.200
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-CEUoSPy-.cjs → index-B0b3u83I.cjs} +6 -6
- package/dist/{index-CEUoSPy-.cjs.map → index-B0b3u83I.cjs.map} +1 -1
- package/dist/{index-CyCjpD2N.js → index-oOW9gtoq.js} +6 -6
- package/dist/{index-CyCjpD2N.js.map → index-oOW9gtoq.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-D57BlzeZ.js → vectorPdfExport-BLeFZX_c.js} +4 -4
- package/dist/{vectorPdfExport-D57BlzeZ.js.map → vectorPdfExport-BLeFZX_c.js.map} +1 -1
- package/dist/{vectorPdfExport-Dq4rWmf6.cjs → vectorPdfExport-CV6GxECJ.cjs} +4 -4
- package/dist/{vectorPdfExport-Dq4rWmf6.cjs.map → vectorPdfExport-CV6GxECJ.cjs.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-B0b3u83I.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-oOW9gtoq.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEPLOYMENT_VERSION_MARKER,
|
|
4
4
|
F as FONT_FALLBACK_DEVANAGARI,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsPDF, ShadingPattern } from "jspdf";
|
|
2
2
|
import { svg2pdf } from "svg2pdf.js";
|
|
3
3
|
import * as fabric from "fabric";
|
|
4
|
-
import { g as getCanvasForPage, c as captureFabricCanvasSvgForPdf, f as findNodeById, a as getAbsoluteBounds, p as parseTextMarkdown, r as renderSmartElementToSvg, n as normalizeShapeType, h as hasEdgeFade, b as getProxiedImageUrl, d as bakeEdgeFade, i as isElement, e as isGroup, j as buildRoundedTrianglePath, A as API_URL, k as getImageProxyFetchOptions, l as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, m as getTrianglePoints } from "./index-
|
|
4
|
+
import { g as getCanvasForPage, c as captureFabricCanvasSvgForPdf, f as findNodeById, a as getAbsoluteBounds, p as parseTextMarkdown, r as renderSmartElementToSvg, n as normalizeShapeType, h as hasEdgeFade, b as getProxiedImageUrl, d as bakeEdgeFade, i as isElement, e as isGroup, j as buildRoundedTrianglePath, A as API_URL, k as getImageProxyFetchOptions, l as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, m as getTrianglePoints } from "./index-oOW9gtoq.js";
|
|
5
5
|
import { resetPdfFontRegistry, FONT_FALLBACK_SYMBOLS, FONT_FALLBACK_MATH, FONT_FALLBACK_DEVANAGARI, embedFontWithGoogleFallback, getEmbeddedVariantsList, isFontAvailable, isFamilyEmbedded, resolveBestRegisteredVariant, getEmbeddedJsPDFFontName, resolveFontWeight, doesVariantSupportChar } from "./pdfFonts-DhEaMTZl.js";
|
|
6
6
|
async function embedFontsForSvg(pdf, svgStr) {
|
|
7
7
|
var _a;
|
|
@@ -2554,7 +2554,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2554
2554
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2555
2555
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2556
2556
|
try {
|
|
2557
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2557
|
+
const { getNormalizedSvgUrl } = await import("./index-oOW9gtoq.js").then((n) => n.a6);
|
|
2558
2558
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2559
2559
|
} catch {
|
|
2560
2560
|
return null;
|
|
@@ -3345,7 +3345,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
let fetchUrl = imageUrl;
|
|
3347
3347
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3348
|
-
const { isPrivateUrl } = await import("./index-
|
|
3348
|
+
const { isPrivateUrl } = await import("./index-oOW9gtoq.js").then((n) => n.a6);
|
|
3349
3349
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3350
3350
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3351
3351
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5354,4 +5354,4 @@ export {
|
|
|
5354
5354
|
preparePagesForExport,
|
|
5355
5355
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
5356
5356
|
};
|
|
5357
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5357
|
+
//# sourceMappingURL=vectorPdfExport-BLeFZX_c.js.map
|