@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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-BCvB875s.cjs");
3
+ const index = require("./index-DUHE7WhJ.cjs");
4
4
  exports.FONT_FALLBACK_DEVANAGARI = index.FONT_FALLBACK_DEVANAGARI;
5
5
  exports.FONT_FALLBACK_MATH = index.FONT_FALLBACK_MATH;
6
6
  exports.FONT_FALLBACK_SYMBOLS = index.FONT_FALLBACK_SYMBOLS;
package/dist/index.d.ts CHANGED
@@ -259,7 +259,7 @@ export declare function normalizeFontFamily(fontStack: string): string;
259
259
  * Package version banner. Bump alongside package.json so we can confirm
260
260
  * (via browser:log) that the deployed bundle matches the expected build.
261
261
  */
262
- export declare const PACKAGE_VERSION = "0.5.135";
262
+ export declare const PACKAGE_VERSION = "0.5.136";
263
263
 
264
264
  export declare interface PageSettings {
265
265
  backgroundColor?: string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F, o, q, s, P, t, u, v, w, x, y, z, B, C, D, E, G, H, I, J, K, b, L, M, N, O, Q, R, S, U, V, W, X, Y, Z } from "./index-WM3oV4wa.js";
1
+ import { F, o, q, s, P, t, u, v, w, x, y, z, B, C, D, E, G, H, I, J, K, b, L, M, N, O, Q, R, S, U, V, W, X, Y, Z } from "./index-BHa3ekoF.js";
2
2
  export {
3
3
  F as FONT_FALLBACK_DEVANAGARI,
4
4
  o as FONT_FALLBACK_MATH,
@@ -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-BCvB875s.cjs");
6
+ const index = require("./index-DUHE7WhJ.cjs");
7
7
  const pdfFonts = require("./pdfFonts-BU2Lqz_O.cjs");
8
8
  function _interopNamespaceDefault(e) {
9
9
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -2242,7 +2242,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
2242
2242
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
2243
2243
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
2244
2244
  try {
2245
- const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-BCvB875s.cjs")).then((n) => n.canvasImageLoader);
2245
+ const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-DUHE7WhJ.cjs")).then((n) => n.canvasImageLoader);
2246
2246
  return await getNormalizedSvgUrl(imageUrl, colorMap);
2247
2247
  } catch {
2248
2248
  return null;
@@ -3023,7 +3023,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
3023
3023
  }
3024
3024
  let fetchUrl = imageUrl;
3025
3025
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
3026
- const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-BCvB875s.cjs")).then((n) => n.canvasImageLoader);
3026
+ const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-DUHE7WhJ.cjs")).then((n) => n.canvasImageLoader);
3027
3027
  if (isPrivateUrl(imageUrl)) return null;
3028
3028
  const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
3029
3029
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5004,4 +5004,4 @@ exports.exportFabricCanvasToVectorPdf = exportFabricCanvasToVectorPdf;
5004
5004
  exports.exportMultiPagePdf = exportMultiPagePdf;
5005
5005
  exports.preparePagesForExport = preparePagesForExport;
5006
5006
  exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
5007
- //# sourceMappingURL=vectorPdfExport-DFgDiZck.cjs.map
5007
+ //# sourceMappingURL=vectorPdfExport-Bq-_OarH.cjs.map