@hufe921/canvas-editor 0.9.31 → 0.9.32

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 (31) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -2
  3. package/dist/canvas-editor.es.js +802 -236
  4. package/dist/canvas-editor.es.js.map +1 -1
  5. package/dist/canvas-editor.umd.js +21 -17
  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/cursor/Cursor.d.ts +1 -0
  10. package/dist/src/editor/core/draw/Draw.d.ts +4 -0
  11. package/dist/src/editor/core/draw/control/Control.d.ts +1 -0
  12. package/dist/src/editor/core/draw/particle/ListParticle.d.ts +13 -0
  13. package/dist/src/editor/core/draw/particle/previewer/Previewer.d.ts +1 -0
  14. package/dist/src/editor/core/range/RangeManager.d.ts +4 -1
  15. package/dist/src/editor/core/shortcut/keys/listKeys.d.ts +2 -0
  16. package/dist/src/editor/core/shortcut/keys/titleKeys.d.ts +2 -0
  17. package/dist/src/editor/dataset/constant/Element.d.ts +2 -0
  18. package/dist/src/editor/dataset/constant/List.d.ts +4 -0
  19. package/dist/src/editor/dataset/enum/Element.d.ts +2 -1
  20. package/dist/src/editor/dataset/enum/List.d.ts +18 -0
  21. package/dist/src/editor/index.d.ts +2 -1
  22. package/dist/src/editor/interface/Element.d.ts +9 -1
  23. package/dist/src/editor/interface/Footer.d.ts +1 -0
  24. package/dist/src/editor/interface/Header.d.ts +1 -0
  25. package/dist/src/editor/interface/Listener.d.ts +3 -1
  26. package/dist/src/editor/interface/PageNumber.d.ts +1 -0
  27. package/dist/src/editor/interface/Position.d.ts +1 -0
  28. package/dist/src/editor/interface/Range.d.ts +1 -0
  29. package/dist/src/editor/interface/Row.d.ts +3 -0
  30. package/dist/src/editor/utils/element.d.ts +2 -0
  31. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,47 @@
1
+ ## [0.9.32](https://github.com/Hufe921/canvas-editor/compare/v0.9.31...v0.9.32) (2023-04-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * not wrap when exceeding container width #177 ([e8f61d9](https://github.com/Hufe921/canvas-editor/commit/e8f61d9d15c1aa5e3179e3565f956382dca9cace)), closes [#177](https://github.com/Hufe921/canvas-editor/issues/177)
7
+ * delete list element boundary error ([9a37179](https://github.com/Hufe921/canvas-editor/commit/9a37179c748af63d652735f0ad9e4c5dd65f7e23))
8
+ * error when selecting table cells #174 ([f0b6014](https://github.com/Hufe921/canvas-editor/commit/f0b6014daa4ac3ac1d88acb941aa92e183eef6fa)), closes [#174](https://github.com/Hufe921/canvas-editor/issues/174)
9
+ * header and footer compute position list error ([3b66b26](https://github.com/Hufe921/canvas-editor/commit/3b66b26c85c59468a5a5c0bfeed39d7bef793239))
10
+ * image element row margin error ([3daacc6](https://github.com/Hufe921/canvas-editor/commit/3daacc6cb80506aefd25069f8960766b85e2d88a))
11
+ * inline image ascent value ([59065bb](https://github.com/Hufe921/canvas-editor/commit/59065bb29e9e7e85cca83eb6dd5ccdd99533a183))
12
+ * paste and format element boundary error ([86569f5](https://github.com/Hufe921/canvas-editor/commit/86569f51d3a32a7c148dbd6f06b5734a98836e68))
13
+ * paste list element boundary error ([5935eb7](https://github.com/Hufe921/canvas-editor/commit/5935eb77d04824c60a4e1ffe6149097045188336))
14
+ * set paper size error #181 ([10ada8c](https://github.com/Hufe921/canvas-editor/commit/10ada8cf542e8b8f5ddd9e619637c4d22d66f0b6)), closes [#181](https://github.com/Hufe921/canvas-editor/issues/181)
15
+ * tslint error ([8202c1c](https://github.com/Hufe921/canvas-editor/commit/8202c1c67b2ff18feee09223f3f2eea4c8fc7bac))
16
+ * unset list error ([c02a96c](https://github.com/Hufe921/canvas-editor/commit/c02a96cb8a24514f8d3aa8386d915e5e9e42050f))
17
+
18
+
19
+ ### Chores
20
+
21
+ * add git pre commit hook ([ef9ee07](https://github.com/Hufe921/canvas-editor/commit/ef9ee07a55b17111011c970adc5f67ee02a93eff))
22
+
23
+
24
+ ### Documentation
25
+
26
+ * add list command ([a5b5f87](https://github.com/Hufe921/canvas-editor/commit/a5b5f8785d598ee632b3fb14ce2bcff93a497ce9))
27
+ * update schema, shortcut, option ([2f64395](https://github.com/Hufe921/canvas-editor/commit/2f64395cbdd6b0d4ab04bf40c2e113af7a0fa4c5))
28
+
29
+
30
+ ### Features
31
+
32
+ * adaptive list style during page scaling ([e53c0c5](https://github.com/Hufe921/canvas-editor/commit/e53c0c5d3b1f6e83482ed470d09bb6851600e368))
33
+ * add list and title shortcuts ([bb28755](https://github.com/Hufe921/canvas-editor/commit/bb2875516c1339d334068462905e96f28895da6f))
34
+ * add list element ([c2330a8](https://github.com/Hufe921/canvas-editor/commit/c2330a8c11d83568f406cbecc8dbad2396d0df40))
35
+ * enable keyboard event when image resizer (#179) ([fb78f0a](https://github.com/Hufe921/canvas-editor/commit/fb78f0a0aa4e19e156a09dc530e84bf86e5b861a)), closes [#179](https://github.com/Hufe921/canvas-editor/issues/179)
36
+ * handle boundary when dragging elements ([8fba929](https://github.com/Hufe921/canvas-editor/commit/8fba929fb8c0567e195ca9ecdd90f9d677c0aa3e))
37
+ * handle list boundary ([406fca3](https://github.com/Hufe921/canvas-editor/commit/406fca359034991fbde568ee3a6f981dac3f73d1))
38
+ * header,footer,page number disabled option #180 ([797b9a1](https://github.com/Hufe921/canvas-editor/commit/797b9a14dffa5e3fcdff8bbc5dd9ebc41cc5c7c8)), closes [#180](https://github.com/Hufe921/canvas-editor/issues/180)
39
+ * insert table in list element ([3ec7d71](https://github.com/Hufe921/canvas-editor/commit/3ec7d71f2e597841fe063cdd955c36a9d0187339))
40
+ * recursion format element context ([9f84285](https://github.com/Hufe921/canvas-editor/commit/9f8428576302a00d182aa3c469def0b6d3d0e708))
41
+ * set title at paragraph level ([8a56a49](https://github.com/Hufe921/canvas-editor/commit/8a56a49a0ae23fc59d2edd9ec7894756d36542c7))
42
+
43
+
44
+
1
45
  ## [0.9.31](https://github.com/Hufe921/canvas-editor/compare/v0.9.30...v0.9.31) (2023-04-07)
2
46
 
3
47
 
package/README.md CHANGED
@@ -28,14 +28,14 @@ new Editor(document.querySelector(".canvas-editor"), [
28
28
 
29
29
  ## next features
30
30
 
31
- 1. list
31
+ 1. improve list and title
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.30.png)
38
+ ![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.32.png)
39
39
 
40
40
  ## install
41
41