@pixldocs/canvas-renderer 0.5.180 → 0.5.182
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/README.md +36 -0
- package/dist/{index-B9NOXCTL.cjs → index-CUINpGhe.cjs} +12 -5
- package/dist/index-CUINpGhe.cjs.map +1 -0
- package/dist/{index-DdrxSxRr.js → index-CcCXKYy6.js} +55 -48
- package/dist/index-CcCXKYy6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +37 -37
- package/dist/previewBlur-D1laq3kn.cjs +104 -0
- package/dist/previewBlur-D1laq3kn.cjs.map +1 -0
- package/dist/previewBlur-ceEQYSVv.js +104 -0
- package/dist/previewBlur-ceEQYSVv.js.map +1 -0
- package/dist/{vectorPdfExport-B8qiTpn8.cjs → vectorPdfExport-0dwbE8Kn.cjs} +4 -4
- package/dist/{vectorPdfExport-B8qiTpn8.cjs.map → vectorPdfExport-0dwbE8Kn.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DCZJhOmn.js → vectorPdfExport-BpRBLtU-.js} +4 -4
- package/dist/{vectorPdfExport-DCZJhOmn.js.map → vectorPdfExport-BpRBLtU-.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B9NOXCTL.cjs.map +0 -1
- package/dist/index-DdrxSxRr.js.map +0 -1
|
@@ -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,
|
|
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, d as getProxiedImageUrl, e as bakeEdgeFade, i as isElement, j as isGroup, k as buildRoundedTrianglePath, A as API_URL, l as getImageProxyFetchOptions, m as getRoundedRectRadii, T as TRIANGLE_STROKE_MITER_LIMIT, o as getTrianglePoints } from "./index-CcCXKYy6.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;
|
|
@@ -2506,7 +2506,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2506
2506
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2507
2507
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2508
2508
|
try {
|
|
2509
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2509
|
+
const { getNormalizedSvgUrl } = await import("./index-CcCXKYy6.js").then((n) => n.a3);
|
|
2510
2510
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2511
2511
|
} catch {
|
|
2512
2512
|
return null;
|
|
@@ -3297,7 +3297,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
let fetchUrl = imageUrl;
|
|
3299
3299
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3300
|
-
const { isPrivateUrl } = await import("./index-
|
|
3300
|
+
const { isPrivateUrl } = await import("./index-CcCXKYy6.js").then((n) => n.a3);
|
|
3301
3301
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3302
3302
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3303
3303
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5293,4 +5293,4 @@ export {
|
|
|
5293
5293
|
preparePagesForExport,
|
|
5294
5294
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
5295
5295
|
};
|
|
5296
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5296
|
+
//# sourceMappingURL=vectorPdfExport-BpRBLtU-.js.map
|