@hufe921/canvas-editor 0.9.34 → 0.9.36

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 (29) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +6 -6
  3. package/dist/canvas-editor.es.js +606 -534
  4. package/dist/canvas-editor.es.js.map +1 -1
  5. package/dist/canvas-editor.umd.js +18 -18
  6. package/dist/canvas-editor.umd.js.map +1 -1
  7. package/dist/src/editor/core/command/Command.d.ts +77 -163
  8. package/dist/src/editor/core/command/CommandAdapt.d.ts +2 -0
  9. package/dist/src/editor/core/cursor/Cursor.d.ts +2 -0
  10. package/dist/src/editor/core/draw/Draw.d.ts +5 -0
  11. package/dist/src/editor/core/draw/frame/Footer.d.ts +1 -1
  12. package/dist/src/editor/core/draw/frame/Header.d.ts +1 -1
  13. package/dist/src/editor/core/draw/frame/Placeholder.d.ts +15 -0
  14. package/dist/src/editor/core/draw/particle/table/TableParticle.d.ts +5 -0
  15. package/dist/src/editor/core/event/GlobalEvent.d.ts +1 -0
  16. package/dist/src/editor/core/history/HistoryManager.d.ts +3 -1
  17. package/dist/src/editor/core/observer/SelectionObserver.d.ts +3 -1
  18. package/dist/src/editor/core/range/RangeManager.d.ts +1 -0
  19. package/dist/src/editor/dataset/constant/Element.d.ts +3 -0
  20. package/dist/src/editor/dataset/constant/Placeholder.d.ts +2 -0
  21. package/dist/src/editor/interface/Draw.d.ts +1 -1
  22. package/dist/src/editor/interface/Editor.d.ts +3 -0
  23. package/dist/src/editor/interface/PageNumber.d.ts +2 -0
  24. package/dist/src/editor/interface/Placeholder.d.ts +7 -0
  25. package/dist/src/editor/interface/table/Td.d.ts +1 -0
  26. package/dist/src/editor/utils/clipboard.d.ts +1 -0
  27. package/dist/src/editor/utils/element.d.ts +4 -1
  28. package/dist/src/editor/utils/index.d.ts +2 -1
  29. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,69 @@
