@hufe921/canvas-editor 0.9.28 → 0.9.30

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 (30) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +2 -2
  3. package/dist/canvas-editor.es.js +391 -96
  4. package/dist/canvas-editor.es.js.map +1 -1
  5. package/dist/canvas-editor.umd.js +16 -14
  6. package/dist/canvas-editor.umd.js.map +1 -1
  7. package/dist/src/editor/core/command/Command.d.ts +3 -1
  8. package/dist/src/editor/core/command/CommandAdapt.d.ts +2 -0
  9. package/dist/src/editor/core/draw/Draw.d.ts +3 -0
  10. package/dist/src/editor/core/draw/frame/Footer.d.ts +2 -0
  11. package/dist/src/editor/core/draw/frame/Header.d.ts +2 -0
  12. package/dist/src/editor/core/draw/particle/TextParticle.d.ts +1 -0
  13. package/dist/src/editor/core/listener/Listener.d.ts +2 -1
  14. package/dist/src/editor/dataset/constant/Common.d.ts +1 -0
  15. package/dist/src/editor/dataset/constant/Element.d.ts +2 -0
  16. package/dist/src/editor/dataset/constant/PageNumber.d.ts +4 -0
  17. package/dist/src/editor/dataset/constant/Title.d.ts +6 -0
  18. package/dist/src/editor/dataset/enum/Common.d.ts +4 -0
  19. package/dist/src/editor/dataset/enum/Element.d.ts +2 -1
  20. package/dist/src/editor/dataset/enum/Title.d.ts +8 -0
  21. package/dist/src/editor/index.d.ts +3 -2
  22. package/dist/src/editor/interface/Editor.d.ts +2 -0
  23. package/dist/src/editor/interface/Element.d.ts +7 -1
  24. package/dist/src/editor/interface/Listener.d.ts +3 -1
  25. package/dist/src/editor/interface/PageNumber.d.ts +3 -0
  26. package/dist/src/editor/interface/Title.d.ts +9 -0
  27. package/dist/src/editor/utils/clipboard.d.ts +1 -0
  28. package/dist/src/editor/utils/element.d.ts +2 -0
  29. package/dist/src/editor/utils/index.d.ts +1 -0
  30. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,66 @@
1
+ ## [0.9.30](https://github.com/Hufe921/canvas-editor/compare/v0.9.29...v0.9.30) (2023-04-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set defaultTrMinHeight option invalid #168 ([045e2ff](https://github.com/Hufe921/canvas-editor/commit/045e2ffe4ece76d46a8a579fad267f14a6778b1e)), closes [#168](https://github.com/Hufe921/canvas-editor/issues/168)
7
+
8
+
9
+ ### Chores
10
+
11
+ * add image accept values ([189ca73](https://github.com/Hufe921/canvas-editor/commit/189ca73c3213cb9b76fa84df400f9b3624ec0d42))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * add page number format option ([72e97b7](https://github.com/Hufe921/canvas-editor/commit/72e97b7883f0f84961afd7ed93b740d1915f731c))
17
+ * add title api and option ([a9b4438](https://github.com/Hufe921/canvas-editor/commit/a9b44387bd174cbd1bab8c308bb732f68800ef34))
18
+ * add zone change listener ([3cba30b](https://github.com/Hufe921/canvas-editor/commit/3cba30bcf969a9b777885a4ca6daca3019afd9d0))
19
+ * improve editor options ([51d4a03](https://github.com/Hufe921/canvas-editor/commit/51d4a036a0e1c99e48a02b326ab459319536ab7b))
20
+
21
+
22
+ ### Features
23
+
24
+ * add page number format option ([4987723](https://github.com/Hufe921/canvas-editor/commit/4987723f27684a3f4ba4e9952b75c16926f4a07b))
25
+ * add title element ([9701b21](https://github.com/Hufe921/canvas-editor/commit/9701b2153e4de71697776765081f39bbfda82eb7))
26
+ * add zone change listener ([86871c3](https://github.com/Hufe921/canvas-editor/commit/86871c310be1402f03831ca182698e7ba78a7912))
27
+ * format title element value ([1fc276f](https://github.com/Hufe921/canvas-editor/commit/1fc276fbae6a0dd7c8cff39a5c5ca6aa7d7f47ed))
28
+
29
+
30
+ ### Performance Improvements
31
+
32
+ * copy title and table element ([03cd85f](https://github.com/Hufe921/canvas-editor/commit/03cd85f423d207eea7f88c4267552f4af6945030))
33
+
34
+
35
+ ### Tests
36
+
37
+ * add title test case ([c275216](https://github.com/Hufe921/canvas-editor/commit/c275216fb4626e811d702c7f72f1e987823c4787))
38
+
39
+
40
+
41
+ ## [0.9.29](https://github.com/Hufe921/canvas-editor/compare/v0.9.28...v0.9.29) (2023-04-01)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * delete rowFlex when row position change #164 ([5c3ce57](https://github.com/Hufe921/canvas-editor/commit/5c3ce57c24253cfe9b16ddc682f0f75aaab653fd)), closes [#164](https://github.com/Hufe921/canvas-editor/issues/164)
47
+ * failed to execute 'toDataURL' #163 ([f11d5c8](https://github.com/Hufe921/canvas-editor/commit/f11d5c806ea5cc308b59df4eaa58bf82998a3c50)), closes [#163](https://github.com/Hufe921/canvas-editor/issues/163)
48
+ * render composing text error ([310e0e9](https://github.com/Hufe921/canvas-editor/commit/310e0e91fbe4ef64343b5cc746ec4e7d471df974))
49
+ * table cell text render position error #166 ([266915a](https://github.com/Hufe921/canvas-editor/commit/266915af09be90a1a12092fdff2d266d62f3c90d)), closes [#166](https://github.com/Hufe921/canvas-editor/issues/166)
50
+ * table cell vertical align error after page scaled #165 ([1fa1d10](https://github.com/Hufe921/canvas-editor/commit/1fa1d10fc9c279eb1d91b804484019d02fec945d)), closes [#165](https://github.com/Hufe921/canvas-editor/issues/165)
51
+
52
+
53
+ ### Documentation
54
+
55
+ * update snapshot ([e0791cf](https://github.com/Hufe921/canvas-editor/commit/e0791cf5f74341547a86809e80c647a3f0fa5a2a))
56
+
57
+
58
+ ### Features
59
+
60
+ * avoid punctuation at the beginning of a row ([29a988a](https://github.com/Hufe921/canvas-editor/commit/29a988a1d4d57a98068a299986ddbe38a52d80a4))
61
+
62
+
63
+
1
64
  ## [0.9.28](https://github.com/Hufe921/canvas-editor/compare/v0.9.27...v0.9.28) (2023-03-27)
2
65
 
3
66
 
package/README.md CHANGED
@@ -28,14 +28,14 @@ new Editor(document.querySelector(".canvas-editor"), [
28
28
 
29
29
  ## next features
30
30
 
31
- 1. line beginning punctuation
31
+ 1. list
32
32
  2. improve performance
33
33
  3. control rules
34
34
  4. table paging
35
35
 
36
36
  ## snapshot
37
37
 
38
- ![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.23.png)
38
+ ![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.30.png)
39
39
 
40
40
  ## install
41
41