vg-print 1.1.201 → 1.1.203

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 CHANGED
@@ -6,6 +6,8 @@
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)
10
+
9
11
  [vg-print开发者文档](https://www.yuque.com/designdev/vg-print)
10
12
 
11
13
  ## 授权密钥(authKey)与默认水印
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-BEj_i3LT.js";
1
+ import { l as b } from "./index-8Wz7LH4V.js";
2
2
  function M(e) {
3
3
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { W as a } from "./chunk-MW6X4KTL-CLVtnTDi.js";
1
+ import { W as a } from "./chunk-MW6X4KTL-BWZReFUl.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,4 +1,4 @@
1
- import { W as m } from "./chunk-MW6X4KTL-CLVtnTDi.js";
1
+ import { W as m } from "./chunk-MW6X4KTL-BWZReFUl.js";
2
2
  async function a(n, e) {
3
3
  let o = e.type;
4
4
  if (o === "svg") {
@@ -1,5 +1,5 @@
1
- import { m as f } from "./chunk-Y7FY32AO-DL5mPwq0.js";
2
- import { W as t } from "./chunk-MW6X4KTL-CLVtnTDi.js";
1
+ import { m as f } from "./chunk-Y7FY32AO-DoZv3ePX.js";
2
+ import { W as t } from "./chunk-MW6X4KTL-BWZReFUl.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") {