@univerjs-pro/sheets-chart-ui 0.21.1 → 0.22.0
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 +29 -34
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -18
package/README.md
CHANGED
|
@@ -1,49 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @univerjs-pro/sheets-chart-ui
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.
|
|
4
|
-
[
|
|
6
|
-

|
|
3
|
+
[](https://npmjs.com/package/@univerjs-pro/sheets-chart-ui)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/sheets-chart-ui)
|
|
7
5
|
|
|
6
|
+
`@univerjs-pro/sheets-chart-ui` provides chart UI integration for Univer Sheets.
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
## Package Overview
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
11
|
+
| --- | --- | :---: | :---: | :---: |
|
|
12
|
+
| `@univerjs-pro/sheets-chart-ui` | `UniverProSheetsChartUi` | Yes | Yes | No |
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
## Installation
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
npm install @univerjs-pro/sheets-chart @univerjs-pro/sheets-chart-ui
|
|
16
|
+
```sh
|
|
17
|
+
pnpm add @univerjs-pro/sheets-chart-ui
|
|
18
|
+
# or
|
|
19
|
+
npm install @univerjs-pro/sheets-chart-ui
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
22
23
|
|
|
23
24
|
## Usage
|
|
24
25
|
|
|
25
|
-
```
|
|
26
|
-
import { LocaleType, merge, Univer } from '@univerjs/core';
|
|
27
|
-
import { defaultTheme } from "@univerjs/themes";
|
|
28
|
-
import { UniverSheetsChartPlugin } from '@univerjs-pro/sheets-chart';
|
|
29
|
-
import { UniverSheetsChartUIPlugin } from '@univerjs-pro/sheets-chart-ui';
|
|
30
|
-
import SheetsChartZhCN from '@univerjs-pro/sheets-chart/locale/zh-CN';
|
|
31
|
-
import SheetsChartUIZhCN from '@univerjs-pro/sheets-chart-ui/locale/zh-CN';
|
|
32
|
-
|
|
26
|
+
```ts
|
|
33
27
|
import '@univerjs-pro/sheets-chart-ui/lib/index.css';
|
|
28
|
+
import EnUS from '@univerjs-pro/sheets-chart-ui/locale/en-US';
|
|
29
|
+
import { UniverSheetsChartUIPlugin } from '@univerjs-pro/sheets-chart-ui';
|
|
34
30
|
|
|
35
|
-
const univer = new Univer({
|
|
36
|
-
theme: defaultTheme,
|
|
37
|
-
locale: LocaleType.ZH_CN,
|
|
38
|
-
locales: {
|
|
39
|
-
[LocaleType.ZH_CN]: merge(
|
|
40
|
-
{},
|
|
41
|
-
SheetsChartZhCN,
|
|
42
|
-
SheetsChartUIZhCN
|
|
43
|
-
),
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
univer.registerPlugin(UniverSheetsChartPlugin);
|
|
48
31
|
univer.registerPlugin(UniverSheetsChartUIPlugin);
|
|
32
|
+
|
|
33
|
+
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
49
34
|
```
|
|
35
|
+
|
|
36
|
+
## Integration Notes
|
|
37
|
+
|
|
38
|
+
Use this package with `@univerjs-pro/sheets-chart` when users need chart editing UI.
|
|
39
|
+
|
|
40
|
+
## Resources
|
|
41
|
+
|
|
42
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
43
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/sheets-chart-ui)
|
|
44
|
+
|