vg-print 1.0.393 → 1.0.402

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
@@ -3,15 +3,13 @@
3
3
  [中文](#chinese) | [English](#english)
4
4
 
5
5
  <span id="chinese"></span>
6
- 一个开箱即用的打印设计器组件库(Vue 3)。现在聚焦于单一组件 `FullDesigner`,同时暴露底层 `hiprint` 能力与客户端直连(`hiwebSocket`)配置,便于快速集成模板设计、预览、浏览器打印、导出 PDF/图片、直接打印等功能。
7
- 您可以直接安装引入体验功能.功能在不断完善中,请及时更新使用,欢迎反馈与建议.
8
- 没有域名限制,无网可用. 提供一对一技术支持.
9
- npm搜索vg-print.
10
- 联系我加 QQ: 984239686 或使用首页有微信加入群聊解决问题.
6
+ [开源免费]一个开箱即用的打印设计器组件库(Vue 3)。现在聚焦于单一组件 `FullDesigner`,同时暴露底层 `hiprint` 能力与客户端直连(`hiwebSocket`)配置,便于快速集成模板设计、预览、浏览器打印、导出 PDF/图片、直- 接打印等功能。
7
+ - 您可以直接安装引入体验功能.功能在不断完善中,请及时更新使用,欢迎反馈与建议,共同成长
8
+ - 没有域名限制,无网可用. 随时提供帮助和解决问题.
9
+ - npm搜索vg-print.
10
+ - 联系我加 QQ: 984239686 或使用首页有微信加入群聊解决问题.
11
11
 
12
- ## 更新日志
13
-
14
- - 详细版本变更说明请查看 [CHANGELOG](./CHANGELOG.md)。
12
+ ![自定义打印设计](https://gitee.com/gao111/electron-vg-print/raw/master/vg-print.png)
15
13
 
16
14
  ## 授权密钥(authKey)与默认水印
17
15
 
@@ -25,7 +23,7 @@ npm搜索vg-print.
25
23
  - 面板未填写内容 → 不显示水印(默认水印被移除)
26
24
  - 面板填写了内容 → 显示面板内容(无后缀)
27
25
 
28
- - 注册授权密钥:
26
+ - 注册授权密钥(密钥添加除水印):
29
27
  在项目入口(如 `main.js` 或 `App.vue`)尽早注册:
30
28
 
31
29
  ```js
@@ -88,7 +86,7 @@ hiprint.register({
88
86
 
89
87
  ```js
90
88
  { content: 'vg-print', timestamp: true }
91
- }
89
+ ```
92
90
 
93
91
 
94
92
 
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-BeJeWU2b.js";
1
+ import { l as b } from "./index-59td3odl.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-3VYIPD3A-DDT2mGuA.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-xeuc-inK.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-3VYIPD3A-DDT2mGuA.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-xeuc-inK.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-T4JIPPZO-7mbJnbRe.js";
2
- import { W as t } from "./chunk-3VYIPD3A-DDT2mGuA.js";
1
+ import { m as f } from "./chunk-T4JIPPZO-Nd28S-FV.js";
2
+ import { W as t } from "./chunk-3VYIPD3A-xeuc-inK.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") {