vg-print 1.0.425 → 1.1.0
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 +5 -5
- package/dist/{chunk-MW6X4KTL-E99ZLtvO.js → chunk-MW6X4KTL-BGX4AdvZ.js} +1 -1
- package/dist/{chunk-Q2Z2CG2I-D9a_DvWN.js → chunk-Q2Z2CG2I-4zALoFop.js} +1 -1
- package/dist/{chunk-Y7FY32AO-Dtm-Vmtn.js → chunk-Y7FY32AO-CBomeJj8.js} +1 -1
- package/dist/{download-DtKV8M5X.js → download-DTiI2jHs.js} +2 -2
- package/dist/{index-D2mAWLAx.js → index-CFsMCiM-.js} +56445 -49068
- package/dist/rasterize-34PCWURX-_oofvJcl.js +4 -0
- package/dist/style.css +1 -1
- package/dist/toBlob-Da4HO1NL.js +4 -0
- package/dist/toCanvas-BXi8RbS2.js +4 -0
- package/dist/{toImg-Ce7Bo0wI.js → toImg-DQPkcEdR.js} +2 -2
- package/dist/vg-print.es.js +1 -1
- package/package.json +16 -12
- package/dist/rasterize-34PCWURX-CiLGHMXC.js +0 -4
- package/dist/toBlob-PqHvWt9m.js +0 -4
- package/dist/toCanvas-BSVznIvb.js +0 -4
- package/dist/vg-print.umd.js +0 -2524
package/README.md
CHANGED
|
@@ -6,13 +6,15 @@
|
|
|
6
6
|
- npm搜索vg-print.
|
|
7
7
|
- 联系我加 QQ: 984239686 或使用首页有微信加入群聊解决问题.
|
|
8
8
|
|
|
9
|
+
[vg-print开发者文档](https://www.yuque.com/designdev/vg-print)
|
|
10
|
+
|
|
9
11
|
## 授权密钥(authKey)与默认水印
|
|
10
12
|
|
|
11
13
|
- 行为说明:
|
|
12
14
|
- 设计态(FullDesigner 设计界面):不自动注入默认水印;是否显示水印由面板中的“水印功能”设置项决定,与 `authKey` 无关。
|
|
13
15
|
- 运行态(预览、浏览器打印、导出 PDF/图片、直连打印):
|
|
14
16
|
- 无授权(未注册 `authKey`):
|
|
15
|
-
- 面板未填写内容 → 显示默认水印
|
|
17
|
+
- 面板未填写内容 → 显示默认水印
|
|
16
18
|
- 面板填写了内容 → 显示面板内容 + "试用版" 后缀
|
|
17
19
|
- 有授权(已注册有效 `authKey`):
|
|
18
20
|
- 面板未填写内容 → 不显示水印(默认水印被移除)
|
|
@@ -89,10 +91,8 @@ hiprint.register({
|
|
|
89
91
|
|
|
90
92
|

|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
https://download.csdn.net/download/github_38400706/92538739
|
|
95
|
-
```
|
|
94
|
+
[客户端工具下载](https://download.csdn.net/download/github_38400706/92538739)
|
|
95
|
+
|
|
96
96
|
## 特性
|
|
97
97
|
|
|
98
98
|
- 全功能页面组件 `FullDesigner`,直接使用,无需拼装子组件
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as a } from "./chunk-MW6X4KTL-
|
|
1
|
+
import { W as a } from "./chunk-MW6X4KTL-BGX4AdvZ.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-CBomeJj8.js";
|
|
2
|
+
import { W as t } from "./chunk-MW6X4KTL-BGX4AdvZ.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") {
|