@univerjs/sheets-drawing-ui 0.2.7 → 0.2.9

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.
Files changed (39) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +161 -137
  3. package/lib/types/basics/transform-position.d.ts +0 -1
  4. package/lib/types/commands/commands/delete-drawings.command.d.ts +0 -1
  5. package/lib/types/commands/commands/group-sheet-drawing.command.d.ts +0 -1
  6. package/lib/types/commands/commands/insert-sheet-drawing.command.d.ts +0 -1
  7. package/lib/types/commands/commands/interfaces.d.ts +0 -1
  8. package/lib/types/commands/commands/move-drawings.command.d.ts +0 -1
  9. package/lib/types/commands/commands/remove-sheet-drawing.command.d.ts +0 -1
  10. package/lib/types/commands/commands/set-drawing-arrange.command.d.ts +0 -1
  11. package/lib/types/commands/commands/set-sheet-drawing.command.d.ts +0 -1
  12. package/lib/types/commands/commands/ungroup-sheet-drawing.command.d.ts +0 -1
  13. package/lib/types/commands/commands/utils.d.ts +0 -1
  14. package/lib/types/commands/operations/clear-drawing-transformer.operation.d.ts +0 -1
  15. package/lib/types/commands/operations/edit-sheet-drawing.operation.d.ts +0 -1
  16. package/lib/types/commands/operations/insert-image.operation.d.ts +0 -1
  17. package/lib/types/commands/operations/open-drawing-panel.operation.d.ts +0 -1
  18. package/lib/types/controllers/drawing-popup-menu.controller.d.ts +0 -1
  19. package/lib/types/controllers/render-controllers/sheet-drawing.render-controller.d.ts +11 -0
  20. package/lib/types/controllers/sheet-drawing-copy-paste.controller.d.ts +0 -1
  21. package/lib/types/controllers/sheet-drawing-permission.controller.d.ts +0 -1
  22. package/lib/types/controllers/sheet-drawing-printing.controller.d.ts +0 -1
  23. package/lib/types/controllers/sheet-drawing-transform-affected.controller.d.ts +0 -1
  24. package/lib/types/controllers/sheet-drawing-update.controller.d.ts +2 -3
  25. package/lib/types/controllers/sheet-drawing.controller.d.ts +0 -1
  26. package/lib/types/controllers/shortcuts/drawing.shortcut.d.ts +0 -1
  27. package/lib/types/locale/en-US.d.ts +0 -1
  28. package/lib/types/locale/ru-RU.d.ts +0 -1
  29. package/lib/types/locale/vi-VN.d.ts +0 -1
  30. package/lib/types/locale/zh-TW.d.ts +0 -1
  31. package/lib/types/plugin.d.ts +0 -1
  32. package/lib/types/services/canvas-float-dom-manager.service.d.ts +0 -1
  33. package/lib/types/views/menu/image.menu.d.ts +0 -1
  34. package/lib/types/views/sheet-image-panel/SheetDrawingAnchor.d.ts +0 -1
  35. package/lib/types/views/sheet-image-panel/SheetDrawingPanel.d.ts +0 -1
  36. package/lib/types/views/upload-component/UploadFile.d.ts +0 -1
  37. package/lib/types/views/upload-loading/UploadLoading.d.ts +0 -1
  38. package/lib/umd/index.js +1 -1
  39. package/package.json +22 -22
@@ -2,6 +2,5 @@ import { Nullable } from '@univerjs/core';
2
2
  import { ITransformState } from '@univerjs/drawing';
3
3
  import { ISheetDrawingPosition } from '@univerjs/sheets-drawing';
4
4
  import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
5
-
6
5
  export declare function drawingPositionToTransform(position: ISheetDrawingPosition, selectionRenderService: ISheetSelectionRenderService, sheetSkeletonManagerService: SheetSkeletonManagerService): Nullable<ITransformState>;
7
6
  export declare function transformToDrawingPosition(transform: ITransformState, selectionRenderService: ISheetSelectionRenderService): Nullable<ISheetDrawingPosition>;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const DeleteDrawingsCommand: ICommand;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to insert new defined name
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to insert new defined name
5
4
  */
@@ -1,6 +1,5 @@
1
1
  import { DrawingTypeEnum } from '@univerjs/core';
2
2
  import { ISheetDrawing } from '@univerjs/sheets-drawing';
