@univerjs-pro/sheets-shape-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.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
|
-
const
|
|
1
|
+
const _0x21e436=_0x18d4;function _0x18d4(_0x5c364c,_0x2281a8){_0x5c364c=_0x5c364c-0x106;const _0x421ef1=_0x421e();let _0x18d4ec=_0x421ef1[_0x5c364c];return _0x18d4ec;}(function(_0x345032,_0x2e1a5f){const _0x56aaca=_0x18d4,_0x202a3b=_0x345032();while(!![]){try{const _0xb8df07=-parseInt(_0x56aaca(0x10d))/0x1*(-parseInt(_0x56aaca(0x109))/0x2)+-parseInt(_0x56aaca(0x106))/0x3*(parseInt(_0x56aaca(0x114))/0x4)+-parseInt(_0x56aaca(0x120))/0x5+-parseInt(_0x56aaca(0x113))/0x6+parseInt(_0x56aaca(0x108))/0x7+parseInt(_0x56aaca(0x119))/0x8+parseInt(_0x56aaca(0x107))/0x9;if(_0xb8df07===_0x2e1a5f)break;else _0x202a3b['push'](_0x202a3b['shift']());}catch(_0x305afc){_0x202a3b['push'](_0x202a3b['shift']());}}}(_0x421e,0x29caf));function _0x421e(){const _0x417fe7=['70290lJMpzI','990644cNXptm','切換垂直翻轉','裁切為形狀','切換水平翻轉','下移一層','2308864jTAiAd','圖形樣式','暫無物件','物件名稱','切換文本竖排','圖形位置','上移一層','61350oMCjcD','格式化形狀','選取物件以編輯詳細資料','3HvBRxB','96444grLOlF','261814SNUHJw','212206HkYhaR','隱藏形狀面板','打開形狀面板','該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。\x20','1EKDmGi','新增描述','插入形狀','逆時針\x2090\x20度旋轉','詳細資料','全部顯示'];_0x421e=function(){return _0x417fe7;};return _0x421e();}const e={'sheets-shape-ui':{'imagePanel':{'crop':{'shape':_0x21e436(0x116)}},'permission':{'editErr':_0x21e436(0x10c)},'title':'形狀','insertShape':_0x21e436(0x10f),'openPanel':_0x21e436(0x10b),'deleteShape':'刪除形狀','hidePanel':_0x21e436(0x10a),'formatShape':_0x21e436(0x121),'shapeStyle':_0x21e436(0x11a),'shapePosition':_0x21e436(0x11e),'toggleFlipH':_0x21e436(0x117),'toggleFlipV':_0x21e436(0x115),'rotateRight90':'順時針\x2090\x20度旋轉','rotateLeft90':_0x21e436(0x110),'toggleTextVertical':_0x21e436(0x11d),'objectListPanel':{'title':'圖層','open':'開啟圖層面板','empty':_0x21e436(0x11b),'showAll':_0x21e436(0x112),'hideAll':'全部隱藏','show':'顯示','hide':'隱藏','moveForward':_0x21e436(0x11f),'moveBackward':_0x21e436(0x118),'close':'關閉','name':'名稱','nameInput':_0x21e436(0x11c),'description':'描述','descriptionPlaceholder':_0x21e436(0x10e),'details':_0x21e436(0x111),'noSelection':_0x21e436(0x122)}}};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;
|