@univerjs-pro/shape-editor-ui 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (103) hide show
  1. package/lib/cjs/formula-shape-en-us-B0fVf3OO.js +1 -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/formula-shape-en-us-BbvC914f.js +1 -0
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/formula-shape-en-us-BbvC914f.js +1 -0
  44. package/lib/index.css +206 -40
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/common/formula-shape-en-us.d.ts +44 -0
  66. package/lib/types/config/config.d.ts +39 -0
  67. package/lib/types/index.d.ts +16 -1
  68. package/lib/types/locale/en-US.d.ts +78 -1
  69. package/lib/types/services/formula-binding-editor.d.ts +23 -0
  70. package/lib/types/services/formula-binding-reference.d.ts +15 -0
  71. package/lib/types/services/formula-binding-unit-viewer.service.d.ts +67 -0
  72. package/lib/types/utils/activate-drawing-object.d.ts +1 -1
  73. package/lib/types/views/FormulaBindingEditorDialog.d.ts +11 -0
  74. package/lib/types/views/FormulaBindingNumberFormat.d.ts +23 -0
  75. package/lib/types/views/formula-binding-number-format-utils.d.ts +17 -0
  76. package/lib/types/views/formula-shape/UseFormulaShapeToolbar.d.ts +13 -0
  77. package/lib/types/views/formula-shape/formula-shape-animation.d.ts +33 -0
  78. package/lib/types/views/formula-shape/formula-shape-auto-fit.d.ts +15 -0
  79. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +23 -14
  80. package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +1 -1
  81. package/lib/types/views/shape-text-editor/shape-text-behavior.d.ts +0 -3
  82. package/lib/types/views/shape-text-editor/shape-text-placeholder.d.ts +1 -0
  83. package/lib/umd/index.js +1 -1
  84. package/lib/umd/locale/ar-SA.js +1 -1
  85. package/lib/umd/locale/ca-ES.js +1 -1
  86. package/lib/umd/locale/de-DE.js +1 -1
  87. package/lib/umd/locale/en-US.js +1 -1
  88. package/lib/umd/locale/es-ES.js +1 -1
  89. package/lib/umd/locale/fa-IR.js +1 -1
  90. package/lib/umd/locale/fr-FR.js +1 -1
  91. package/lib/umd/locale/id-ID.js +1 -1
  92. package/lib/umd/locale/it-IT.js +1 -1
  93. package/lib/umd/locale/ja-JP.js +1 -1
  94. package/lib/umd/locale/ko-KR.js +1 -1
  95. package/lib/umd/locale/pl-PL.js +1 -1
  96. package/lib/umd/locale/pt-BR.js +1 -1
  97. package/lib/umd/locale/ru-RU.js +1 -1
  98. package/lib/umd/locale/sk-SK.js +1 -1
  99. package/lib/umd/locale/vi-VN.js +1 -1
  100. package/lib/umd/locale/zh-CN.js +1 -1
  101. package/lib/umd/locale/zh-HK.js +1 -1
  102. package/lib/umd/locale/zh-TW.js +1 -1
  103. package/package.json +25 -12
