ht-emr 0.4.2 → 0.4.3

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 (2) hide show
  1. package/README.md +0 -109
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,109 +0,0 @@
1
- <h1 align="center">canvas-editor</h1>
2
-
3
- <p align="center">
4
- <a href="https://trendshift.io/repositories/8401" target="_blank"><img src="https://trendshift.io/api/badge/repositories/8401" alt="Hufe921%2Fcanvas-editor | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
5
- </p>
6
-
7
- <p align="center">
8
- <a href="https://www.npmjs.com/package/@hufe921/canvas-editor" target="_blank"><img src="https://img.shields.io/npm/v/@hufe921/canvas-editor.svg?sanitize=true" alt="Version"></a>
9
- <a href="https://github.com/hufe921/canvas-editor/actions" target="_blank">
10
- <img alt="Cypress Passing" src="https://github.com/hufe921/canvas-editor/workflows/cypress/badge.svg" />
11
- </a>
12
- <a href="https://github.com/hufe921/canvas-editor/graphs/contributors" target="_blank">
13
- <img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/hufe921/canvas-editor" />
14
- </a>
15
- <a href="https://www.npmjs.com/package/@hufe921/canvas-editor" target="_blank"><img src="https://img.shields.io/npm/l/@hufe921/canvas-editor.svg?sanitize=true" alt="License"></a>
16
- <a href="https://github.com/Hufe921/canvas-editor/issues/new/choose" target="_blank"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs"></a>
17
- <a href="https://zread.ai/Hufe921/canvas-editor" target="_blank"><img src="https://img.shields.io/badge/Ask_Zread-_.svg?style=flat&color=00b0aa&labelColor=000000&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZ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iA0TDQgMTJaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00IDEyTDEyIDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K&logoColor=ffffff" alt="zread"/></a>
18
- </p>
19
-
20
- <p align="center"> a rich text editor by canvas/svg</p>
21
-
22
- <p align="center">
23
- <a href="https://hufe.club/canvas-editor" target="_blank">View Demo</a>
24
- ·
25
- <a href="https://hufe.club/canvas-editor-docs" target="_blank">View Docs</a>
26
- ·
27
- <a href="https://github.com/Hufe921/canvas-editor/issues/new?assignees=&labels=&projects=&template=bug_report.yml" target="_blank">Report Bug</a>
28
- ·
29
- <a href="https://github.com/Hufe921/canvas-editor/issues/new?assignees=&labels=%3Asparkles%3A+feature+request&projects=&template=feature_request.yml" target="_blank">Request Feature</a>
30
- ·
31
- <a href="https://github.com/Hufe921/canvas-editor/discussions" target="_blank">FAQ</a>
32
- </p>
33
-
34
- <p align="center">Love the project? Please consider <a href="https://hufe.club/donate.jpg" target="_blank">donating(赞助)</a> to help it improve!</p>
35
-
36
- ## Tips
37
-
38
- 1. Official plugin: [canvas-editor-plugin](https://github.com/Hufe921/canvas-editor-plugin)
39
- 2. The render layer by svg is under development, see [feature/svg](https://github.com/Hufe921/canvas-editor/tree/feature/svg)
40
- 3. The export pdf feature is available now, see [feature/pdf](https://github.com/Hufe921/canvas-editor/tree/feature/pdf)
41
- 4. The AI-powered text processing demo, see [feature/ai](https://github.com/Hufe921/canvas-editor/tree/feature/ai)
42
- 5. Table pagination [#41](https://github.com/Hufe921/canvas-editor/issues/41) is under active development, see: [poc/table-paging](https://github.com/Hufe921/canvas-editor/tree/poc/table-paging) · [demo](https://hufe.club/canvas-editor-table/)
43
-
44
- ## Basic usage
45
-
46
- ```bash
47
- npm i @hufe921/canvas-editor --save
48
- ```
49
-
50
- ```html
51
- <div class="canvas-editor"></div>
52
- ```
53
-
54
- ```javascript
55
- import Editor from '@hufe921/canvas-editor'
56
-
57
- new Editor(document.querySelector('.canvas-editor'), {
58
- main: [
59
- {
60
- value: 'Hello World'
61
- }
62
- ]
63
- })
64
- ```
65
-
66
- ## Features
67
-
68
- - Rich text operations (Undo, Redo, Font, Size, Bold, Italic, Underline, Strikeout, Superscript, Alignment, Title, List, ...)
69
- - Insert elements (Table, Image, Link, Code Block, Page Break, Math Formula, Date Picker, Block, ...)
70
- - Print (Based on canvas to picture, pdf drawing)
71
- - Controls (Select, Text, Date, Radio, Checkbox)
72
- - Contextmenu (Internal, Custom)
73
- - Shortcut keys (Internal, Custom)
74
- - Drag and Drop(Text, Element, Control)
75
- - Header, Footer, Page Number
76
- - Page Margin
77
- - Watermark
78
- - Pagination
79
- - Comment
80
- - Catalog
81
-
82
- ## Roadmap
83
-
84
- 1. Table paging
85
- 2. Control rules
86
- 3. Improve performance
87
- 4. [CRDT](https://github.com/Hufe921/canvas-editor/tree/feature/CRDT)
88
-
89
- ## Snapshot
90
-
91
- ![image](https://github.com/Hufe921/canvas-editor/blob/main/src/assets/snapshots/main_v0.9.35.png)
92
-
93
- ## Install
94
-
95
- `yarn`
96
-
97
- ## Dev
98
-
99
- `npm run dev`
100
-
101
- ## Build
102
-
103
- #### app
104
-
105
- `npm run build`
106
-
107
- #### lib
108
-
109
- `npm run lib`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ht-emr",
3
3
  "author": "swj",
4
4
  "license": "MIT",
5
- "version": "0.4.2",
5
+ "version": "0.4.3",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",