@univerjs/sheets-drawing-ui 0.3.0-alpha.1 → 0.3.0-nightly.202410111606
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/es/index.js +653 -652
- package/lib/locale/fa-IR.json +41 -0
- package/lib/types/controllers/render-controllers/sheet-drawing.render-controller.d.ts +3 -4
- package/lib/types/controllers/sheet-drawing.controller.d.ts +2 -3
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/plugin.d.ts +3 -2
- package/lib/umd/index.js +1 -1
- package/package.json +23 -24
- package/LICENSE +0 -176
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sheetImage": {
|
|
3
|
+
"title": "تصویر",
|
|
4
|
+
"upload": {
|
|
5
|
+
"float": "شناور کردن تصویر",
|
|
6
|
+
"cell": "تصویر سلولی"
|
|
7
|
+
},
|
|
8
|
+
"panel": {
|
|
9
|
+
"title": "ویرایش تصویر"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"image-popup": {
|
|
13
|
+
"replace": "تعویض",
|
|
14
|
+
"delete": "حذف",
|
|
15
|
+
"edit": "ویرایش",
|
|
16
|
+
"crop": "کراپ",
|
|
17
|
+
"reset": "بازنشانی اندازه"
|
|
18
|
+
},
|
|
19
|
+
"drawing-anchor": {
|
|
20
|
+
"title": "خواص لنگر",
|
|
21
|
+
"both": "جابهجایی و تغییر اندازه با سلولها",
|
|
22
|
+
"position": "جابهجایی اما تغییر اندازه نکردن با سلولها",
|
|
23
|
+
"none": "جابهجایی یا تغییر اندازه نکردن با سلولها"
|
|
24
|
+
},
|
|
25
|
+
"update-status": {
|
|
26
|
+
"exceedMaxSize": "اندازه تصویر از حد مجاز فراتر رفته است، حد مجاز {0}M است",
|
|
27
|
+
"invalidImageType": "نوع تصویر نامعتبر است",
|
|
28
|
+
"exceedMaxCount": "فقط {0} تصویر میتوانند همزمان آپلود شوند",
|
|
29
|
+
"invalidImage": "تصویر نامعتبر است"
|
|
30
|
+
},
|
|
31
|
+
"sheet-drawing-view": "طراحی",
|
|
32
|
+
"shortcut": {
|
|
33
|
+
"sheet": {
|
|
34
|
+
"drawing-move-down": "جابهجایی طراحی به پایین",
|
|
35
|
+
"drawing-move-up": "جابهجایی طراحی به بالا",
|
|
36
|
+
"drawing-move-left": "جابهجایی طراحی به چپ",
|
|
37
|
+
"drawing-move-right": "جابهجایی طراحی به راست",
|
|
38
|
+
"drawing-delete": "حذف طراحی"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { Disposable, LifecycleService } from '@univerjs/core';
|
|
2
|
-
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
3
1
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
3
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
4
4
|
import { ISheetDrawingService } from '@univerjs/sheets-drawing';
|
|
5
5
|
import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
6
6
|
export declare class SheetsDrawingRenderController extends Disposable implements IRenderModule {
|
|
7
7
|
private _context;
|
|
8
8
|
private readonly _sheetDrawingService;
|
|
9
9
|
private readonly _drawingManagerService;
|
|
10
|
-
private _lifecycleService;
|
|
11
10
|
private _sheetSelectionRenderService;
|
|
12
11
|
private _sheetSkeletonManagerService;
|
|
13
|
-
constructor(_context: IRenderContext, _sheetDrawingService: ISheetDrawingService, _drawingManagerService: IDrawingManagerService,
|
|
12
|
+
constructor(_context: IRenderContext, _sheetDrawingService: ISheetDrawingService, _drawingManagerService: IDrawingManagerService, _sheetSelectionRenderService: ISheetSelectionRenderService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
14
13
|
private _init;
|
|
15
14
|
private _drawingInitializeListener;
|
|
16
15
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Disposable, ICommandService
|
|
1
|
+
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';
|
|
3
3
|
export declare class SheetDrawingUIController extends Disposable {
|
|
4
|
-
private readonly _injector;
|
|
5
4
|
private readonly _componentManager;
|
|
6
5
|
private readonly _menuManagerService;
|
|
7
6
|
private readonly _commandService;
|
|
8
7
|
private readonly _shortcutService;
|
|
9
|
-
constructor(
|
|
8
|
+
constructor(_componentManager: ComponentManager, _menuManagerService: IMenuManagerService, _commandService: ICommandService, _shortcutService: IShortcutService);
|
|
10
9
|
private _initCustomComponents;
|
|
11
10
|
private _initMenus;
|
|
12
11
|
private _initCommands;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IUniverSheetsDrawingUIConfig } from './controllers/config.schema';
|
|
1
2
|
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { IUniverSheetsDrawingUIConfig } from './controllers/config.schema';
|
|
4
4
|
export declare class UniverSheetsDrawingUIPlugin extends Plugin {
|
|
5
5
|
private readonly _config;
|
|
6
6
|
protected _injector: Injector;
|
|
@@ -10,7 +10,8 @@ export declare class UniverSheetsDrawingUIPlugin extends Plugin {
|
|
|
10
10
|
static pluginName: string;
|
|
11
11
|
constructor(_config: Partial<IUniverSheetsDrawingUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService);
|
|
12
12
|
onStarting(): void;
|
|
13
|
+
onReady(): void;
|
|
13
14
|
onRendered(): void;
|
|
14
|
-
|
|
15
|
+
onSteady(): void;
|
|
15
16
|
private _registerRenderModules;
|
|
16
17
|
}
|