emf-converter 4.25.1 → 4.25.3

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/browser.js CHANGED
@@ -20203,6 +20203,7 @@ function computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale = DEFAU
20203
20203
  }
20204
20204
  return { w: clampedW, h: clampedH, scaleX, scaleY };
20205
20205
  }
20206
+ var READBACK = { willReadFrequently: true };
20206
20207
  function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI_SCALE, maxCanvasDimension = MAX_CANVAS_DIMENSION) {
20207
20208
  const { w, h, scaleX, scaleY } = computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale, maxCanvasDimension);
20208
20209
  try {
@@ -20216,7 +20217,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20216
20217
  `createCanvas: using OffscreenCanvas ${w}\xD7${h}, scale=(${scaleX.toFixed(3)},${scaleY.toFixed(3)})`
20217
20218
  );
20218
20219
  const canvas = new OffscreenCanvas(w, h);
20219
- const ctx = canvas.getContext("2d");
20220
+ const ctx = canvas.getContext("2d", READBACK);
20220
20221
  if (!ctx) {
20221
20222
  emfWarn('createCanvas: OffscreenCanvas.getContext("2d") returned null');
20222
20223
  return null;
@@ -20230,7 +20231,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20230
20231
  const canvas = document.createElement("canvas");
20231
20232
  canvas.width = w;
20232
20233
  canvas.height = h;
20233
- const ctx = canvas.getContext("2d");
20234
+ const ctx = canvas.getContext("2d", READBACK);
20234
20235
  if (!ctx) {
20235
20236
  emfWarn('createCanvas: HTMLCanvasElement.getContext("2d") returned null');
20236
20237
  return null;
@@ -20265,7 +20266,7 @@ function createTempCanvas(width, height) {
20265
20266
  height = Math.max(1, Math.min(Math.floor(height), MAX_CANVAS_DIMENSION));
20266
20267
  if (typeof OffscreenCanvas !== "undefined") {
20267
20268
  const canvas = new OffscreenCanvas(width, height);
20268
- const ctx = canvas.getContext("2d");
20269
+ const ctx = canvas.getContext("2d", READBACK);
20269
20270
  if (!ctx) {
20270
20271
  return null;
20271
20272
  }
@@ -20275,7 +20276,7 @@ function createTempCanvas(width, height) {
20275
20276
  const canvas = document.createElement("canvas");
20276
20277
  canvas.width = width;
20277
20278
  canvas.height = height;
20278
- const ctx = canvas.getContext("2d");
20279
+ const ctx = canvas.getContext("2d", READBACK);
20279
20280
  if (!ctx) {
20280
20281
  return null;
20281
20282
  }
@@ -43628,6 +43629,10 @@ function parseWmfHeader(view) {
43628
43629
  boundsBottom = view.getInt16(12, true);
43629
43630
  unitsPerInch = view.getUint16(14, true) || 96;
43630
43631
  headerOffset = 22;
43632
+ const isType = (at) => [1, 2].includes(view.getUint16(at, true)) && view.getUint16(at + 2, true) === 9;
43633
+ if (view.byteLength >= 24 + 18 && !isType(22) && view.getUint16(22, true) === 0 && isType(24)) {
43634
+ headerOffset = 24;
43635
+ }
43631
43636
  }
43632
43637
  if (headerOffset + 18 > view.byteLength) {
43633
43638
  return null;
@@ -56292,7 +56297,13 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56292
56297
  continue;
56293
56298
  }
56294
56299
  if (emfPlusState.dualMode && !emfPlusState.gdiPassthrough) {
56295
- if (recType !== EMR_SAVEDC && recType !== EMR_RESTOREDC) {
56300
+ if (recType === EMR_SAVEDC) {
56301
+ saveSkippedDc(rCtx);
56302
+ } else if (recType === EMR_RESTOREDC) {
56303
+ if (recSize >= 12) {
56304
+ restoreSkippedDc(rCtx, view.getInt32(dataOff, true));
56305
+ }
56306
+ } else {
56296
56307
  handleEmfGdiStateRecord(rCtx, recType, offset, dataOff, recSize);
56297
56308
  }
56298
56309
  offset += recSize;
@@ -56318,6 +56329,31 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56318
56329
  }
56319
56330
  return allDeferredImages;
56320
56331
  }
56332
+ function saveSkippedDc(rCtx) {
56333
+ rCtx.skippedDcStack ?? (rCtx.skippedDcStack = []);
56334
+ rCtx.skippedDcStack.push({
56335
+ state: cloneState(rCtx.state),
56336
+ mapping: {
56337
+ mapMode: rCtx.mapMode,
56338
+ windowOrg: { ...rCtx.windowOrg },
56339
+ windowExt: { ...rCtx.windowExt },
56340
+ viewportOrg: { ...rCtx.viewportOrg },
56341
+ viewportExt: { ...rCtx.viewportExt },
56342
+ useMappingMode: rCtx.useMappingMode
56343
+ }
56344
+ });
56345
+ }
56346
+ function restoreSkippedDc(rCtx, level) {
56347
+ const stack = rCtx.skippedDcStack ?? [];
56348
+ const at = level < 0 ? stack.length + level : level - 1;
56349
+ if (at < 0 || at >= stack.length) {
56350
+ return;
56351
+ }
56352
+ const saved = stack[at];
56353
+ stack.length = at;
56354
+ Object.assign(rCtx.state, saved.state);
56355
+ Object.assign(rCtx, saved.mapping);
56356
+ }
56321
56357
  function replayNestedEmf(bytes, ctx, canvasW, canvasH, toCanvas, options2) {
56322
56358
  const view = new DataView(bytes);
56323
56359
  const header = parseEmfHeader(view);
package/dist/browser.mjs CHANGED
@@ -20201,6 +20201,7 @@ function computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale = DEFAU
20201
20201
  }
20202
20202
  return { w: clampedW, h: clampedH, scaleX, scaleY };
20203
20203
  }
20204
+ var READBACK = { willReadFrequently: true };
20204
20205
  function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI_SCALE, maxCanvasDimension = MAX_CANVAS_DIMENSION) {
20205
20206
  const { w, h, scaleX, scaleY } = computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale, maxCanvasDimension);
20206
20207
  try {
@@ -20214,7 +20215,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20214
20215
  `createCanvas: using OffscreenCanvas ${w}\xD7${h}, scale=(${scaleX.toFixed(3)},${scaleY.toFixed(3)})`
20215
20216
  );
20216
20217
  const canvas = new OffscreenCanvas(w, h);
20217
- const ctx = canvas.getContext("2d");
20218
+ const ctx = canvas.getContext("2d", READBACK);
20218
20219
  if (!ctx) {
20219
20220
  emfWarn('createCanvas: OffscreenCanvas.getContext("2d") returned null');
20220
20221
  return null;
@@ -20228,7 +20229,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20228
20229
  const canvas = document.createElement("canvas");
20229
20230
  canvas.width = w;
20230
20231
  canvas.height = h;
20231
- const ctx = canvas.getContext("2d");
20232
+ const ctx = canvas.getContext("2d", READBACK);
20232
20233
  if (!ctx) {
20233
20234
  emfWarn('createCanvas: HTMLCanvasElement.getContext("2d") returned null');
20234
20235
  return null;
@@ -20263,7 +20264,7 @@ function createTempCanvas(width, height) {
20263
20264
  height = Math.max(1, Math.min(Math.floor(height), MAX_CANVAS_DIMENSION));
20264
20265
  if (typeof OffscreenCanvas !== "undefined") {
20265
20266
  const canvas = new OffscreenCanvas(width, height);
20266
- const ctx = canvas.getContext("2d");
20267
+ const ctx = canvas.getContext("2d", READBACK);
20267
20268
  if (!ctx) {
20268
20269
  return null;
20269
20270
  }
@@ -20273,7 +20274,7 @@ function createTempCanvas(width, height) {
20273
20274
  const canvas = document.createElement("canvas");
20274
20275
  canvas.width = width;
20275
20276
  canvas.height = height;
20276
- const ctx = canvas.getContext("2d");
20277
+ const ctx = canvas.getContext("2d", READBACK);
20277
20278
  if (!ctx) {
20278
20279
  return null;
20279
20280
  }
@@ -43626,6 +43627,10 @@ function parseWmfHeader(view) {
43626
43627
  boundsBottom = view.getInt16(12, true);
43627
43628
  unitsPerInch = view.getUint16(14, true) || 96;
43628
43629
  headerOffset = 22;
43630
+ const isType = (at) => [1, 2].includes(view.getUint16(at, true)) && view.getUint16(at + 2, true) === 9;
43631
+ if (view.byteLength >= 24 + 18 && !isType(22) && view.getUint16(22, true) === 0 && isType(24)) {
43632
+ headerOffset = 24;
43633
+ }
43629
43634
  }
43630
43635
  if (headerOffset + 18 > view.byteLength) {
43631
43636
  return null;
@@ -56290,7 +56295,13 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56290
56295
  continue;
56291
56296
  }
56292
56297
  if (emfPlusState.dualMode && !emfPlusState.gdiPassthrough) {
56293
- if (recType !== EMR_SAVEDC && recType !== EMR_RESTOREDC) {
56298
+ if (recType === EMR_SAVEDC) {
56299
+ saveSkippedDc(rCtx);
56300
+ } else if (recType === EMR_RESTOREDC) {
56301
+ if (recSize >= 12) {
56302
+ restoreSkippedDc(rCtx, view.getInt32(dataOff, true));
56303
+ }
56304
+ } else {
56294
56305
  handleEmfGdiStateRecord(rCtx, recType, offset, dataOff, recSize);
56295
56306
  }
56296
56307
  offset += recSize;
@@ -56316,6 +56327,31 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56316
56327
  }
56317
56328
  return allDeferredImages;
56318
56329
  }
56330
+ function saveSkippedDc(rCtx) {
56331
+ rCtx.skippedDcStack ?? (rCtx.skippedDcStack = []);
56332
+ rCtx.skippedDcStack.push({
56333
+ state: cloneState(rCtx.state),
56334
+ mapping: {
56335
+ mapMode: rCtx.mapMode,
56336
+ windowOrg: { ...rCtx.windowOrg },
56337
+ windowExt: { ...rCtx.windowExt },
56338
+ viewportOrg: { ...rCtx.viewportOrg },
56339
+ viewportExt: { ...rCtx.viewportExt },
56340
+ useMappingMode: rCtx.useMappingMode
56341
+ }
56342
+ });
56343
+ }
56344
+ function restoreSkippedDc(rCtx, level) {
56345
+ const stack = rCtx.skippedDcStack ?? [];
56346
+ const at = level < 0 ? stack.length + level : level - 1;
56347
+ if (at < 0 || at >= stack.length) {
56348
+ return;
56349
+ }
56350
+ const saved = stack[at];
56351
+ stack.length = at;
56352
+ Object.assign(rCtx.state, saved.state);
56353
+ Object.assign(rCtx, saved.mapping);
56354
+ }
56319
56355
  function replayNestedEmf(bytes, ctx, canvasW, canvasH, toCanvas, options2) {
56320
56356
  const view = new DataView(bytes);
56321
56357
  const header = parseEmfHeader(view);
package/dist/index.js CHANGED
@@ -20204,6 +20204,7 @@ function computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale = DEFAU
20204
20204
  }
20205
20205
  return { w: clampedW, h: clampedH, scaleX, scaleY };
20206
20206
  }
20207
+ var READBACK = { willReadFrequently: true };
20207
20208
  function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI_SCALE, maxCanvasDimension = MAX_CANVAS_DIMENSION) {
20208
20209
  const { w, h, scaleX, scaleY } = computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale, maxCanvasDimension);
20209
20210
  try {
@@ -20217,7 +20218,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20217
20218
  `createCanvas: using OffscreenCanvas ${w}\xD7${h}, scale=(${scaleX.toFixed(3)},${scaleY.toFixed(3)})`
20218
20219
  );
20219
20220
  const canvas = new OffscreenCanvas(w, h);
20220
- const ctx = canvas.getContext("2d");
20221
+ const ctx = canvas.getContext("2d", READBACK);
20221
20222
  if (!ctx) {
20222
20223
  emfWarn('createCanvas: OffscreenCanvas.getContext("2d") returned null');
20223
20224
  return null;
@@ -20231,7 +20232,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20231
20232
  const canvas = document.createElement("canvas");
20232
20233
  canvas.width = w;
20233
20234
  canvas.height = h;
20234
- const ctx = canvas.getContext("2d");
20235
+ const ctx = canvas.getContext("2d", READBACK);
20235
20236
  if (!ctx) {
20236
20237
  emfWarn('createCanvas: HTMLCanvasElement.getContext("2d") returned null');
20237
20238
  return null;
@@ -20266,7 +20267,7 @@ function createTempCanvas(width, height) {
20266
20267
  height = Math.max(1, Math.min(Math.floor(height), MAX_CANVAS_DIMENSION));
20267
20268
  if (typeof OffscreenCanvas !== "undefined") {
20268
20269
  const canvas = new OffscreenCanvas(width, height);
20269
- const ctx = canvas.getContext("2d");
20270
+ const ctx = canvas.getContext("2d", READBACK);
20270
20271
  if (!ctx) {
20271
20272
  return null;
20272
20273
  }
@@ -20276,7 +20277,7 @@ function createTempCanvas(width, height) {
20276
20277
  const canvas = document.createElement("canvas");
20277
20278
  canvas.width = width;
20278
20279
  canvas.height = height;
20279
- const ctx = canvas.getContext("2d");
20280
+ const ctx = canvas.getContext("2d", READBACK);
20280
20281
  if (!ctx) {
20281
20282
  return null;
20282
20283
  }
@@ -43629,6 +43630,10 @@ function parseWmfHeader(view) {
43629
43630
  boundsBottom = view.getInt16(12, true);
43630
43631
  unitsPerInch = view.getUint16(14, true) || 96;
43631
43632
  headerOffset = 22;
43633
+ const isType = (at) => [1, 2].includes(view.getUint16(at, true)) && view.getUint16(at + 2, true) === 9;
43634
+ if (view.byteLength >= 24 + 18 && !isType(22) && view.getUint16(22, true) === 0 && isType(24)) {
43635
+ headerOffset = 24;
43636
+ }
43632
43637
  }
43633
43638
  if (headerOffset + 18 > view.byteLength) {
43634
43639
  return null;
@@ -56293,7 +56298,13 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56293
56298
  continue;
56294
56299
  }
56295
56300
  if (emfPlusState.dualMode && !emfPlusState.gdiPassthrough) {
56296
- if (recType !== EMR_SAVEDC && recType !== EMR_RESTOREDC) {
56301
+ if (recType === EMR_SAVEDC) {
56302
+ saveSkippedDc(rCtx);
56303
+ } else if (recType === EMR_RESTOREDC) {
56304
+ if (recSize >= 12) {
56305
+ restoreSkippedDc(rCtx, view.getInt32(dataOff, true));
56306
+ }
56307
+ } else {
56297
56308
  handleEmfGdiStateRecord(rCtx, recType, offset, dataOff, recSize);
56298
56309
  }
56299
56310
  offset += recSize;
@@ -56319,6 +56330,31 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56319
56330
  }
56320
56331
  return allDeferredImages;
56321
56332
  }
56333
+ function saveSkippedDc(rCtx) {
56334
+ rCtx.skippedDcStack ?? (rCtx.skippedDcStack = []);
56335
+ rCtx.skippedDcStack.push({
56336
+ state: cloneState(rCtx.state),
56337
+ mapping: {
56338
+ mapMode: rCtx.mapMode,
56339
+ windowOrg: { ...rCtx.windowOrg },
56340
+ windowExt: { ...rCtx.windowExt },
56341
+ viewportOrg: { ...rCtx.viewportOrg },
56342
+ viewportExt: { ...rCtx.viewportExt },
56343
+ useMappingMode: rCtx.useMappingMode
56344
+ }
56345
+ });
56346
+ }
56347
+ function restoreSkippedDc(rCtx, level) {
56348
+ const stack = rCtx.skippedDcStack ?? [];
56349
+ const at = level < 0 ? stack.length + level : level - 1;
56350
+ if (at < 0 || at >= stack.length) {
56351
+ return;
56352
+ }
56353
+ const saved = stack[at];
56354
+ stack.length = at;
56355
+ Object.assign(rCtx.state, saved.state);
56356
+ Object.assign(rCtx, saved.mapping);
56357
+ }
56322
56358
  function replayNestedEmf(bytes, ctx, canvasW, canvasH, toCanvas, options2) {
56323
56359
  const view = new DataView(bytes);
56324
56360
  const header = parseEmfHeader(view);
package/dist/index.mjs CHANGED
@@ -20202,6 +20202,7 @@ function computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale = DEFAU
20202
20202
  }
20203
20203
  return { w: clampedW, h: clampedH, scaleX, scaleY };
20204
20204
  }
20205
+ var READBACK = { willReadFrequently: true };
20205
20206
  function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI_SCALE, maxCanvasDimension = MAX_CANVAS_DIMENSION) {
20206
20207
  const { w, h, scaleX, scaleY } = computeSurfaceSize(width, height, maxWidth, maxHeight, dpiScale, maxCanvasDimension);
20207
20208
  try {
@@ -20215,7 +20216,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20215
20216
  `createCanvas: using OffscreenCanvas ${w}\xD7${h}, scale=(${scaleX.toFixed(3)},${scaleY.toFixed(3)})`
20216
20217
  );
20217
20218
  const canvas = new OffscreenCanvas(w, h);
20218
- const ctx = canvas.getContext("2d");
20219
+ const ctx = canvas.getContext("2d", READBACK);
20219
20220
  if (!ctx) {
20220
20221
  emfWarn('createCanvas: OffscreenCanvas.getContext("2d") returned null');
20221
20222
  return null;
@@ -20229,7 +20230,7 @@ function createCanvas(width, height, maxWidth, maxHeight, dpiScale = DEFAULT_DPI
20229
20230
  const canvas = document.createElement("canvas");
20230
20231
  canvas.width = w;
20231
20232
  canvas.height = h;
20232
- const ctx = canvas.getContext("2d");
20233
+ const ctx = canvas.getContext("2d", READBACK);
20233
20234
  if (!ctx) {
20234
20235
  emfWarn('createCanvas: HTMLCanvasElement.getContext("2d") returned null');
20235
20236
  return null;
@@ -20264,7 +20265,7 @@ function createTempCanvas(width, height) {
20264
20265
  height = Math.max(1, Math.min(Math.floor(height), MAX_CANVAS_DIMENSION));
20265
20266
  if (typeof OffscreenCanvas !== "undefined") {
20266
20267
  const canvas = new OffscreenCanvas(width, height);
20267
- const ctx = canvas.getContext("2d");
20268
+ const ctx = canvas.getContext("2d", READBACK);
20268
20269
  if (!ctx) {
20269
20270
  return null;
20270
20271
  }
@@ -20274,7 +20275,7 @@ function createTempCanvas(width, height) {
20274
20275
  const canvas = document.createElement("canvas");
20275
20276
  canvas.width = width;
20276
20277
  canvas.height = height;
20277
- const ctx = canvas.getContext("2d");
20278
+ const ctx = canvas.getContext("2d", READBACK);
20278
20279
  if (!ctx) {
20279
20280
  return null;
20280
20281
  }
@@ -43627,6 +43628,10 @@ function parseWmfHeader(view) {
43627
43628
  boundsBottom = view.getInt16(12, true);
43628
43629
  unitsPerInch = view.getUint16(14, true) || 96;
43629
43630
  headerOffset = 22;
43631
+ const isType = (at) => [1, 2].includes(view.getUint16(at, true)) && view.getUint16(at + 2, true) === 9;
43632
+ if (view.byteLength >= 24 + 18 && !isType(22) && view.getUint16(22, true) === 0 && isType(24)) {
43633
+ headerOffset = 24;
43634
+ }
43630
43635
  }
43631
43636
  if (headerOffset + 18 > view.byteLength) {
43632
43637
  return null;
@@ -56291,7 +56296,13 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56291
56296
  continue;
56292
56297
  }
56293
56298
  if (emfPlusState.dualMode && !emfPlusState.gdiPassthrough) {
56294
- if (recType !== EMR_SAVEDC && recType !== EMR_RESTOREDC) {
56299
+ if (recType === EMR_SAVEDC) {
56300
+ saveSkippedDc(rCtx);
56301
+ } else if (recType === EMR_RESTOREDC) {
56302
+ if (recSize >= 12) {
56303
+ restoreSkippedDc(rCtx, view.getInt32(dataOff, true));
56304
+ }
56305
+ } else {
56295
56306
  handleEmfGdiStateRecord(rCtx, recType, offset, dataOff, recSize);
56296
56307
  }
56297
56308
  offset += recSize;
@@ -56317,6 +56328,31 @@ function* replayEmfRecordsSteps(view, ctx, bounds, canvasW, canvasH, dpiScale =
56317
56328
  }
56318
56329
  return allDeferredImages;
56319
56330
  }
56331
+ function saveSkippedDc(rCtx) {
56332
+ rCtx.skippedDcStack ?? (rCtx.skippedDcStack = []);
56333
+ rCtx.skippedDcStack.push({
56334
+ state: cloneState(rCtx.state),
56335
+ mapping: {
56336
+ mapMode: rCtx.mapMode,
56337
+ windowOrg: { ...rCtx.windowOrg },
56338
+ windowExt: { ...rCtx.windowExt },
56339
+ viewportOrg: { ...rCtx.viewportOrg },
56340
+ viewportExt: { ...rCtx.viewportExt },
56341
+ useMappingMode: rCtx.useMappingMode
56342
+ }
56343
+ });
56344
+ }
56345
+ function restoreSkippedDc(rCtx, level) {
56346
+ const stack = rCtx.skippedDcStack ?? [];
56347
+ const at = level < 0 ? stack.length + level : level - 1;
56348
+ if (at < 0 || at >= stack.length) {
56349
+ return;
56350
+ }
56351
+ const saved = stack[at];
56352
+ stack.length = at;
56353
+ Object.assign(rCtx.state, saved.state);
56354
+ Object.assign(rCtx, saved.mapping);
56355
+ }
56320
56356
  function replayNestedEmf(bytes, ctx, canvasW, canvasH, toCanvas, options2) {
56321
56357
  const view = new DataView(bytes);
56322
56358
  const header = parseEmfHeader(view);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emf-converter",
3
- "version": "4.25.1",
3
+ "version": "4.25.3",
4
4
  "description": "Convert EMF/WMF metafile binaries to PNG, JPEG or WebP data URLs, SVG (markup, data URL, React/JSX) or PDF",
5
5
  "keywords": [
6
6
  "canvas",