@univerjs-pro/shape-editor-ui 1.0.0-beta.0 → 1.0.0-beta.2

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 (130) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.css +498 -47
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/commands/operations/toggle-shape-floating-toolbar.operation.d.ts +2 -0
  63. package/lib/types/commands/shape-text-hyper-link.command.d.ts +43 -0
  64. package/lib/types/common/formula-shape-en-us.d.ts +0 -19
  65. package/lib/types/config/config.d.ts +2 -25
  66. package/lib/types/controllers/components.controller.d.ts +4 -2
  67. package/lib/types/index.d.ts +26 -4
  68. package/lib/types/locale/en-US.d.ts +306 -21
  69. package/lib/types/menu/shape-floating-toolbar.menu.d.ts +3 -0
  70. package/lib/types/plugin.d.ts +3 -2
  71. package/lib/types/services/formula-binding.service.d.ts +34 -0
  72. package/lib/types/services/shape-floating-toolbar.service.d.ts +16 -0
  73. package/lib/types/services/shape-text-hyper-link-popup.service.d.ts +27 -0
  74. package/lib/types/utils/render-transformer-lifecycle.d.ts +4 -0
  75. package/lib/types/utils/shape-contextual-ribbon-host.d.ts +2 -0
  76. package/lib/types/utils/shape-floating-toolbar-config.d.ts +3 -3
  77. package/lib/types/utils/shape-transformer-config.d.ts +21 -21
  78. package/lib/types/views/FormulaBindingEditorDialog.d.ts +1 -1
  79. package/lib/types/views/formula-shape/UseFormulaShapeToolbar.d.ts +3 -0
  80. package/lib/types/views/shape-floating-toolbar/ShapeFillControls.d.ts +2 -0
  81. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +1 -2
  82. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbarPrimitives.d.ts +11 -2
  83. package/lib/types/views/shape-floating-toolbar/ShapeStrokeControls.d.ts +5 -0
  84. package/lib/types/views/shape-floating-toolbar/ShapeTextControls.d.ts +3 -0
  85. package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +7 -1
  86. package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-wheel.util.d.ts +1 -0
  87. package/lib/types/views/shape-format-ribbon/ShapeEffectControls.d.ts +19 -0
  88. package/lib/types/views/shape-format-ribbon/ShapeEffectPresetIcon.d.ts +11 -0
  89. package/lib/types/views/shape-format-ribbon/ShapeFormatRibbonControls.d.ts +27 -0
  90. package/lib/types/views/shape-format-ribbon/shape-effect-reference-paths.generated.d.ts +6 -0
  91. package/lib/types/views/shape-picker/ShapeChangePicker.d.ts +7 -0
  92. package/lib/types/views/shape-quick-style/ShapeQuickStyleGallery.d.ts +10 -0
  93. package/lib/types/views/shape-text-editor/DocParagraphTypeDropdown.d.ts +1 -1
  94. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
  95. package/lib/types/views/shape-text-editor/ShapeTextHyperLinkPopup.d.ts +8 -0
  96. package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +4 -0
  97. package/lib/types/views/shape-text-editor/shape-text-editor-commands.d.ts +0 -1
  98. package/lib/types/views/shape-text-editor/shape-text-float-menu-render-controller-base.d.ts +13 -4
  99. package/lib/types/views/shape-text-editor/shape-text-keyboard.d.ts +4 -0
  100. package/lib/types/views/shape-text-editor/types.d.ts +1 -0
  101. package/lib/types/views/smart-art/SmartArtColorGallery.d.ts +6 -0
  102. package/lib/types/views/smart-art/SmartArtLayoutGallery.d.ts +6 -0
  103. package/lib/types/views/smart-art/SmartArtLayoutIcon.d.ts +6 -0
  104. package/lib/types/views/smart-art/SmartArtQuickStyleGallery.d.ts +10 -0
  105. package/lib/types/views/smart-art/SmartArtRibbonControl.d.ts +33 -0
  106. package/lib/types/views/smart-art/SmartArtTextPane.d.ts +14 -0
  107. package/lib/types/views/smart-art/smart-art-layout-catalog.generated.d.ts +35 -0
  108. package/lib/types/views/smart-art/smart-art-layout-gallery-catalog.generated.d.ts +5 -0
  109. package/lib/umd/index.js +1 -1
  110. package/lib/umd/locale/ar-SA.js +1 -1
  111. package/lib/umd/locale/ca-ES.js +1 -1
  112. package/lib/umd/locale/de-DE.js +1 -1
  113. package/lib/umd/locale/en-US.js +1 -1
  114. package/lib/umd/locale/es-ES.js +1 -1
  115. package/lib/umd/locale/fa-IR.js +1 -1
  116. package/lib/umd/locale/fr-FR.js +1 -1
  117. package/lib/umd/locale/id-ID.js +1 -1
  118. package/lib/umd/locale/it-IT.js +1 -1
  119. package/lib/umd/locale/ja-JP.js +1 -1
  120. package/lib/umd/locale/ko-KR.js +1 -1
  121. package/lib/umd/locale/pl-PL.js +1 -1
  122. package/lib/umd/locale/pt-BR.js +1 -1
  123. package/lib/umd/locale/ru-RU.js +1 -1
  124. package/lib/umd/locale/sk-SK.js +1 -1
  125. package/lib/umd/locale/vi-VN.js +1 -1
  126. package/lib/umd/locale/zh-CN.js +1 -1
  127. package/lib/umd/locale/zh-HK.js +1 -1
  128. package/lib/umd/locale/zh-TW.js +1 -1
  129. package/package.json +23 -26
  130. package/lib/types/services/formula-binding-unit-viewer.service.d.ts +0 -67
