emf-converter 4.25.0 → 4.25.1
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 +5 -1
- package/dist/browser.mjs +5 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +6 -3
package/dist/browser.js
CHANGED
|
@@ -13,7 +13,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
14
|
});
|
|
15
15
|
var __commonJS = (cb, mod3) => function __require2() {
|
|
16
|
-
|
|
16
|
+
try {
|
|
17
|
+
return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw mod3 = 0, e;
|
|
20
|
+
}
|
|
17
21
|
};
|
|
18
22
|
var __copyProps = (to, from, except, desc) => {
|
|
19
23
|
if (from && typeof from === "object" || typeof from === "function") {
|
package/dist/browser.mjs
CHANGED
|
@@ -11,7 +11,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __commonJS = (cb, mod3) => function __require2() {
|
|
14
|
-
|
|
14
|
+
try {
|
|
15
|
+
return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw mod3 = 0, e;
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
package/dist/index.d.mts
CHANGED
|
@@ -763,4 +763,5 @@ interface MetafileInfoOptions {
|
|
|
763
763
|
*/
|
|
764
764
|
declare function getMetafileInfo(input: MetafileInput, options?: MetafileInfoOptions): Promise<MetafileInfo | null>;
|
|
765
765
|
|
|
766
|
-
export {
|
|
766
|
+
export { DEFAULT_DPI_SCALE, convertMetafile, convertMetafileToDataUrl, convertMetafileToImageData, convertMetafileToJpegDataUrl, convertMetafileToPdf, convertMetafileToSvg, convertMetafileToSvgDataUrl, convertMetafileToSvgTree, convertMetafileToWebpDataUrl, getMetafileInfo, loadSystemFonts, svgTreeToDataUrl, svgTreeToJsx, svgTreeToPdf, svgTreeToReact, svgTreeToString };
|
|
767
|
+
export type { ConvertOptions, ConvertedImage, CreateElement, EmfConvertOptions, JpegConvertOptions, LoadSystemFontsOptions, MetafileFont, MetafileInfo, MetafileInfoOptions, MetafileInput, MetafileOutputFormat, MetafileRect, PdfConvertOptions, PdfDecodedImage, PdfOptions, RgbaImage, SvgConvertOptions, SvgJsxOptions, SvgNode, WebpConvertOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -763,4 +763,5 @@ interface MetafileInfoOptions {
|
|
|
763
763
|
*/
|
|
764
764
|
declare function getMetafileInfo(input: MetafileInput, options?: MetafileInfoOptions): Promise<MetafileInfo | null>;
|
|
765
765
|
|
|
766
|
-
export {
|
|
766
|
+
export { DEFAULT_DPI_SCALE, convertMetafile, convertMetafileToDataUrl, convertMetafileToImageData, convertMetafileToJpegDataUrl, convertMetafileToPdf, convertMetafileToSvg, convertMetafileToSvgDataUrl, convertMetafileToSvgTree, convertMetafileToWebpDataUrl, getMetafileInfo, loadSystemFonts, svgTreeToDataUrl, svgTreeToJsx, svgTreeToPdf, svgTreeToReact, svgTreeToString };
|
|
767
|
+
export type { ConvertOptions, ConvertedImage, CreateElement, EmfConvertOptions, JpegConvertOptions, LoadSystemFontsOptions, MetafileFont, MetafileInfo, MetafileInfoOptions, MetafileInput, MetafileOutputFormat, MetafileRect, PdfConvertOptions, PdfDecodedImage, PdfOptions, RgbaImage, SvgConvertOptions, SvgJsxOptions, SvgNode, WebpConvertOptions };
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
14
|
});
|
|
15
15
|
var __commonJS = (cb, mod3) => function __require2() {
|
|
16
|
-
|
|
16
|
+
try {
|
|
17
|
+
return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw mod3 = 0, e;
|
|
20
|
+
}
|
|
17
21
|
};
|
|
18
22
|
var __copyProps = (to, from, except, desc) => {
|
|
19
23
|
if (from && typeof from === "object" || typeof from === "function") {
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __commonJS = (cb, mod3) => function __require2() {
|
|
14
|
-
|
|
14
|
+
try {
|
|
15
|
+
return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw mod3 = 0, e;
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "emf-converter",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.1",
|
|
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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"docs:preview": "vitepress preview docs"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@napi-rs/canvas": "
|
|
69
|
+
"@napi-rs/canvas": "1.0.10",
|
|
70
70
|
"@types/node": "^26.6.4",
|
|
71
71
|
"@types/react": "^19.3.0",
|
|
72
72
|
"@types/react-dom": "^19.3.0",
|
|
@@ -76,13 +76,16 @@
|
|
|
76
76
|
"pdfjs-dist": "^6.4.299",
|
|
77
77
|
"react": "^19.3.0",
|
|
78
78
|
"react-dom": "^19.3.0",
|
|
79
|
-
"tsup": "^
|
|
79
|
+
"tsup": "^9.0.0",
|
|
80
80
|
"typescript": "^6.0.3",
|
|
81
81
|
"utif": "3.1.0",
|
|
82
82
|
"vitepress": "^1.6.4",
|
|
83
83
|
"vitest": "^5.0.3",
|
|
84
84
|
"vue-tsc": "^3.3.12"
|
|
85
85
|
},
|
|
86
|
+
"overrides": {
|
|
87
|
+
"@napi-rs/canvas": "1.0.10"
|
|
88
|
+
},
|
|
86
89
|
"peerDependencies": {
|
|
87
90
|
"@napi-rs/canvas": "^1.0.9"
|
|
88
91
|
},
|