@univerjs-pro/docs-shape-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.
- 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.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/commands/operations/shape-ribbon.operation.d.ts +13 -0
- package/lib/types/const.d.ts +7 -0
- package/lib/types/controllers/doc-shape-printing.controller.d.ts +12 -0
- package/lib/types/controllers/shape-contextual-ribbon.controller.d.ts +18 -0
- package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
- package/lib/types/controllers/ui.controller.d.ts +0 -3
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/menu/schema.d.ts +1 -0
- package/lib/types/menu/shape-format-ribbon.menu.d.ts +25 -0
- package/lib/types/plugin.d.ts +1 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +3 -4
- package/lib/types/views/shape-format-ribbon/DocsShapeFormatRibbonControls.d.ts +18 -0
- package/lib/types/views/shape-format-ribbon/DocsShapeWrappingStyleIcons.d.ts +8 -0
- 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 +18 -18
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x12db(){const _0xc642f5=['下移一層','34962PjybuK','打開形狀面板','底部對齊','選擇物件以編輯詳情','10371193HfKPUA','切換文本豎排','1290472iFSSMx','全部顯示','居中對齊','631553cgUswn','重置顏色','上移一層','右對齊','順時針\x2090\x20度旋轉','兩端對齊','6754705hJPfZj','開啟圖層面板','63jOQxvv','與文字排列','957819bEAAFA','快速樣式','左對齊','裁切為形狀','頂部對齊','切換水平翻轉','文字在前','刪除線','文字在後','刪除形狀','全部隱藏','物件名稱','上及下','4AOlgmB','文字顏色','圖形位置','3287874UBghSx','逆時針\x2090\x20度旋轉'];_0x12db=function(){return _0xc642f5;};return _0x12db();}const _0xf6ad11=_0x2d05;(function(_0x7740e0,_0x26b827){const _0x59dfc5=_0x2d05,_0x291583=_0x7740e0();while(!![]){try{const _0x38a4de=parseInt(_0x59dfc5(0x1d2))/0x1+parseInt(_0x59dfc5(0x1c9))/0x2+-parseInt(_0x59dfc5(0x1b6))/0x3+-parseInt(_0x59dfc5(0x1c3))/0x4*(-parseInt(_0x59dfc5(0x1d8))/0x5)+-parseInt(_0x59dfc5(0x1c6))/0x6+-parseInt(_0x59dfc5(0x1cd))/0x7+-parseInt(_0x59dfc5(0x1cf))/0x8*(-parseInt(_0x59dfc5(0x1da))/0x9);if(_0x38a4de===_0x26b827)break;else _0x291583['push'](_0x291583['shift']());}catch(_0x401fe1){_0x291583['push'](_0x291583['shift']());}}}(_0x12db,0xbe7ff));function _0x2d05(_0x2ea057,_0x26fee3){_0x2ea057=_0x2ea057-0x1b6;const _0x12db5e=_0x12db();let _0x2d0515=_0x12db5e[_0x2ea057];return _0x2d0515;}const e={'docs-shape-ui':{'quickStyles':_0xf6ad11(0x1b7),'title':'形狀','insertShape':'插入形狀','openPanel':_0xf6ad11(0x1ca),'deleteShape':_0xf6ad11(0x1bf),'hidePanel':'隱藏形狀面板','formatShape':'格式化形狀','shapeStyle':'圖形樣式','shapePosition':_0xf6ad11(0x1c5),'toggleFlipH':_0xf6ad11(0x1bb),'toggleFlipV':'切換垂直翻轉','rotateRight90':_0xf6ad11(0x1d6),'rotateLeft90':_0xf6ad11(0x1c7),'toggleTextVertical':_0xf6ad11(0x1ce),'objectListPanel':{'title':'圖層','open':_0xf6ad11(0x1d9),'empty':'暫無物件','showAll':_0xf6ad11(0x1d0),'hideAll':_0xf6ad11(0x1c0),'show':'顯示','hide':'隱藏','moveForward':_0xf6ad11(0x1d4),'moveBackward':_0xf6ad11(0x1c8),'close':'關閉','name':'名稱','nameInput':_0xf6ad11(0x1c1),'description':'描述','descriptionPlaceholder':'新增描述','details':'詳情','noSelection':_0xf6ad11(0x1cc)},'toolbar':{'alignLeft':_0xf6ad11(0x1b8),'alignCenter':_0xf6ad11(0x1d1),'alignRight':_0xf6ad11(0x1d5),'alignJustify':_0xf6ad11(0x1d7),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0xf6ad11(0x1bd),'textColor':_0xf6ad11(0x1c4),'fillColor':'文字背景色','resetColor':_0xf6ad11(0x1d3)},'align':{'top':_0xf6ad11(0x1ba),'middle':'垂直居中','bottom':_0xf6ad11(0x1cb)},'textWrap':{'inline':_0xf6ad11(0x1db),'square':'矩形','topAndBottom':_0xf6ad11(0x1c2),'behindText':_0xf6ad11(0x1bc),'inFrontText':_0xf6ad11(0x1be)},'crop':{'shape':_0xf6ad11(0x1b9)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2ad1ff=_0x24cd;function _0x24cd(_0x3ccc6c,_0xea998b){_0x3ccc6c=_0x3ccc6c-0xd5;const _0x199577=_0x1995();let _0x24cd24=_0x199577[_0x3ccc6c];return _0x24cd24;}(function(_0x416c36,_0x20f2d2){const _0x596e0e=_0x24cd,_0xb79b9f=_0x416c36();while(!![]){try{const _0x123e59=parseInt(_0x596e0e(0xf2))/0x1*(parseInt(_0x596e0e(0xd6))/0x2)+parseInt(_0x596e0e(0xe8))/0x3*(-parseInt(_0x596e0e(0xef))/0x4)+-parseInt(_0x596e0e(0xe9))/0x5*(-parseInt(_0x596e0e(0xda))/0x6)+-parseInt(_0x596e0e(0xe3))/0x7+-parseInt(_0x596e0e(0xd7))/0x8+-parseInt(_0x596e0e(0xed))/0x9+parseInt(_0x596e0e(0xee))/0xa;if(_0x123e59===_0x20f2d2)break;else _0xb79b9f['push'](_0xb79b9f['shift']());}catch(_0x1dd1ed){_0xb79b9f['push'](_0xb79b9f['shift']());}}}(_0x1995,0x3f2a4));const e={'docs-shape-ui':{'quickStyles':_0x2ad1ff(0xf3),'title':'形狀','insertShape':_0x2ad1ff(0xfa),'openPanel':_0x2ad1ff(0xf6),'deleteShape':'刪除形狀','hidePanel':_0x2ad1ff(0xd9),'formatShape':_0x2ad1ff(0xfb),'shapeStyle':_0x2ad1ff(0xe1),'shapePosition':_0x2ad1ff(0xe5),'toggleFlipH':_0x2ad1ff(0xeb),'toggleFlipV':_0x2ad1ff(0xe4),'rotateRight90':_0x2ad1ff(0xdd),'rotateLeft90':_0x2ad1ff(0xe0),'toggleTextVertical':_0x2ad1ff(0xf0),'objectListPanel':{'title':'圖層','open':_0x2ad1ff(0xec),'empty':_0x2ad1ff(0xdc),'showAll':_0x2ad1ff(0xe7),'hideAll':_0x2ad1ff(0xe6),'show':'顯示','hide':'隱藏','moveForward':'上移一層','moveBackward':_0x2ad1ff(0xf7),'close':'關閉','name':'名稱','nameInput':_0x2ad1ff(0xde),'description':'描述','descriptionPlaceholder':_0x2ad1ff(0xfc),'details':_0x2ad1ff(0xdf),'noSelection':_0x2ad1ff(0xf4)},'toolbar':{'alignLeft':'左對齊','alignCenter':_0x2ad1ff(0xf9),'alignRight':'右對齊','alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':'刪除線','textColor':_0x2ad1ff(0xdb),'fillColor':_0x2ad1ff(0xf5),'resetColor':_0x2ad1ff(0xd5)},'align':{'top':'頂部對齊','middle':_0x2ad1ff(0xe2),'bottom':_0x2ad1ff(0xd8)},'textWrap':{'inline':_0x2ad1ff(0xf1),'square':'矩形','topAndBottom':_0x2ad1ff(0xfd),'behindText':_0x2ad1ff(0xf8),'inFrontText':_0x2ad1ff(0xea)},'crop':{'shape':'裁切為形狀'}}};export{e as default};function _0x1995(){const _0x5e1028=['全部顯示','15tXXaiL','22770sjAuln','文字在後','切換水平翻轉','開啟圖層面板','1637739KpoJVl','4316470svUAaq','185104IgQMmH','切換文本竖排','與文字排列','62iVyLKE','快捷樣式','選取物件以編輯詳細資料','文字背景色','打開形狀面板','下移一層','文字在前','居中對齊','插入形狀','格式化形狀','新增描述','上及下','重置顏色','12898OFXpeM','1025880Izblpr','底部對齊','隱藏形狀面板','90gdUZmv','文字顏色','暫無物件','順時針\x2090\x20度旋轉','物件名稱','詳細資料','逆時針\x2090\x20度旋轉','圖形樣式','垂直居中','696395dGhWsb','切換垂直翻轉','圖形位置','全部隱藏'];_0x1995=function(){return _0x5e1028;};return _0x1995();}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
interface IApplyDocsShapeQuickStyleOperationParams {
|
|
4
|
+
value?: string;
|
|
5
|
+
presetId?: string;
|
|
6
|
+
}
|
|
7
|
+
interface IUpdateDocsShapeTypeOperationParams {
|
|
8
|
+
value?: ShapeTypeEnum;
|
|
9
|
+
shapeType?: ShapeTypeEnum;
|
|
10
|
+
}
|
|
11
|
+
export declare const ApplyDocsShapeQuickStyleOperation: ICommand<IApplyDocsShapeQuickStyleOperationParams>;
|
|
12
|
+
export declare const UpdateDocsShapeTypeOperation: ICommand<IUpdateDocsShapeTypeOperationParams>;
|
|
13
|
+
export {};
|
package/lib/types/const.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export declare const DOCS_SHAPE_EDIT_PANEL_KEY = "doc.shape.edit.panel";
|
|
2
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_TAB = "docs-shape-ui.ribbon.shape-format";
|
|
3
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_QUICK_STYLES = "docs-shape-ui.ribbon.shape-format.quick-styles";
|
|
4
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_STYLE = "docs-shape-ui.ribbon.shape-format.style";
|
|
5
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_TEXT = "docs-shape-ui.ribbon.shape-format.text";
|
|
6
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_ARRANGE = "docs-shape-ui.ribbon.shape-format.arrange";
|
|
7
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_FORMULA = "docs-shape-ui.ribbon.shape-format.formula";
|
|
8
|
+
export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_ADVANCED = "docs-shape-ui.ribbon.shape-format.advanced";
|
|
2
9
|
export declare const DOCS_SHAPE_OBJECT_LIST_PANEL_KEY = "doc.shape.object-list.panel";
|
|
3
10
|
export declare const DOCS_SHAPE_EDITOR_UNIT_ID_KEY: string;
|
|
4
11
|
export declare const SHAPE_TEXT_FLOAT_MENU_COMPONENT_KEY = "doc.shape.text.float-menu";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { DocPrintInterceptorService } from '@univerjs/docs-ui';
|
|
3
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
4
|
+
import { DocDrawingShapeRenderController } from './doc-shape-render.controller';
|
|
5
|
+
/** Adds visible document shapes to each isolated print scene. */
|
|
6
|
+
export declare class DocShapePrintingController extends Disposable {
|
|
7
|
+
private readonly _docPrintInterceptorService;
|
|
8
|
+
private readonly _drawingManagerService;
|
|
9
|
+
private readonly _shapeRenderController;
|
|
10
|
+
constructor(_docPrintInterceptorService: DocPrintInterceptorService, _drawingManagerService: IDrawingManagerService, _shapeRenderController: DocDrawingShapeRenderController);
|
|
11
|
+
private _initPrinting;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ShapeFloatingToolbarService } from '@univerjs-pro/shape-editor-ui';
|
|
2
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
4
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
|
+
import { IMenuManagerService, IRibbonService } from '@univerjs/ui';
|
|
6
|
+
export declare class DocsShapeContextualRibbonController extends Disposable {
|
|
7
|
+
private readonly _menuManagerService;
|
|
8
|
+
private readonly _ribbonService;
|
|
9
|
+
private readonly _drawingManagerService;
|
|
10
|
+
private readonly _univerInstanceService;
|
|
11
|
+
private readonly _renderManagerService;
|
|
12
|
+
private readonly _shapeFloatingToolbarService;
|
|
13
|
+
private _visible;
|
|
14
|
+
constructor(_menuManagerService: IMenuManagerService, _ribbonService: IRibbonService, _drawingManagerService: IDrawingManagerService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _shapeFloatingToolbarService: ShapeFloatingToolbarService);
|
|
15
|
+
dispose(): void;
|
|
16
|
+
private _update;
|
|
17
|
+
private _hide;
|
|
18
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DocumentDataModel } from '@univerjs/core';
|
|
2
2
|
import type { IRenderContext } from '@univerjs/engine-render';
|
|
3
|
-
import { ShapeTextFloatMenuRenderControllerBase } from '@univerjs-pro/shape-editor-ui';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ShapeTextFloatMenuRenderControllerBase, ShapeTextHyperLinkPopupService } from '@univerjs-pro/shape-editor-ui';
|
|
4
|
+
import { ICommandService } from '@univerjs/core';
|
|
5
|
+
import { DocInterceptorService, DocSelectionManagerService } from '@univerjs/docs';
|
|
6
|
+
import { DocCanvasPopManagerService, DocEventManagerService, DocRenderController, DocSelectionRenderService } from '@univerjs/docs-ui';
|
|
6
7
|
export declare class ShapeTextFloatMenuRenderController extends ShapeTextFloatMenuRenderControllerBase {
|
|
7
|
-
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService);
|
|
8
|
+
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService, commandService: ICommandService, eventManagerService: DocEventManagerService, popupService: ShapeTextHyperLinkPopupService, interceptorService: DocInterceptorService, renderController: DocRenderController);
|
|
8
9
|
}
|
|
@@ -21,11 +21,9 @@ export declare class DocsShapeUIController extends Disposable {
|
|
|
21
21
|
private _activeShapeInfo;
|
|
22
22
|
private _isOpenedShapeEditPanel;
|
|
23
23
|
private _shapeEditPanelVersion;
|
|
24
|
-
private _initializedShapePopupMenu;
|
|
25
24
|
private _disposePopups;
|
|
26
25
|
constructor(_univerInstanceService: IUniverInstanceService, _sidebarService: ISidebarService, _menuManagerService: IMenuManagerService, _docsShapeService: DocsShapeService, _localeService: LocaleService, _commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService, _renderManagerService: IRenderManagerService, _contextService: IContextService, _shapeTextEditingService: ShapeTextEditingService);
|
|
27
26
|
private _initMenu;
|
|
28
|
-
private _initShapePopupMenu;
|
|
29
27
|
getShapePopupMenus(unitId: string, subUnitId: string, drawingId: string, drawingType: DrawingTypeEnum): ({
|
|
30
28
|
label: string;
|
|
31
29
|
index: number;
|
|
@@ -54,7 +52,6 @@ export declare class DocsShapeUIController extends Disposable {
|
|
|
54
52
|
disable: boolean;
|
|
55
53
|
})[];
|
|
56
54
|
private _getShapeInfo;
|
|
57
|
-
private _createShapePopupMenu;
|
|
58
55
|
private _clearPopups;
|
|
59
56
|
private _popupMenuListener;
|
|
60
57
|
private _registerOperations;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IAccessor } from '@univerjs/core';
|
|
3
|
+
import type { IDocDrawing } from '@univerjs/docs-drawing';
|
|
4
|
+
import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
5
|
+
import { TextWrappingStyle } from '@univerjs/docs-drawing';
|
|
6
|
+
export declare const DOCS_SHAPE_STYLE_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.style-control";
|
|
7
|
+
export declare const DOCS_SHAPE_TEXT_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.text-control";
|
|
8
|
+
export declare const DOCS_FORMULA_SHAPE_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.formula-control";
|
|
9
|
+
export declare const DOCS_SHAPE_ARRANGE_FORWARD_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-forward";
|
|
10
|
+
export declare const DOCS_SHAPE_ARRANGE_BACKWARD_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-backward";
|
|
11
|
+
export declare const DOCS_SHAPE_ARRANGE_FRONT_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-front";
|
|
12
|
+
export declare const DOCS_SHAPE_ARRANGE_BACK_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-back";
|
|
13
|
+
export declare const DOCS_SHAPE_WRAPPING_STYLE_MENU_ID = "docs-shape-ui.ribbon.shape-format.wrapping-style";
|
|
14
|
+
export declare function resolveDocsShapeWrappingStyle(drawing: Pick<IDocDrawing, 'behindDoc' | 'layoutType'> | undefined): TextWrappingStyle;
|
|
15
|
+
export declare function DocsShapeQuickStyleGalleryFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
16
|
+
export declare function DocsChangeShapeMenuFactory(accessor: IAccessor): IMenuSelectorItem<string, ShapeTypeEnum | undefined, ShapeTypeEnum>;
|
|
17
|
+
export declare const DocsShapeStyleRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
18
|
+
export declare const DocsShapeTextRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
19
|
+
export declare const DocsFormulaShapeRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
20
|
+
export declare function DocsShapeWrappingStyleFactory(accessor: IAccessor): IMenuSelectorItem<string, TextWrappingStyle>;
|
|
21
|
+
export declare const DocsShapeArrangeForwardFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
22
|
+
export declare const DocsShapeArrangeBackwardFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
23
|
+
export declare const DocsShapeArrangeFrontFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
24
|
+
export declare const DocsShapeArrangeBackFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
25
|
+
export declare function DocsShapeOpenPanelFactory(accessor: IAccessor): IMenuButtonItem<string>;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare class UniverDocsShapeUIPlugin extends Plugin {
|
|
|
14
14
|
constructor(_config: Partial<IUniverDocsShapeUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _renderManagerService: IRenderManagerService);
|
|
15
15
|
onStarting(): void;
|
|
16
16
|
onReady(): void;
|
|
17
|
+
onRendered(): void;
|
|
17
18
|
private _initCommands;
|
|
18
19
|
private _initUIPart;
|
|
19
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
2
3
|
export declare const DOCS_SHAPE_FLOATING_TOOLBAR_KEY = "doc.shape.floating-toolbar";
|
|
3
4
|
interface IShapeFloatingToolbarExtraProps {
|
|
4
5
|
unitId: string;
|
|
@@ -8,9 +9,7 @@ interface IShapeFloatingToolbarExtraProps {
|
|
|
8
9
|
shapeData: IShapeData;
|
|
9
10
|
}
|
|
10
11
|
interface IShapeFloatingToolbarProps {
|
|
11
|
-
popup:
|
|
12
|
-
extraProps: IShapeFloatingToolbarExtraProps;
|
|
13
|
-
};
|
|
12
|
+
popup: IPopupWithExtraProps<IShapeFloatingToolbarExtraProps>;
|
|
14
13
|
}
|
|
15
|
-
export declare function DocsShapeFloatingToolbar(props: IShapeFloatingToolbarProps): import("react").JSX.Element;
|
|
14
|
+
export declare function DocsShapeFloatingToolbar(props: IShapeFloatingToolbarProps): import("react").JSX.Element | null;
|
|
16
15
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ICustomComponentProps } from '@univerjs/ui';
|
|
2
|
+
import type { LocaleKey } from '../../locale/types';
|
|
3
|
+
import { TextWrappingStyle } from '@univerjs/docs-drawing';
|
|
4
|
+
export declare const DOCS_SHAPE_QUICK_STYLE_GALLERY_COMPONENT = "docs-shape-ui.shape-format.quick-style-gallery";
|
|
5
|
+
export declare const DOCS_SHAPE_STYLE_RIBBON_COMPONENT = "docs-shape-ui.shape-format.style-ribbon-control";
|
|
6
|
+
export declare const DOCS_SHAPE_TEXT_RIBBON_COMPONENT = "docs-shape-ui.shape-format.text-ribbon-control";
|
|
7
|
+
export declare const DOCS_FORMULA_SHAPE_RIBBON_COMPONENT = "docs-shape-ui.shape-format.formula-ribbon-control";
|
|
8
|
+
export declare const DOCS_SHAPE_WRAPPING_STYLE_LABEL_COMPONENT = "docs-shape-ui.shape-format.wrapping-style-label";
|
|
9
|
+
export declare const DOCS_SHAPE_WRAPPING_STYLE_OPTIONS: ReadonlyArray<{
|
|
10
|
+
value: TextWrappingStyle;
|
|
11
|
+
label: LocaleKey;
|
|
12
|
+
icon: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function DocsShapeStyleRibbonControl(): import("react").JSX.Element | null;
|
|
15
|
+
export declare function DocsShapeQuickStyleGallery(): import("react").JSX.Element | null;
|
|
16
|
+
export declare function DocsShapeTextRibbonControl(): import("react").JSX.Element | null;
|
|
17
|
+
export declare function DocsFormulaShapeRibbonControl(): import("react").JSX.Element | null;
|
|
18
|
+
export declare function DocsShapeWrappingStyleLabel({ value }: ICustomComponentProps<string | number | undefined>): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IIconProps } from '@univerjs/ui';
|
|
2
|
+
export declare const DOCS_SHAPE_WRAPPING_STYLE_ICONS: {
|
|
3
|
+
readonly DocsShapeWrapInlineIcon: (props: IIconProps) => import("react").JSX.Element;
|
|
4
|
+
readonly DocsShapeWrapSquareIcon: (props: IIconProps) => import("react").JSX.Element;
|
|
5
|
+
readonly DocsShapeWrapTopBottomIcon: (props: IIconProps) => import("react").JSX.Element;
|
|
6
|
+
readonly DocsShapeWrapBehindTextIcon: (props: IIconProps) => import("react").JSX.Element;
|
|
7
|
+
readonly DocsShapeWrapInFrontOfTextIcon: (props: IIconProps) => import("react").JSX.Element;
|
|
8
|
+
};
|