@@ -0,0 +1,67 @@
1
+ import type { BaseDataModel } from '@univerjs/core';
2
+ import type { FormulaSequenceNode, IFormulaRefSelection } from '@univerjs/engine-formula';
3
+ import type { IFormulaBindingHost, IFormulaBindingUnitResource } from '../config/config';
4
+ import type { IFormulaBindingReferenceSelectionChange } from './formula-binding-editor';
5
+ import { Disposable, IConfigService, IUniverInstanceService, LocaleService, ThemeService, Workbook } from '@univerjs/core';
6
+ export type FormulaBindingViewerUnit = Workbook | BaseDataModel;
7
+ export interface IFormulaBindingViewerFormulaContext {
8
+ formula: string;
9
+ sequenceNodes: FormulaSequenceNode[];
10
+ refSelections: IFormulaRefSelection[];
11
+ selectionStart: number;
12
+ selectionEnd: number;
13
+ }
14
+ /** Owns the real, isolated Univer rendered inside the cross-unit formula editor. */
15
+ export declare class FormulaBindingUnitViewerService extends Disposable {
16
+ private readonly _configService;
17
+ private readonly _instanceService;
18
+ private readonly _localeService;
19
+ private readonly _themeService;
20
+ private _univer;
21
+ private _activeUnitId;
22
+ private _container;
23
+ private _generation;
24
+ private _selectionDisposables;
25
+ private _formulaContext;
26
+ private _host;
27
+ private _resource;
28
+ private _onSelectReferences;
29
+ private _activeWorkbook;
30
+ private _activeBase;
31
+ private _visibleReferenceIndexes;
32
+ private _isApplyingBaseHighlight;
33
+ private _pointerCtrlKey;
34
+ private _pointerListener;
35
+ private _selectionChangingDisposable;
36
+ private _controlDisposables;
37
+ private _isDraggingFormulaSelection;
38
+ private _closeRequest;
39
+ constructor(_configService: IConfigService, _instanceService: IUniverInstanceService, _localeService: LocaleService, _themeService: ThemeService);
40
+ listUnits(): Promise<IFormulaBindingUnitResource[]>;
41
+ mount(container: HTMLElement): void;
42
+ switchUnit(resource: IFormulaBindingUnitResource, host: IFormulaBindingHost, onSelectReferences: (change: IFormulaBindingReferenceSelectionChange) => void): Promise<FormulaBindingViewerUnit | null>;
43
+ private _makeBaseSnapshotReadOnly;
44
+ private _setBasePermissionsReadOnly;
45
+ updateFormulaContext(context: IFormulaBindingViewerFormulaContext): void;
46
+ close(): void;
47
+ /** Defers nested Univer disposal until the owning React tree has finished unmounting. */
48
+ scheduleClose(): void;
49
+ private _closeNow;
50
+ dispose(): void;
51
+ private _createUniver;
52
+ private _observeSheetSelection;
53
+ private _observeBaseSelection;
54
+ private _handleBaseSelectionChange;
55
+ private _getBaseReferenceSource;
56
+ private _emitSheetSelectionChange;
57
+ private _refreshFormulaSelections;
58
+ private _refreshSheetFormulaSelections;
59
+ private _refreshBaseFormulaSelection;
60
+ private _bindFormulaSelectionControls;
61
+ private _getEditingContext;
62
+ private _canSelectFormulaReference;
63
+ private _matchesSheetReference;
64
+ private _matchesUnitQualifier;
65
+ private _createExternalReference;
66
+ private _listLoadedUnits;
67
+ }
@@ -14,7 +14,7 @@ interface ISceneLike {
14
14
  };
15
15
  }