3
-
4
3
  export interface IInsertDrawingCommandParams {
5
4
  unitId: string;
6
5
  drawings: ISheetDrawing[];
@@ -1,5 +1,4 @@
1
1
  import { ICommand, Direction } from '@univerjs/core';
2
-
3
2
  export interface IMoveDrawingsCommandParams {
4
3
  direction: Direction;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to remove new sheet image
5
4
  */
@@ -1,6 +1,5 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  import { IDrawingOrderMapParam, ArrangeTypeEnum } from '@univerjs/drawing';
3
-
4
3
  export interface ISetDrawingArrangeCommandParams extends IDrawingOrderMapParam {
5
4
  arrangeType: ArrangeTypeEnum;
6
5
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to update defined name
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to insert new defined name
5
4
  */
@@ -1,4 +1,3 @@
1
1
  import { IDrawingGroupUpdateParam } from '@univerjs/drawing';
2
-
3
2
  export declare function ungroupToGroup(ungroupParams: IDrawingGroupUpdateParam[]): IDrawingGroupUpdateParam[];
4
3
  export declare function groupToUngroup(groupParams: IDrawingGroupUpdateParam[]): IDrawingGroupUpdateParam[];
@@ -1,3 +1,2 @@
1
1
  import { IMutation } from '@univerjs/core';
2
-
3
2
  export declare const ClearSheetDrawingTransformerOperation: IMutation<string[]>;
@@ -1,4 +1,3 @@
1
1
  import { IOperation } from '@univerjs/core';
2
2
  import { IDrawingSearch } from '@univerjs/drawing';
3
-
4
3
  export declare const EditSheetDrawingOperation: IOperation<IDrawingSearch>;
@@ -1,5 +1,4 @@
1
1
  import { IOperation, Nullable } from '@univerjs/core';
2
-
3
2
  export interface IInsertImageOperationParams {
4
3
  files: Nullable<File[]>;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface IUIComponentCommandParams {
4
3
  value: string;
5
4
  }
@@ -3,7 +3,6 @@ import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
4
4
  import { IDrawingManagerService } from '@univerjs/drawing';
5
5
  import { IUIPartsService } from '@univerjs/ui';
6
-
7
6
  export declare class DrawingPopupMenuController extends RxDisposable {
8
7
  private _injector;
9
8
  private readonly _drawingManagerService;
@@ -0,0 +1,11 @@
1
+ import { Disposable, LifecycleService } from '@univerjs/core';
2
+ import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { ISheetDrawingService } from '@univerjs/sheets-drawing';
4
+ export declare class SheetsDrawingRenderController extends Disposable implements IRenderModule {
5
+ private _context;
6
+ private readonly _sheetDrawingService;
7
+ private _lifecycleService;
8
+ constructor(_context: IRenderContext, _sheetDrawingService: ISheetDrawingService, _lifecycleService: LifecycleService);
9
+ private _init;
10
+ private _drawingInitializeListener;
11
+ }
@@ -2,7 +2,6 @@ import { Disposable } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { ISheetDrawingService } from '@univerjs/sheets-drawing';
4
4
  import { ISheetClipboardService } from '@univerjs/sheets-ui';
5
-
6
5
  export declare class SheetsDrawingCopyPasteController extends Disposable {
7
6
  private _sheetClipboardService;
8
7
  private readonly _renderManagerService;
@@ -1,7 +1,6 @@
1
1
  import { Disposable, IPermissionService, IUniverInstanceService, UserManagerService } from '@univerjs/core';
2
2
  import { IDrawingManagerService } from '@univerjs/drawing';
3
3
  import { IRenderManagerService } from '@univerjs/engine-render';
4
-
5
4
  export declare class SheetDrawingPermissionController extends Disposable {
6
5
  private readonly _drawingManagerService;
7
6
  private readonly _renderManagerService;
@@ -3,7 +3,6 @@ import { IDrawingManagerService } from '@univerjs/drawing';
3
3
  import { DrawingRenderService } from '@univerjs/drawing-ui';
4
4
  import { IRenderManagerService } from '@univerjs/engine-render';
5
5
  import { SheetPrintInterceptorService } from '@univerjs/sheets-ui';
6
-
7
6
  export declare class SheetDrawingPrintingController extends Disposable {
8
7
  private readonly _sheetPrintInterceptorService;
9
8
  private readonly _drawingRenderService;
@@ -4,7 +4,6 @@ import { IDrawingManagerService } from '@univerjs/drawing';
4
4
  import { SheetInterceptorService } from '@univerjs/sheets';
5
5
  import { ISheetDrawingService } from '@univerjs/sheets-drawing';
6
6
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
7
-
8
7
  export declare class SheetDrawingTransformAffectedController extends Disposable implements IRenderModule {
9
8
  private readonly _context;
10
9
  private readonly _commandService;
@@ -4,9 +4,8 @@ import { ISheetDrawingService } from '@univerjs/sheets-drawing';
4
4
  import { SheetsSelectionsService } from '@univerjs/sheets';
5
5
  import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
6
6
  import { IMessageService } from '@univerjs/ui';
7
- import { IRenderContext } from '@univerjs/engine-render';
8
-
9
- export declare class SheetDrawingUpdateController extends Disposable {
7
+ import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
8
+ export declare class SheetDrawingUpdateController extends Disposable implements IRenderModule {
10
9
  private readonly _context;
11
10
  private readonly _skeletonManagerService;
12
11
  private readonly _commandService;
@@ -1,6 +1,5 @@
1
1
  import { DependencyOverride, Disposable, ICommandService, Injector } from '@univerjs/core';
2
2
  import { MenuConfig, ComponentManager, IMenuService, IShortcutService } from '@univerjs/ui';
3
-
4
3
  export interface IUniverSheetsDrawingConfig {
5
4
  menu?: MenuConfig;
6
5
  overrides?: DependencyOverride;
@@ -1,7 +1,6 @@
1
1
  import { IContextService } from '@univerjs/core';
2
2
  import { IShortcutItem } from '@univerjs/ui';
3
3
  import { IMoveDrawingsCommandParams } from '../../commands/commands/move-drawings.command';
4
-
5
4
  export declare function whenSheetDrawingFocused(contextService: IContextService): boolean;
6
5
  export declare const MoveDrawingDownShortcutItem: IShortcutItem<IMoveDrawingsCommandParams>;
7
6
  export declare const MoveDrawingUpShortcutItem: IShortcutItem<IMoveDrawingsCommandParams>;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,7 +1,6 @@
1
1
  import { Injector, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { IUniverSheetsDrawingConfig } from './controllers/sheet-drawing.controller';
4
-
5
4
  export declare class UniverSheetsDrawingUIPlugin extends Plugin {
6
5
  protected _injector: Injector;
7
6
  private readonly _localeService;
@@ -3,7 +3,6 @@ import { IDrawingManagerService } from '@univerjs/drawing';
3
3
  import { IBoundRectNoAngle, Scene, SpreadsheetSkeleton, IRenderManagerService } from '@univerjs/engine-render';
4
4
  import { ISheetDrawingService } from '@univerjs/sheets-drawing';
5
5
  import { CanvasFloatDomService } from '@univerjs/ui';
6
-
7
6
  export interface ICanvasFloatDom {
8
7
  allowTransform: boolean;
9
8
  initPosition: IPosition;
@@ -1,6 +1,5 @@
1
1
  import { IMenuItem } from '@univerjs/ui';
2
2
  import { IAccessor } from '@univerjs/core';
3
-
4
3
  export declare const IMAGE_UPLOAD_ICON = "addition-and-subtraction-single";
5
4
  export declare const IMAGE_MENU_ID = "sheet.menu.image";
6
5
  export declare function ImageMenuFactory(accessor: IAccessor): IMenuItem;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { IDrawingParam } from '@univerjs/drawing';
3
-
4
3
  export interface ISheetDrawingAnchorProps {
5
4
  drawings: IDrawingParam[];
6
5
  }
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const SheetDrawingPanel: () => false | React.JSX.Element;
@@ -2,7 +2,6 @@ import { Nullable } from '@univerjs/core';
2
2
  import { default as React } from 'react';
3
3
  import { ICustomComponentProps } from '@univerjs/ui';
4
4
  import { UploadFileType } from './component-name';
5
-
6
5
  export interface IUploadFileProps extends ICustomComponentProps<Nullable<File>> {
7
6
  type: UploadFileType;
8
7
  }
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const UploadLoading: () => React.JSX.Element;