@@ -1,5 +1,269 @@
1
1
  declare const locale: {
2
2
  'shape-editor-ui': {
3
+ effects: {
4
+ title: string;
5
+ shadow: string;
6
+ reflection: string;
7
+ glow: string;
8
+ softEdge: string;
9
+ bevel: string;
10
+ rotation3d: string;
11
+ none: string;
12
+ menu: {
13
+ shadow: string;
14
+ reflection: string;
15
+ glow: string;
16
+ softEdge: string;
17
+ bevel: string;
18
+ rotation3d: string;
19
+ };
20
+ groups: {
21
+ outer: string;
22
+ perspective: string;
23
+ reflectionVariations: string;
24
+ glowVariations: string;
25
+ softEdgeVariations: string;
26
+ bevelVariations: string;
27
+ parallel: string;
28
+ oblique: string;
29
+ };
30
+ textTitle: string;
31
+ };
32
+ smartArt: {
33
+ addAfter: string;
34
+ addAssistant: string;
35
+ addBelow: string;
36
+ convertToShapes: string;
37
+ deleteNode: string;
38
+ demote: string;
39
+ direction: string;
40
+ layout: string;
41
+ moveDown: string;
42
+ moveUp: string;
43
+ promote: string;
44
+ reset: string;
45
+ styles: string;
46
+ textPane: string;
47
+ title: string;
48
+ category: {
49
+ all: string;
50
+ list: string;
51
+ process: string;
52
+ cycle: string;
53
+ hierarchy: string;
54
+ relationship: string;
55
+ matrix: string;
56
+ pyramid: string;
57
+ picture: string;
58
+ timeline: string;
59
+ team: string;
60
+ textCard: string;
61
+ };
62
+ layoutName: {
63
+ '001': string;
64
+ '002': string;
65
+ '003': string;
66
+ '004': string;
67
+ '005': string;
68
+ '006': string;
69
+ '007': string;
70
+ '008': string;
71
+ '009': string;
72
+ '010': string;
73
+ '011': string;
74
+ '012': string;
75
+ '013': string;
76
+ '014': string;
77
+ '015': string;
78
+ '016': string;
79
+ '017': string;
80
+ '018': string;
81
+ '019': string;
82
+ '020': string;
83
+ '021': string;
84
+ '022': string;
85
+ '023': string;
86
+ '024': string;
87
+ '025': string;
88
+ '026': string;
89
+ '027': string;
90
+ '028': string;
91
+ '029': string;
92
+ '030': string;
93
+ '031': string;
94
+ '032': string;
95
+ '033': string;
96
+ '034': string;
97
+ '035': string;
98
+ '036': string;
99
+ '037': string;
100
+ '038': string;
101
+ '039': string;
102
+ '040': string;
103
+ '041': string;
104
+ '042': string;
105
+ '043': string;
106
+ '044': string;
107
+ '045': string;
108
+ '046': string;
109
+ '047': string;
110
+ '048': string;
111
+ '049': string;
112
+ '050': string;
113
+ '051': string;
114
+ '052': string;
115
+ '053': string;
116
+ '054': string;
117
+ '055': string;
118
+ '056': string;
119
+ '057': string;
120
+ '058': string;
121
+ '059': string;
122
+ '060': string;
123
+ '061': string;
124
+ '062': string;
125
+ '063': string;
126
+ '064': string;
127
+ '065': string;
128
+ '066': string;
129
+ '067': string;
130
+ '068': string;
131
+ '069': string;
132
+ '070': string;
133
+ '071': string;
134
+ '072': string;
135
+ '073': string;
136
+ '074': string;
137
+ '075': string;
138
+ '076': string;
139
+ '077': string;
140
+ '078': string;
141
+ '079': string;
142
+ '080': string;
143
+ '081': string;
144
+ '082': string;
145
+ '083': string;
146
+ '084': string;
147
+ '085': string;
148
+ '086': string;
149
+ '087': string;
150
+ '088': string;
151
+ '089': string;
152
+ '090': string;
153
+ '091': string;
154
+ '092': string;
155
+ '093': string;
156
+ '094': string;
157
+ '095': string;
158
+ '096': string;
159
+ '097': string;
160
+ '098': string;
161
+ '099': string;
162
+ 100: string;
163
+ 101: string;
164
+ 102: string;
165
+ 103: string;
166
+ 104: string;
167
+ 105: string;
168
+ 106: string;
169
+ 107: string;
170
+ 108: string;
171
+ 109: string;
172
+ 110: string;
173
+ 111: string;
174
+ 112: string;
175
+ 113: string;
176
+ 114: string;
177
+ 115: string;
178
+ 116: string;
179
+ 117: string;
180
+ 118: string;
181
+ 119: string;
182
+ 120: string;
183
+ 121: string;
184
+ 122: string;
185
+ 123: string;
186
+ 124: string;
187
+ 125: string;
188
+ 126: string;
189
+ 127: string;
190
+ 128: string;
191
+ 129: string;
192
+ 130: string;
193
+ 131: string;
194
+ 132: string;
195
+ 133: string;
196
+ 134: string;
197
+ 135: string;
198
+ 136: string;
199
+ 137: string;
200
+ 138: string;
201
+ 139: string;
202
+ 140: string;
203
+ 141: string;
204
+ 142: string;
205
+ 143: string;
206
+ 144: string;
207
+ 145: string;
208
+ 146: string;
209
+ 147: string;
210
+ 148: string;
211
+ 149: string;
212
+ 150: string;
213
+ 151: string;
214
+ 152: string;
215
+ 153: string;
216
+ 154: string;
217
+ 155: string;
218
+ 156: string;
219
+ 157: string;
220
+ 158: string;
221
+ 159: string;
222
+ };
223
+ addShape: string;
224
+ addBullet: string;
225
+ createGraphic: string;
226
+ layoutGroup: string;
227
+ moveForward: string;
228
+ moveBackward: string;
229
+ resetGroup: string;
230
+ styleGroup: string;
231
+ changeColors: string;
232
+ quickStyle: {
233
+ section: {
234
+ bestMatch: string;
235
+ threeDimensional: string;
236
+ };
237
+ name: {
238
+ simple1: string;
239
+ simple2: string;
240
+ simple3: string;
241
+ simple4: string;
242
+ simple5: string;
243
+ '3d1': string;
244
+ '3d2': string;
245
+ '3d3': string;
246
+ '3d4': string;
247
+ '3d5': string;
248
+ '3d6': string;
249
+ '3d7': string;
250
+ '3d8': string;
251
+ '3d9': string;
252
+ };
253
+ };
254
+ colorStyle: {
255
+ section: {
256
+ theme: string;
257
+ colorful: string;
258
+ accent1: string;
259
+ accent2: string;
260
+ accent3: string;
261
+ accent4: string;
262
+ accent5: string;
263
+ accent6: string;
264
+ };
265
+ };
266
+ };
3
267
  formulaBinding: {
4
268
  accountingDescription: string;
5
269
  baseUnit: string;
@@ -18,9 +282,18 @@ declare const locale: {
18
282
  currency: string;
19
283
  custom: string;
20
284
  date: string;
285
+ dateTime: string;
286
+ durationTime: string;
287
+ financial: string;
21
288
  general: string;
22
289
  more: string;
290
+ number: string;
291
+ percentage: string;
292
+ roundingCurrency: string;
293
+ scientific: string;
294
+ text: string;
23
295
  thousandSeparator: string;
296
+ time: string;
24
297
  };
25
298
  formulaPlaceholder: string;
26
299
  generalDescription: string;
@@ -57,25 +330,6 @@ declare const locale: {
57
330
  confirm: string;
58
331
  cancel: string;
59
332
  animation: string;
60
- formats: {
61
- general: string;
62
- text: string;
63
- number: string;
64
- percent: string;
65
- percentage: string;
66
- scientific: string;
67
- accounting: string;
68
- financial: string;
69
- currency: string;
70
- roundingCurrency: string;
71
- date: string;
72
- time: string;
73
- dateTime: string;
74
- durationTime: string;
75
- thousandSeparator: string;
76
- custom: string;
77
- more: string;
78
- };
79
333
  };
80
334
  insertShape: string;
81
335
  openPanel: string;
@@ -106,12 +360,30 @@ declare const locale: {
106
360
  callout: string;
107
361
  };
108
362
  };
363
+ hyperLink: {
364
+ confirm: string;
365
+ cancel: string;
366
+ address: string;
367
+ addressError: string;
368
+ label: string;
369
+ labelError: string;
370
+ copy: string;
371
+ edit: string;
372
+ remove: string;
373
+ copied: string;
374
+ };
109
375
  fill: {
110
376
  title: string;
111
377
  noFill: string;
112
378
  solidFill: string;
113
379
  gradientFill: string;
114
380
  pictureFill: string;
381
+ tabs: {
382
+ noFill: string;
383
+ solidFill: string;
384
+ gradientFill: string;
385
+ pictureFill: string;
386
+ };
115
387
  patternFill: string;
116
388
  color: string;
117
389
  transparency: string;
@@ -399,8 +671,13 @@ declare const locale: {
399
671
  };
400
672
  };
401
673
  toolbar: {
402
- expandShapeToolbar: string;
403
- hideMenu: string;
674
+ fontFamily: string;
675
+ fontSize: string;
676
+ increaseFontSize: string;
677
+ decreaseFontSize: string;
678
+ floatingToolbar: string;
679
+ quickStyles: string;
680
+ changeShape: string;
404
681
  alignLeft: string;
405
682
  alignCenter: string;
406
683
  alignRight: string;
@@ -415,9 +692,17 @@ declare const locale: {
415
692
  textBackgroundColor: string;
416
693
  fillColor: string;
417
694
  resetColor: string;
695
+ hyperlink: string;
418
696
  typography: string;
419
697
  more: string;
420
698
  };
699
+ arrange: {
700
+ title: string;
701
+ forward: string;
702
+ backward: string;
703
+ front: string;
704
+ back: string;
705
+ };
421
706
  align: {
422
707
  top: string;
423
708
  middle: string;
@@ -0,0 +1,3 @@
1
+ import type { IAccessor } from '@univerjs/core';
2
+ import type { IMenuButtonItem } from '@univerjs/ui';
3
+ export declare function ShapeFloatingToolbarToggleFactory(accessor: IAccessor): IMenuButtonItem<string, boolean>;
@@ -1,13 +1,14 @@
1
1
  import type { IUniverShapeEditorUIConfig } from './config/config';
2
- import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverShapeEditorUIPlugin extends Plugin {
4
4
  private readonly _config;
5
5
  protected readonly _injector: Injector;
6
6
  private readonly _configService;
7
+ private readonly _commandService;
7
8
  static type: UniverInstanceType;
8
9
  static pluginName: string;
9
10
  static packageName: string;
10
11
  static version: string;
11
- constructor(_config: IUniverShapeEditorUIConfig | undefined, _injector: Injector, _configService: IConfigService);
12
+ constructor(_config: IUniverShapeEditorUIConfig | undefined, _injector: Injector, _configService: IConfigService, _commandService: ICommandService);
12
13
  onStarting(): void;
13
14
  }
@@ -0,0 +1,34 @@
1
+ import type { IReferencedUnitCatalogService, IResourceRef } from '@univerjs-pro/embed';
2
+ import type { IReferencedUnitViewerSession } from '@univerjs-pro/embed-unit-ui';
3
+ import type { IDisposable } from '@univerjs/core';
4
+ import type { FormulaSequenceNode, IFormulaRefSelection } from '@univerjs/engine-formula';
5
+ import type { IFormulaBindingHost } from '../config/config';
6
+ import type { IFormulaBindingReferenceSelectionChange } from './formula-binding-editor';
7
+ import { HostExternalReferenceModel } from '@univerjs-pro/engine-formula';
8
+ import { IUniverInstanceService, ThemeService } from '@univerjs/core';
9
+ export interface IFormulaBindingContext {
10
+ formula: string;
11
+ refSelections: IFormulaRefSelection[];
12
+ selectionEnd: number;
13
+ selectionStart: number;
14
+ sequenceNodes: FormulaSequenceNode[];
15
+ }
16
+ export interface IFormulaBindingOptions {
17
+ host: IFormulaBindingHost;
18
+ onSelectReferences(change: IFormulaBindingReferenceSelectionChange): void;
19
+ }
20
+ export interface IFormulaBinding extends IDisposable {
21
+ updateFormulaContext(context: IFormulaBindingContext): void;
22
+ }
23
+ export declare class FormulaBindingService {
24
+ private readonly _catalog;
25
+ private readonly _themeService;
26
+ private readonly _externalReferenceModel;
27
+ private readonly _instanceService;
28
+ constructor(_catalog: IReferencedUnitCatalogService, _themeService: ThemeService, _externalReferenceModel: HostExternalReferenceModel, _instanceService: IUniverInstanceService);
29
+ resolveInitialResourceRef(host: IFormulaBindingHost, sequenceNodes: FormulaSequenceNode[]): {
30
+ ref?: IResourceRef;
31
+ required: boolean;
32
+ };
33
+ bind(session: IReferencedUnitViewerSession, options: IFormulaBindingOptions): IFormulaBinding;
34
+ }
@@ -0,0 +1,16 @@
1
+ import type { Observable } from 'rxjs';
2
+ import { Disposable, IConfigService } from '@univerjs/core';
3
+ export declare class ShapeFloatingToolbarService extends Disposable {
4
+ private readonly _enabled$;
5
+ private readonly _fallbackVisible$;
6
+ private readonly _fallbackVisibleSources;
7
+ readonly enabled$: Observable<boolean>;
8
+ readonly visible$: Observable<boolean>;
9
+ constructor(configService: IConfigService);
10
+ getEnabled(): boolean;
11
+ setEnabled(enabled: boolean): void;
12
+ getVisible(): boolean;
13
+ setFallbackVisible(visible: boolean, source?: string): void;
14
+ toggle(): void;
15
+ dispose(): void;
16
+ }
@@ -0,0 +1,27 @@
1
+ import type { IDisposable, Nullable } from '@univerjs/core';
2
+ import type { IShapeTextHyperLinkInfo } from '../commands/shape-text-hyper-link.command';
3
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
4
+ import { DocSelectionManagerService } from '@univerjs/docs';
5
+ import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
6
+ export declare class ShapeTextHyperLinkPopupService extends Disposable {
7
+ private readonly _docCanvasPopupManagerService;
8
+ private readonly _docSelectionManagerService;
9
+ private readonly _univerInstanceService;
10
+ private readonly _editingLink$;
11
+ private readonly _showingLink$;
12
+ readonly editingLink$: import("rxjs").Observable<Nullable<IShapeTextHyperLinkInfo>>;
13
+ readonly showingLink$: import("rxjs").Observable<Nullable<IShapeTextHyperLinkInfo>>;
14
+ private _editPopup;
15
+ private _infoPopup;
16
+ private _infoPopupSuppressed;
17
+ private _infoPopupSuppressionTimer;
18
+ constructor(_docCanvasPopupManagerService: DocCanvasPopManagerService, _docSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService);
19
+ dispose(): void;
20
+ get editing(): Nullable<IShapeTextHyperLinkInfo>;
21
+ get showing(): Nullable<IShapeTextHyperLinkInfo>;
22
+ showEditPopup(unitId: string, link: Nullable<IShapeTextHyperLinkInfo>): Nullable<IDisposable>;
23
+ hideEditPopup(): void;
24
+ showInfoPopup(info: IShapeTextHyperLinkInfo, attachPopup?: () => IDisposable): Nullable<IDisposable>;
25
+ hideInfoPopup(): void;
26
+ hideInfoPopupOnPointerDown(): void;
27
+ }
@@ -0,0 +1,4 @@
1
+ import type { IDisposable, UniverInstanceType } from '@univerjs/core';
2
+ import type { IRender, IRenderManagerService } from '@univerjs/engine-render';
3
+ export type RenderTransformer = ReturnType<IRender['scene']['getTransformerByCreate']>;
4
+ export declare function bindRenderTransformerLifecycle(renderManagerService: IRenderManagerService, unitType: UniverInstanceType, bind: (transformer: RenderTransformer) => IDisposable): IDisposable;
@@ -0,0 +1,2 @@
1
+ export type ShapeContextualRibbonHostMode = 'regular' | 'tab' | 'isolated';
2
+ export declare function resolveShapeContextualRibbonHostMode(canvasElement: HTMLElement | null | undefined): ShapeContextualRibbonHostMode;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Extra top clearance for shape toolbars, so they do not visually touch selection affordances.
2
+ * Symmetric vertical clearance for shape toolbars, including the rotation affordance around a selection.
3
3
  */
4
- export declare const SHAPE_FLOATING_TOOLBAR_TOP_OFFSET = 16;
5
- export declare const SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET = 16;
4
+ export declare const SHAPE_FLOATING_TOOLBAR_TOP_OFFSET = 64;
5
+ export declare const SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET = 64;
@@ -3,29 +3,29 @@
3
3
  * Per-object transformer settings still take precedence for special cases such as connectors.
4
4
  */
5
5
  export declare const SHAPE_EDITOR_TRANSFORMER_CONFIG: {
6
- readonly borderEnabled: true;
7
- readonly borderStroke: "#4086f4";
8
- readonly borderStrokeWidth: 1;
9
- readonly borderSpacing: 2;
10
- readonly anchorFill: "#ffffff";
11
- readonly anchorStroke: "#4086f4";
12
- readonly anchorStrokeWidth: 1.5;
13
- readonly anchorSize: 8;
14
- readonly anchorCornerRadius: 2;
15
- readonly anchorStyle: "canva";
6
+ readonly keepRatio: false;
7
+ readonly moveBoundaryEnabled: false;
8
+ readonly resizeEnabled: true;
16
9
  readonly rotateEnabled: true;
17
- readonly rotateSize: 18;
18
- readonly rotateCornerRadius: 9;
19
- readonly rotateAnchorOffset: 28;
10
+ readonly rotateAnchorOffset: number;
20
11
  readonly rotateAnchorPosition: "bottom";
21
12
  readonly rotateLineEnabled: false;
22
- readonly rotateFill: "#ffffff";
23
- readonly rotateStroke: "#4086f4";
24
- readonly rotateStrokeWidth: 1;
13
+ readonly rotateSize: number;
14
+ readonly rotateCornerRadius: number;
15
+ readonly rotateFill: string;
16
+ readonly rotateStroke: string;
17
+ readonly rotateStrokeWidth: number;
25
18
  readonly rotateIconEnabled: true;
26
- readonly rotateIconStroke: "#4086f4";
27
- readonly rotateIconStrokeWidth: 1.25;
28
- readonly resizeEnabled: true;
29
- readonly keepRatio: false;
30
- readonly moveBoundaryEnabled: false;
19
+ readonly rotateIconStroke: string;
20
+ readonly rotateIconStrokeWidth: number;
21
+ readonly borderEnabled: true;
22
+ readonly borderStroke: string;
23
+ readonly borderStrokeWidth: number;
24
+ readonly borderSpacing: number;
25
+ readonly anchorFill: string;
26
+ readonly anchorStroke: string;
27
+ readonly anchorStrokeWidth: number;
28
+ readonly anchorSize: number;
29
+ readonly anchorCornerRadius: number;
30
+ readonly anchorStyle: "canva";
31
31
  };
@@ -8,4 +8,4 @@ export interface IFormulaBindingEditorDialogProps {
8
8
  onClose: () => void;
9
9
  onConfirm: (result: IFormulaBindingEditorResult) => void;
10
10
  }
11
- export declare function FormulaBindingEditorDialog(props: IFormulaBindingEditorDialogProps): import("react").JSX.Element;
11
+ export declare function FormulaBindingEditorDialog(props: IFormulaBindingEditorDialogProps): import("react").JSX.Element | null;
@@ -4,6 +4,9 @@ import type { ReactNode } from 'react';
4
4
  import type { IShapeFloatingToolbarExtensionGroup } from '../shape-floating-toolbar/ShapeFloatingToolbar';
5
5
  interface IUseFormulaShapeToolbarOptions extends IShapeFormulaIdentity {
6
6
  shapeData?: IShapeData;
7
+ registerBinding?: boolean;
8
+ showLabels?: boolean;
9
+ dropdownSide?: 'top' | 'bottom';
7
10
  onUpdateBinding: (binding: IShapeFormulaBinding) => void;
8
11
  }
9
12
  export declare function useFormulaShapeToolbar(options: IUseFormulaShapeToolbarOptions): {
@@ -2,11 +2,13 @@ import type { IShapeData } from '@univerjs-pro/engine-shape';
2
2
  import type { ShapeDataUpdateHandler } from './shape-floating-toolbar-types';
3
3
  export declare function ShapeFillButton(props: {
4
4
  title: string;
5
+ label?: string;
5
6
  shapeData: IShapeData;
6
7
  open?: boolean;
7
8
  disabled?: boolean;
8
9
  fallbackColor?: string;
9
10
  fallbackGradientEndColor?: string;
11
+ dropdownSide?: 'top' | 'bottom';
10
12
  onOpenChange?: (open: boolean) => void;
11
13
  onUpdateShapeData: ShapeDataUpdateHandler;
12
14
  }): import("react").JSX.Element;
@@ -40,6 +40,7 @@ export interface IShapeFloatingToolbarExtensionGroup {
40
40
  actions: IShapeFloatingToolbarExtensionAction[];
41
41
  }
42
42
  export interface IShapeFloatingToolbarProps {
43
+ canvasElement: HTMLCanvasElement;
43
44
  shapeData?: IShapeData;
44
45
  shapeType?: ShapeTypeEnum;
45
46
  textStyle: ITextStyle;
@@ -59,8 +60,6 @@ export interface IShapeFloatingToolbarProps {
59
60
  groupAction?: IShapeFloatingToolbarGroupAction;
60
61
  layerActions?: IShapeFloatingToolbarLayerActions;
61
62
  extensionGroups?: IShapeFloatingToolbarExtensionGroup[];
62
- collapseLabel?: string;
63
- expandLabel?: string;
64
63
  deleteLabel?: string;
65
64
  onOpenPanel?: () => void;
66
65
  onDelete?: () => void;
@@ -1,4 +1,10 @@
1
- import type { MouseEvent, PointerEvent, ReactNode } from 'react';
1
+ import type { ComponentProps, MouseEvent, PointerEvent, ReactNode } from 'react';
2
+ import { Dropdown, Tooltip } from '@univerjs/design';
3
+ export declare function ShapeFloatingToolbarTooltip(props: Omit<ComponentProps<typeof Tooltip>, 'visible' | 'onVisibleChange'> & {
4
+ popupOpen: boolean;
5
+ }): import("react").JSX.Element;
6
+ type ShapeFloatingToolbarDropdownProps = Omit<ComponentProps<typeof Dropdown>, 'avoidCollisions'>;
7
+ export declare function ShapeFloatingToolbarDropdown(props: ShapeFloatingToolbarDropdownProps): import("react").JSX.Element;
2
8
  export declare function ShapeFloatingToolbarIcon(props: {
3
9
  children: ReactNode;
4
10
  className?: string;
@@ -16,7 +22,7 @@ export declare function ShapeFloatingToolbarButton(props: {
16
22
  children: ReactNode;
17
23
  className?: string;
18
24
  sizeClassName?: string;
19
- tooltipVisible?: boolean;
25
+ popupOpen?: boolean;
20
26
  ariaExpanded?: boolean;
21
27
  onClick?: () => void;
22
28
  onMouseDown?: (event: MouseEvent<HTMLButtonElement>) => void;
@@ -24,6 +30,7 @@ export declare function ShapeFloatingToolbarButton(props: {
24
30
  }): import("react").JSX.Element;
25
31
  export declare function ShapeFloatingToolbarDropdownTrigger(props: {
26
32
  title?: string;
33
+ label?: string;
27
34
  icon: ReactNode;
28
35
  active?: boolean;
29
36
  className?: string;
@@ -34,6 +41,8 @@ export declare function ShapeFloatingToolbarDropdownTrigger(props: {
34
41
  export declare function ShapeFloatingToolbarFontSizeSelect(props: {
35
42
  value: string | number;
36
43
  className?: string;
44
+ dropdownSide?: 'top' | 'bottom';
37
45
  onChange: (fontSize: number) => void;
38
46
  onAfterChange?: () => void;
39
47
  }): import("react").JSX.Element;
48
+ export {};
@@ -20,17 +20,22 @@ export interface IShapeStrokePanelContentProps {
20
20
  };
21
21
  onReset?: () => void;
22
22
  onRequestClose?: () => void;
23
+ closeOnColorChange?: boolean;
23
24
  onUpdateShapeData: ShapeDataUpdateHandler;
24
25
  }
25
26
  export declare function ShapeStrokePanelContent(props: IShapeStrokePanelContentProps): import("react").JSX.Element;
26
27
  export declare function ShapeStrokePanelButton(props: {
27
28
  title: string;
29
+ label?: string;
28
30
  shapeData: IShapeData;
29
31
  open?: boolean;
30
32
  disabled?: boolean;
31
33
  resetLabel?: string;
32
34
  fallbackColor?: string;
35
+ dropdownSide?: 'top' | 'bottom';
33
36
  onReset?: () => void;
34
37
  onOpenChange?: (open: boolean) => void;
38
+ closeOnColorChange?: boolean;
39
+ keepOpenOnInternalInteraction?: boolean;
35
40
  onUpdateShapeData: ShapeDataUpdateHandler;
36
41
  }): import("react").JSX.Element;