@licium/editor-plugin-chart 3.0.2 → 3.2.5
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.
- package/README.md +19 -16
- package/package.json +3 -3
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
> This is a fork of the [Toast UI Editor](https://github.com/natorus87/tui.editor) maintained by `@licium`.
|
|
2
|
+
> Original repository: https://github.com/natorus87/tui.editor
|
|
3
|
+
|
|
1
4
|
# TOAST UI Editor : Chart Plugin
|
|
2
5
|
|
|
3
|
-
> This is a plugin of [TOAST UI Editor](https://github.com/
|
|
6
|
+
> This is a plugin of [TOAST UI Editor](https://github.com/natorus87/tui.editor/tree/master/apps/editor) to render chart.
|
|
4
7
|
|
|
5
|
-
[](https://www.npmjs.com/package/@licium/editor-plugin-chart)
|
|
6
9
|
|
|
7
10
|

|
|
8
11
|
|
|
@@ -38,14 +41,14 @@ The bundle files include all dependencies of this plugin.
|
|
|
38
41
|
|
|
39
42
|
## 📦 Usage npm
|
|
40
43
|
|
|
41
|
-
To use the plugin, [`@
|
|
44
|
+
To use the plugin, [`@licium/editor`](https://github.com/natorus87/tui.editor/tree/master/apps/editor) must be installed.
|
|
42
45
|
|
|
43
|
-
> Ref. [Getting Started](https://github.com/
|
|
46
|
+
> Ref. [Getting Started](https://github.com/natorus87/tui.editor/blob/master/docs/en/getting-started.md)
|
|
44
47
|
|
|
45
48
|
### Install
|
|
46
49
|
|
|
47
50
|
```sh
|
|
48
|
-
$ npm install @
|
|
51
|
+
$ npm install @licium/editor-plugin-chart
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
### Import Plugin
|
|
@@ -57,7 +60,7 @@ Along with the plugin, the plugin's dependency style must be imported. The `char
|
|
|
57
60
|
```js
|
|
58
61
|
import '@toast-ui/chart/dist/toastui-chart.css';
|
|
59
62
|
|
|
60
|
-
import chart from '@
|
|
63
|
+
import chart from '@licium/editor-plugin-chart';
|
|
61
64
|
```
|
|
62
65
|
|
|
63
66
|
#### CommonJS
|
|
@@ -65,7 +68,7 @@ import chart from '@toast-ui/editor-plugin-chart';
|
|
|
65
68
|
```js
|
|
66
69
|
require('@toast-ui/chart/dist/toastui-chart.css');
|
|
67
70
|
|
|
68
|
-
const chart = require('@
|
|
71
|
+
const chart = require('@licium/editor-plugin-chart');
|
|
69
72
|
```
|
|
70
73
|
|
|
71
74
|
### Create Instance
|
|
@@ -76,8 +79,8 @@ const chart = require('@toast-ui/editor-plugin-chart');
|
|
|
76
79
|
// ...
|
|
77
80
|
import '@toast-ui/chart/dist/toastui-chart.css';
|
|
78
81
|
|
|
79
|
-
import Editor from '@
|
|
80
|
-
import chart from '@
|
|
82
|
+
import Editor from '@licium/editor';
|
|
83
|
+
import chart from '@licium/editor-plugin-chart';
|
|
81
84
|
|
|
82
85
|
const editor = new Editor({
|
|
83
86
|
// ...
|
|
@@ -91,8 +94,8 @@ const editor = new Editor({
|
|
|
91
94
|
// ...
|
|
92
95
|
import '@toast-ui/chart/dist/toastui-chart.css';
|
|
93
96
|
|
|
94
|
-
import Viewer from '@
|
|
95
|
-
import chart from '@
|
|
97
|
+
import Viewer from '@licium/editor/dist/toastui-editor-viewer';
|
|
98
|
+
import chart from '@licium/editor-plugin-chart';
|
|
96
99
|
|
|
97
100
|
const viewer = new Viewer({
|
|
98
101
|
// ...
|
|
@@ -106,8 +109,8 @@ or
|
|
|
106
109
|
// ...
|
|
107
110
|
import '@toast-ui/chart/dist/toastui-chart.css';
|
|
108
111
|
|
|
109
|
-
import Editor from '@
|
|
110
|
-
import chart from '@
|
|
112
|
+
import Editor from '@licium/editor';
|
|
113
|
+
import chart from '@licium/editor-plugin-chart';
|
|
111
114
|
|
|
112
115
|
const viewer = Editor.factory({
|
|
113
116
|
// ...
|
|
@@ -118,7 +121,7 @@ const viewer = Editor.factory({
|
|
|
118
121
|
|
|
119
122
|
## 🗂 Usage CDN
|
|
120
123
|
|
|
121
|
-
To use the plugin, the CDN files(CSS, Script) of `@
|
|
124
|
+
To use the plugin, the CDN files(CSS, Script) of `@licium/editor` must be included.
|
|
122
125
|
|
|
123
126
|
### Include Files
|
|
124
127
|
|
|
@@ -200,8 +203,8 @@ These options are used to set the dimensions of the chart drawn in the editor.
|
|
|
200
203
|
// ...
|
|
201
204
|
import '@toast-ui/chart/dist/toastui-chart.css';
|
|
202
205
|
|
|
203
|
-
import Editor from '@
|
|
204
|
-
import chart from '@
|
|
206
|
+
import Editor from '@licium/editor';
|
|
207
|
+
import chart from '@licium/editor-plugin-chart';
|
|
205
208
|
|
|
206
209
|
const chartOptions = {
|
|
207
210
|
minWidth: 100,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licium/editor-plugin-chart",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "TOAST UI Editor : Chart Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhn",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/natorus87/tui.editor.git",
|
|
27
27
|
"directory": "plugins/chart"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/
|
|
30
|
+
"url": "https://github.com/natorus87/tui.editor/issues"
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://ui.toast.com",
|
|
33
33
|
"scripts": {
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 NHN Cloud Corp.
|
|
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
|
|
13
|
-
all 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
|
|
21
|
-
THE SOFTWARE.
|