canvas-drawing-editor 2.0.10 → 2.0.11

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.
Files changed (3) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +2 -10
  3. package/package.json +3 -2
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 typsusan
4
+
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:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
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.
22
+
package/README.md CHANGED
@@ -39,7 +39,7 @@ npm install canvas-drawing-editor
39
39
  </style>
40
40
  </head>
41
41
  <body>
42
- <canvas-drawing-editor title="My Canvas" show-minimap="true"></canvas-drawing-editor>
42
+ <canvas-drawing-editor title="My Canvas"></canvas-drawing-editor>
43
43
 
44
44
  <script src="https://unpkg.com/canvas-drawing-editor/dist/canvas-drawing-editor.umd.js"></script>
45
45
  </body>
@@ -52,7 +52,6 @@ npm install canvas-drawing-editor
52
52
  <template>
53
53
  <canvas-drawing-editor
54
54
  title="Vue Canvas"
55
- show-minimap="true"
56
55
  style="width: 100%; height: 600px;"
57
56
  ></canvas-drawing-editor>
58
57
  </template>
@@ -90,7 +89,6 @@ import 'canvas-drawing-editor'
90
89
  <template>
91
90
  <canvas-drawing-editor
92
91
  title="Vue2 Canvas"
93
- show-minimap="true"
94
92
  style="width: 100%; height: 600px;"
95
93
  ></canvas-drawing-editor>
96
94
  </template>
@@ -105,7 +103,6 @@ function App() {
105
103
  return (
106
104
  <canvas-drawing-editor
107
105
  title="React Canvas"
108
- show-minimap="true"
109
106
  style={{ width: '100%', height: '600px' }}
110
107
  />
111
108
  );
@@ -127,7 +124,6 @@ function App() {
127
124
  | `show-export` | boolean | true | Show JSON save |
128
125
  | `show-import` | boolean | true | Show JSON load |
129
126
  | `show-color` | boolean | true | Show color picker |
130
- | `show-minimap` | boolean | true | Show navigation minimap |
131
127
  | `initial-data` | string | - | Initial JSON data to render (see format below) |
132
128
 
133
129
  ### 📊 Initial Data
@@ -270,7 +266,7 @@ npm install canvas-drawing-editor
270
266
  </style>
271
267
  </head>
272
268
  <body>
273
- <canvas-drawing-editor title="我的画板" show-minimap="true"></canvas-drawing-editor>
269
+ <canvas-drawing-editor title="我的画板"></canvas-drawing-editor>
274
270
 
275
271
  <script src="https://unpkg.com/canvas-drawing-editor/dist/canvas-drawing-editor.umd.js"></script>
276
272
  </body>
@@ -283,7 +279,6 @@ npm install canvas-drawing-editor
283
279
  <template>
284
280
  <canvas-drawing-editor
285
281
  title="Vue 画板"
286
- show-minimap="true"
287
282
  style="width: 100%; height: 600px;"
288
283
  ></canvas-drawing-editor>
289
284
  </template>
@@ -321,7 +316,6 @@ import 'canvas-drawing-editor'
321
316
  <template>
322
317
  <canvas-drawing-editor
323
318
  title="Vue2 画板"
324
- show-minimap="true"
325
319
  style="width: 100%; height: 600px;"
326
320
  ></canvas-drawing-editor>
327
321
  </template>
@@ -336,7 +330,6 @@ function App() {
336
330
  return (
337
331
  <canvas-drawing-editor
338
332
  title="React 画板"
339
- show-minimap="true"
340
333
  style={{ width: '100%', height: '600px' }}
341
334
  />
342
335
  );
@@ -358,7 +351,6 @@ function App() {
358
351
  | `show-export` | boolean | true | 显示 JSON 保存 |
359
352
  | `show-import` | boolean | true | 显示 JSON 加载 |
360
353
  | `show-color` | boolean | true | 显示颜色选择器 |
361
- | `show-minimap` | boolean | true | 显示导航小地图 |
362
354
  | `initial-data` | string | - | 初始化 JSON 数据(格式见下方) |
363
355
 
364
356
  ### 📊 初始化数据
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-drawing-editor",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "A powerful canvas-based drawing editor Web Component - Zero dependencies, works with Vue 2/3, React, Angular, and vanilla HTML",
5
5
  "type": "module",
6
6
  "main": "dist/canvas-drawing-editor.umd.js",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "files": [
17
17
  "dist",
18
- "README.md"
18
+ "README.md",
19
+ "LICENSE"
19
20
  ],
20
21
  "scripts": {
21
22
  "dev": "vite",