@univerjs-pro/slicer 1.3.1 → 1.5.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 +7 -6
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/definition.d.ts +23 -0
- package/lib/types/index.d.ts +3 -3
- package/lib/types/rendering/canvas-icons.generated.d.ts +12 -12
- package/lib/types/rendering/control.d.ts +1 -1
- package/lib/types/rendering/types.d.ts +5 -1
- package/lib/types/selection.d.ts +3 -1
- package/lib/types/style.d.ts +2 -2
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
## Package Overview
|
|
10
10
|
|
|
11
|
-
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
-
| --- | --- | :---: | :---: | :---: |
|
|
13
|
-
| `@univerjs-pro/slicer` | `UniverProSlicer` | No | No | No |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs-pro/slicer` | `UniverProSlicer` | No | No | No | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs-pro/slicer
|
|
|
20
20
|
npm install @univerjs-pro/slicer
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
25
|
+
Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
|
|
26
|
+
|
|
27
27
|
```ts
|
|
28
28
|
import { createEmptySlicerResource, parseSlicerResource, UniverSlicerPlugin } from '@univerjs-pro/slicer';
|
|
29
29
|
|
|
@@ -41,5 +41,6 @@ const validated = parseSlicerResource(resource);
|
|
|
41
41
|
|
|
42
42
|
## Resources
|
|
43
43
|
|
|
44
|
-
- [Documentation](https://docs.univer.ai
|
|
44
|
+
- [Documentation](https://docs.univer.ai)
|
|
45
45
|
- [NPM package](https://npmjs.com/package/@univerjs-pro/slicer)
|
|
46
|
+
- [GitHub repository](https://github.com/dream-num/univer-pro)
|