@univerjs/sheets-drawing-ui 1.3.0 → 1.4.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.
- package/lib/cjs/facade.js +4 -9
- package/lib/cjs/index.js +131 -138
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/facade.js +4 -8
- package/lib/es/index.js +133 -140
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/facade.js +4 -8
- package/lib/index.js +133 -140
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/types/menu/drawing-popup-menu.controller.d.ts +5 -2
- package/lib/types/services/batch-save-images.service.d.ts +1 -1
- package/lib/types/services/canvas-float-dom-manager.service.d.ts +3 -3
- package/lib/types/services/drawing-context-menu.service.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +19 -19
package/lib/locale/ar-SA.js
CHANGED
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Imatge",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/de-DE.js
CHANGED
package/lib/locale/en-US.js
CHANGED
package/lib/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Imagen",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "تصویر",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Image",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/id-ID.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Gambar",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/it-IT.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Immagine",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/ja-JP.js
CHANGED
package/lib/locale/ko-KR.js
CHANGED
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Obraz",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Imagem",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Изображение",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Obrázok",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "sheets-drawing-ui": {
|
|
3
3
|
title: "Hình ảnh",
|
|
4
4
|
backgroundImage: {
|
|
@@ -61,5 +61,4 @@ const locale = { "sheets-drawing-ui": {
|
|
|
61
61
|
}
|
|
62
62
|
} };
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { locale as default };
|
package/lib/locale/zh-CN.js
CHANGED
package/lib/locale/zh-HK.js
CHANGED
package/lib/locale/zh-TW.js
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { ImageIoService } from '@univerjs/drawing';
|
|
17
|
-
import { ICommandService, IContextService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
17
|
+
import { ICommandService, IContextService, IPermissionService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
18
18
|
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
19
|
+
import { OleUIService } from '@univerjs/drawing-ui';
|
|
19
20
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
20
21
|
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
21
22
|
import { IMenuManagerService, IMessageService } from '@univerjs/ui';
|
|
@@ -30,8 +31,10 @@ export declare class DrawingPopupMenuController extends RxDisposable {
|
|
|
30
31
|
protected readonly _contextService: IContextService;
|
|
31
32
|
private readonly _ioService;
|
|
32
33
|
protected readonly _commandService: ICommandService;
|
|
34
|
+
private readonly _oleUI;
|
|
35
|
+
private readonly _permissionService;
|
|
33
36
|
private _initImagePopupMenu;
|
|
34
|
-
constructor(_localeService: LocaleService, _drawingManagerService: IDrawingManagerService, _canvasPopManagerService: SheetCanvasPopManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _menuManagerService: IMenuManagerService, _contextService: IContextService, _ioService: ImageIoService, _commandService: ICommandService);
|
|
37
|
+
constructor(_localeService: LocaleService, _drawingManagerService: IDrawingManagerService, _canvasPopManagerService: SheetCanvasPopManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _menuManagerService: IMenuManagerService, _contextService: IContextService, _ioService: ImageIoService, _commandService: ICommandService, _oleUI: OleUIService, _permissionService: IPermissionService);
|
|
35
38
|
private _init;
|
|
36
39
|
private _setupLoadingStatus;
|
|
37
40
|
private _dispose;
|
|
@@ -136,7 +136,7 @@ export interface IBatchSaveImagesService {
|
|
|
136
136
|
*/
|
|
137
137
|
getSelectionColumnIndices(): Set<number>;
|
|
138
138
|
}
|
|
139
|
-
export declare const IBatchSaveImagesService: import("@
|
|
139
|
+
export declare const IBatchSaveImagesService: import("@univerjs/core").IdentifierDecorator<IBatchSaveImagesService>;
|
|
140
140
|
export declare class BatchSaveImagesService extends Disposable implements IBatchSaveImagesService {
|
|
141
141
|
private readonly _univerInstanceService;
|
|
142
142
|
private readonly _selectionService;
|
|
@@ -119,9 +119,6 @@ export interface IDOMAnchor {
|
|
|
119
119
|
* Charts retain resize handles but do not expose a rotation control.
|
|
120
120
|
*/
|
|
121
121
|
export declare const SHEET_CHART_TRANSFORMER_CONFIG: {
|
|
122
|
-
readonly rotateEnabled: false;
|
|
123
|
-
readonly keepRatio: false;
|
|
124
|
-
readonly moveBoundaryEnabled: false;
|
|
125
122
|
readonly moveEnabled: true;
|
|
126
123
|
readonly resizeEnabled: true;
|
|
127
124
|
readonly rotateAnchorOffset: number;
|
|
@@ -145,6 +142,9 @@ export declare const SHEET_CHART_TRANSFORMER_CONFIG: {
|
|
|
145
142
|
readonly anchorSize: number;
|
|
146
143
|
readonly anchorCornerRadius: number;
|
|
147
144
|
readonly anchorStyle: "canva";
|
|
145
|
+
readonly rotateEnabled: false;
|
|
146
|
+
readonly keepRatio: false;
|
|
147
|
+
readonly moveBoundaryEnabled: false;
|
|
148
148
|
};
|
|
149
149
|
export declare const EMBED_FLOAT_DRAG_HANDLE_POINTER_DOWN_EVENT = "univer:embed-float-drag-handle:pointerdown";
|
|
150
150
|
export interface IFloatDomHostClickIntent {
|
|
@@ -29,7 +29,7 @@ export interface IDrawingContextMenuService {
|
|
|
29
29
|
registerProvider(drawingType: DrawingTypeEnum, provider: IDrawingContextMenuProvider): IDisposable;
|
|
30
30
|
getContextMenuPosition(context: IDrawingContextMenuProviderContext): string | undefined;
|
|
31
31
|
}
|
|
32
|
-
export declare const IDrawingContextMenuService: import("@
|
|
32
|
+
export declare const IDrawingContextMenuService: import("@univerjs/core").IdentifierDecorator<IDrawingContextMenuService>;
|
|
33
33
|
export declare class DrawingContextMenuService extends Disposable implements IDrawingContextMenuService {
|
|
34
34
|
private readonly _providers;
|
|
35
35
|
registerProvider(drawingType: DrawingTypeEnum, provider: IDrawingContextMenuProvider): IDisposable;
|