@pixldocs/canvas-renderer 0.5.216 → 0.5.218
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-Bpa0-8Hq.js → index-CZk_GpIL.js} +9 -53
- package/dist/index-CZk_GpIL.js.map +1 -0
- package/dist/{index-C5McWFUS.cjs → index-D3NJNdX_.cjs} +9 -53
- package/dist/index-D3NJNdX_.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-K3LAdOXU.cjs → vectorPdfExport-CoZ-RUqL.cjs} +5 -5
- package/dist/vectorPdfExport-CoZ-RUqL.cjs.map +1 -0
- package/dist/{vectorPdfExport-DZD415Qf.js → vectorPdfExport-som_tmDY.js} +5 -5
- package/dist/vectorPdfExport-som_tmDY.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-Bpa0-8Hq.js.map +0 -1
- package/dist/index-C5McWFUS.cjs.map +0 -1
- package/dist/vectorPdfExport-DZD415Qf.js.map +0 -1
- package/dist/vectorPdfExport-K3LAdOXU.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-D3NJNdX_.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-CZk_GpIL.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-D3NJNdX_.cjs");
|
|
7
7
|
const pdfFonts = require("./pdfFonts-BTj2f465.cjs");
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2099,7 +2099,7 @@ async function rasterizeShadowMarkers(svg) {
|
|
|
2099
2099
|
const by = parseFloat(marker.getAttribute("data-by") || "0");
|
|
2100
2100
|
const bw = parseFloat(marker.getAttribute("data-bw") || "0");
|
|
2101
2101
|
const bh = parseFloat(marker.getAttribute("data-bh") || "0");
|
|
2102
|
-
const spread =
|
|
2102
|
+
const spread = 0;
|
|
2103
2103
|
const alphaRaw = parseFloat(marker.getAttribute("data-alpha") || "1");
|
|
2104
2104
|
const shadowAlpha = Number.isFinite(alphaRaw) ? Math.max(0, Math.min(1, alphaRaw)) : 1;
|
|
2105
2105
|
if (!Number.isFinite(bw) || !Number.isFinite(bh) || bw <= 0 || bh <= 0) {
|
|
@@ -2974,7 +2974,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
|
|
|
2974
2974
|
async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
|
|
2975
2975
|
if (!colorMap || Object.keys(colorMap).length === 0) return null;
|
|
2976
2976
|
try {
|
|
2977
|
-
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-
|
|
2977
|
+
const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-D3NJNdX_.cjs")).then((n) => n.canvasImageLoader);
|
|
2978
2978
|
return await getNormalizedSvgUrl(imageUrl, colorMap);
|
|
2979
2979
|
} catch {
|
|
2980
2980
|
return null;
|
|
@@ -3783,7 +3783,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
let fetchUrl = imageUrl;
|
|
3785
3785
|
if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
|
|
3786
|
-
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-
|
|
3786
|
+
const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-D3NJNdX_.cjs")).then((n) => n.canvasImageLoader);
|
|
3787
3787
|
if (isPrivateUrl(imageUrl)) return null;
|
|
3788
3788
|
const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
|
|
3789
3789
|
proxyUrl.searchParams.set("url", imageUrl);
|
|
@@ -5882,4 +5882,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
|
|
|
5882
5882
|
exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
|
|
5883
5883
|
exports.preparePagesForExport = preparePagesForExport;
|
|
5884
5884
|
exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
|
|
5885
|
-
//# sourceMappingURL=vectorPdfExport-
|
|
5885
|
+
//# sourceMappingURL=vectorPdfExport-CoZ-RUqL.cjs.map
|