1
+ ## [0.9.36](https://github.com/Hufe921/canvas-editor/compare/v0.9.35...v0.9.36) (2023-06-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * close toolbar menu when click outside #192 ([9c39c54](https://github.com/Hufe921/canvas-editor/commit/9c39c540ff4a2a2f3806f8cea6b053bc6f2e7279)), closes [#192](https://github.com/Hufe921/canvas-editor/issues/192)
7
+ * copy highlight element #193 ([88ebfd2](https://github.com/Hufe921/canvas-editor/commit/88ebfd2f74b4cb1f3686478d0bba6a8231020ccb)), closes [#193](https://github.com/Hufe921/canvas-editor/issues/193)
8
+ * inability to select list pasted into table #206 ([53dd962](https://github.com/Hufe921/canvas-editor/commit/53dd9628caa8de064f6e87bef905113947273d84)), closes [#206](https://github.com/Hufe921/canvas-editor/issues/206)
9
+ * multiple editor instances conflict #205 ([68bea13](https://github.com/Hufe921/canvas-editor/commit/68bea13333a2ea10ec537700a8fd6e9295d963fb)), closes [#205](https://github.com/Hufe921/canvas-editor/issues/205)
10
+ * not allow change zone in continuous mode #201 ([16c2e9a](https://github.com/Hufe921/canvas-editor/commit/16c2e9a6d7d325aa33a8e8b5aec518f9e9d3861a)), closes [#201](https://github.com/Hufe921/canvas-editor/issues/201)
11
+ * prevent page auto scroll when no selection #204 ([183e644](https://github.com/Hufe921/canvas-editor/commit/183e644089f6ec471a9ad26a037873e4b132911d)), closes [#204](https://github.com/Hufe921/canvas-editor/issues/204)
12
+ * remove header and footer in continuous mode ([b92bd40](https://github.com/Hufe921/canvas-editor/commit/b92bd407ddc64e5663c24a63a1fb7dadd15fbf58))
13
+
14
+
15
+ ### Chores
16
+
17
+ * update mock data ([2120780](https://github.com/Hufe921/canvas-editor/commit/21207808a3987136f18f3a49b55b909facce54b9))
18
+ * update README.md ([7594942](https://github.com/Hufe921/canvas-editor/commit/759494272a64129533f6f74da2ea8760657f0044))
19
+
20
+
21
+ ### Documentation
22
+
23
+ * add editor placeholder ([3a371e6](https://github.com/Hufe921/canvas-editor/commit/3a371e6ee312b7bff8bf8091a42a7ce5df1623bb))
24
+ * add word tool ([e4ea580](https://github.com/Hufe921/canvas-editor/commit/e4ea580263443cbc9cb978272d11bf35c8423d11))
25
+
26
+
27
+ ### Features
28
+
29
+ * add editor placeholder ([5ded5c3](https://github.com/Hufe921/canvas-editor/commit/5ded5c3428fc70e6074d9c9101ba34ef7eeb7d19))
30
+ * add history max record option #203 ([c467505](https://github.com/Hufe921/canvas-editor/commit/c46750557ad14ec2625d8aaef8a5ae08eb10ac96)), closes [#203](https://github.com/Hufe921/canvas-editor/issues/203)
31
+ * add word tool ([2a3c2e2](https://github.com/Hufe921/canvas-editor/commit/2a3c2e2ec674beed8b20f28764e4d1bb636ce83c))
32
+
33
+
34
+ ### Performance Improvements
35
+
36
+ * cursor selection at the beginning of a line #202 ([a133585](https://github.com/Hufe921/canvas-editor/commit/a1335850a3f0ce1b90a2bf13ad8532f0ccf06cff)), closes [#202](https://github.com/Hufe921/canvas-editor/issues/202)
37
+ * range style callback and inactive cursor style #204 ([7628eee](https://github.com/Hufe921/canvas-editor/commit/7628eee283da7236961f61c48c42625442ae02ed)), closes [#204](https://github.com/Hufe921/canvas-editor/issues/204)
38
+
39
+
40
+
41
+ ## [0.9.35](https://github.com/Hufe921/canvas-editor/compare/v0.9.34...v0.9.35) (2023-05-31)
42
+
43
+
44
+ ### Chores
45
+
46
+ * add CRDT CSpell word ([ef31552](https://github.com/Hufe921/canvas-editor/commit/ef315526be244c210b2a2a220dd3bed986660d75))
47
+
48
+
49
+ ### Documentation
50
+
51
+ * starting page number option ([618cb47](https://github.com/Hufe921/canvas-editor/commit/618cb47f77f2aed05d4ca72135ea5312b6d26b00))
52
+ * table cell background color ([9225bef](https://github.com/Hufe921/canvas-editor/commit/9225bef99192d8c4848536d973bb2467ea205f27))
53
+ * update next features ([c6ea0a6](https://github.com/Hufe921/canvas-editor/commit/c6ea0a655c997645cda6df7ced4377707973680f))
54
+
55
+
56
+ ### Features
57
+
58
+ * copy and paste sub and sup elements ([a500402](https://github.com/Hufe921/canvas-editor/commit/a500402dd401c6eac55222a366f5fc596c27d7c3))
59
+ * copy and paste table cell background color ([c97c6ef](https://github.com/Hufe921/canvas-editor/commit/c97c6eff4047a91e68079cc9b228f41e02bef1ab))
60
+ * optimize paste title ([bf52e25](https://github.com/Hufe921/canvas-editor/commit/bf52e2588b3af426382334d45d16d1a33510fde1))
61
+ * starting page number option ([bfc61a8](https://github.com/Hufe921/canvas-editor/commit/bfc61a8a06b6c2c09fd968767f2a6ccbe280fe55))
62
+ * table cell background color ([dbcab3b](https://github.com/Hufe921/canvas-editor/commit/dbcab3b48557f5a4ba77b9e6ec40b7ac8d36cc40))
63
+ * unordered list default style ([c8b2a7e](https://github.com/Hufe921/canvas-editor/commit/c8b2a7e59fdd97ac268b0a38e80bac98dfd797ce))
64
+
65
+
66
+
1
67
  ## [0.9.34](https://github.com/Hufe921/canvas-editor/compare/v0.9.33...v0.9.34) (2023-05-16)
2
68
 
3
69
 
package/README.md CHANGED
@@ -28,15 +28,15 @@ new Editor(document.querySelector(".canvas-editor"), [
28
28
 
29
29
  ## next features
30
30
 
31
- 1. improve page number
32
- 2. improve list and title
33
- 3. improve performance
34
- 4. control rules
35
- 5. table paging
31
+ 1. improve list and title
32
+ 2. improve performance
33
+ 3. control rules
34
+ 4. table paging
35
+ 5. [CRDT](https://github.com/Hufe921/canvas-editor/tree/feature/CRDT)
36
36
 
37
37
  ## snapshot
38
38
 
39
- ![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.32.png)
39
+ ![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.35.png)
40
40
 
41
41
  ## install
42
42