@pixldocs/canvas-renderer 0.5.135 → 0.5.136
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-WM3oV4wa.js → index-BHa3ekoF.js} +127 -4
- package/dist/{index-WM3oV4wa.js.map → index-BHa3ekoF.js.map} +1 -1
- package/dist/{index-BCvB875s.cjs → index-DUHE7WhJ.cjs} +127 -4
- package/dist/{index-BCvB875s.cjs.map → index-DUHE7WhJ.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DFgDiZck.cjs → vectorPdfExport-Bq-_OarH.cjs} +4 -4
- package/dist/{vectorPdfExport-DFgDiZck.cjs.map → vectorPdfExport-Bq-_OarH.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CyHRXea-.js → vectorPdfExport-D3L64sAJ.js} +4 -4
- package/dist/{vectorPdfExport-CyHRXea-.js.map → vectorPdfExport-D3L64sAJ.js.map} +1 -1
- package/package.json +1 -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, 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-BHa3ekoF.js";
|
|
5
5
|
import { resetPdfFontRegistry, FONT_FALLBACK_SYMBOLS, FONT_FALLBACK_MATH, FONT_FALLBACK_DEVANAGARI, embedFontWithGoogleFallback, getEmbeddedVariantsList, isFontAvailable, isFamilyEmbedded, resolveBestRegisteredVariant, getEmbeddedJsPDFFontName, resolveFontWeight, doesVariantSupportChar } from "./pdfFonts-BVHbPFEz.js";
|
|
6
6
|
async function embedFontsForSvg(pdf, svgStr) {
|
|
7
7
|
var _a;
|
|
@@ -2223,7 +2223,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2223
2223
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2224
2224
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2225
2225
|
try {
|
|
2226
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2226
|
+
const { getNormalizedSvgUrl } = await import("./index-BHa3ekoF.js").then((n) => n._);
|
|
2227
2227
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2228
2228
|
} catch {
|
|
2229
2229
|
return null;
|
|
@@ -3004,7 +3004,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
let fetchUrl = imageUrl;
|
|
3006
3006
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3007
|
-
const { isPrivateUrl } = await import("./index-
|
|
3007
|
+
const { isPrivateUrl } = await import("./index-BHa3ekoF.js").then((n) => n._);
|
|
3008
3008
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3009
3009
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3010
3010
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -4987,4 +4987,4 @@ export {
|
|
|
4987
4987
|
preparePagesForExport,
|
|
4988
4988
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
4989
4989
|
};
|
|
4990
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
4990
|
+
//# sourceMappingURL=vectorPdfExport-D3L64sAJ.js.map
|