16
16
  interface IRenderManagerLike {
17
- getRenderById: (unitId: string) => {
17
+ getRenderUnitById: (unitId: string) => {
18
18
  scene?: ISceneLike;
19
19
  } | undefined;
20
20
  }
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { IFormulaBindingEditorResult, IFormulaBindingEditorValue, IFormulaBindingHost } from '../config/config';
3
+ export interface IFormulaBindingEditorDialogProps {
4
+ open: boolean;
5
+ host: IFormulaBindingHost;
6
+ value: IFormulaBindingEditorValue;
7
+ footerLeading?: ReactNode;
8
+ onClose: () => void;
9
+ onConfirm: (result: IFormulaBindingEditorResult) => void;
10
+ }
11
+ export declare function FormulaBindingEditorDialog(props: IFormulaBindingEditorDialogProps): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ export type FormulaBindingNumberFormatType = 'general' | 'accounting' | 'currency' | 'date' | 'number' | 'custom';
2
+ export type FormulaBindingNumberFormatMenuEntry = {
3
+ kind: 'format';
4
+ key: string;
5
+ pattern: string;
6
+ } | {
7
+ kind: 'separator';
8
+ key: string;
9
+ } | {
10
+ kind: 'more';
11
+ };
12
+ export declare function createFormulaBindingNumberFormatMenuEntries(currencySymbol: string): FormulaBindingNumberFormatMenuEntry[];
13
+ export declare function resolveFormulaBindingNumberFormatType(pattern: string): FormulaBindingNumberFormatType;
14
+ export declare function FormulaBindingNumberFormatMenu(props: {
15
+ onSelect: (pattern: string) => void;
16
+ onMore: () => void;
17
+ }): import("react").JSX.Element;
18
+ export declare function FormulaBindingNumberFormatDialog(props: {
19
+ open: boolean;
20
+ pattern: string;
21
+ onClose: () => void;
22
+ onConfirm: (pattern: string) => void;
23
+ }): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ export declare function getFormulaBindingCurrencyType(pattern: string): string | undefined;
2
+ export declare function getFormulaBindingDecimalFromPattern(pattern: string, defaultValue?: number): number;
3
+ export declare function setFormulaBindingPatternDecimal(patterns: string, decimalLength: number): string;
4
+ export declare function getFormulaBindingCurrencyFormatOptions(symbol: string): {
5
+ label: string;
6
+ value: string;
7
+ color: string | undefined;
8
+ }[];
9
+ export declare function getFormulaBindingDateFormatOptions(): {
10
+ label: string;
11
+ value: string;
12
+ }[];
13
+ export declare function getFormulaBindingNumberFormatOptions(): {
14
+ label: string;
15
+ value: string;
16
+ color: string | undefined;
17
+ }[];
@@ -0,0 +1,13 @@
1
+ import type { IShapeData, IShapeFormulaBinding } from '@univerjs-pro/engine-shape';
2
+ import type { IShapeFormulaIdentity } from '@univerjs-pro/shape-editor';
3
+ import type { ReactNode } from 'react';
4
+ import type { IShapeFloatingToolbarExtensionGroup } from '../shape-floating-toolbar/ShapeFloatingToolbar';
5
+ interface IUseFormulaShapeToolbarOptions extends IShapeFormulaIdentity {
6
+ shapeData?: IShapeData;
7
+ onUpdateBinding: (binding: IShapeFormulaBinding) => void;
8
+ }
9
+ export declare function useFormulaShapeToolbar(options: IUseFormulaShapeToolbarOptions): {
10
+ extensionGroups?: IShapeFloatingToolbarExtensionGroup[];
11
+ panel: ReactNode;
12
+ };
13
+ export {};
@@ -0,0 +1,33 @@
1
+ import type { IShapeFormulaPresentation } from '@univerjs-pro/shape-editor';
2
+ import type { UniverRenderingContext } from '@univerjs/engine-render';
3
+ export declare const FORMULA_SHAPE_ANIMATION_DURATION = 360;
4
+ export declare const FORMULA_SHAPE_TEXT_FLOAT_DISTANCE = 8;
5
+ export interface IFormulaShapeAnimationLayer {
6
+ key: 'current' | 'previous';
7
+ offsetY: number;
8
+ opacity: number;
9
+ presentation: IShapeFormulaPresentation | undefined;
10
+ }
11
+ export declare function resolveFormulaShapeAnimationLayers(previous: IShapeFormulaPresentation | undefined, current: IShapeFormulaPresentation | undefined, progress: number): IFormulaShapeAnimationLayer[];
12
+ export declare class FormulaShapeAnimationController {
13
+ private readonly _makeDirty;
14
+ private readonly _onAnimationCompleted;
15
+ private _current;
16
+ private _previous;
17
+ private _lastResolved;
18
+ private _progress;
19
+ private _startedAt;
20
+ private _frameId;
21
+ constructor(_makeDirty: () => void, _onAnimationCompleted?: () => void);
22
+ setPresentation(presentation: IShapeFormulaPresentation | undefined, animate?: boolean): void;
23
+ getLayers(): IFormulaShapeAnimationLayer[];
24
+ /**
25
+ * Returns the resolved presentations whose text must fit inside the shape while an animation is active.
26
+ * Keeping both endpoints prevents either the outgoing or incoming value from overflowing the transformer.
27
+ */
28
+ getAutoFitPresentations(): IShapeFormulaPresentation[];
29
+ dispose(): void;
30
+ private readonly _tick;
31
+ private _cancelFrame;
32
+ }
33
+ export declare function drawFormulaShapeAnimationLayers(ctx: UniverRenderingContext, controller: FormulaShapeAnimationController, draw: (ctx: UniverRenderingContext, presentation: IShapeFormulaPresentation | undefined, layerKey: IFormulaShapeAnimationLayer['key']) => void): void;
@@ -0,0 +1,15 @@
1
+ import type { IShapeData, IShapeRect } from '@univerjs-pro/engine-shape';
2
+ import type { IDocumentData } from '@univerjs/core';
3
+ export interface IFormulaShapeAutoFitSize {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ /** Resolves the runtime size implied by the standard OOXML shape-text auto-fit properties. */
8
+ export declare function resolveFormulaShapeAutoFitSize(options: {
9
+ documentData: IDocumentData | readonly IDocumentData[];
10
+ height: number;
11
+ shapeData: IShapeData;
12
+ textRect: IShapeRect;
13
+ width: number;
14
+ widthBuffer?: number;
15
+ }): IFormulaShapeAutoFitSize | null;
@@ -59,18 +59,20 @@ export interface IShapeFloatingToolbarProps {
59
59
  enableShapeStrokeReset?: boolean;
60
60
  enableTextBackgroundReset?: boolean;
61
61
  enableTextControls?: boolean;
62
- deferUntilCollapsedStateLoaded?: boolean;
63
62
  defaultFillColor?: string;
64
63
  defaultGradientEndColor?: string;
65
64
  defaultStrokeColor?: string;
66
65
  onUpdateShapeData: (oldShapeJSON: {
67
66
  oldShapeData?: IShapeData;
68
- }, shapeData?: IShapeData) => void;
67
+ }, shapeData?: IShapeData, patch?: IShapeData) => void;
69
68
  onUpdateText: (params: IShapeTextUpdateOptions) => void;
70
69
  onUpdateWrappingStyle?: (value: IShapeFloatingToolbarWrappingStyle) => void;
71
70
  groupAction?: IShapeFloatingToolbarGroupAction;
72
71
  layerActions?: IShapeFloatingToolbarLayerActions;
73
72
  extensionGroups?: IShapeFloatingToolbarExtensionGroup[];
73
+ collapseLabel?: string;
74
+ expandLabel?: string;
75
+ deleteLabel?: string;
74
76
  onOpenPanel?: () => void;
75
77
  onDelete?: () => void;
76
78
  }
