@univerjs-pro/sheets-chart-ui 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.
Files changed (104) hide show
  1. package/README.md +9 -7
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/index.js +1 -1
  23. package/lib/es/locale/ar-SA.js +1 -1
  24. package/lib/es/locale/ca-ES.js +1 -1
  25. package/lib/es/locale/de-DE.js +1 -1
  26. package/lib/es/locale/en-US.js +1 -1
  27. package/lib/es/locale/es-ES.js +1 -1
  28. package/lib/es/locale/fa-IR.js +1 -1
  29. package/lib/es/locale/fr-FR.js +1 -1
  30. package/lib/es/locale/id-ID.js +1 -1
  31. package/lib/es/locale/it-IT.js +1 -1
  32. package/lib/es/locale/ja-JP.js +1 -1
  33. package/lib/es/locale/ko-KR.js +1 -1
  34. package/lib/es/locale/pl-PL.js +1 -1
  35. package/lib/es/locale/pt-BR.js +1 -1
  36. package/lib/es/locale/ru-RU.js +1 -1
  37. package/lib/es/locale/sk-SK.js +1 -1
  38. package/lib/es/locale/vi-VN.js +1 -1
  39. package/lib/es/locale/zh-CN.js +1 -1
  40. package/lib/es/locale/zh-HK.js +1 -1
  41. package/lib/es/locale/zh-TW.js +1 -1
  42. package/lib/index.css +33 -0
  43. package/lib/index.js +1 -1
  44. package/lib/locale/ar-SA.js +1 -1
  45. package/lib/locale/ca-ES.js +1 -1
  46. package/lib/locale/de-DE.js +1 -1
  47. package/lib/locale/en-US.js +1 -1
  48. package/lib/locale/es-ES.js +1 -1
  49. package/lib/locale/fa-IR.js +1 -1
  50. package/lib/locale/fr-FR.js +1 -1
  51. package/lib/locale/id-ID.js +1 -1
  52. package/lib/locale/it-IT.js +1 -1
  53. package/lib/locale/ja-JP.js +1 -1
  54. package/lib/locale/ko-KR.js +1 -1
  55. package/lib/locale/pl-PL.js +1 -1
  56. package/lib/locale/pt-BR.js +1 -1
  57. package/lib/locale/ru-RU.js +1 -1
  58. package/lib/locale/sk-SK.js +1 -1
  59. package/lib/locale/vi-VN.js +1 -1
  60. package/lib/locale/zh-CN.js +1 -1
  61. package/lib/locale/zh-HK.js +1 -1
  62. package/lib/locale/zh-TW.js +1 -1
  63. package/lib/types/commands/commands/sheet-chart-menu.command.d.ts +3 -1
  64. package/lib/types/commands/operations/open-move-chart-dialog.operation.d.ts +4 -0
  65. package/lib/types/controllers/chart-render.controller.d.ts +4 -1
  66. package/lib/types/controllers/chart-sheet-ui.controller.d.ts +31 -0
  67. package/lib/types/controllers/sheets-chart-clipboard.controller.d.ts +11 -3
  68. package/lib/types/controllers/ui.controller.d.ts +3 -0
  69. package/lib/types/locale/en-US.d.ts +22 -0
  70. package/lib/types/menu/chart-sheet-menu.d.ts +6 -0
  71. package/lib/types/menu/chart-sheet-schema.d.ts +3 -0
  72. package/lib/types/services/chart-image-rect.d.ts +2 -1
  73. package/lib/types/services/chart-render.service.d.ts +26 -7
  74. package/lib/types/services/chart-sheet-presentation.d.ts +9 -0
  75. package/lib/types/services/chart-sheet-render.service.d.ts +39 -0
  76. package/lib/types/services/sheet-chart-host.d.ts +2 -1
  77. package/lib/types/services/sheet-image-chart-host.d.ts +4 -9
  78. package/lib/types/services/sheets-chart-host-provider.service.d.ts +11 -5
  79. package/lib/types/services/sheets-chart-ui.service.d.ts +13 -3
  80. package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +8 -8
  81. package/lib/types/views/move-chart/MoveChartDialog.d.ts +6 -0
  82. package/lib/umd/index.js +1 -1
  83. package/lib/umd/locale/ar-SA.js +1 -1
  84. package/lib/umd/locale/ca-ES.js +1 -1
  85. package/lib/umd/locale/de-DE.js +1 -1
  86. package/lib/umd/locale/en-US.js +1 -1
  87. package/lib/umd/locale/es-ES.js +1 -1
  88. package/lib/umd/locale/fa-IR.js +1 -1
  89. package/lib/umd/locale/fr-FR.js +1 -1
  90. package/lib/umd/locale/id-ID.js +1 -1
  91. package/lib/umd/locale/it-IT.js +1 -1
  92. package/lib/umd/locale/ja-JP.js +1 -1
  93. package/lib/umd/locale/ko-KR.js +1 -1
  94. package/lib/umd/locale/pl-PL.js +1 -1
  95. package/lib/umd/locale/pt-BR.js +1 -1
  96. package/lib/umd/locale/ru-RU.js +1 -1
  97. package/lib/umd/locale/sk-SK.js +1 -1
  98. package/lib/umd/locale/vi-VN.js +1 -1
  99. package/lib/umd/locale/zh-CN.js +1 -1
  100. package/lib/umd/locale/zh-HK.js +1 -1
  101. package/lib/umd/locale/zh-TW.js +1 -1
  102. package/package.json +29 -24
  103. package/lib/types/controllers/chart-sheet-change.controller.d.ts +0 -13
  104. package/lib/types/controllers/chart-sheet-copy-plan.d.ts +0 -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-pro/sheets-chart-ui` | `UniverProSheetsChartUi` | Yes | Yes | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs-pro/sheets-chart-ui` | `UniverProSheetsChartUi` | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,10 +20,10 @@ pnpm add @univerjs-pro/sheets-chart-ui
20
20
  npm install @univerjs-pro/sheets-chart-ui
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 '@univerjs-pro/sheets-chart-ui/lib/index.css';
29
29
  import EnUS from '@univerjs-pro/sheets-chart-ui/locale/en-US';
@@ -36,11 +36,13 @@ univer.registerPlugin(UniverSheetsChartUIPlugin);
36
36
 
37
37
  ## Integration Notes
38
38
 
39
- - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
40
39
  - Import the package stylesheet once in the application entry before rendering Univer UI.
41
40
  - Import locale files only for the languages your application enables.
41
+ - Register `UniverSheetsChartUIPlugin` before creating a workbook. Chart Sheet presentation, viewport fitting, drawing constraints, and Move Chart controls are built into this plugin.
42
+ - The plugin's declared dependencies load the chart model and Formula UI global range selector. Node.js changeset replay requires only `@univerjs-pro/sheets-chart`.
42
43
 
43
44
  ## Resources
44
45
 
45
- - [Documentation](https://docs.univer.ai/guides/pro)
46
+ - [Documentation](https://docs.univer.ai)
46
47
  - [NPM package](https://npmjs.com/package/@univerjs-pro/sheets-chart-ui)
48
+ - [GitHub repository](https://github.com/dream-num/univer-pro)