vg-print 1.1.203 → 1.1.205
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/README.md +1 -1
- package/dist/{chunk-MW6X4KTL-BWZReFUl.js → chunk-MW6X4KTL-BcL0iwUt.js} +1 -1
- package/dist/{chunk-Q2Z2CG2I-DxUssaM6.js → chunk-Q2Z2CG2I-WPpWTILY.js} +1 -1
- package/dist/{chunk-Y7FY32AO-DoZv3ePX.js → chunk-Y7FY32AO-CKFAwivO.js} +1 -1
- package/dist/{download-DDFRZ9l1.js → download-ubFsGJHN.js} +2 -2
- package/dist/{index-8Wz7LH4V.js → index-DIcTZZ1w.js} +10429 -10228
- package/dist/rasterize-34PCWURX-C6poM81m.js +4 -0
- package/dist/toBlob-osoHagiQ.js +4 -0
- package/dist/toCanvas-XGjd0EDo.js +4 -0
- package/dist/{toImg-WmzlGuDb.js → toImg-CuG9jaPa.js} +2 -2
- package/dist/vg-print.es.js +1 -1
- package/package.json +1 -1
- package/dist/rasterize-34PCWURX-C7Xc3XBH.js +0 -4
- package/dist/toBlob-DcwyocCu.js +0 -4
- package/dist/toCanvas-cr6MCOcR.js +0 -4
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- npm搜索vg-print.
|
|
7
7
|
- 联系我加 QQ: 984239686 或使用首页有微信加入群聊解决问题.
|
|
8
8
|
|
|
9
|
-
> **Vue 2 版本**: 如果你使用的是 Vue 2+webpack4.0以上,请查看 [vg-print](https://www.npmjs.com/package/vg-print-vue2)
|
|
9
|
+
> **Vue 2 版本**: 如果你使用的是 Vue 2+webpack4.0以上,请查看 [vg-print-vue2](https://www.npmjs.com/package/vg-print-vue2)
|
|
10
10
|
|
|
11
11
|
[vg-print开发者文档](https://www.yuque.com/designdev/vg-print)
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as a } from "./chunk-MW6X4KTL-
|
|
1
|
+
import { W as a } from "./chunk-MW6X4KTL-BcL0iwUt.js";
|
|
2
2
|
async function o(r, t) {
|
|
3
3
|
let i = await a(r, t), e = new Image();
|
|
4
4
|
return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as f } from "./chunk-Y7FY32AO-
|
|
2
|
-
import { W as t } from "./chunk-MW6X4KTL-
|
|
1
|
+
import { m as f } from "./chunk-Y7FY32AO-CKFAwivO.js";
|
|
2
|
+
import { W as t } from "./chunk-MW6X4KTL-BcL0iwUt.js";
|
|
3
3
|
async function w(n, e) {
|
|
4
4
|
let c = ((e == null ? void 0 : e.format) || (e == null ? void 0 : e.type) || "").toLowerCase(), a = c === "jpg" ? "jpeg" : c || "png", i = (e == null ? void 0 : e.filename) || `snapdom.${a}`, o = { ...e || {}, format: a, type: a };
|
|
5
5
|
if (o.dpr = 1, a === "svg") {
|