@pixldocs/canvas-renderer 0.5.146 → 0.5.147
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-DoPXmxDJ.cjs → index-D78ekQx5.cjs} +17 -4
- package/dist/{index-DoPXmxDJ.cjs.map → index-D78ekQx5.cjs.map} +1 -1
- package/dist/{index-oR6VOGAL.js → index-NMZJF9C9.js} +38 -25
- package/dist/{index-oR6VOGAL.js.map → index-NMZJF9C9.js.map} +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.js +22 -21
- package/dist/{vectorPdfExport-SMvSP0el.cjs → vectorPdfExport-DmFmkPUr.cjs} +4 -4
- package/dist/{vectorPdfExport-SMvSP0el.cjs.map → vectorPdfExport-DmFmkPUr.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DI7k8pt7.js → vectorPdfExport-_m5TiQjK.js} +4 -4
- package/dist/{vectorPdfExport-DI7k8pt7.js.map → vectorPdfExport-_m5TiQjK.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-NMZJF9C9.js";
|
|
5
5
|
import { resetPdfFontRegistry, FONT_FALLBACK_SYMBOLS, FONT_FALLBACK_MATH, FONT_FALLBACK_DEVANAGARI, embedFontWithGoogleFallback, getEmbeddedVariantsList, isFontAvailable, isFamilyEmbedded, resolveBestRegisteredVariant, getEmbeddedJsPDFFontName, resolveFontWeight, doesVariantSupportChar } from "./pdfFonts-b3_bv7F0.js";
|
|
6
6
|
async function embedFontsForSvg(pdf, svgStr) {
|
|
7
7
|
var _a;
|
|
@@ -2386,7 +2386,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2386
2386
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2387
2387
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2388
2388
|
try {
|
|
2389
|
-
const { getNormalizedSvgUrl } = await import("./index-
|
|
2389
|
+
const { getNormalizedSvgUrl } = await import("./index-NMZJF9C9.js").then((n) => n.$);
|
|
2390
2390
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2391
2391
|
} catch {
|
|
2392
2392
|
return null;
|
|
@@ -3167,7 +3167,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
let fetchUrl = imageUrl;
|
|
3169
3169
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3170
|
-
const { isPrivateUrl } = await import("./index-
|
|
3170
|
+
const { isPrivateUrl } = await import("./index-NMZJF9C9.js").then((n) => n.$);
|
|
3171
3171
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3172
3172
|
const proxyUrl = new URL(`${API_URL}/image-proxy`);
|
|
3173
3173
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5151,4 +5151,4 @@ export {
|
|
|
5151
5151
|
preparePagesForExport,
|
|
5152
5152
|
rewriteSvgFontsForJsPDFWithSourceMeta
|
|
5153
5153
|
};
|
|
5154
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5154
|
+
//# sourceMappingURL=vectorPdfExport-_m5TiQjK.js.map
|