@univerjs-pro/sheets-shape-ui 1.0.0-alpha.3 → 1.0.0-alpha.4
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/command-util.d.ts +2 -19
- package/lib/types/const.d.ts +1 -0
- package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +1 -2
- package/lib/types/controllers/sheet-shape-render.controller.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +0 -33
- package/lib/types/{commands/menu → menu}/object-list.menu.d.ts +1 -1
- package/lib/types/views/ShapePicker.d.ts +0 -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 +19 -19
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
- package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
- package/lib/types/commands/menu/menu-dependencies.d.ts +0 -2
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
- package/lib/types/view-model/shape-data-model.d.ts +0 -8
- package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
- /package/lib/types/commands/operations/{actvie-drawing-operation.d.ts → active-drawing-operation.d.ts} +0 -0
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3a99(_0x653167,_0x3d6901){_0x653167=_0x653167-0x96;const _0x310786=_0x3107();let _0x3a99ec=_0x310786[_0x653167];return _0x3a99ec;}const _0x37b5a6=_0x3a99;function _0x3107(){const _0x207486=['裁切為形狀','397739CvOMZr','逆時針\x2090\x20度旋轉','全部顯示','全部隱藏','14015WSVGhD','打開形狀面板','刪除形狀','8832QJdnBA','暫無物件','下移一層','開啟圖層面板','隱藏形狀面板','4872447nqMIts','格式化形狀','12881GMJiry','切換水平翻轉','切換垂直翻轉','14270kRoadW','詳細資料','5484633VxTPDN','296TwnwTC','該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20','114WqjzSC','1449060CIYBRY','8Lghiwy','圖形位置'];_0x3107=function(){return _0x207486;};return _0x3107();}(function(_0x4e90f4,_0x223c4e){const _0xa4df7d=_0x3a99,_0x20ee18=_0x4e90f4();while(!![]){try{const _0x3049d7=-parseInt(_0xa4df7d(0x97))/0x1+-parseInt(_0xa4df7d(0xae))/0x2+parseInt(_0xa4df7d(0x9e))/0x3*(-parseInt(_0xa4df7d(0xab))/0x4)+-parseInt(_0xa4df7d(0x9b))/0x5*(parseInt(_0xa4df7d(0xad))/0x6)+parseInt(_0xa4df7d(0xaa))/0x7+-parseInt(_0xa4df7d(0xaf))/0x8*(parseInt(_0xa4df7d(0xa3))/0x9)+-parseInt(_0xa4df7d(0xa8))/0xa*(-parseInt(_0xa4df7d(0xa5))/0xb);if(_0x3049d7===_0x223c4e)break;else _0x20ee18['push'](_0x20ee18['shift']());}catch(_0x5c3918){_0x20ee18['push'](_0x20ee18['shift']());}}}(_0x3107,0x7ee5b));const e={'sheets-shape-ui':{'imagePanel':{'crop':{'shape':_0x37b5a6(0x96)}},'permission':{'editErr':_0x37b5a6(0xac)},'title':'形狀','insertShape':'插入形狀','openPanel':_0x37b5a6(0x9c),'deleteShape':_0x37b5a6(0x9d),'hidePanel':_0x37b5a6(0xa2),'formatShape':_0x37b5a6(0xa4),'shapeStyle':'圖形樣式','shapePosition':_0x37b5a6(0xb0),'toggleFlipH':_0x37b5a6(0xa6),'toggleFlipV':_0x37b5a6(0xa7),'rotateRight90':'順時針\x2090\x20度旋轉','rotateLeft90':_0x37b5a6(0x98),'toggleTextVertical':'切換文本竖排','objectListPanel':{'title':'圖層','open':_0x37b5a6(0xa1),'empty':_0x37b5a6(0x9f),'showAll':_0x37b5a6(0x99),'hideAll':_0x37b5a6(0x9a),'show':'顯示','hide':'隱藏','moveForward':'上移一層','moveBackward':_0x37b5a6(0xa0),'close':'關閉','name':'名稱','nameInput':'物件名稱','description':'描述','descriptionPlaceholder':'新增描述','details':_0x37b5a6(0xa9),'noSelection':'選取物件以編輯詳細資料'}}};export{e as default};
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import type { ICxnShapeData, IShapeData,
|
|
2
|
-
import type {
|
|
1
|
+
import type { ICxnShapeData, IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { ICommandService } from '@univerjs/core';
|
|
3
3
|
interface IOldShapeData {
|
|
4
4
|
oldShapeData?: IShapeData;
|
|
5
5
|
oldShapeType?: ShapeTypeEnum;
|
|
6
6
|
}
|
|
7
7
|
export declare function updateShapeData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, shapeData?: IShapeData): Promise<boolean>;
|
|
8
8
|
export declare function updateLineShapeData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, shapeData?: ICxnShapeData): Promise<boolean>;
|
|
9
|
-
/**
|
|
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
|
-
*
|
|
17
|
-
* @param commandService
|
|
18
|
-
* @param unitId
|
|
19
|
-
* @param subUnitId
|
|
20
|
-
* @param shapeId
|
|
21
|
-
* @param oldShapeJSON
|
|
22
|
-
* @param textDataJson
|
|
23
|
-
* @returns {boolean} whether the command executed successfully
|
|
24
|
-
*/
|
|
25
|
-
export declare function updateShapeTextData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, textDataJson: IShapeTextDataModel<IDocumentData, HorizontalAlign, VerticalAlign>): Promise<boolean>;
|
|
26
9
|
export {};
|
package/lib/types/const.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export declare const SHEET_SHAPE_EDIT_PANEL_KEY = "sheet.shape.edit.panel";
|
|
|
2
2
|
export declare const SHEET_SHAPE_OBJECT_LIST_PANEL_KEY = "sheet.shape.object-list.panel";
|
|
3
3
|
export declare const SHEET_SHAPE_FLOATING_TOOLBAR_KEY = "sheet.shape.floating-toolbar";
|
|
4
4
|
export declare const DOCS_SHAPE_EDITOR_UNIT_ID_KEY: string;
|
|
5
|
+
export declare const SHAPE_TEXT_FLOAT_MENU_COMPONENT_KEY = "sheet.shape.text.float-menu";
|
|
5
6
|
export declare const ShapeTextEditorContainer = "SheetShapeTextEditorContainer";
|
|
@@ -3,7 +3,6 @@ import type { IRenderContext } from '@univerjs/engine-render';
|
|
|
3
3
|
import { ShapeTextFloatMenuRenderControllerBase } from '@univerjs-pro/shape-editor-ui';
|
|
4
4
|
import { DocSelectionManagerService } from '@univerjs/docs';
|
|
5
5
|
import { DocCanvasPopManagerService, DocSelectionRenderService } from '@univerjs/docs-ui';
|
|
6
|
-
import { ComponentManager } from '@univerjs/ui';
|
|
7
6
|
export declare class ShapeTextFloatMenuRenderController extends ShapeTextFloatMenuRenderControllerBase {
|
|
8
|
-
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService,
|
|
7
|
+
constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService);
|
|
9
8
|
}
|
|
@@ -17,6 +17,7 @@ export declare class SheetDrawingShapeRenderController extends Disposable {
|
|
|
17
17
|
add: (resource: Promise<unknown>) => void;
|
|
18
18
|
};
|
|
19
19
|
}): DrawingShape[] | undefined;
|
|
20
|
+
refreshShapeFillImage(shape: DrawingShape): void;
|
|
20
21
|
/**
|
|
21
22
|
* If the shape has PictureFill, resolve the image (from cache or network) and
|
|
22
23
|
* inject it into the DrawingShape so that _draw() can pass it to renderOption.
|
|
@@ -1,38 +1,5 @@
|
|
|
1
1
|
declare const locale: {
|
|
2
2
|
'sheets-shape-ui': {
|
|
3
|
-
align: {
|
|
4
|
-
top: string;
|
|
5
|
-
middle: string;
|
|
6
|
-
bottom: string;
|
|
7
|
-
left: string;
|
|
8
|
-
center: string;
|
|
9
|
-
right: string;
|
|
10
|
-
};
|
|
11
|
-
toolbar: {
|
|
12
|
-
verticalAlignMode: {
|
|
13
|
-
main: string;
|
|
14
|
-
};
|
|
15
|
-
horizontalAlignMode: {
|
|
16
|
-
main: string;
|
|
17
|
-
};
|
|
18
|
-
fillColor: {
|
|
19
|
-
main: string;
|
|
20
|
-
};
|
|
21
|
-
fontSize: string;
|
|
22
|
-
fontSizeIncrease: string;
|
|
23
|
-
fontSizeDecrease: string;
|
|
24
|
-
alignLeft: string;
|
|
25
|
-
alignCenter: string;
|
|
26
|
-
alignRight: string;
|
|
27
|
-
alignJustify: string;
|
|
28
|
-
bold: string;
|
|
29
|
-
italic: string;
|
|
30
|
-
underline: string;
|
|
31
|
-
strikethrough: string;
|
|
32
|
-
textColor: string;
|
|
33
|
-
textBackgroundColor: string;
|
|
34
|
-
resetColor: string;
|
|
35
|
-
};
|
|
36
3
|
imagePanel: {
|
|
37
4
|
crop: {
|
|
38
5
|
shape: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { IAccessor } from '@univerjs/core';
|
|
2
2
|
import type { IMenuButtonItem } from '@univerjs/ui';
|
|
3
|
-
import type { LocaleKey } from '
|
|
3
|
+
import type { LocaleKey } from '../locale/types';
|
|
4
4
|
export declare function SheetShapeObjectListMenuItemFactory(accessor: IAccessor): IMenuButtonItem<LocaleKey>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IMAGE_CLIP_SHAPE_PICKER_COMPONENT } from '@univerjs/drawing-ui';
|
|
2
1
|
export declare const SHAPE_PICKER_COMPONENT = "sheet.shape.picker.component";
|
|
3
2
|
export declare const SHEET_IMAGE_CLIP_SHAPE_PICKER_COMPONENT = "sheet.image-clip.shape-picker.component";
|
|
4
|
-
export { IMAGE_CLIP_SHAPE_PICKER_COMPONENT };
|
|
5
3
|
export declare function ImageClipShapePicker(): import("react").JSX.Element;
|
|
6
4
|
export declare function ImageClipShapePickerBridge(): import("react").JSX.Element | null;
|
|
7
5
|
export declare function ShapePicker(): import("react").JSX.Element;
|