@univerjs-pro/sheets-shape-ui 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +5 -3
- 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 +21 -0
- 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/command-util.d.ts +9 -3
- package/lib/types/commands/menu/menu-dependencies.d.ts +2 -0
- package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
- package/lib/types/commands/operations/open-object-list-panel.operation.d.ts +5 -0
- package/lib/types/const.d.ts +2 -1
- package/lib/types/controllers/components.controller.d.ts +4 -2
- package/lib/types/controllers/shape-update.controller.d.ts +1 -0
- package/lib/types/controllers/sheet-shape-adjust.controller.d.ts +3 -6
- package/lib/types/controllers/sheet-shape-printing.controller.d.ts +12 -0
- package/lib/types/controllers/sheet-shape-render.controller.d.ts +8 -3
- package/lib/types/index.d.ts +1 -7
- package/lib/types/locale/en-US.d.ts +18 -0
- package/lib/types/services/shape-text-editing.service.d.ts +8 -0
- package/lib/types/utils/shape-text-document.d.ts +1 -11
- package/lib/types/view-model/drawing-shape.d.ts +6 -2
- package/lib/types/view-model/shape-data-model.d.ts +7 -5
- package/lib/types/views/ShapePicker.d.ts +4 -0
- package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/shape-editor-panel/ShapeFillEditor.d.ts +1 -2
- 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 +20 -19
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -1
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x4e6d8c=_0x5cb8;function _0x5cb8(_0xa55d1a,_0x54bc2d){_0xa55d1a=_0xa55d1a-0x1f0;const _0xbdaeb5=_0xbdae();let _0x5cb8f7=_0xbdaeb5[_0xa55d1a];return _0x5cb8f7;}function _0xbdae(){const _0x3995b9=['3711272vvvOev','311755YdfgZU','21842316byWYat','文字背景色','文字顏色','51601plEJbu','刪除形狀','重置顏色','物件名稱','左對齊','開啟圖層面板','22dDdhgH','刪除線','兩端對齊','靠右對齊','填滿色彩','4569230LfrxXr','右對齊','下移一層','1827942eGKpLy','選取物件以編輯詳細資料','逆時針\x2090\x20度旋轉','上移一層','插入形狀','圖形樣式','暫無物件','垂直置中','詳細資料','7cMcYEg','該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20','11DtFaUq','靠左對齊','順時針\x2090\x20度旋轉','新增描述','9cDmhMS','垂直對齊','隱藏形狀面板','放大字型','靠下對齊','靠上對齊','4XnjsFu','全部隱藏','打開形狀面板','切換水平翻轉','裁切為形狀','圖形位置','1712349TfVcxx','切換文本竖排','切換垂直翻轉'];_0xbdae=function(){return _0x3995b9;};return _0xbdae();}(function(_0x5a7e51,_0x3f319a){const _0x26e737=_0x5cb8,_0x51bb0e=_0x5a7e51();while(!![]){try{const _0x1da9e0=-parseInt(_0x26e737(0x214))/0x1*(parseInt(_0x26e737(0x21a))/0x2)+-parseInt(_0x26e737(0x20c))/0x3+-parseInt(_0x26e737(0x206))/0x4*(parseInt(_0x26e737(0x210))/0x5)+-parseInt(_0x26e737(0x1f1))/0x6*(parseInt(_0x26e737(0x1fa))/0x7)+parseInt(_0x26e737(0x20f))/0x8*(-parseInt(_0x26e737(0x200))/0x9)+-parseInt(_0x26e737(0x21f))/0xa*(-parseInt(_0x26e737(0x1fc))/0xb)+parseInt(_0x26e737(0x211))/0xc;if(_0x1da9e0===_0x3f319a)break;else _0x51bb0e['push'](_0x51bb0e['shift']());}catch(_0x57ccf1){_0x51bb0e['push'](_0x51bb0e['shift']());}}}(_0xbdae,0x4b25d));const e={'sheets-shape-ui':{'align':{'top':_0x4e6d8c(0x205),'middle':_0x4e6d8c(0x1f8),'bottom':_0x4e6d8c(0x204),'left':_0x4e6d8c(0x1fd),'center':'置中','right':_0x4e6d8c(0x21d)},'toolbar':{'verticalAlignMode':{'main':_0x4e6d8c(0x201)},'horizontalAlignMode':{'main':'水平對齊'},'fillColor':{'main':_0x4e6d8c(0x21e)},'fontSize':'字型大小','fontSizeIncrease':_0x4e6d8c(0x203),'fontSizeDecrease':'縮小字型','alignLeft':_0x4e6d8c(0x218),'alignCenter':'居中對齊','alignRight':_0x4e6d8c(0x220),'alignJustify':_0x4e6d8c(0x21c),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x4e6d8c(0x21b),'textColor':_0x4e6d8c(0x213),'textBackgroundColor':_0x4e6d8c(0x212),'resetColor':_0x4e6d8c(0x216)},'imagePanel':{'crop':{'shape':_0x4e6d8c(0x20a)}},'permission':{'editErr':_0x4e6d8c(0x1fb)},'title':'形狀','insertShape':_0x4e6d8c(0x1f5),'openPanel':_0x4e6d8c(0x208),'deleteShape':_0x4e6d8c(0x215),'hidePanel':_0x4e6d8c(0x202),'formatShape':'格式化形狀','shapeStyle':_0x4e6d8c(0x1f6),'shapePosition':_0x4e6d8c(0x20b),'toggleFlipH':_0x4e6d8c(0x209),'toggleFlipV':_0x4e6d8c(0x20e),'rotateRight90':_0x4e6d8c(0x1fe),'rotateLeft90':_0x4e6d8c(0x1f3),'toggleTextVertical':_0x4e6d8c(0x20d),'objectListPanel':{'title':'圖層','open':_0x4e6d8c(0x219),'empty':_0x4e6d8c(0x1f7),'showAll':'全部顯示','hideAll':_0x4e6d8c(0x207),'show':'顯示','hide':'隱藏','moveForward':_0x4e6d8c(0x1f4),'moveBackward':_0x4e6d8c(0x1f0),'close':'關閉','name':'名稱','nameInput':_0x4e6d8c(0x217),'description':'描述','descriptionPlaceholder':_0x4e6d8c(0x1ff),'details':_0x4e6d8c(0x1f9),'noSelection':_0x4e6d8c(0x1f2)}}};export{e as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ICxnShapeData, IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import type { ICommandService } from '@univerjs/core';
|
|
1
|
+
import type { ICxnShapeData, IShapeData, IShapeTextDataModel, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { HorizontalAlign, ICommandService, IDocumentData, VerticalAlign } from '@univerjs/core';
|
|
3
3
|
interface IOldShapeData {
|
|
4
4
|
oldShapeData?: IShapeData;
|
|
5
5
|
oldShapeType?: ShapeTypeEnum;
|
|
@@ -8,6 +8,12 @@ export declare function updateShapeData(commandService: ICommandService, unitId:
|
|
|
8
8
|
export declare function updateLineShapeData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, shapeData?: ICxnShapeData): Promise<boolean>;
|
|
9
9
|
/**
|
|
10
10
|
* set shape text data
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Legacy helper kept for compatibility with older callers that only
|
|
13
|
+
* wrote `dataModel`. New code should update canonical `shapeText` through
|
|
14
|
+
* `updateShapeData` or the shared shape text editor adapter so text behavior
|
|
15
|
+
* fields such as `autoFitType`, `textWrap`, and `textRectPadding` are preserved.
|
|
16
|
+
*
|
|
11
17
|
* @param commandService
|
|
12
18
|
* @param unitId
|
|
13
19
|
* @param subUnitId
|
|
@@ -16,5 +22,5 @@ export declare function updateLineShapeData(commandService: ICommandService, uni
|
|
|
16
22
|
* @param textDataJson
|
|
17
23
|
* @returns {boolean} whether the command executed successfully
|
|
18
24
|
*/
|
|
19
|
-
export declare function updateShapeTextData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, textDataJson:
|
|
25
|
+
export declare function updateShapeTextData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, textDataJson: IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>): Promise<boolean>;
|
|
20
26
|
export {};
|
package/lib/types/const.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const SHEET_SHAPE_EDIT_PANEL_KEY = "sheet.shape.edit.panel";
|
|
2
|
+
export declare const SHEET_SHAPE_OBJECT_LIST_PANEL_KEY = "sheet.shape.object-list.panel";
|
|
2
3
|
export declare const SHEET_SHAPE_FLOATING_TOOLBAR_KEY = "sheet.shape.floating-toolbar";
|
|
3
4
|
export declare const DOCS_SHAPE_EDITOR_UNIT_ID_KEY: string;
|
|
4
|
-
export declare const ShapeTextEditorContainer = "
|
|
5
|
+
export declare const ShapeTextEditorContainer = "SheetShapeTextEditorContainer";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
2
|
+
import { ComponentManager, IconManager } from '@univerjs/ui';
|
|
3
3
|
export declare class ComponentsController extends Disposable {
|
|
4
4
|
private readonly _componentManager;
|
|
5
|
-
|
|
5
|
+
private readonly _iconManager;
|
|
6
|
+
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
7
|
+
private _registerIcons;
|
|
6
8
|
private _registerComponents;
|
|
7
9
|
}
|
|
@@ -10,6 +10,7 @@ export declare class ShapeUpdateController extends Disposable {
|
|
|
10
10
|
private readonly _currentUniverService;
|
|
11
11
|
private readonly _drawingRenderService;
|
|
12
12
|
private readonly _sheetDrawingShapeRenderController;
|
|
13
|
+
private readonly _insertingShapeKeys;
|
|
13
14
|
constructor(_commandService: ICommandService, _renderManagerService: IRenderManagerService, _drawingManagerService: IDrawingManagerService, _currentUniverService: IUniverInstanceService, _drawingRenderService: DrawingRenderService, _sheetDrawingShapeRenderController: SheetDrawingShapeRenderController);
|
|
14
15
|
private _initialize;
|
|
15
16
|
private _drawingAddListener;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
1
|
+
import type { IRenderModule } from '@univerjs/engine-render';
|
|
3
2
|
import { SheetsShapeService } from '@univerjs-pro/sheets-shape';
|
|
4
|
-
import { Disposable, ICommandService,
|
|
3
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
5
4
|
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
6
5
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
6
|
import { SheetDrawingShapeRenderController } from './sheet-shape-render.controller';
|
|
8
7
|
export declare class SheetShapeAdjustController extends Disposable implements IRenderModule {
|
|
9
|
-
private readonly _context;
|
|
10
|
-
private readonly _contextService;
|
|
11
8
|
private _drawingManagerService;
|
|
12
9
|
private _sheetsShapeService;
|
|
13
10
|
private readonly _renderManagerService;
|
|
@@ -29,7 +26,7 @@ export declare class SheetShapeAdjustController extends Disposable implements IR
|
|
|
29
26
|
private _adjHandlerPointerMove;
|
|
30
27
|
private _adjHandlerPointerUp;
|
|
31
28
|
private _isShouldShowDrawingShapeAdjust;
|
|
32
|
-
constructor(
|
|
29
|
+
constructor(_drawingManagerService: IDrawingManagerService, _sheetsShapeService: SheetsShapeService, _renderManagerService: IRenderManagerService, _sheetDrawingShapeRenderController: SheetDrawingShapeRenderController, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService);
|
|
33
30
|
private _getShapeAdjustPointListById;
|
|
34
31
|
clearAdjustControls(): void;
|
|
35
32
|
refreshAdjustControls(): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
3
|
+
import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
|
|
4
|
+
import { SheetDrawingShapeRenderController } from './sheet-shape-render.controller';
|
|
5
|
+
/** Adds visible sheet shapes to the isolated print scene and tracks their async fills. */
|
|
6
|
+
export declare class SheetShapePrintingController extends Disposable {
|
|
7
|
+
private readonly _sheetPrintInterceptorService;
|
|
8
|
+
private readonly _drawingManagerService;
|
|
9
|
+
private readonly _shapeRenderController;
|
|
10
|
+
constructor(_sheetPrintInterceptorService: SheetPrintInterceptorService, _drawingManagerService: IDrawingManagerService, _shapeRenderController: SheetDrawingShapeRenderController);
|
|
11
|
+
private _initPrinting;
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IDrawingShapeData } from '@univerjs-pro/sheets-shape';
|
|
2
2
|
import type { Scene } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetsShapeService } from '@univerjs-pro/sheets-shape';
|
|
4
|
-
import { Disposable, IURLImageService, LocaleService } from '@univerjs/core';
|
|
5
|
-
import { IDrawingManagerService
|
|
4
|
+
import { Disposable, IImageIoService, IURLImageService, LocaleService } from '@univerjs/core';
|
|
5
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
6
6
|
import { DrawingShape } from '../view-model/drawing-shape';
|
|
7
7
|
export declare class SheetDrawingShapeRenderController extends Disposable {
|
|
8
8
|
private readonly _drawingManagerService;
|
|
@@ -11,7 +11,12 @@ export declare class SheetDrawingShapeRenderController extends Disposable {
|
|
|
11
11
|
private readonly _imageIoService;
|
|
12
12
|
private readonly _urlImageService;
|
|
13
13
|
constructor(_drawingManagerService: IDrawingManagerService, _sheetsShapeService: SheetsShapeService, _localeService: LocaleService, _imageIoService: IImageIoService, _urlImageService: IURLImageService);
|
|
14
|
-
|
|
14
|
+
/** The optional collector lets print callers wait for asynchronous picture fills. */
|
|
15
|
+
renderDrawingShape(drawingShapeParam: IDrawingShapeData, scene: Scene, options?: {
|
|
16
|
+
resourceCollector?: {
|
|
17
|
+
add: (resource: Promise<unknown>) => void;
|
|
18
|
+
};
|
|
19
|
+
}): DrawingShape[] | undefined;
|
|
15
20
|
/**
|
|
16
21
|
* If the shape has PictureFill, resolve the image (from cache or network) and
|
|
17
22
|
* inject it into the DrawingShape so that _draw() can pass it to renderOption.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
-
export {
|
|
3
|
-
export { SetShapeTextFontSizeCommand, SetShapeTextFontSizeDecreaseCommand, SetShapeTextFontSizeIncreaseCommand } from './commands/command/set-shape-text-style.command';
|
|
4
|
-
export { SetShapeTextVerticalAlignCommand } from './commands/command/set-shape-text-vertical-align.command';
|
|
5
|
-
export { ShapeDocAlignCommand } from './commands/command/shape-doc-align.command';
|
|
6
|
-
export { UpdateShapeDataCommand } from './commands/command/update-shape-data.command';
|
|
7
|
-
export type { IUniverSheetsShapeUIConfig } from './config/config';
|
|
8
|
-
export { SheetsShapeUIController } from './controllers/ui.controller';
|
|
2
|
+
export { menuSchema as SheetsShapeUIMenuSchema } from './menu/schema';
|
|
9
3
|
export { UniverSheetsShapeUIPlugin } from './plugin';
|
|
@@ -54,6 +54,24 @@ declare const locale: {
|
|
|
54
54
|
rotateRight90: string;
|
|
55
55
|
rotateLeft90: string;
|
|
56
56
|
toggleTextVertical: string;
|
|
57
|
+
objectListPanel: {
|
|
58
|
+
title: string;
|
|
59
|
+
open: string;
|
|
60
|
+
empty: string;
|
|
61
|
+
showAll: string;
|
|
62
|
+
hideAll: string;
|
|
63
|
+
show: string;
|
|
64
|
+
hide: string;
|
|
65
|
+
moveForward: string;
|
|
66
|
+
moveBackward: string;
|
|
67
|
+
close: string;
|
|
68
|
+
name: string;
|
|
69
|
+
nameInput: string;
|
|
70
|
+
description: string;
|
|
71
|
+
descriptionPlaceholder: string;
|
|
72
|
+
details: string;
|
|
73
|
+
noSelection: string;
|
|
74
|
+
};
|
|
57
75
|
};
|
|
58
76
|
};
|
|
59
77
|
export default locale;
|
|
@@ -17,4 +17,12 @@ export declare class ShapeTextEditingService extends Disposable {
|
|
|
17
17
|
setEditing(params: Nullable<IEditingParams>): void;
|
|
18
18
|
setOnSavingEditorData(params: Nullable<boolean>): void;
|
|
19
19
|
getEditing(): Nullable<IEditingParams>;
|
|
20
|
+
/**
|
|
21
|
+
* Keep the session mounted for one frame after raising the save signal.
|
|
22
|
+
* The shared shape-text editor persists its document while that signal is true;
|
|
23
|
+
* clearing the session first would discard newly entered text on external click.
|
|
24
|
+
*/
|
|
25
|
+
completeEditing(_event?: PointerEvent): void;
|
|
26
|
+
/** Cancel without raising the save signal, for example when Escape is pressed. */
|
|
27
|
+
cancelEditing(): void;
|
|
20
28
|
}
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { HorizontalAlign, IDocumentData, VerticalAlign } from '@univerjs/core';
|
|
3
|
-
interface IPrepareShapeTextDocumentOptions {
|
|
4
|
-
isHorizontal: boolean;
|
|
5
|
-
textRect: IShapeRect;
|
|
6
|
-
verticalAlign?: VerticalAlign;
|
|
7
|
-
horizontalAlign?: HorizontalAlign;
|
|
8
|
-
}
|
|
9
|
-
export declare function prepareShapeTextDocumentData(documentData: IDocumentData, options: IPrepareShapeTextDocumentOptions): IDocumentData;
|
|
10
|
-
export declare function stripShapeTextDocumentLayout(documentData: IDocumentData): IDocumentData;
|
|
11
|
-
export {};
|
|
1
|
+
export { prepareShapeTextDocumentData, stripShapeTextDocumentLayout, } from '@univerjs-pro/shape-editor-ui';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ShapeModel } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import type { IDrawingParam, ISrcRect, LocaleService, Nullable } from '@univerjs/core';
|
|
1
|
+
import type { ICustomShapeTextData, IShapeData, ShapeModel } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IDocumentData, IDrawingParam, ISrcRect, LocaleService, Nullable } from '@univerjs/core';
|
|
3
3
|
import type { IShapeProps, IViewportInfo, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
|
|
4
4
|
import { DrawingTypeEnum } from '@univerjs/core';
|
|
5
5
|
import { RENDER_CLASS_TYPE, Shape, Transform } from '@univerjs/engine-render';
|
|
@@ -47,6 +47,10 @@ export interface IDrawingShapeData extends IDrawingParam {
|
|
|
47
47
|
*/
|
|
48
48
|
prstGeom?: Nullable<string>;
|
|
49
49
|
}
|
|
50
|
+
export declare function resolveDrawingShapeTextRenderPolicy(shapeData: IShapeData, customTextData: ICustomShapeTextData, documentData?: IDocumentData): {
|
|
51
|
+
clip: boolean;
|
|
52
|
+
wrapStrategy: import("@univerjs/core").WrapStrategy;
|
|
53
|
+
};
|
|
50
54
|
export declare class DrawingShape extends Shape<IDrawingShapeProps> {
|
|
51
55
|
protected _props: IDrawingShapeProps;
|
|
52
56
|
private _transformCalculateSrcRect;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { IShapeTextDataModel } from '@univerjs-pro/engine-shape';
|
|
1
2
|
import type { HorizontalAlign, IDocumentData, VerticalAlign } from '@univerjs/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>`
|
|
5
|
+
* from `@univerjs-pro/engine-shape`. This alias is kept for legacy sheets-shape
|
|
6
|
+
* callers while shape text is converging across products.
|
|
7
|
+
*/
|
|
8
|
+
export type IShapeTextModel = IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { IMAGE_CLIP_SHAPE_PICKER_COMPONENT } from '@univerjs/drawing-ui';
|
|
1
2
|
export declare const SHAPE_PICKER_COMPONENT = "sheet.shape.picker.component";
|
|
3
|
+
export declare const SHEET_IMAGE_CLIP_SHAPE_PICKER_COMPONENT = "sheet.image-clip.shape-picker.component";
|
|
4
|
+
export { IMAGE_CLIP_SHAPE_PICKER_COMPONENT };
|
|
2
5
|
export declare function ImageClipShapePicker(): import("react").JSX.Element;
|
|
6
|
+
export declare function ImageClipShapePickerBridge(): import("react").JSX.Element | null;
|
|
3
7
|
export declare function ShapePicker(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SheetDrawingObjectListPanel(): import("react").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IShapeData } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { getInitialShapeFillType } from '@univerjs-pro/shape-editor-ui';
|
|
3
2
|
interface IShapeFillProps {
|
|
4
3
|
unitId: string;
|
|
5
4
|
subUnitId: string;
|
|
@@ -8,5 +7,5 @@ interface IShapeFillProps {
|
|
|
8
7
|
isLineShape: boolean;
|
|
9
8
|
disableShapeOption: boolean;
|
|
10
9
|
}
|
|
11
|
-
export { getInitialShapeFillType };
|
|
12
10
|
export declare function ShapeFillEditor(props: IShapeFillProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|