@univerjs-pro/shape-editor-ui 1.0.0-alpha.3 → 1.0.0-alpha.5
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +20 -24
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/components.controller.d.ts +1 -1
- package/lib/types/index.d.ts +5 -3
- package/lib/types/locale/en-US.d.ts +19 -0
- package/lib/types/utils/util.d.ts +5 -0
- package/lib/types/views/shape-editor-panel/ShapeTextBoxEditor.d.ts +2 -0
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +2 -4
- package/lib/types/views/shape-text-editor/ShapeTextEditor.d.ts +4 -4
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
- package/lib/types/views/shape-text-editor/shape-text-float-menu-render-controller-base.d.ts +1 -5
- package/lib/types/views/shape-text-editor/shape-text-no-wrap-layout.d.ts +2 -1
- package/lib/types/views/shape-text-editor/types.d.ts +3 -7
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICustomShapeTextData, IShapeData, IShapeRect, IShapeTextBodyBehavior, IShapeTextData
|
|
1
|
+
import type { ICustomShapeTextData, IShapeData, IShapeRect, IShapeTextBodyBehavior, IShapeTextData } from '@univerjs-pro/engine-shape';
|
|
2
2
|
import type { HorizontalAlign, IDocumentData, ITransformState, Nullable, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
3
3
|
import type { IRender } from '@univerjs/engine-render';
|
|
4
4
|
import type { CSSProperties } from 'react';
|
|
@@ -17,12 +17,8 @@ export interface IShapeTextEditingService {
|
|
|
17
17
|
completeEditing?(event?: PointerEvent): void;
|
|
18
18
|
cancelEditing?(): void;
|
|
19
19
|
}
|
|
20
|
-
export type IShapeTextModel = IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign> & {
|
|
21
|
-
doc: IDocumentData;
|
|
22
|
-
};
|
|
23
|
-
export declare function normalizeShapeTextModel(dataModel: IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign> | null | undefined): IShapeTextModel | null;
|
|
24
20
|
export declare function stripShapeTextPlainMarker(shapeText: IShapeTextData | ICustomShapeTextData | null | undefined): ICustomShapeTextData;
|
|
25
|
-
export interface
|
|
21
|
+
export interface IShapeTextEditorModel {
|
|
26
22
|
getShapeTextData(): ICustomShapeTextData;
|
|
27
23
|
getShapeTextRect(rect: IShapeRect): IShapeRect;
|
|
28
24
|
}
|
|
@@ -61,7 +57,7 @@ export interface IShapeTextHostSizeUpdateParams {
|
|
|
61
57
|
height: number;
|
|
62
58
|
}
|
|
63
59
|
export interface IShapeTextEditorAdapter {
|
|
64
|
-
getShapeModel(unitId: string, subUnitId: string, shapeId: string): Nullable<
|
|
60
|
+
getShapeModel(unitId: string, subUnitId: string, shapeId: string): Nullable<IShapeTextEditorModel>;
|
|
65
61
|
getShapeData?(unitId: string, subUnitId: string, shapeId: string): Nullable<IShapeData>;
|
|
66
62
|
getDrawingTransform(unitId: string, subUnitId: string, shapeId: string): Nullable<ITransformState>;
|
|
67
63
|
updateShapeText(params: IShapeTextUpdateParams): void;
|