@univerjs/sheets-drawing-ui 1.4.0 → 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 +9 -5
- package/lib/cjs/index.js +657 -280
- package/lib/es/index.js +662 -285
- package/lib/index.js +662 -285
- package/lib/types/controllers/sheet-drawing-copy-paste.controller.d.ts +7 -3
- package/lib/types/controllers/sheet-drawing-permission.controller.d.ts +2 -0
- package/lib/types/controllers/sheet-drawing-update.controller.d.ts +7 -4
- package/lib/types/facade/f-worksheet.d.ts +5 -1
- package/lib/types/services/canvas-float-dom-manager.service.d.ts +8 -1
- package/lib/types/views/background/worksheet-background-image.extension.d.ts +1 -0
- package/lib/umd/index.js +2 -2
- package/package.json +16 -16
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/sheets-drawing-ui` | `UniverSheetsDrawingUi` | Yes | Yes | Yes |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/sheets-drawing-ui` | `UniverSheetsDrawingUi` | Yes | Yes | Yes | No |
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,10 +20,10 @@ pnpm add @univerjs/sheets-drawing-ui
|
|
|
20
20
|
npm install @univerjs/sheets-drawing-ui
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep all `@univerjs/*` 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 '@univerjs/sheets-drawing-ui/lib/index.css';
|
|
29
29
|
import EnUS from '@univerjs/sheets-drawing-ui/locale/en-US';
|
|
@@ -34,6 +34,10 @@ univer.registerPlugin(UniverSheetsDrawingUIPlugin);
|
|
|
34
34
|
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
## Integration Notes
|
|
38
|
+
|
|
39
|
+
- Import `@univerjs/sheets-drawing-ui/facade` when using this package through Univer Facade APIs.
|
|
40
|
+
|
|
37
41
|
## Resources
|
|
38
42
|
|
|
39
43
|
- [Documentation](https://docs.univer.ai)
|