@univerjs-pro/docs-shape-ui 1.0.0-rc.0 → 1.0.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.css +16 -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/controllers/components.controller.d.ts +5 -2
- package/lib/types/controllers/format-painter.controller.d.ts +10 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +12 -0
- package/lib/types/controllers/mobile/ui.controller.d.ts +68 -0
- package/lib/types/controllers/ui.controller.d.ts +12 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +5 -0
- package/lib/types/mobile-plugin.d.ts +17 -0
- package/lib/types/plugin.d.ts +4 -1
- package/lib/types/services/shape-layout.service.d.ts +9 -0
- package/lib/types/views/ShapePicker.d.ts +11 -1
- package/lib/types/views/mobile/ShapePicker.d.ts +4 -0
- package/lib/types/views/object-list-panel/DocDrawingObjectListPanel.d.ts +5 -1
- package/lib/types/views/object-list-panel/MobileDocDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/shape-editor-panel/MobileDocShapeEditPanel.d.ts +17 -0
- package/lib/types/views/shape-editor-panel/ShapeEditorPanel.d.ts +4 -3
- package/lib/types/views/shape-floating-toolbar/DocsShapeMobileMenu.d.ts +13 -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 +22 -19
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3637e1=_0x47f7;(function(_0x5088ca,_0x536246){const _0x5e7edb=_0x47f7,_0xd09f7f=_0x5088ca();while(!![]){try{const _0x489d00=-parseInt(_0x5e7edb(0x113))/0x1*(parseInt(_0x5e7edb(0x127))/0x2)+parseInt(_0x5e7edb(0x110))/0x3*(-parseInt(_0x5e7edb(0x11d))/0x4)+parseInt(_0x5e7edb(0x11a))/0x5*(parseInt(_0x5e7edb(0x118))/0x6)+parseInt(_0x5e7edb(0x12e))/0x7*(parseInt(_0x5e7edb(0x12c))/0x8)+parseInt(_0x5e7edb(0x115))/0x9*(parseInt(_0x5e7edb(0x125))/0xa)+parseInt(_0x5e7edb(0x122))/0xb+parseInt(_0x5e7edb(0x11e))/0xc*(-parseInt(_0x5e7edb(0x130))/0xd);if(_0x489d00===_0x536246)break;else _0xd09f7f['push'](_0xd09f7f['shift']());}catch(_0x457073){_0xd09f7f['push'](_0xd09f7f['shift']());}}}(_0x51c7,0x70499));function _0x47f7(_0x3fe07b,_0x51c601){_0x3fe07b=_0x3fe07b-0x10b;const _0x51c7de=_0x51c7();let _0x47f7f6=_0x51c7de[_0x3fe07b];return _0x47f7f6;}const e={'docs-shape-ui':{'mobile':{'text':'文字','style':'樣式','delete':'刪除'},'quickStyles':_0x3637e1(0x11c),'title':'形狀','insertShape':_0x3637e1(0x124),'openPanel':'打開形狀面板','deleteShape':_0x3637e1(0x10d),'hidePanel':_0x3637e1(0x111),'formatShape':_0x3637e1(0x10c),'shapeStyle':'圖形樣式','shapePosition':'圖形位置','toggleFlipH':'切換水平翻轉','toggleFlipV':_0x3637e1(0x12b),'rotateRight90':'順時針\x2090\x20度旋轉','rotateLeft90':'逆時針\x2090\x20度旋轉','toggleTextVertical':_0x3637e1(0x129),'objectListPanel':{'title':'圖層','open':'圖層','empty':_0x3637e1(0x12d),'showAll':_0x3637e1(0x11b),'hideAll':_0x3637e1(0x10f),'show':'顯示','hide':'隱藏','moveForward':'上移一層','moveBackward':_0x3637e1(0x114),'close':'關閉','name':'名稱','nameInput':'物件名稱','description':'描述','descriptionPlaceholder':'新增描述','details':'詳情','noSelection':_0x3637e1(0x10b)},'toolbar':{'alignLeft':_0x3637e1(0x128),'alignCenter':_0x3637e1(0x11f),'alignRight':_0x3637e1(0x116),'alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x3637e1(0x117),'textColor':'文字顏色','fillColor':_0x3637e1(0x12a),'resetColor':_0x3637e1(0x10e)},'align':{'top':_0x3637e1(0x119),'middle':_0x3637e1(0x123),'bottom':_0x3637e1(0x121)},'textWrap':{'inline':'與文字排列','square':'矩形','topAndBottom':_0x3637e1(0x126),'behindText':_0x3637e1(0x12f),'inFrontText':_0x3637e1(0x112)},'crop':{'shape':_0x3637e1(0x120)}}};export{e as default};function _0x51c7(){const _0x11f873=['20qQOYCY','1812sCQuOC','居中對齊','裁切為形狀','底部對齊','5044974ldMhXh','垂直居中','插入形狀','4990IWPrAm','上及下','10702VqdNuq','左對齊','切換文本豎排','文字背景色','切換垂直翻轉','643192pWdNcM','暫無物件','21JjUhCD','文字在前','29653yrBRwx','選擇物件以編輯詳情','格式化形狀','刪除形狀','重置顏色','全部隱藏','282927SAmuvV','隱藏形狀面板','文字在後','92GIwWIS','下移一層','6129zFNDIc','右對齊','刪除線','18JLccDL','頂部對齊','1214245KzLaRE','全部顯示','快速樣式'];_0x51c7=function(){return _0x11f873;};return _0x51c7();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x16c2(){const _0x299a4b=['493948JlHvVt','逆時針\x2090\x20度旋轉','新增描述','右對齊','589494OZtJYe','250466wMJyXE','上移一層','與文字排列','切換垂直翻轉','圖形樣式','圖形位置','順時針\x2090\x20度旋轉','選取物件以編輯詳細資料','裁切為形狀','刪除形狀','3280992WqCFqV','6351390rakDKN','快捷樣式','全部隱藏','7ABjhBY','居中對齊','詳細資料','重置顏色','1904535mODuWi','1192278lrkRuV','暫無物件','頂部對齊','物件名稱','4CafyCR','格式化形狀','左對齊','打開形狀面板','底部對齊','文字背景色','刪除線','垂直居中','文字在前','全部顯示','隱藏形狀面板','上及下','切換水平翻轉'];_0x16c2=function(){return _0x299a4b;};return _0x16c2();}const _0x5ec2df=_0x18af;function _0x18af(_0x4db13d,_0x3286af){_0x4db13d=_0x4db13d-0x126;const _0x16c243=_0x16c2();let _0x18af04=_0x16c243[_0x4db13d];return _0x18af04;}(function(_0x56c67a,_0x3d6fc3){const _0x2c0dd4=_0x18af,_0x166918=_0x56c67a();while(!![]){try{const _0x17dd15=parseInt(_0x2c0dd4(0x133))/0x1+-parseInt(_0x2c0dd4(0x12e))/0x2+parseInt(_0x2c0dd4(0x146))/0x3*(parseInt(_0x2c0dd4(0x14a))/0x4)+-parseInt(_0x2c0dd4(0x145))/0x5+parseInt(_0x2c0dd4(0x132))/0x6*(-parseInt(_0x2c0dd4(0x141))/0x7)+-parseInt(_0x2c0dd4(0x13d))/0x8+parseInt(_0x2c0dd4(0x13e))/0x9;if(_0x17dd15===_0x3d6fc3)break;else _0x166918['push'](_0x166918['shift']());}catch(_0xc28fa){_0x166918['push'](_0x166918['shift']());}}}(_0x16c2,0x35104));const e={'docs-shape-ui':{'mobile':{'text':'文字','style':'樣式','delete':'刪除'},'quickStyles':_0x5ec2df(0x13f),'title':'形狀','insertShape':'插入形狀','openPanel':_0x5ec2df(0x14d),'deleteShape':_0x5ec2df(0x13c),'hidePanel':_0x5ec2df(0x12b),'formatShape':_0x5ec2df(0x14b),'shapeStyle':_0x5ec2df(0x137),'shapePosition':_0x5ec2df(0x138),'toggleFlipH':_0x5ec2df(0x12d),'toggleFlipV':_0x5ec2df(0x136),'rotateRight90':_0x5ec2df(0x139),'rotateLeft90':_0x5ec2df(0x12f),'toggleTextVertical':'切換文本竖排','objectListPanel':{'title':'圖層','open':'圖層','empty':_0x5ec2df(0x147),'showAll':_0x5ec2df(0x12a),'hideAll':_0x5ec2df(0x140),'show':'顯示','hide':'隱藏','moveForward':_0x5ec2df(0x134),'moveBackward':'下移一層','close':'關閉','name':'名稱','nameInput':_0x5ec2df(0x149),'description':'描述','descriptionPlaceholder':_0x5ec2df(0x130),'details':_0x5ec2df(0x143),'noSelection':_0x5ec2df(0x13a)},'toolbar':{'alignLeft':_0x5ec2df(0x14c),'alignCenter':_0x5ec2df(0x142),'alignRight':_0x5ec2df(0x131),'alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x5ec2df(0x127),'textColor':'文字顏色','fillColor':_0x5ec2df(0x126),'resetColor':_0x5ec2df(0x144)},'align':{'top':_0x5ec2df(0x148),'middle':_0x5ec2df(0x128),'bottom':_0x5ec2df(0x14e)},'textWrap':{'inline':_0x5ec2df(0x135),'square':'矩形','topAndBottom':_0x5ec2df(0x12c),'behindText':_0x5ec2df(0x129),'inFrontText':'文字在後'},'crop':{'shape':_0x5ec2df(0x13b)}}};export{e as default};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager, IconManager } from '@univerjs/ui';
|
|
3
3
|
export declare class ComponentsController extends Disposable {
|
|
4
|
-
|
|
4
|
+
protected readonly _componentManager: ComponentManager;
|
|
5
5
|
private readonly _iconManager;
|
|
6
6
|
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
7
7
|
private _registerIcons;
|
|
8
|
-
|
|
8
|
+
protected _registerComponents(): void;
|
|
9
|
+
protected _registerObjectListPanel(): void;
|
|
10
|
+
protected _registerFloatingToolbar(): void;
|
|
11
|
+
protected _registerPickers(): void;
|
|
9
12
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DocumentDataModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { DocsShapeService } from '@univerjs-pro/docs-shape';
|
|
4
|
+
import { Disposable, ICommandService, IContextService, IPermissionService, IUniverInstanceService } from '@univerjs/core';
|
|
5
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
6
|
+
import { FormatPainterSessionService } from '@univerjs/ui';
|
|
7
|
+
import { ShapeTextEditingService } from '../services/shape-text-editing.service';
|
|
8
|
+
export declare class DocsShapeFormatPainterController extends Disposable implements IRenderModule {
|
|
9
|
+
constructor(render: IRenderContext<DocumentDataModel>, session: FormatPainterSessionService, shapes: DocsShapeService, editing: ShapeTextEditingService, drawings: IDrawingManagerService, instances: IUniverInstanceService, context: IContextService, permissions: IPermissionService, commands: ICommandService);
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager, IconManager } from '@univerjs/ui';
|
|
3
|
+
export declare class MobileComponentsController extends Disposable {
|
|
4
|
+
protected readonly _componentManager: ComponentManager;
|
|
5
|
+
private readonly _iconManager;
|
|
6
|
+
constructor(_componentManager: ComponentManager, _iconManager: IconManager);
|
|
7
|
+
private _registerIcons;
|
|
8
|
+
protected _registerComponents(): void;
|
|
9
|
+
protected _registerObjectListPanel(): void;
|
|
10
|
+
protected _registerFloatingToolbar(): void;
|
|
11
|
+
protected _registerPickers(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DocsShapeService } from '@univerjs-pro/docs-shape';
|
|
2
|
+
import { MobileShapeEditorService } from '@univerjs-pro/shape-editor-ui';
|
|
3
|
+
import { Disposable, DrawingTypeEnum, ICommandService, IContextService, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
4
|
+
import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
|
|
5
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
6
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
|
+
import { IMenuManagerService, ISidebarService } from '@univerjs/ui';
|
|
8
|
+
import { ShapeTextEditingService } from '../../services/shape-text-editing.service';
|
|
9
|
+
export declare class MobileDocsShapeUIController extends Disposable {
|
|
10
|
+
private readonly _univerInstanceService;
|
|
11
|
+
private readonly _sidebarService;
|
|
12
|
+
private readonly _menuManagerService;
|
|
13
|
+
private readonly _docsShapeService;
|
|
14
|
+
private readonly _localeService;
|
|
15
|
+
private readonly _commandService;
|
|
16
|
+
private readonly _drawingManagerService;
|
|
17
|
+
private readonly _docCanvasPopManagerService;
|
|
18
|
+
private readonly _renderManagerService;
|
|
19
|
+
private readonly _contextService;
|
|
20
|
+
private readonly _shapeTextEditingService;
|
|
21
|
+
private readonly _permissionService;
|
|
22
|
+
private readonly _mobileEditorService;
|
|
23
|
+
private _sidebarDisposable;
|
|
24
|
+
private _activeShapeInfo;
|
|
25
|
+
private _isOpenedShapeEditPanel;
|
|
26
|
+
private _shapeEditPanelVersion;
|
|
27
|
+
private readonly _disposePopupsByUnit;
|
|
28
|
+
private readonly _popupTargetKeys;
|
|
29
|
+
constructor(_univerInstanceService: IUniverInstanceService, _sidebarService: ISidebarService, _menuManagerService: IMenuManagerService, _docsShapeService: DocsShapeService, _localeService: LocaleService, _commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService, _renderManagerService: IRenderManagerService, _contextService: IContextService, _shapeTextEditingService: ShapeTextEditingService, _permissionService: IPermissionService, _mobileEditorService: MobileShapeEditorService);
|
|
30
|
+
getShapePopupMenus(unitId: string, subUnitId: string, drawingId: string, drawingType: DrawingTypeEnum): ({
|
|
31
|
+
label: string;
|
|
32
|
+
index: number;
|
|
33
|
+
commandId: string;
|
|
34
|
+
commandParams: {
|
|
35
|
+
unitId: string;
|
|
36
|
+
subUnitId: string;
|
|
37
|
+
drawingId: string;
|
|
38
|
+
drawings?: undefined;
|
|
39
|
+
};
|
|
40
|
+
disable: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
label: string;
|
|
43
|
+
index: number;
|
|
44
|
+
commandId: string;
|
|
45
|
+
commandParams: {
|
|
46
|
+
unitId: string;
|
|
47
|
+
drawings: {
|
|
48
|
+
unitId: string;
|
|
49
|
+
subUnitId: string;
|
|
50
|
+
drawingId: string;
|
|
51
|
+
}[];
|
|
52
|
+
subUnitId?: undefined;
|
|
53
|
+
drawingId?: undefined;
|
|
54
|
+
};
|
|
55
|
+
disable: boolean;
|
|
56
|
+
})[];
|
|
57
|
+
private _initMenu;
|
|
58
|
+
private _getShapeInfo;
|
|
59
|
+
private _clearPopups;
|
|
60
|
+
private _getDisposePopups;
|
|
61
|
+
private _popupMenuListener;
|
|
62
|
+
private _handleCreateControl;
|
|
63
|
+
private _getShapePopup;
|
|
64
|
+
private _canEditShape;
|
|
65
|
+
private _registerOperations;
|
|
66
|
+
private _openShapeEditPanel;
|
|
67
|
+
private _closeShapeEditPanel;
|
|
68
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
1
2
|
import { DocsShapeService } from '@univerjs-pro/docs-shape';
|
|
2
3
|
import { Disposable, DrawingTypeEnum, ICommandService, IContextService, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
3
4
|
import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
|
|
@@ -5,10 +6,19 @@ import { IDrawingManagerService } from '@univerjs/drawing';
|
|
|
5
6
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
7
|
import { IMenuManagerService, ISidebarService } from '@univerjs/ui';
|
|
7
8
|
import { ShapeTextEditingService } from '../services/shape-text-editing.service';
|
|
9
|
+
export interface IDocUIActiveShapeInfo {
|
|
10
|
+
unitId: string;
|
|
11
|
+
subUnitId: string;
|
|
12
|
+
shapeId: string;
|
|
13
|
+
shapeType: ShapeTypeEnum;
|
|
14
|
+
shapeData: IShapeData;
|
|
15
|
+
version: number;
|
|
16
|
+
disableShapeOption: boolean;
|
|
17
|
+
}
|
|
8
18
|
export declare class DocsShapeUIController extends Disposable {
|
|
9
19
|
private readonly _univerInstanceService;
|
|
10
20
|
private _sidebarService;
|
|
11
|
-
|
|
21
|
+
private readonly _menuManagerService;
|
|
12
22
|
private _docsShapeService;
|
|
13
23
|
private readonly _localeService;
|
|
14
24
|
private readonly _commandService;
|
|
@@ -58,6 +68,7 @@ export declare class DocsShapeUIController extends Disposable {
|
|
|
58
68
|
private _getDisposePopups;
|
|
59
69
|
private _popupMenuListener;
|
|
60
70
|
private _handleCreateControl;
|
|
71
|
+
private _getShapePopup;
|
|
61
72
|
private _canEditShape;
|
|
62
73
|
private _registerOperations;
|
|
63
74
|
private _openShapeEditPanel;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IUniverDocsShapeUIConfig } from './config/config';
|
|
2
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
export declare class UniverDocsShapeMobileUIPlugin extends Plugin {
|
|
5
|
+
private readonly _config;
|
|
6
|
+
protected readonly _injector: Injector;
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
private readonly _configService;
|
|
9
|
+
private readonly _renderManagerService;
|
|
10
|
+
static type: UniverInstanceType;
|
|
11
|
+
static pluginName: string;
|
|
12
|
+
static packageName: string;
|
|
13
|
+
static version: string;
|
|
14
|
+
constructor(_config: Partial<IUniverDocsShapeUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _renderManagerService: IRenderManagerService);
|
|
15
|
+
onStarting(): void;
|
|
16
|
+
onReady(): void;
|
|
17
|
+
}
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Dependency } from '@univerjs/core';
|
|
1
2
|
import type { IUniverDocsShapeUIConfig } from './config/config';
|
|
2
3
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
@@ -13,8 +14,10 @@ export declare class UniverDocsShapeUIPlugin extends Plugin {
|
|
|
13
14
|
static version: string;
|
|
14
15
|
constructor(_config: Partial<IUniverDocsShapeUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _renderManagerService: IRenderManagerService);
|
|
15
16
|
onStarting(): void;
|
|
17
|
+
protected _getDependencies(): Dependency[];
|
|
16
18
|
onReady(): void;
|
|
19
|
+
protected _getRenderModules(): Dependency[];
|
|
17
20
|
onRendered(): void;
|
|
18
21
|
private _initCommands;
|
|
19
|
-
|
|
22
|
+
protected _initUIPart(): void;
|
|
20
23
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DocsShapeService } from '@univerjs-pro/docs-shape';
|
|
2
|
+
import { Disposable, LocaleService } from '@univerjs/core';
|
|
3
|
+
/** Supplies the same text layout to inline-object pagination as to shape painting. */
|
|
4
|
+
export declare class ShapeLayoutService extends Disposable {
|
|
5
|
+
private readonly _docsShapeService;
|
|
6
|
+
private readonly _localeService;
|
|
7
|
+
constructor(_docsShapeService: DocsShapeService, _localeService: LocaleService);
|
|
8
|
+
private _measure;
|
|
9
|
+
}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import type { ShapeTypeOption } from '@univerjs-pro/shape-editor-ui';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
1
3
|
import type { IMenuInsertShapeCommandParams } from '../commands/command/menu-insert-shape.command';
|
|
4
|
+
import { ShapeGroupEnum } from '@univerjs-pro/shape-editor-ui';
|
|
2
5
|
export declare const SHAPE_PICKER_COMPONENT = "doc.shape.picker.component";
|
|
3
6
|
export declare const DOCS_IMAGE_CLIP_SHAPE_PICKER_COMPONENT = "doc.image-clip.shape-picker.component";
|
|
7
|
+
interface IShapePickerComponentProps {
|
|
8
|
+
onShapeClick: (shape: ShapeTypeOption) => void;
|
|
9
|
+
excludeGroups?: ShapeGroupEnum[];
|
|
10
|
+
}
|
|
11
|
+
export declare function useImageClipShapeSelection(): (shape: ShapeTypeOption) => void;
|
|
4
12
|
export declare function ImageClipShapePicker(): import("react").JSX.Element;
|
|
5
13
|
export declare function ImageClipShapePickerBridge(): import("react").JSX.Element | null;
|
|
6
|
-
export declare function ShapePicker({ paragraphMenuPlacement }: {
|
|
14
|
+
export declare function ShapePicker({ paragraphMenuPlacement, PickerComponent }: {
|
|
15
|
+
PickerComponent?: ComponentType<IShapePickerComponentProps>;
|
|
7
16
|
paragraphMenuPlacement?: IMenuInsertShapeCommandParams['paragraphMenuPlacement'];
|
|
8
17
|
}): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { ShapePicker } from '../ShapePicker';
|
|
3
|
+
export declare function MobileShapePicker(props: ComponentProps<typeof ShapePicker>): import("react").JSX.Element;
|
|
4
|
+
export declare function MobileImageClipShapePicker(): import("react").JSX.Element;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IObjectListPanelBaseProps } from '@univerjs/drawing-ui';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
export declare function DocDrawingObjectListPanel({ PanelComponent }: {
|
|
4
|
+
PanelComponent?: ComponentType<IObjectListPanelBaseProps>;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MobileDocDrawingObjectListPanel(): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IDocShapeEditPanelProps } from './ShapeEditorPanel';
|
|
17
|
+
export declare function MobileDocShapeEditPanel(props: IDocShapeEditPanelProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
export interface IDocShapeEditPanelProps {
|
|
4
|
+
PositionComponent?: ComponentType;
|
|
3
5
|
unitId: string;
|
|
4
6
|
subUnitId: string;
|
|
5
7
|
shapeId: string;
|
|
@@ -8,5 +10,4 @@ interface IShapeEditPanelProps {
|
|
|
8
10
|
version: number;
|
|
9
11
|
disableShapeOption: boolean;
|
|
10
12
|
}
|
|
11
|
-
export declare function
|
|
12
|
-
export {};
|
|
13
|
+
export declare function DocShapeEditPanel(props: IDocShapeEditPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IPopupWithExtraProps } from '@univerjs/ui';
|
|
3
|
+
export declare const DOCS_SHAPE_MOBILE_MENU = "docs-shape-ui.mobile-menu";
|
|
4
|
+
interface IDocsShapeMobileMenuProps {
|
|
5
|
+
shapeType: ShapeTypeEnum;
|
|
6
|
+
onText: () => unknown;
|
|
7
|
+
onStyle: () => unknown;
|
|
8
|
+
onDelete: () => unknown;
|
|
9
|
+
}
|
|
10
|
+
export declare function DocsShapeMobileMenu({ popup }: {
|
|
11
|
+
popup: IPopupWithExtraProps<IDocsShapeMobileMenuProps>;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export {};
|