@@ -82,17 +84,16 @@ export declare function ShapeFloatingToolbarContent(props: {
82
84
  children: ReactNode;
83
85
  className?: string;
84
86
  maxWidthClassName?: string;
85
- dataAttributes?: Record<`data-${string}`, string>;
86
87
  onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
87
88
  }): import("react").JSX.Element;
88
89
  export declare function ShapeFloatingToolbarButton(props: {
89
90
  title?: string;
90
- titleKey?: string;
91
91
  active?: boolean;
92
92
  disabled?: boolean;
93
93
  children: ReactNode;
94
94
  className?: string;
95
95
  sizeClassName?: string;
96
+ tooltipVisible?: boolean;
96
97
  ariaExpanded?: boolean;
97
98
  onClick?: () => void;
98
99
  onMouseDown?: (event: MouseEvent<HTMLButtonElement>) => void;
@@ -100,7 +101,6 @@ export declare function ShapeFloatingToolbarButton(props: {
100
101
  }): import("react").JSX.Element;
101
102
  export declare function ShapeFloatingToolbarDropdownTrigger(props: {
102
103
  title?: string;
103
- titleKey?: string;
104
104
  icon: ReactNode;
105
105
  active?: boolean;
106
106
  className?: string;
@@ -115,11 +115,15 @@ export declare function ShapeFloatingToolbarFontSizeSelect(props: {
115
115
  onAfterChange?: () => void;
116
116
  }): import("react").JSX.Element;
117
117
  export type ShapeStrokePanelMode = 'none' | 'solid' | 'dash' | 'dot';
118
+ export declare function buildShapeStrokeDataUpdate(currentStroke: IShapeData['stroke'], resolvedStroke: NonNullable<IShapeData['stroke']>, partial: Partial<NonNullable<IShapeData['stroke']>>): {
119
+ nextShapeData: IShapeData;
120
+ patch: IShapeData;
121
+ };
118
122
  export interface IShapeStrokePanelContentProps {
119
- titleKey: string;
123
+ title: string;
120
124
  shapeData: IShapeData;
121
125
  disabled?: boolean;
122
- resetLabelKey?: string;
126
+ resetLabel?: string;
123
127
  modeOptions?: ShapeStrokePanelMode[];
124
128
  showDashDropdown?: boolean;
125
129
  fallbackColor?: string;
@@ -134,37 +138,42 @@ export interface IShapeStrokePanelContentProps {
134
138
  }
135
139
  export declare function ShapeStrokePanelContent(props: IShapeStrokePanelContentProps): import("react").JSX.Element;
136
140
  export declare function ShapeStrokePanelButton(props: {
137
- titleKey: string;
141
+ title: string;
138
142
  shapeData: IShapeData;
143
+ open?: boolean;
139
144
  disabled?: boolean;
140
- resetLabelKey?: string;
145
+ resetLabel?: string;
141
146
  fallbackColor?: string;
142
147
  onReset?: () => void;
148
+ onOpenChange?: (open: boolean) => void;
143
149
  onUpdateShapeData: IShapeFloatingToolbarProps['onUpdateShapeData'];
144
150
  }): import("react").JSX.Element;
145
151
  export declare function ShapeFillButton(props: {
146
- titleKey: string;
152
+ title: string;
147
153
  shapeData: IShapeData;
154
+ open?: boolean;
148
155
  disabled?: boolean;
149
156
  fallbackColor?: string;
150
157
  fallbackGradientEndColor?: string;
158
+ onOpenChange?: (open: boolean) => void;
151
159
  onUpdateShapeData: IShapeFloatingToolbarProps['onUpdateShapeData'];
152
160
  }): import("react").JSX.Element;
153
161
  export declare function TextFillButton(props: {
154
- titleKey: string;
162
+ title: string;
155
163
  textStyle: ITextStyle;
156
164
  fallbackColor: string;
157
165
  onChange: (textStyle: ITextStyle) => void;
158
166
  }): import("react").JSX.Element;
159
167
  export declare function TextBackgroundColorButton(props: {
160
- titleKey: string;
168
+ title: string;
161
169
  color: string;
162
170
  onApply: () => void;
163
171
  onReset?: () => void;
164
172
  onChange: (color: string) => void;
165
173
  }): import("react").JSX.Element;
166
174
  export declare function TypographyPanelButton(props: {
167
- titleKey: string;
175
+ title: string;
176
+ fontFamily: string;
168
177
  textStyle: {
169
178
  isBold: boolean;
170
179
  isItalic: boolean;
@@ -179,7 +188,6 @@ export declare function TypographyPanelButton(props: {
179
188
  }): import("react").JSX.Element;
180
189
  export declare function ShapeFloatingToolbarMenuPanel(props: {
181
190
  title?: string;
182
- titleKey?: string;
183
191
  children: ReactNode;
184
192
  className?: string;
185
193
  minWidthClassName?: string;
@@ -189,6 +197,7 @@ export declare function ShapeFloatingToolbarMenuItem(props: {
189
197
  labelKey?: string;
190
198
  shortcut?: string;
191
199
  disabled?: boolean;
200
+ danger?: boolean;
192
201
  onClick: () => void;
193
202
  }): import("react").JSX.Element;
194
203
  export declare function ShapeFloatingToolbar(props: IShapeFloatingToolbarProps): import("react").JSX.Element | null;
@@ -46,7 +46,7 @@ export declare function isShapeTextEditorPointerInsideContent(target: EventTarge
46
46
  export declare function resolveShapeTextEditorPositionTransform(options: {
47
47
  editingParams: Nullable<IShapeTextEditingParams>;
48
48
  positionOptions: IShapeTextEditorPositionOptions;
49
- renderUnit: Nullable<ReturnType<IRenderManagerService['getRenderById']>>;
49
+ renderUnit: Nullable<ReturnType<IRenderManagerService['getRenderUnitById']>>;
50
50
  scene: Nullable<Scene>;
51
51
  }): Nullable<IShapeObjectLike>;
52
52
  /**
@@ -1,8 +1,5 @@
1
1
  import type { IShapeData, IShapeTextData } from '@univerjs-pro/engine-shape';
2
2
  import type { Nullable, WrapStrategy as WrapStrategyType } from '@univerjs/core';
3
- export declare function createShapeTextBoxShapeData(options: Pick<IShapeData, 'fill' | 'stroke'> & {
4
- isHorizontal: boolean;
5
- }): IShapeData;
6
3
  export declare function resolveShapeTextEditorBehaviorShapeData(shapeData: Nullable<IShapeData> | undefined, shapeTextData: IShapeTextData): IShapeData;
7
4
  export declare function resolveShapeTextEditorWrapStrategy(shapeData: IShapeData, fallbackWrapStrategy?: WrapStrategyType): WrapStrategyType;
8
5
  export declare function shouldClipShapeTextDocument(shapeData: IShapeData, wrapStrategy?: WrapStrategyType): boolean;
@@ -4,5 +4,6 @@ export declare function createShapeTextPlaceholderDocumentData(options: {
4
4
  documentData?: IDocumentData;
5
5
  isTextBox: boolean;
6
6
  placeholder: string;
7
+ showPlaceholder?: boolean;
7
8
  text?: string;
8
9
  }): IDocumentData | undefined;