@univerjs-pro/docs-shape-ui 1.0.0-alpha.8 → 1.0.0-beta.1
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/shape-contextual-ribbon.controller.d.ts +18 -0
- 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 +20 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +3 -4
- package/lib/types/views/shape-format-ribbon/DocsShapeFormatRibbonControls.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/types/views/ShapeOptions.d.ts +0 -26
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -11
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x10b446=_0x1206;function _0x1206(_0x2a1257,_0x3145d1){_0x2a1257=_0x2a1257-0x1ae;const _0x34a8d0=_0x34a8();let _0x12065b=_0x34a8d0[_0x2a1257];return _0x12065b;}function _0x34a8(){const _0x457ae2=['插入形狀','開啟圖層面板','右對齊','14EghnII','8mMNkQf','250572OBhjcO','1014280JJbfBJ','重置顏色','41841xVJCzN','隱藏形狀面板','11XpXehe','330xknlxe','文字在後','6ZOPKFz','與文字排列','快速樣式','物件名稱','頂部對齊','新增描述','刪除形狀','圖形位置','1IZNFqU','全部隱藏','2136576ypkDgb','居中對齊','暫無物件','11936704xWXQOp','逆時針\x2090\x20度旋轉','左對齊','60141sTrwTQ','切換文本豎排','切換水平翻轉','文字背景色','40kvilJW','上移一層','打開形狀面板','下移一層','刪除線','垂直居中','底部對齊','文字顏色','文字在前','588889KHzFJr','圖形樣式','切換垂直翻轉'];_0x34a8=function(){return _0x457ae2;};return _0x34a8();}(function(_0x1167ee,_0xcfcf86){const _0xcce722=_0x1206,_0x5645d6=_0x1167ee();while(!![]){try{const _0x890827=parseInt(_0xcce722(0x1b2))/0x1*(-parseInt(_0xcce722(0x1cf))/0x2)+-parseInt(_0xcce722(0x1ba))/0x3*(parseInt(_0xcce722(0x1be))/0x4)+parseInt(_0xcce722(0x1d0))/0x5*(-parseInt(_0xcce722(0x1d7))/0x6)+-parseInt(_0xcce722(0x1c7))/0x7*(-parseInt(_0xcce722(0x1ce))/0x8)+parseInt(_0xcce722(0x1d2))/0x9*(-parseInt(_0xcce722(0x1d5))/0xa)+parseInt(_0xcce722(0x1d4))/0xb*(-parseInt(_0xcce722(0x1b4))/0xc)+parseInt(_0xcce722(0x1b7))/0xd*(parseInt(_0xcce722(0x1cd))/0xe);if(_0x890827===_0xcfcf86)break;else _0x5645d6['push'](_0x5645d6['shift']());}catch(_0x11e68d){_0x5645d6['push'](_0x5645d6['shift']());}}}(_0x34a8,0x22bb2));const e={'docs-shape-ui':{'quickStyles':_0x10b446(0x1d9),'title':'形狀','insertShape':_0x10b446(0x1ca),'openPanel':_0x10b446(0x1c0),'deleteShape':_0x10b446(0x1b0),'hidePanel':_0x10b446(0x1d3),'formatShape':'格式化形狀','shapeStyle':_0x10b446(0x1c8),'shapePosition':_0x10b446(0x1b1),'toggleFlipH':_0x10b446(0x1bc),'toggleFlipV':_0x10b446(0x1c9),'rotateRight90':'順時針\x2090\x20度旋轉','rotateLeft90':_0x10b446(0x1b8),'toggleTextVertical':_0x10b446(0x1bb),'objectListPanel':{'title':'圖層','open':_0x10b446(0x1cb),'empty':_0x10b446(0x1b6),'showAll':'全部顯示','hideAll':_0x10b446(0x1b3),'show':'顯示','hide':'隱藏','moveForward':_0x10b446(0x1bf),'moveBackward':_0x10b446(0x1c1),'close':'關閉','name':'名稱','nameInput':_0x10b446(0x1da),'description':'描述','descriptionPlaceholder':_0x10b446(0x1af),'details':'詳情','noSelection':'選擇物件以編輯詳情'},'toolbar':{'alignLeft':_0x10b446(0x1b9),'alignCenter':_0x10b446(0x1b5),'alignRight':_0x10b446(0x1cc),'alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x10b446(0x1c2),'textColor':_0x10b446(0x1c5),'fillColor':_0x10b446(0x1bd),'resetColor':_0x10b446(0x1d1)},'align':{'top':_0x10b446(0x1ae),'middle':_0x10b446(0x1c3),'bottom':_0x10b446(0x1c4)},'textWrap':{'inline':_0x10b446(0x1d8),'square':'矩形','topAndBottom':'上及下','behindText':_0x10b446(0x1c6),'inFrontText':_0x10b446(0x1d6)},'crop':{'shape':'裁切為形狀'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x7fba(){const _0x5be21a=['新增描述','15836700ikIjAX','2rCBXQQ','3999236AcaegA','225BQjemj','386201ilAdeu','1401072TAYDWk','暫無物件','格式化形狀','文字顏色','插入形狀','兩端對齊','順時針\x2090\x20度旋轉','切換文本竖排','與文字排列','77168iOjaNn','13176905Xxuksh','5573511ZCStEM','裁切為形狀','快捷樣式','文字背景色','刪除線','全部顯示','打開形狀面板','圖形位置','底部對齊','下移一層','刪除形狀','居中對齊','圖形樣式','5pTjkXF','全部隱藏','頂部對齊','上移一層','左對齊'];_0x7fba=function(){return _0x5be21a;};return _0x7fba();}const _0x1fb214=_0x4f87;(function(_0xc2bbb6,_0x6bc235){const _0x3495b5=_0x4f87,_0x352759=_0xc2bbb6();while(!![]){try{const _0x304110=-parseInt(_0x3495b5(0x94))/0x1*(-parseInt(_0x3495b5(0x91))/0x2)+parseInt(_0x3495b5(0xa0))/0x3+-parseInt(_0x3495b5(0x92))/0x4*(parseInt(_0x3495b5(0x8a))/0x5)+-parseInt(_0x3495b5(0x95))/0x6+-parseInt(_0x3495b5(0x9f))/0x7+-parseInt(_0x3495b5(0x9e))/0x8*(-parseInt(_0x3495b5(0x93))/0x9)+parseInt(_0x3495b5(0x90))/0xa;if(_0x304110===_0x6bc235)break;else _0x352759['push'](_0x352759['shift']());}catch(_0x54192d){_0x352759['push'](_0x352759['shift']());}}}(_0x7fba,0xe8b22));function _0x4f87(_0x2a2eda,_0x9cab80){_0x2a2eda=_0x2a2eda-0x85;const _0x7fbaab=_0x7fba();let _0x4f8794=_0x7fbaab[_0x2a2eda];return _0x4f8794;}const e={'docs-shape-ui':{'quickStyles':_0x1fb214(0xa2),'title':'形狀','insertShape':_0x1fb214(0x99),'openPanel':_0x1fb214(0xa6),'deleteShape':_0x1fb214(0x87),'hidePanel':'隱藏形狀面板','formatShape':_0x1fb214(0x97),'shapeStyle':_0x1fb214(0x89),'shapePosition':_0x1fb214(0xa7),'toggleFlipH':'切換水平翻轉','toggleFlipV':'切換垂直翻轉','rotateRight90':_0x1fb214(0x9b),'rotateLeft90':'逆時針\x2090\x20度旋轉','toggleTextVertical':_0x1fb214(0x9c),'objectListPanel':{'title':'圖層','open':'開啟圖層面板','empty':_0x1fb214(0x96),'showAll':_0x1fb214(0xa5),'hideAll':_0x1fb214(0x8b),'show':'顯示','hide':'隱藏','moveForward':_0x1fb214(0x8d),'moveBackward':_0x1fb214(0x86),'close':'關閉','name':'名稱','nameInput':'物件名稱','description':'描述','descriptionPlaceholder':_0x1fb214(0x8f),'details':'詳細資料','noSelection':'選取物件以編輯詳細資料'},'toolbar':{'alignLeft':_0x1fb214(0x8e),'alignCenter':_0x1fb214(0x88),'alignRight':'右對齊','alignJustify':_0x1fb214(0x9a),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x1fb214(0xa4),'textColor':_0x1fb214(0x98),'fillColor':_0x1fb214(0xa3),'resetColor':'重置顏色'},'align':{'top':_0x1fb214(0x8c),'middle':'垂直居中','bottom':_0x1fb214(0x85)},'textWrap':{'inline':_0x1fb214(0x9d),'square':'矩形','topAndBottom':'上及下','behindText':'文字在前','inFrontText':'文字在後'},'crop':{'shape':_0x1fb214(0xa1)}}};export{e as default};
|
|
@@ -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,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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IAccessor } from '@univerjs/core';
|
|
3
|
+
import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
4
|
+
export declare const DOCS_SHAPE_STYLE_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.style-control";
|
|
5
|
+
export declare const DOCS_SHAPE_TEXT_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.text-control";
|
|
6
|
+
export declare const DOCS_FORMULA_SHAPE_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.formula-control";
|
|
7
|
+
export declare const DOCS_SHAPE_ARRANGE_FORWARD_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-forward";
|
|
8
|
+
export declare const DOCS_SHAPE_ARRANGE_BACKWARD_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-backward";
|
|
9
|
+
export declare const DOCS_SHAPE_ARRANGE_FRONT_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-front";
|
|
10
|
+
export declare const DOCS_SHAPE_ARRANGE_BACK_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-back";
|
|
11
|
+
export declare function DocsShapeQuickStyleGalleryFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
12
|
+
export declare function DocsChangeShapeMenuFactory(accessor: IAccessor): IMenuSelectorItem<string, ShapeTypeEnum | undefined, ShapeTypeEnum>;
|
|
13
|
+
export declare const DocsShapeStyleRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
14
|
+
export declare const DocsShapeTextRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
15
|
+
export declare const DocsFormulaShapeRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
16
|
+
export declare const DocsShapeArrangeForwardFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
17
|
+
export declare const DocsShapeArrangeBackwardFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
18
|
+
export declare const DocsShapeArrangeFrontFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
19
|
+
export declare const DocsShapeArrangeBackFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
|
|
20
|
+
export declare function DocsShapeOpenPanelFactory(accessor: IAccessor): IMenuButtonItem<string>;
|
|
@@ -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,8 @@
|
|
|
1
|
+
export declare const DOCS_SHAPE_QUICK_STYLE_GALLERY_COMPONENT = "docs-shape-ui.shape-format.quick-style-gallery";
|
|
2
|
+
export declare const DOCS_SHAPE_STYLE_RIBBON_COMPONENT = "docs-shape-ui.shape-format.style-ribbon-control";
|
|
3
|
+
export declare const DOCS_SHAPE_TEXT_RIBBON_COMPONENT = "docs-shape-ui.shape-format.text-ribbon-control";
|
|
4
|
+
export declare const DOCS_FORMULA_SHAPE_RIBBON_COMPONENT = "docs-shape-ui.shape-format.formula-ribbon-control";
|
|
5
|
+
export declare function DocsShapeStyleRibbonControl(): import("react").JSX.Element | null;
|
|
6
|
+
export declare function DocsShapeQuickStyleGallery(): import("react").JSX.Element | null;
|
|
7
|
+
export declare function DocsShapeTextRibbonControl(): import("react").JSX.Element | null;
|
|
8
|
+
export declare function DocsFormulaShapeRibbonControl(): import("react").JSX.Element | null;
|