@pixldocs/canvas-renderer 0.5.498 → 0.5.499

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-CUZInOyk.cjs");
3
+ const index = require("./index-BgLKkRdm.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, q, s, t, P, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, N, b, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8 } from "./index-lbU-Xs_t.js";
1
+ import { D, F, q, s, t, P, u, v, w, x, y, z, B, C, E, G, H, I, J, K, L, M, N, b, O, Q, R, S, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8 } from "./index-DV1y20kD.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-CUZInOyk.cjs");
6
+ const index = require("./index-BgLKkRdm.cjs");
7
7
  const pdfFonts = require("./pdfFonts-CySSLV-P.cjs");
8
8
  function _interopNamespaceDefault(e) {
9
9
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -3271,7 +3271,7 @@ async function fetchSvgAsElement(imageUrl, colorMap) {
3271
3271
  async function getRecoloredSvgDataUrl(imageUrl, colorMap) {
3272
3272
  if (!colorMap || Object.keys(colorMap).length === 0) return null;
3273
3273
  try {
3274
- const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-CUZInOyk.cjs")).then((n) => n.canvasImageLoader);
3274
+ const { getNormalizedSvgUrl } = await Promise.resolve().then(() => require("./index-BgLKkRdm.cjs")).then((n) => n.canvasImageLoader);
3275
3275
  return await getNormalizedSvgUrl(imageUrl, colorMap);
3276
3276
  } catch {
3277
3277
  return null;
@@ -4080,7 +4080,7 @@ async function fetchImageAsBase64(imageUrl, opts = {}) {
4080
4080
  }
4081
4081
  let fetchUrl = imageUrl;
4082
4082
  if (imageUrl.startsWith("http://") || imageUrl.startsWith("https://")) {
4083
- const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-CUZInOyk.cjs")).then((n) => n.canvasImageLoader);
4083
+ const { isPrivateUrl } = await Promise.resolve().then(() => require("./index-BgLKkRdm.cjs")).then((n) => n.canvasImageLoader);
4084
4084
  if (isPrivateUrl(imageUrl)) return null;
4085
4085
  const proxyUrl = new URL(`${index.API_URL}/image-proxy`);
4086
4086
  proxyUrl.searchParams.set("url", imageUrl);
@@ -5640,7 +5640,7 @@ async function exportFabricCanvasToVectorPdf(_fabricCanvas, options) {
5640
5640
  compress: true
5641
5641
  });
5642
5642
  if (title) {
5643
- pdf.setProperties({ title, creator: "DocuForge" });
5643
+ pdf.setProperties({ title, creator: "PixlDocs" });
5644
5644
  }
5645
5645
  if (backgroundColor && backgroundColor !== "transparent") {
5646
5646
  const bgColor = parseColor(backgroundColor);
@@ -5820,7 +5820,7 @@ async function __exportMultiPagePdfInner(pages, options) {
5820
5820
  compress: true
5821
5821
  });
5822
5822
  if (title) {
5823
- pdf.setProperties({ title, creator: "DocuForge" });
5823
+ pdf.setProperties({ title, creator: "PixlDocs" });
5824
5824
  }
5825
5825
  const fontKeysNeeded = /* @__PURE__ */ new Set();
5826
5826
  const italicKeysNeeded = /* @__PURE__ */ new Set();
@@ -6226,4 +6226,4 @@ exports.exportMultiPagePdf = exportMultiPagePdf;
6226
6226
  exports.logTextMeasurementDiagnostic = logTextMeasurementDiagnostic;
6227
6227
  exports.preparePagesForExport = preparePagesForExport;
6228
6228
  exports.rewriteSvgFontsForJsPDFWithSourceMeta = rewriteSvgFontsForJsPDFWithSourceMeta;
6229
- //# sourceMappingURL=vectorPdfExport-6Hi7Og4W.cjs.map
6229
+ //# sourceMappingURL=vectorPdfExport-D_CxvBL-.cjs.map