@univerjs/sheets-drawing-ui 0.2.6 → 0.2.8
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 +164 -140
- package/lib/types/basics/transform-position.d.ts +0 -1
- package/lib/types/commands/commands/delete-drawings.command.d.ts +0 -1
- package/lib/types/commands/commands/group-sheet-drawing.command.d.ts +0 -1
- package/lib/types/commands/commands/insert-sheet-drawing.command.d.ts +0 -1
- package/lib/types/commands/commands/interfaces.d.ts +0 -1
- package/lib/types/commands/commands/move-drawings.command.d.ts +0 -1
- package/lib/types/commands/commands/remove-sheet-drawing.command.d.ts +0 -1
- package/lib/types/commands/commands/set-drawing-arrange.command.d.ts +0 -1
- package/lib/types/commands/commands/set-sheet-drawing.command.d.ts +0 -1
- package/lib/types/commands/commands/ungroup-sheet-drawing.command.d.ts +0 -1
- package/lib/types/commands/commands/utils.d.ts +0 -1
- package/lib/types/commands/operations/clear-drawing-transformer.operation.d.ts +0 -1
- package/lib/types/commands/operations/edit-sheet-drawing.operation.d.ts +0 -1
- package/lib/types/commands/operations/insert-image.operation.d.ts +0 -1
- package/lib/types/commands/operations/open-drawing-panel.operation.d.ts +0 -1
- package/lib/types/controllers/drawing-popup-menu.controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/sheet-drawing.render-controller.d.ts +11 -0
- package/lib/types/controllers/sheet-drawing-copy-paste.controller.d.ts +0 -1
- package/lib/types/controllers/sheet-drawing-permission.controller.d.ts +0 -1
- package/lib/types/controllers/sheet-drawing-printing.controller.d.ts +0 -1
- package/lib/types/controllers/sheet-drawing-transform-affected.controller.d.ts +0 -1
- package/lib/types/controllers/sheet-drawing-update.controller.d.ts +2 -3
- package/lib/types/controllers/sheet-drawing.controller.d.ts +0 -1
- package/lib/types/controllers/shortcuts/drawing.shortcut.d.ts +0 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/plugin.d.ts +0 -1
- package/lib/types/services/canvas-float-dom-manager.service.d.ts +1 -2
- package/lib/types/views/menu/image.menu.d.ts +1 -1
- package/lib/types/views/sheet-image-panel/SheetDrawingAnchor.d.ts +0 -1
- package/lib/types/views/sheet-image-panel/SheetDrawingPanel.d.ts +0 -1
- package/lib/types/views/upload-component/UploadFile.d.ts +0 -1
- package/lib/types/views/upload-loading/UploadLoading.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +23 -23
|
@@ -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,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[];
|
|
@@ -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>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -27,3 +27,4 @@ export { ClearSheetDrawingTransformerOperation } from './commands/operations/cle
|
|
|
27
27
|
export { EditSheetDrawingOperation } from './commands/operations/edit-sheet-drawing.operation';
|
|
28
28
|
export { InsertFloatImageOperation, InsertCellImageOperation } from './commands/operations/insert-image.operation';
|
|
29
29
|
export { SidebarSheetDrawingOperation } from './commands/operations/open-drawing-panel.operation';
|
|
30
|
+
export { IMAGE_MENU_ID } from './views/menu/image.menu';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -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;
|
|
@@ -62,7 +61,7 @@ export declare class SheetCanvasFloatDomManagerService extends Disposable {
|
|
|
62
61
|
private _getPosition;
|
|
63
62
|
private _featureUpdateListener;
|
|
64
63
|
private _deleteListener;
|
|
65
|
-
addFloatDomToPosition(layer: ICanvasFloatDom): {
|
|
64
|
+
addFloatDomToPosition(layer: ICanvasFloatDom, propId?: string): {
|
|
66
65
|
id: string;
|
|
67
66
|
dispose: () => void;
|
|
68
67
|
} | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
export declare const IMAGE_MENU_ID = "sheet.menu.image";
|
|
5
5
|
export declare function ImageMenuFactory(accessor: IAccessor): IMenuItem;
|
|
6
6
|
export declare function UploadFloatImageMenuFactory(_accessor: IAccessor): IMenuItem;
|
|
7
7
|
export declare function UploadCellImageMenuFactory(_accessor: IAccessor): IMenuItem;
|
|
@@ -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
|
}
|