emf-converter 4.8.15 → 4.8.16
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 +2 -2
- package/dist/browser.mjs +2 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -22182,10 +22182,10 @@ var SvgContext = class {
|
|
|
22182
22182
|
const parent = this.state.clipId;
|
|
22183
22183
|
const id = this.id("c");
|
|
22184
22184
|
const attrs = { id };
|
|
22185
|
+
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22185
22186
|
if (parent) {
|
|
22186
|
-
|
|
22187
|
+
pathAttrs["clip-path"] = `url(#${parent})`;
|
|
22187
22188
|
}
|
|
22188
|
-
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22189
22189
|
if (fillRule === "evenodd") {
|
|
22190
22190
|
pathAttrs["clip-rule"] = "evenodd";
|
|
22191
22191
|
}
|
package/dist/browser.mjs
CHANGED
|
@@ -22180,10 +22180,10 @@ var SvgContext = class {
|
|
|
22180
22180
|
const parent = this.state.clipId;
|
|
22181
22181
|
const id = this.id("c");
|
|
22182
22182
|
const attrs = { id };
|
|
22183
|
+
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22183
22184
|
if (parent) {
|
|
22184
|
-
|
|
22185
|
+
pathAttrs["clip-path"] = `url(#${parent})`;
|
|
22185
22186
|
}
|
|
22186
|
-
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22187
22187
|
if (fillRule === "evenodd") {
|
|
22188
22188
|
pathAttrs["clip-rule"] = "evenodd";
|
|
22189
22189
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -222,9 +222,10 @@ interface SvgConvertOptions extends EmfConvertOptions {
|
|
|
222
222
|
* PNG output's `InterpolationMode`/`PixelOffsetMode` model), so the SVG
|
|
223
223
|
* shows what GDI+ painted pixel for pixel at its nominal size. PNG and
|
|
224
224
|
* BMP images are decoded in pure JavaScript; JPEG, GIF and other formats
|
|
225
|
-
*
|
|
226
|
-
* scaling
|
|
227
|
-
*
|
|
225
|
+
* use the available image decoder and otherwise keep `'renderer'`
|
|
226
|
+
* scaling. The resampler covers nearest-neighbour, bilinear, bicubic
|
|
227
|
+
* and high-quality modes; its remaining native differences also apply
|
|
228
|
+
* to the baked SVG pixels.
|
|
228
229
|
*/
|
|
229
230
|
imageResampling?: 'renderer' | 'exact';
|
|
230
231
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -222,9 +222,10 @@ interface SvgConvertOptions extends EmfConvertOptions {
|
|
|
222
222
|
* PNG output's `InterpolationMode`/`PixelOffsetMode` model), so the SVG
|
|
223
223
|
* shows what GDI+ painted pixel for pixel at its nominal size. PNG and
|
|
224
224
|
* BMP images are decoded in pure JavaScript; JPEG, GIF and other formats
|
|
225
|
-
*
|
|
226
|
-
* scaling
|
|
227
|
-
*
|
|
225
|
+
* use the available image decoder and otherwise keep `'renderer'`
|
|
226
|
+
* scaling. The resampler covers nearest-neighbour, bilinear, bicubic
|
|
227
|
+
* and high-quality modes; its remaining native differences also apply
|
|
228
|
+
* to the baked SVG pixels.
|
|
228
229
|
*/
|
|
229
230
|
imageResampling?: 'renderer' | 'exact';
|
|
230
231
|
/**
|
package/dist/index.js
CHANGED
|
@@ -22183,10 +22183,10 @@ var SvgContext = class {
|
|
|
22183
22183
|
const parent = this.state.clipId;
|
|
22184
22184
|
const id = this.id("c");
|
|
22185
22185
|
const attrs = { id };
|
|
22186
|
+
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22186
22187
|
if (parent) {
|
|
22187
|
-
|
|
22188
|
+
pathAttrs["clip-path"] = `url(#${parent})`;
|
|
22188
22189
|
}
|
|
22189
|
-
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22190
22190
|
if (fillRule === "evenodd") {
|
|
22191
22191
|
pathAttrs["clip-rule"] = "evenodd";
|
|
22192
22192
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -22181,10 +22181,10 @@ var SvgContext = class {
|
|
|
22181
22181
|
const parent = this.state.clipId;
|
|
22182
22182
|
const id = this.id("c");
|
|
22183
22183
|
const attrs = { id };
|
|
22184
|
+
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22184
22185
|
if (parent) {
|
|
22185
|
-
|
|
22186
|
+
pathAttrs["clip-path"] = `url(#${parent})`;
|
|
22186
22187
|
}
|
|
22187
|
-
const pathAttrs = { d: pathData(this.path, null) || "M0 0" };
|
|
22188
22188
|
if (fillRule === "evenodd") {
|
|
22189
22189
|
pathAttrs["clip-rule"] = "evenodd";
|
|
22190
22190
|
}
|