@univerjs-pro/shape-editor-ui 1.0.0-rc.0 → 1.0.1

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 (119) hide show
  1. package/README.md +14 -0
  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 +91 -55
  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/controllers/mobile/components.controller.d.ts +2 -2
  64. package/lib/types/controllers/mobile/ui.controller.d.ts +5 -0
  65. package/lib/types/index.d.ts +12 -3
  66. package/lib/types/locale/en-US.d.ts +4 -0
  67. package/lib/types/mobile-plugin.d.ts +4 -2
  68. package/lib/types/plugin.d.ts +2 -0
  69. package/lib/types/services/mobile/shape-text-hyper-link-popup.service.d.ts +32 -0
  70. package/lib/types/services/mobile-shape-editor.service.d.ts +3 -1
  71. package/lib/types/services/shape-format-painter.d.ts +20 -0
  72. package/lib/types/services/shape-text-hyper-link-popup.service.d.ts +1 -0
  73. package/lib/types/views/FormulaBindingEditorDialog.d.ts +1 -0
  74. package/lib/types/views/FormulaBindingNumberFormat.d.ts +5 -2
  75. package/lib/types/views/mobile-shape-editor/MobileShapeActionPanel.d.ts +22 -0
  76. package/lib/types/views/mobile-shape-editor/MobileShapeMenu.d.ts +8 -0
  77. package/lib/types/views/shape-editor-panel/MobileShapeEditorControls.d.ts +4 -0
  78. package/lib/types/views/shape-editor-panel/ShapeEditorControls.d.ts +20 -0
  79. package/lib/types/views/shape-floating-toolbar/ShapeTextControls.d.ts +2 -0
  80. package/lib/types/views/shape-format-ribbon/ShapeEffectControls.d.ts +1 -1
  81. package/lib/types/views/shape-format-ribbon/ShapeFormatRibbonControls.d.ts +3 -3
  82. package/lib/types/views/shape-picker/MobileShapeChangePicker.d.ts +3 -0
  83. package/lib/types/views/shape-picker/MobileShapePickerPanel.d.ts +2 -0
  84. package/lib/types/views/shape-picker/ShapeChangePicker.d.ts +2 -0
  85. package/lib/types/views/shape-text-editor/MobileShapeTextHyperLinkPopup.d.ts +2 -0
  86. package/lib/types/views/shape-text-editor/ShapeTextHyperLinkPopup.d.ts +21 -1
  87. package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +2 -5
  88. package/lib/types/views/shape-text-editor/shape-text-document.d.ts +4 -1
  89. package/lib/types/views/shape-text-editor/types.d.ts +3 -0
  90. package/lib/types/views/smart-art/MobileSmartArtColorGallery.d.ts +2 -0
  91. package/lib/types/views/smart-art/MobileSmartArtLayoutGallery.d.ts +2 -0
  92. package/lib/types/views/smart-art/MobileSmartArtQuickStyleGallery.d.ts +2 -0
  93. package/lib/types/views/smart-art/MobileSmartArtStylePanel.d.ts +2 -0
  94. package/lib/types/views/smart-art/MobileSmartArtTextPane.d.ts +2 -0
  95. package/lib/types/views/smart-art/SmartArtColorGallery.d.ts +2 -1
  96. package/lib/types/views/smart-art/SmartArtLayoutGallery.d.ts +6 -0
  97. package/lib/types/views/smart-art/SmartArtQuickStyleGallery.d.ts +1 -0
  98. package/lib/types/views/smart-art/SmartArtTextPane.d.ts +13 -1
  99. package/lib/umd/index.js +1 -1
  100. package/lib/umd/locale/ar-SA.js +1 -1
  101. package/lib/umd/locale/ca-ES.js +1 -1
  102. package/lib/umd/locale/de-DE.js +1 -1
  103. package/lib/umd/locale/en-US.js +1 -1
  104. package/lib/umd/locale/es-ES.js +1 -1
  105. package/lib/umd/locale/fa-IR.js +1 -1
  106. package/lib/umd/locale/fr-FR.js +1 -1
  107. package/lib/umd/locale/id-ID.js +1 -1
  108. package/lib/umd/locale/it-IT.js +1 -1
  109. package/lib/umd/locale/ja-JP.js +1 -1
  110. package/lib/umd/locale/ko-KR.js +1 -1
  111. package/lib/umd/locale/pl-PL.js +1 -1
  112. package/lib/umd/locale/pt-BR.js +1 -1
  113. package/lib/umd/locale/ru-RU.js +1 -1
  114. package/lib/umd/locale/sk-SK.js +1 -1
  115. package/lib/umd/locale/vi-VN.js +1 -1
  116. package/lib/umd/locale/zh-CN.js +1 -1
  117. package/lib/umd/locale/zh-HK.js +1 -1
  118. package/lib/umd/locale/zh-TW.js +1 -1
  119. package/package.json +21 -21
package/README.md CHANGED
@@ -40,6 +40,20 @@ univer.registerPlugin(UniverShapeEditorUIPlugin);
40
40
  - Import the package stylesheet once in the application entry before rendering Univer UI.
41
41
  - Import locale files only for the languages your application enables.
42
42
 
43
+ ## Format painter
44
+
45
+ `registerShapeFormatPainter` supplies the shared Shape adapter used by Sheets, Docs, and
46
+ Slides. It copies fill, stroke, supported effects, text insets, and text formatting while
47
+ retaining the target's geometry, text, identity, and formula bindings. Connector targets also
48
+ receive line and arrow styling. Images, SmartArt, groups, and mixed object selections are unsupported.
49
+
50
+ Hosts provide hit testing and permission checks, and commit changes through their undoable
51
+ commands. The existing Start ribbon button handles single-use and continuous painting; Shape
52
+ text editing uses the Docs text-selection adapter instead of object painting. The clear-formatting
53
+ icon restores insertion defaults for the selected Shape while retaining its text, geometry,
54
+ and formula bindings. Text boxes and text placeholders reset their text formatting without
55
+ acquiring a Shape fill.
56
+
43
57
  ## Resources
44
58
 
45
59
  - [Documentation](https://docs.univer.ai/guides/pro)