@univerjs/sheets-drawing-ui 0.3.0 → 0.4.0-alpha.0

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.
@@ -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, _lifecycleService: LifecycleService, _sheetSelectionRenderService: ISheetSelectionRenderService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
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, Injector } from '@univerjs/core';
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(_injector: Injector, _componentManager: ComponentManager, _menuManagerService: IMenuManagerService, _commandService: ICommandService, _shortcutService: IShortcutService);
8
+ constructor(_componentManager: ComponentManager, _menuManagerService: IMenuManagerService, _commandService: ICommandService, _shortcutService: IShortcutService);
10
9
  private _initCustomComponents;
11
10
  private _initMenus;
12
11
  private _initCommands;
@@ -0,0 +1,3 @@
1
+ import { default as zhCN } from './zh-CN';
2
+ declare const locale: typeof zhCN;
3
+ export default locale;
@@ -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
- private _initDependencies;
15
+ onSteady(): void;
15
16
  private _registerRenderModules;
16
17
  }