print-canvas-designer 0.1.1 → 1.0.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/LICENSE +16 -32
- package/README.md +8 -18
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/package.json +2 -3
- package/COMMERCIAL_LICENSE.md +0 -47
package/LICENSE
CHANGED
|
@@ -1,37 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 junjie-zeng
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
7
11
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- build prototypes and proof-of-concept integrations;
|
|
11
|
-
- create custom components, custom inspectors, and business-specific examples for evaluation;
|
|
12
|
-
- make local modifications for evaluation and non-commercial use.
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
packages to public npm registries, public repositories, or other public channels;
|
|
22
|
-
- remove, hide, or modify copyright, license, or attribution notices;
|
|
23
|
-
- use the software outside the scope of this license.
|
|
24
|
-
|
|
25
|
-
Commercial use requires a paid commercial license. See COMMERCIAL_LICENSE.md for the
|
|
26
|
-
commercial license outline and contact the author for written authorization.
|
|
27
|
-
|
|
28
|
-
This software is provided "as is", without warranty of any kind, express or implied,
|
|
29
|
-
including but not limited to the warranties of merchantability, fitness for a particular
|
|
30
|
-
purpose, and noninfringement. In no event shall the author or copyright holder be liable
|
|
31
|
-
for any claim, damages, or other liability arising from the software or the use of the
|
|
32
|
-
software.
|
|
33
|
-
|
|
34
|
-
The author shall not be responsible for any business interruption, data loss, printing
|
|
35
|
-
errors, label errors, lost profits, or other direct, indirect, incidental, special, or
|
|
36
|
-
consequential losses caused by the use of, inability to use, or integration of the
|
|
37
|
-
software.
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Vue 3 打印模板画布 SDK,用于在业务系统中搭建标签、单据、鞋盒标、物流面单等打印模板。它既可以作为完整编辑器使用,也可以只接入画布,由业务自己实现组件面板、属性面板和数据保存逻辑。
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- Playground
|
|
7
|
-
- GitHub Demo
|
|
5
|
+
- [在线演示](https://junjie-zeng.github.io/projects/print-canvas-designer)
|
|
6
|
+
- [Playground](https://junjie-zeng.github.io/projects/print-canvas-designer/playground.html)
|
|
7
|
+
- [GitHub Demo](https://github.com/junjie-zeng/print-canvas-examples)
|
|
8
|
+
- [集成示例](https://junjie-zeng.github.io/projects/print-canvas-examples)
|
|
8
9
|
|
|
9
10
|
## 能做什么
|
|
10
11
|
|
|
@@ -121,26 +122,15 @@ designer.save()
|
|
|
121
122
|
|
|
122
123
|
## 打开演示
|
|
123
124
|
|
|
124
|
-
|
|
125
|
+
线上演示地址:
|
|
125
126
|
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
- GitHub Demo
|
|
127
|
+
- [API](https://junjie-zeng.github.io/projects/print-canvas-designer)
|
|
128
|
+
- [画布演示](https://junjie-zeng.github.io/projects/print-canvas-designer/playground.html)
|
|
129
|
+
- [GitHub Demo](https://github.com/junjie-zeng/print-canvas-examples)
|
|
129
130
|
|
|
130
|
-
## 版本要求
|
|
131
131
|
|
|
132
|
-
- Vue:`^3.4.0 || ^3.5.0`
|
|
133
|
-
- Node.js:建议 18 及以上
|
|
134
132
|
|
|
135
|
-
## 授权说明
|
|
136
133
|
|
|
137
|
-
本包可用于学习、评估和非商业场景。商业项目、企业内部系统、SaaS 平台、客户交付项目、生产环境使用,需要先获得商业授权。
|
|
138
|
-
|
|
139
|
-
商业授权允许在授权范围内集成到业务系统中,也允许编写自定义组件、自定义属性面板和业务渲染逻辑。未经额外书面授权,不允许将本项目或其衍生版本作为组件库、SDK、低代码平台、打印设计器、模板设计器或同类竞争产品进行转售、转授权、公开发布。
|
|
140
|
-
|
|
141
|
-
具体规则见包内 `LICENSE` 和 `COMMERCIAL_LICENSE.md`。第三方依赖声明见 `THIRD_PARTY_NOTICES.md`。
|
|
142
|
-
|
|
143
|
-
如中文说明与包内英文授权文件存在差异,以英文授权文件为准。
|
|
144
134
|
|
|
145
135
|
## 说明
|
|
146
136
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`print-canvas-designer` includes or depends on third-party open source software. These third-party packages are licensed under their own license terms.
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The MIT license for `print-canvas-designer` does not replace or remove the license terms of these third-party packages.
|
|
6
6
|
|
|
7
7
|
## Runtime Dependencies
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "print-canvas-designer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A lightweight Vue 3 print canvas designer.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "MIT",
|
|
7
7
|
"homepage": "https://junjie-zeng.github.io/projects/print-canvas-designer/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
43
|
-
"COMMERCIAL_LICENSE.md",
|
|
44
43
|
"THIRD_PARTY_NOTICES.md"
|
|
45
44
|
],
|
|
46
45
|
"peerDependencies": {
|
package/COMMERCIAL_LICENSE.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Commercial License
|
|
2
|
-
|
|
3
|
-
`print-canvas-designer` can be used for evaluation, learning, and non-commercial use under the repository `LICENSE`.
|
|
4
|
-
|
|
5
|
-
Commercial use requires a separate written commercial license from the author.
|
|
6
|
-
|
|
7
|
-
## When You Need a Commercial License
|
|
8
|
-
|
|
9
|
-
You need a commercial license if you use this package in any of the following scenarios:
|
|
10
|
-
|
|
11
|
-
- commercial products;
|
|
12
|
-
- internal business systems;
|
|
13
|
-
- SaaS platforms;
|
|
14
|
-
- customer delivery projects;
|
|
15
|
-
- production environments related to business operations;
|
|
16
|
-
- paid development, outsourcing, or implementation projects.
|
|
17
|
-
|
|
18
|
-
## What a Commercial License Can Allow
|
|
19
|
-
|
|
20
|
-
A commercial license may allow the authorized party to:
|
|
21
|
-
|
|
22
|
-
- integrate `print-canvas-designer` into authorized commercial projects;
|
|
23
|
-
- use it in production environments within the agreed scope;
|
|
24
|
-
- create custom components, custom inspectors, and business-specific rendering logic;
|
|
25
|
-
- customize styles, layouts, and interactions for the authorized project;
|
|
26
|
-
- make necessary source modifications for internal use within the authorized scope;
|
|
27
|
-
- receive updates and technical support within the agreed period.
|
|
28
|
-
|
|
29
|
-
## Restrictions
|
|
30
|
-
|
|
31
|
-
Unless explicitly permitted in a separate written agreement, the authorized party may not:
|
|
32
|
-
|
|
33
|
-
- redistribute, resell, rent, sublicense, or repackage this project or modified versions as a component library, SDK, low-code platform, print designer, template designer, or competing product;
|
|
34
|
-
- publish the source code, modified source code, build artifacts, or commercial feature packages to public npm registries, public repositories, or other public channels;
|
|
35
|
-
- remove, hide, or modify copyright, license, or attribution notices;
|
|
36
|
-
- share a single-project license across unrelated projects or organizations;
|
|
37
|
-
- transfer the license to another company, team, or project without written permission.
|
|
38
|
-
|
|
39
|
-
## License Scope
|
|
40
|
-
|
|
41
|
-
Commercial authorization can be granted by project, company, deployment scope, support period, and source access scope. The final scope is determined by the signed commercial agreement or written authorization.
|
|
42
|
-
|
|
43
|
-
## Contact
|
|
44
|
-
|
|
45
|
-
For commercial authorization, integration support, or source licensing, contact the author through the project website or GitHub repository.
|
|
46
|
-
|
|
47
|
-
This document is a commercial license outline. The final commercial license terms are subject to the written agreement between the author and the authorized party.
|