@univerjs/sheets-drawing-ui 1.0.0-beta.0 → 1.0.0-beta.2
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 +56 -37
- package/lib/cjs/locale/ar-SA.js +1 -3
- package/lib/cjs/locale/ca-ES.js +1 -3
- package/lib/cjs/locale/de-DE.js +1 -3
- package/lib/cjs/locale/en-US.js +1 -3
- package/lib/cjs/locale/es-ES.js +1 -3
- package/lib/cjs/locale/fa-IR.js +1 -3
- package/lib/cjs/locale/fr-FR.js +1 -3
- package/lib/cjs/locale/id-ID.js +1 -3
- package/lib/cjs/locale/it-IT.js +1 -3
- package/lib/cjs/locale/ja-JP.js +1 -3
- package/lib/cjs/locale/ko-KR.js +1 -3
- package/lib/cjs/locale/pl-PL.js +1 -3
- package/lib/cjs/locale/pt-BR.js +1 -3
- package/lib/cjs/locale/ru-RU.js +1 -3
- package/lib/cjs/locale/sk-SK.js +1 -3
- package/lib/cjs/locale/vi-VN.js +1 -3
- package/lib/cjs/locale/zh-CN.js +1 -3
- package/lib/cjs/locale/zh-HK.js +1 -3
- package/lib/cjs/locale/zh-TW.js +1 -3
- package/lib/es/index.js +58 -39
- package/lib/es/locale/ar-SA.js +1 -3
- package/lib/es/locale/ca-ES.js +1 -3
- package/lib/es/locale/de-DE.js +1 -3
- package/lib/es/locale/en-US.js +1 -3
- package/lib/es/locale/es-ES.js +1 -3
- package/lib/es/locale/fa-IR.js +1 -3
- package/lib/es/locale/fr-FR.js +1 -3
- package/lib/es/locale/id-ID.js +1 -3
- package/lib/es/locale/it-IT.js +1 -3
- package/lib/es/locale/ja-JP.js +1 -3
- package/lib/es/locale/ko-KR.js +1 -3
- package/lib/es/locale/pl-PL.js +1 -3
- package/lib/es/locale/pt-BR.js +1 -3
- package/lib/es/locale/ru-RU.js +1 -3
- package/lib/es/locale/sk-SK.js +1 -3
- package/lib/es/locale/vi-VN.js +1 -3
- package/lib/es/locale/zh-CN.js +1 -3
- package/lib/es/locale/zh-HK.js +1 -3
- package/lib/es/locale/zh-TW.js +1 -3
- package/lib/index.js +58 -39
- package/lib/locale/ar-SA.js +1 -3
- package/lib/locale/ca-ES.js +1 -3
- package/lib/locale/de-DE.js +1 -3
- package/lib/locale/en-US.js +1 -3
- package/lib/locale/es-ES.js +1 -3
- package/lib/locale/fa-IR.js +1 -3
- package/lib/locale/fr-FR.js +1 -3
- package/lib/locale/id-ID.js +1 -3
- package/lib/locale/it-IT.js +1 -3
- package/lib/locale/ja-JP.js +1 -3
- package/lib/locale/ko-KR.js +1 -3
- package/lib/locale/pl-PL.js +1 -3
- package/lib/locale/pt-BR.js +1 -3
- package/lib/locale/ru-RU.js +1 -3
- package/lib/locale/sk-SK.js +1 -3
- package/lib/locale/vi-VN.js +1 -3
- package/lib/locale/zh-CN.js +1 -3
- package/lib/locale/zh-HK.js +1 -3
- package/lib/locale/zh-TW.js +1 -3
- package/lib/types/controllers/render-controllers/sheet-celll-image-hover.render-controller.d.ts +3 -1
- package/lib/types/controllers/ui.controller.d.ts +6 -2
- package/lib/types/locale/en-US.d.ts +0 -2
- package/lib/types/services/canvas-float-dom-manager.service.d.ts +23 -11
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BooleanNumber, BuildTextUtils, CommandType, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DependentOn, Direction, Disposable, DisposableCollection, DrawingTypeEnum, FOCUSING_COMMON_DRAWINGS, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, ICommandService, IConfigService, IContextService, IImageIoService, IPermissionService, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageSourceType, ImageUploadStatusType, Inject, Injector, InterceptorEffectEnum, LifecycleService, LifecycleStages, LocaleService, ObjectMatrix, Optional, Plugin, PositionedObjectLayoutType, RxDisposable, Tools, UniverInstanceType, UserManagerService, WrapTextType, createDocumentModelWithStyle, createIdentifier, fromEventSubject, generateRandomId, merge, registerDependencies, sequenceExecute, toDisposable, touchDependencies } from "@univerjs/core";
|
|
2
2
|
import { ClearSheetDrawingTransformerOperation, DrawingApplyType, ISheetDrawingService, InsertSheetDrawingCommand, RemoveSheetDrawingCommand, SetDrawingApplyMutation, SetDrawingArrangeCommand, SetSheetDrawingCommand, SetSheetDrawingPlacementCommand, SheetDrawingAnchorType, UniverSheetsDrawingPlugin, drawingPositionToTransform, getSheetDrawingPlacement, transformToAxisAlignPosition, transformToDrawingPosition } from "@univerjs/sheets-drawing";
|
|
3
|
-
import { CURSOR_TYPE, DRAWING_OBJECT_LAYER_INDEX, IRenderManagerService, Image, ObjectType, Rect, SHEET_VIEWPORT_KEY, UniverRenderEnginePlugin, Vector2, getCurrentTypeOfRenderer, getGroupState, transformObjectOutOfGroup } from "@univerjs/engine-render";
|
|
3
|
+
import { CURSOR_TYPE, DEFAULT_TRANSFORMER_CONFIG, DRAWING_OBJECT_LAYER_INDEX, IRenderManagerService, Image, ObjectType, Rect, SHEET_VIEWPORT_KEY, UniverRenderEnginePlugin, Vector2, getCurrentTypeOfRenderer, getGroupState, transformObjectOutOfGroup } from "@univerjs/engine-render";
|
|
4
4
|
import { Button, Checkbox, CheckboxGroup, FormLayout, MessageType, Radio, RadioGroup, Select, clsx, render, unmount } from "@univerjs/design";
|
|
5
5
|
import { buildDocTransform, docDrawingPositionToTransform } from "@univerjs/docs";
|
|
6
6
|
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST, DRAWING_IMAGE_COUNT_LIMIT, DRAWING_IMAGE_HEIGHT_LIMIT, DRAWING_IMAGE_WIDTH_LIMIT, IDrawingManagerService, SetDrawingSelectedOperation, UniverDrawingPlugin, getDrawingImageAllowSize, getDrawingShapeKeyByDrawingSearch, getImageSize } from "@univerjs/drawing";
|
|
7
7
|
import { COMMAND_LISTENER_SKELETON_CHANGE, IAutoFillService, INTERCEPTOR_POINT, InterceptCellContentPriority, RangeProtectionPermissionEditPoint, SetFrozenMutation, SetRangeValuesCommand, SetSelectionsOperation, SetWorksheetActiveOperation, SetWorksheetRowAutoHeightMutation, SheetInterceptorService, SheetPermissionCheckController, SheetSkeletonService, SheetsSelectionsService, UniverSheetsPlugin, WorkbookEditablePermission, WorkbookViewPermission, WorksheetEditPermission, WorksheetViewPermission, attachRangeWithCoord, discreteRangeToRange, getSheetCommandTarget, isCellImage } from "@univerjs/sheets";
|
|
8
8
|
import { COPY_TYPE, EditingRenderController, HoverManagerService, IEditorBridgeService, ISheetClipboardService, ISheetSelectionRenderService, PREDEFINED_HOOK_NAME_PASTE, SetCellEditVisibleOperation, SetScrollOperation, SetZoomRatioOperation, SheetCanvasPopManagerService, SheetPrintInterceptorService, SheetSkeletonManagerService, UniverSheetsUIPlugin, getCurrentRangeDisable$, useHighlightRange, virtualizeDiscreteRanges } from "@univerjs/sheets-ui";
|
|
9
|
-
import { CanvasFloatDomPreviewService, CanvasFloatDomService, ComponentManager, ContextMenuGroup, ContextMenuPosition, IClipboardInterfaceService, IContextMenuService, IDialogService, ILocalFileService, IMenuManagerService, IMessageService, IShortcutService, ISidebarService, KeyCode, MenuItemType, PrintFloatDomSingle, RibbonInsertGroup, connectInjector, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
|
|
9
|
+
import { CanvasFloatDomPreviewService, CanvasFloatDomService, ComponentManager, ContextMenuGroup, ContextMenuPosition, IClipboardInterfaceService, IContextMenuService, IDialogService, ILocalFileService, IMenuManagerService, IMessageService, IShortcutService, ISidebarService, KeyCode, MenuItemType, PrintFloatDomSingle, RibbonInsertGroup, UndoRedoGroupService, connectInjector, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
|
|
10
10
|
import { COMPONENT_IMAGE_POPUP_MENU, DrawingCommonPanel, DrawingRenderService, ImageCropperObject, ImageResetSizeOperation, OpenImageCropOperation, UniverDrawingUIPlugin, disposeDrawingRenderObject, insertGroupObject } from "@univerjs/drawing-ui";
|
|
11
11
|
import { BehaviorSubject, EMPTY, Subject, combineLatest, distinctUntilChanged, filter, map, of, switchMap, take, tap, throttleTime } from "rxjs";
|
|
12
12
|
import { DocDrawingController, UniverDocsDrawingPlugin } from "@univerjs/docs-drawing";
|
|
@@ -903,6 +903,7 @@ const MoveDrawingsCommand = {
|
|
|
903
903
|
const commandService = accessor.get(ICommandService);
|
|
904
904
|
const drawingManagerService = accessor.get(ISheetDrawingService);
|
|
905
905
|
const sheetSkeletonService = accessor.get(SheetSkeletonService);
|
|
906
|
+
const undoRedoGroupService = accessor.get(UndoRedoGroupService);
|
|
906
907
|
const { direction } = params;
|
|
907
908
|
const drawings = drawingManagerService.getFocusDrawings();
|
|
908
909
|
if (drawings.length === 0) return false;
|
|
@@ -924,10 +925,10 @@ const MoveDrawingsCommand = {
|
|
|
924
925
|
axisAlignSheetTransform: transformToAxisAlignPosition(newTransform, skeleton)
|
|
925
926
|
};
|
|
926
927
|
}).filter((drawing) => drawing != null);
|
|
927
|
-
if (commandService.syncExecuteCommand(SetSheetDrawingCommand.id, {
|
|
928
|
+
if (undoRedoGroupService.runTimed(unitId, `sheet-drawing:nudge:${drawings[0].subUnitId}:${drawings.map((drawing) => drawing.drawingId).sort().join(",")}`, () => commandService.syncExecuteCommand(SetSheetDrawingCommand.id, {
|
|
928
929
|
unitId,
|
|
929
930
|
drawings: newDrawings
|
|
930
|
-
})) {
|
|
931
|
+
}))) {
|
|
931
932
|
commandService.syncExecuteCommand(ClearSheetDrawingTransformerOperation.id, [unitId]);
|
|
932
933
|
return true;
|
|
933
934
|
}
|
|
@@ -1374,21 +1375,24 @@ const SidebarSheetDrawingOperation = {
|
|
|
1374
1375
|
const sidebarService = accessor.get(ISidebarService);
|
|
1375
1376
|
const localeService = accessor.get(LocaleService);
|
|
1376
1377
|
const univerInstanceService = accessor.get(IUniverInstanceService);
|
|
1378
|
+
const drawingManagerService = accessor.get(IDrawingManagerService);
|
|
1377
1379
|
const commandService = accessor.get(ICommandService);
|
|
1378
1380
|
if (!getSheetCommandTarget(univerInstanceService)) return false;
|
|
1379
1381
|
switch (params.value) {
|
|
1380
1382
|
case "open":
|
|
1381
1383
|
sidebarService.open({
|
|
1384
|
+
id: COMPONENT_SHEET_DRAWING_PANEL,
|
|
1382
1385
|
header: { title: localeService.t("sheets-drawing-ui.panel.title") },
|
|
1383
1386
|
children: { label: COMPONENT_SHEET_DRAWING_PANEL },
|
|
1384
1387
|
onClose: () => {
|
|
1385
|
-
|
|
1388
|
+
const focusedDrawings = drawingManagerService.getFocusDrawings();
|
|
1389
|
+
if (focusedDrawings.length === 1 && focusedDrawings[0].drawingType === DrawingTypeEnum.DRAWING_IMAGE) commandService.syncExecuteCommand(SetDrawingSelectedOperation.id, []);
|
|
1386
1390
|
},
|
|
1387
1391
|
width: 360
|
|
1388
1392
|
});
|
|
1389
1393
|
break;
|
|
1390
1394
|
default:
|
|
1391
|
-
sidebarService.close();
|
|
1395
|
+
sidebarService.close(COMPONENT_SHEET_DRAWING_PANEL);
|
|
1392
1396
|
break;
|
|
1393
1397
|
}
|
|
1394
1398
|
return true;
|
|
@@ -1619,18 +1623,8 @@ function createExternalRuntimeDisposable(owner, id, disposeById) {
|
|
|
1619
1623
|
};
|
|
1620
1624
|
}
|
|
1621
1625
|
const SHEET_EMBED_FLOAT_DOM_TRANSFORMER_CONFIG = {
|
|
1622
|
-
|
|
1623
|
-
borderStroke: "#4086f4",
|
|
1624
|
-
borderStrokeWidth: 1,
|
|
1625
|
-
borderSpacing: 2,
|
|
1626
|
-
anchorFill: "#ffffff",
|
|
1627
|
-
anchorStroke: "#4086f4",
|
|
1628
|
-
anchorStrokeWidth: 1.5,
|
|
1629
|
-
anchorSize: 8,
|
|
1630
|
-
anchorCornerRadius: 2,
|
|
1631
|
-
anchorStyle: "canva",
|
|
1626
|
+
...DEFAULT_TRANSFORMER_CONFIG,
|
|
1632
1627
|
rotateEnabled: false,
|
|
1633
|
-
resizeEnabled: true,
|
|
1634
1628
|
moveBoundaryEnabled: false
|
|
1635
1629
|
};
|
|
1636
1630
|
/**
|
|
@@ -1638,18 +1632,8 @@ const SHEET_EMBED_FLOAT_DOM_TRANSFORMER_CONFIG = {
|
|
|
1638
1632
|
* Charts retain resize handles but do not expose a rotation control.
|
|
1639
1633
|
*/
|
|
1640
1634
|
const SHEET_CHART_TRANSFORMER_CONFIG = {
|
|
1641
|
-
|
|
1642
|
-
borderStroke: "#4086f4",
|
|
1643
|
-
borderStrokeWidth: 1,
|
|
1644
|
-
borderSpacing: 2,
|
|
1645
|
-
anchorFill: "#ffffff",
|
|
1646
|
-
anchorStroke: "#4086f4",
|
|
1647
|
-
anchorStrokeWidth: 1.5,
|
|
1648
|
-
anchorSize: 8,
|
|
1649
|
-
anchorCornerRadius: 2,
|
|
1650
|
-
anchorStyle: "canva",
|
|
1635
|
+
...DEFAULT_TRANSFORMER_CONFIG,
|
|
1651
1636
|
rotateEnabled: false,
|
|
1652
|
-
resizeEnabled: true,
|
|
1653
1637
|
keepRatio: false,
|
|
1654
1638
|
moveBoundaryEnabled: false
|
|
1655
1639
|
};
|
|
@@ -2219,6 +2203,11 @@ let SheetCanvasFloatDomManagerService = _SheetCanvasFloatDomManagerService = cla
|
|
|
2219
2203
|
canvas: renderUnit.engine.getCanvasElement()
|
|
2220
2204
|
};
|
|
2221
2205
|
}
|
|
2206
|
+
_getDrawingZIndex(unitId, subUnitId, drawingId) {
|
|
2207
|
+
const drawingOrder = this._drawingManagerService.getDrawingOrder(unitId, subUnitId);
|
|
2208
|
+
const drawingIndex = drawingOrder.indexOf(drawingId);
|
|
2209
|
+
return drawingIndex < 0 ? drawingOrder.length - 1 : drawingIndex;
|
|
2210
|
+
}
|
|
2222
2211
|
_drawingAddListener() {
|
|
2223
2212
|
this.disposeWithMe(this._drawingManagerService.add$.subscribe((params) => {
|
|
2224
2213
|
params.forEach((param) => {
|
|
@@ -2282,7 +2271,7 @@ let SheetCanvasFloatDomManagerService = _SheetCanvasFloatDomManagerService = cla
|
|
|
2282
2271
|
top,
|
|
2283
2272
|
width,
|
|
2284
2273
|
height,
|
|
2285
|
-
zIndex: this.
|
|
2274
|
+
zIndex: this._getDrawingZIndex(unitId, subUnitId, drawingId)
|
|
2286
2275
|
};
|
|
2287
2276
|
const isChart = drawingType === DrawingTypeEnum.DRAWING_CHART;
|
|
2288
2277
|
if (isChart) {
|
|
@@ -2497,7 +2486,7 @@ let SheetCanvasFloatDomManagerService = _SheetCanvasFloatDomManagerService = cla
|
|
|
2497
2486
|
this.disposeWithMe(this._commandService.onCommandExecuted((commandInfo) => {
|
|
2498
2487
|
if (commandInfo.id === SetZoomRatioOperation.id) {
|
|
2499
2488
|
const { unitId } = commandInfo.params;
|
|
2500
|
-
Array.from(this._domLayerInfoMap.values()).filter((info) => info.unitId === unitId).map((info) => info.subUnitId).forEach((subUnitId) => {
|
|
2489
|
+
new Set(Array.from(this._domLayerInfoMap.values()).filter((info) => info.unitId === unitId).map((info) => info.subUnitId)).forEach((subUnitId) => {
|
|
2501
2490
|
updateSheet(unitId, subUnitId);
|
|
2502
2491
|
});
|
|
2503
2492
|
} else if (commandInfo.id === SetFrozenMutation.id) {
|
|
@@ -3428,7 +3417,7 @@ const menuSchema = {
|
|
|
3428
3417
|
//#endregion
|
|
3429
3418
|
//#region package.json
|
|
3430
3419
|
var name = "@univerjs/sheets-drawing-ui";
|
|
3431
|
-
var version = "1.0.0-beta.
|
|
3420
|
+
var version = "1.0.0-beta.2";
|
|
3432
3421
|
|
|
3433
3422
|
//#endregion
|
|
3434
3423
|
//#region src/config/config.ts
|
|
@@ -3820,6 +3809,7 @@ DrawingContextMenuController = __decorate([
|
|
|
3820
3809
|
|
|
3821
3810
|
//#endregion
|
|
3822
3811
|
//#region src/controllers/render-controllers/sheet-celll-image-hover.render-controller.ts
|
|
3812
|
+
const CELL_IMAGE_PREVIEW_KEY = "preview-cell-image";
|
|
3823
3813
|
let SheetCellImageHoverRenderController = class SheetCellImageHoverRenderController extends Disposable {
|
|
3824
3814
|
constructor(_context, _hoverManagerService, _selectionsService, _drawingRenderService, _sheetSkeletonManagerService) {
|
|
3825
3815
|
super();
|
|
@@ -3858,15 +3848,31 @@ let SheetCellImageHoverRenderController = class SheetCellImageHoverRenderControl
|
|
|
3858
3848
|
_initImageClick() {
|
|
3859
3849
|
this.disposeWithMe(this._hoverManagerService.currentClickedCell$.subscribe((click) => {
|
|
3860
3850
|
if ((click === null || click === void 0 ? void 0 : click.drawing) && this._isSetCursor) {
|
|
3861
|
-
var _this$_sheetSkeletonM;
|
|
3862
3851
|
const imageDrawing = click.drawing.drawing.drawingOrigin;
|
|
3863
|
-
|
|
3864
|
-
if (!imageEle) return;
|
|
3865
|
-
this._drawingRenderService.previewImage("preview-cell-image", imageEle.src, imageEle.width, imageEle.height);
|
|
3866
|
-
this._context.scene.resetCursor();
|
|
3867
|
-
this._isSetCursor = false;
|
|
3852
|
+
this._previewImage(imageDrawing);
|
|
3868
3853
|
}
|
|
3869
3854
|
}));
|
|
3855
|
+
const currentDbClickedCell$ = this._hoverManagerService.currentDbClickedCell$;
|
|
3856
|
+
if (!currentDbClickedCell$) return;
|
|
3857
|
+
this.disposeWithMe(currentDbClickedCell$.subscribe(({ location }) => {
|
|
3858
|
+
var _worksheet$getCellRaw, _documentData$drawing, _documentData$drawing2;
|
|
3859
|
+
if (location.unitId !== this._context.unitId) return;
|
|
3860
|
+
const worksheet = this._context.unit.getSheetBySheetId(location.subUnitId);
|
|
3861
|
+
const documentData = worksheet === null || worksheet === void 0 || (_worksheet$getCellRaw = worksheet.getCellRaw(location.row, location.col)) === null || _worksheet$getCellRaw === void 0 ? void 0 : _worksheet$getCellRaw.p;
|
|
3862
|
+
const drawingId = documentData === null || documentData === void 0 || (_documentData$drawing = documentData.drawingsOrder) === null || _documentData$drawing === void 0 ? void 0 : _documentData$drawing[0];
|
|
3863
|
+
const imageDrawing = isCellImage(documentData) && drawingId ? (_documentData$drawing2 = documentData.drawings) === null || _documentData$drawing2 === void 0 ? void 0 : _documentData$drawing2[drawingId] : void 0;
|
|
3864
|
+
if (imageDrawing) this._previewImage(imageDrawing);
|
|
3865
|
+
}));
|
|
3866
|
+
}
|
|
3867
|
+
_previewImage(imageDrawing) {
|
|
3868
|
+
var _this$_sheetSkeletonM;
|
|
3869
|
+
if (this._disposed) return;
|
|
3870
|
+
const imageCacheMap = (_this$_sheetSkeletonM = this._sheetSkeletonManagerService.getCurrentSkeleton()) === null || _this$_sheetSkeletonM === void 0 ? void 0 : _this$_sheetSkeletonM.imageCacheMap;
|
|
3871
|
+
const imageEle = imageCacheMap === null || imageCacheMap === void 0 ? void 0 : imageCacheMap.getImage(imageDrawing.imageSourceType, imageDrawing.source, () => this._previewImage(imageDrawing));
|
|
3872
|
+
if (!imageEle) return;
|
|
3873
|
+
this._drawingRenderService.previewImage(CELL_IMAGE_PREVIEW_KEY, imageEle.src, imageEle.width, imageEle.height);
|
|
3874
|
+
this._context.scene.resetCursor();
|
|
3875
|
+
this._isSetCursor = false;
|
|
3870
3876
|
}
|
|
3871
3877
|
};
|
|
3872
3878
|
SheetCellImageHoverRenderController = __decorate([
|
|
@@ -5192,11 +5198,13 @@ const DeleteDrawingsShortcutItem = {
|
|
|
5192
5198
|
* limitations under the License.
|
|
5193
5199
|
*/
|
|
5194
5200
|
let SheetDrawingUIController = class SheetDrawingUIController extends Disposable {
|
|
5195
|
-
constructor(_menuManagerService, _commandService, _shortcutService) {
|
|
5201
|
+
constructor(_menuManagerService, _commandService, _shortcutService, _drawingManagerService, _sidebarService) {
|
|
5196
5202
|
super();
|
|
5197
5203
|
this._menuManagerService = _menuManagerService;
|
|
5198
5204
|
this._commandService = _commandService;
|
|
5199
5205
|
this._shortcutService = _shortcutService;
|
|
5206
|
+
this._drawingManagerService = _drawingManagerService;
|
|
5207
|
+
this._sidebarService = _sidebarService;
|
|
5200
5208
|
this._init();
|
|
5201
5209
|
}
|
|
5202
5210
|
_initCustomComponents() {}
|
|
@@ -5228,17 +5236,27 @@ let SheetDrawingUIController = class SheetDrawingUIController extends Disposable
|
|
|
5228
5236
|
this.disposeWithMe(this._shortcutService.registerShortcut(item));
|
|
5229
5237
|
});
|
|
5230
5238
|
}
|
|
5239
|
+
_initImagePanel() {
|
|
5240
|
+
this.disposeWithMe(this._drawingManagerService.focus$.subscribe((drawings) => {
|
|
5241
|
+
if (!this._sidebarService.visible || this._sidebarService.options.id !== "COMPONENT_SHEET_DRAWING_PANEL") return;
|
|
5242
|
+
if (drawings.length === 1 && drawings[0].drawingType === DrawingTypeEnum.DRAWING_IMAGE) return;
|
|
5243
|
+
this._sidebarService.close(COMPONENT_SHEET_DRAWING_PANEL);
|
|
5244
|
+
}));
|
|
5245
|
+
}
|
|
5231
5246
|
_init() {
|
|
5232
5247
|
this._initCommands();
|
|
5233
5248
|
this._initCustomComponents();
|
|
5234
5249
|
this._initMenus();
|
|
5235
5250
|
this._initShortcuts();
|
|
5251
|
+
this._initImagePanel();
|
|
5236
5252
|
}
|
|
5237
5253
|
};
|
|
5238
5254
|
SheetDrawingUIController = __decorate([
|
|
5239
5255
|
__decorateParam(0, IMenuManagerService),
|
|
5240
5256
|
__decorateParam(1, ICommandService),
|
|
5241
|
-
__decorateParam(2, IShortcutService)
|
|
5257
|
+
__decorateParam(2, IShortcutService),
|
|
5258
|
+
__decorateParam(3, IDrawingManagerService),
|
|
5259
|
+
__decorateParam(4, Inject(ISidebarService))
|
|
5242
5260
|
], SheetDrawingUIController);
|
|
5243
5261
|
|
|
5244
5262
|
//#endregion
|
|
@@ -5327,6 +5345,7 @@ let DrawingPopupMenuController = class DrawingPopupMenuController extends RxDisp
|
|
|
5327
5345
|
const menus = this._canvasPopManagerService.getFeatureMenu(unitId, subUnitId, drawingId, drawingType);
|
|
5328
5346
|
singletonPopupDisposer = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(object, {
|
|
5329
5347
|
componentKey: COMPONENT_IMAGE_POPUP_MENU,
|
|
5348
|
+
constrainToCanvas: true,
|
|
5330
5349
|
direction: this._localeService.getDirection() === "rtl" ? "left" : "horizontal",
|
|
5331
5350
|
offset: [2, 0],
|
|
5332
5351
|
extraProps: { menuItems: menus || this._getImageMenuItems(unitId, subUnitId, drawingId, drawingType) }
|
package/lib/locale/ar-SA.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "فشل في حفظ صور الخلايا"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "استبدال",
|
|
25
24
|
delete: "حذف",
|
|
26
25
|
edit: "تحرير",
|
|
27
26
|
crop: "قص",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "لصق كصورة خلية",
|
|
46
|
-
pasteContent: "سيؤدي لصق صورة خلية إلى استبدال المحتوى الموجود في الخلية، هل تريد المتابعة؟"
|
|
47
|
-
pasteError: "نسخ ولصق صورة خلية الورقة غير مدعوم في هذه الوحدة"
|
|
45
|
+
pasteContent: "سيؤدي لصق صورة خلية إلى استبدال المحتوى الموجود في الخلية، هل تريد المتابعة؟"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "النطاق محمي، وليس لديك إذن التحرير. للتحرير، يرجى التواصل مع المنشئ." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "No s'han pogut desar les imatges de cel·la"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Reemplaça",
|
|
25
24
|
delete: "Elimina",
|
|
26
25
|
edit: "Edita",
|
|
27
26
|
crop: "Retalla",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Enganxa com a imatge de cel·la",
|
|
46
|
-
pasteContent: "Enganxar una imatge de cel·la sobreescriurà el contingut existent de la cel·la, continuar enganxant"
|
|
47
|
-
pasteError: "La còpia i enganxat d’imatges de cel·la de full no està suportada en aquesta unitat"
|
|
45
|
+
pasteContent: "Enganxar una imatge de cel·la sobreescriurà el contingut existent de la cel·la, continuar enganxant"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "L'interval està protegit i no teniu permís d'edició. Per editar, contacteu amb el creador." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/de-DE.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Zellenbilder konnten nicht gespeichert werden"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Ersetzen",
|
|
25
24
|
delete: "Löschen",
|
|
26
25
|
edit: "Bearbeiten",
|
|
27
26
|
crop: "Zuschneiden",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Als Zellenbild einfügen",
|
|
46
|
-
pasteContent: "Das Einfügen eines Zellenbilds überschreibt den bestehenden Inhalt der Zelle, mit dem Einfügen fortfahren?"
|
|
47
|
-
pasteError: "Kopieren und Einfügen von Zellenbildern wird in dieser Einheit nicht unterstützt"
|
|
45
|
+
pasteContent: "Das Einfügen eines Zellenbilds überschreibt den bestehenden Inhalt der Zelle, mit dem Einfügen fortfahren?"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "Der Bereich ist geschützt, und Sie haben keine Bearbeitungsberechtigung. Um zu bearbeiten, wenden Sie sich bitte an den Ersteller." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/en-US.js
CHANGED
|
@@ -36,7 +36,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
36
36
|
error: "Failed to save cell images"
|
|
37
37
|
},
|
|
38
38
|
"image-popup": {
|
|
39
|
-
replace: "Replace",
|
|
40
39
|
delete: "Delete",
|
|
41
40
|
edit: "Edit",
|
|
42
41
|
crop: "Crop",
|
|
@@ -58,8 +57,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
58
57
|
},
|
|
59
58
|
"cell-image": {
|
|
60
59
|
pasteTitle: "Paste as cell image",
|
|
61
|
-
pasteContent: "Pasting a cell image will overwrite the existing content of the cell, continue pasting"
|
|
62
|
-
pasteError: "Sheet cell image copy paste is not supported in this unit"
|
|
60
|
+
pasteContent: "Pasting a cell image will overwrite the existing content of the cell, continue pasting"
|
|
63
61
|
},
|
|
64
62
|
permission: { dialog: { editErr: "The range is protected, and you do not have edit permission. To edit, please contact the creator." } },
|
|
65
63
|
shortcut: {
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Error al guardar las imágenes de celda"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Reemplazar",
|
|
25
24
|
delete: "Eliminar",
|
|
26
25
|
edit: "Editar",
|
|
27
26
|
crop: "Recortar",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Pegar como imagen de celda",
|
|
46
|
-
pasteContent: "Pegar una imagen de celda sobrescribirá el contenido existente de la celda, continuar pegando"
|
|
47
|
-
pasteError: "La copia y pegado de imágenes de celda de hoja no está soportada en esta unidad"
|
|
45
|
+
pasteContent: "Pegar una imagen de celda sobrescribirá el contenido existente de la celda, continuar pegando"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "El rango está protegido y no tienes permiso de edición. Para editar, contacta al creador." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "ذخیره تصاویر سلول ناموفق بود"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "تعویض",
|
|
25
24
|
delete: "حذف",
|
|
26
25
|
edit: "ویرایش",
|
|
27
26
|
crop: "کراپ",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "چسباندن به عنوان تصویر سلول",
|
|
46
|
-
pasteContent: "چسباندن تصویر سلول محتوای موجود سلول را پاک خواهد کرد، ادامه چسباندن"
|
|
47
|
-
pasteError: "کپی و چسباندن تصویر سلول در این واحد پشتیبانی نمیشود"
|
|
45
|
+
pasteContent: "چسباندن تصویر سلول محتوای موجود سلول را پاک خواهد کرد، ادامه چسباندن"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "محدوده محافظت شده است و شما مجوز ویرایش را ندارید. برای ویرایش، لطفا با سازنده تماس بگیرید." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Échec de l'enregistrement des images de cellule"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Remplacer",
|
|
25
24
|
delete: "Supprimer",
|
|
26
25
|
edit: "Éditer",
|
|
27
26
|
crop: "Rogner",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Coller comme image de cellule",
|
|
46
|
-
pasteContent: "Coller une image de cellule écrasera le contenu existant de la cellule, continuer le collage"
|
|
47
|
-
pasteError: "Le copier-coller d'image de cellule n'est pas pris en charge dans cette unité"
|
|
45
|
+
pasteContent: "Coller une image de cellule écrasera le contenu existant de la cellule, continuer le collage"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "La plage est protégée, et vous n'avez pas la permission de modifier. Pour modifier, veuillez contacter le créateur." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/id-ID.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Gagal menyimpan gambar sel"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Ganti",
|
|
25
24
|
delete: "Hapus",
|
|
26
25
|
edit: "Edit",
|
|
27
26
|
crop: "Pangkas",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Tempel sebagai gambar sel",
|
|
46
|
-
pasteContent: "Menempel gambar sel akan menimpa konten yang ada di sel, lanjutkan menempel"
|
|
47
|
-
pasteError: "Salin tempel gambar sel lembar kerja tidak didukung dalam unit ini"
|
|
45
|
+
pasteContent: "Menempel gambar sel akan menimpa konten yang ada di sel, lanjutkan menempel"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "Rentang ini dilindungi, dan Anda tidak memiliki izin edit. Untuk mengedit, silakan hubungi pembuatnya." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/it-IT.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Salvataggio immagini celle non riuscito"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Sostituisci",
|
|
25
24
|
delete: "Elimina",
|
|
26
25
|
edit: "Modifica",
|
|
27
26
|
crop: "Ritaglia",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Incolla come immagine cella",
|
|
46
|
-
pasteContent: "L'incollaggio di un'immagine cella sovrascriverà il contenuto esistente della cella, continuare con l'incollaggio"
|
|
47
|
-
pasteError: "Copia e incolla di immagine cella non supportato in questa unità"
|
|
45
|
+
pasteContent: "L'incollaggio di un'immagine cella sovrascriverà il contenuto esistente della cella, continuare con l'incollaggio"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "L'intervallo è protetto e non hai l'autorizzazione di modifica. Per modificare, contatta il creatore." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "セル画像の保存に失敗しました"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "画像の変更",
|
|
25
24
|
delete: "削除",
|
|
26
25
|
edit: "編集",
|
|
27
26
|
crop: "トリミング",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "セル内画像として貼り付け",
|
|
46
|
-
pasteContent: "セル内画像を貼り付けると、既存のセル内容が上書きされます。続行しますか?"
|
|
47
|
-
pasteError: "この箇所では、シートのセル内画像のコピー&ペーストはサポートされていません"
|
|
45
|
+
pasteContent: "セル内画像を貼り付けると、既存のセル内容が上書きされます。続行しますか?"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "この範囲は保護されており、編集権限がありません。編集するには作成者に連絡してください。" } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "셀 이미지 저장 실패"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "바꾸기",
|
|
25
24
|
delete: "삭제",
|
|
26
25
|
edit: "편집",
|
|
27
26
|
crop: "자르기",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "셀 이미지로 붙여넣기",
|
|
46
|
-
pasteContent: "셀 이미지 붙여넣기는 기존 셀 내용을 덮어씁니다. 계속 진행하시겠습니까?"
|
|
47
|
-
pasteError: "이 단위에서는 시트 셀 이미지 복사 붙여넣기를 지원하지 않습니다"
|
|
45
|
+
pasteContent: "셀 이미지 붙여넣기는 기존 셀 내용을 덮어씁니다. 계속 진행하시겠습니까?"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "해당 범위는 보호되어 있어 편집 권한이 없습니다. 편집하려면 작성자에게 문의하세요." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Nie udało się zapisać obrazów w komórkach"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Zamień",
|
|
25
24
|
delete: "Usuń",
|
|
26
25
|
edit: "Edytuj",
|
|
27
26
|
crop: "Przytnij",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Wklej jako obraz w komórce",
|
|
46
|
-
pasteContent: "Wklejenie obrazu w komórce spowoduje zastąpienie istniejącej zawartości komórki, kontynuować wklejanie"
|
|
47
|
-
pasteError: "Kopiowanie i wklejanie obrazu w komórce arkusza nie jest obsługiwane w tej jednostce"
|
|
45
|
+
pasteContent: "Wklejenie obrazu w komórce spowoduje zastąpienie istniejącej zawartości komórki, kontynuować wklejanie"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "Zakres jest chroniony i nie masz uprawnień do edycji. Aby edytować, skontaktuj się z twórcą." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Falha ao salvar imagens de célula"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Substituir",
|
|
25
24
|
delete: "Excluir",
|
|
26
25
|
edit: "Editar",
|
|
27
26
|
crop: "Cortar",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Colar como imagem de célula",
|
|
46
|
-
pasteContent: "Colar uma imagem de célula substituirá o conteúdo existente da célula, continuar colando"
|
|
47
|
-
pasteError: "Copiar e colar imagem de célula da planilha não é suportado nesta unidade"
|
|
45
|
+
pasteContent: "Colar uma imagem de célula substituirá o conteúdo existente da célula, continuar colando"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "O intervalo está protegido e você não tem permissão de edição. Para editar, entre em contato com o criador." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Не удалось сохранить изображения ячеек"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Заменить",
|
|
25
24
|
delete: "Удалить",
|
|
26
25
|
edit: "Редактировать",
|
|
27
26
|
crop: "Обрезать",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Вставить как изображение ячейки",
|
|
46
|
-
pasteContent: "Вставка изображения ячейки перезапишет существующее содержимое ячейки, продолжить вставку"
|
|
47
|
-
pasteError: "Копирование и вставка изображения ячейки не поддерживается в этом блоке"
|
|
45
|
+
pasteContent: "Вставка изображения ячейки перезапишет существующее содержимое ячейки, продолжить вставку"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "Диапазон защищен, и у вас нет разрешения на редактирование. Для редактирования свяжитесь с создателем." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Nepodarilo sa uložiť obrázky buniek"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Nahradiť",
|
|
25
24
|
delete: "Odstrániť",
|
|
26
25
|
edit: "Upraviť",
|
|
27
26
|
crop: "Orezať",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Prilepiť ako obrázok bunky",
|
|
46
|
-
pasteContent: "Prilepením obrázka bunky sa prepíše existujúci obsah bunky, pokračovať"
|
|
47
|
-
pasteError: "Kopírovanie a prilepovanie obrázkov buniek v tomto module nie je podporované"
|
|
45
|
+
pasteContent: "Prilepením obrázka bunky sa prepíše existujúci obsah bunky, pokračovať"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "Rozsah je chránený a nemáte oprávnenie na úpravy. Ak chcete upravovať, kontaktujte autora." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "Lưu hình ảnh ô thất bại"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "Thay thế",
|
|
25
24
|
delete: "Xóa",
|
|
26
25
|
edit: "Chỉnh sửa",
|
|
27
26
|
crop: "Cắt",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "Dán như hình ảnh ô",
|
|
46
|
-
pasteContent: "Dán hình ảnh ô sẽ ghi đè lên nội dung hiện có của ô, tiếp tục dán"
|
|
47
|
-
pasteError: "Sao chép và dán hình ảnh ô không được hỗ trợ trong đơn vị này"
|
|
45
|
+
pasteContent: "Dán hình ảnh ô sẽ ghi đè lên nội dung hiện có của ô, tiếp tục dán"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "Phạm vi này đã được bảo vệ, hiện không có quyền chỉnh sửa. Nếu cần chỉnh sửa, vui lòng liên hệ với người tạo." } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "保存单元格图片失败"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "替换",
|
|
25
24
|
delete: "删除",
|
|
26
25
|
edit: "编辑",
|
|
27
26
|
crop: "裁剪",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "粘贴为单元格图片",
|
|
46
|
-
pasteContent: "粘贴单元格图片将覆盖单元格中的现有内容,继续粘贴"
|
|
47
|
-
pasteError: "此单元中不支持单元格图片复制粘贴"
|
|
45
|
+
pasteContent: "粘贴单元格图片将覆盖单元格中的现有内容,继续粘贴"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "该范围已被保护,目前无编辑权限。如需编辑,请联系创建者。" } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "儲存儲存格圖片失敗"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "替換",
|
|
25
24
|
delete: "刪除",
|
|
26
25
|
edit: "編輯",
|
|
27
26
|
crop: "裁切",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "貼上為儲存格圖片",
|
|
46
|
-
pasteContent: "貼上儲存格圖片將覆蓋儲存格中的現有內容,繼續貼上"
|
|
47
|
-
pasteError: "此儲存格不支援儲存格圖片複製貼上"
|
|
45
|
+
pasteContent: "貼上儲存格圖片將覆蓋儲存格中的現有內容,繼續貼上"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 " } },
|
|
50
48
|
shortcut: {
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -21,7 +21,6 @@ const locale = { "sheets-drawing-ui": {
|
|
|
21
21
|
error: "儲存儲存格圖片失敗"
|
|
22
22
|
},
|
|
23
23
|
"image-popup": {
|
|
24
|
-
replace: "替換",
|
|
25
24
|
delete: "刪除",
|
|
26
25
|
edit: "編輯",
|
|
27
26
|
crop: "裁切",
|
|
@@ -43,8 +42,7 @@ const locale = { "sheets-drawing-ui": {
|
|
|
43
42
|
},
|
|
44
43
|
"cell-image": {
|
|
45
44
|
pasteTitle: "貼上為儲存格圖片",
|
|
46
|
-
pasteContent: "貼上儲存格圖片將覆蓋儲存格中的現有內容,繼續貼上"
|
|
47
|
-
pasteError: "此儲存格不支援儲存格圖片複製貼上"
|
|
45
|
+
pasteContent: "貼上儲存格圖片將覆蓋儲存格中的現有內容,繼續貼上"
|
|
48
46
|
},
|
|
49
47
|
permission: { dialog: { editErr: "該範圍已被保護,目前無編輯權限。如需編輯,請聯絡創建者。 " } },
|
|
50
48
|
shortcut: {
|
package/lib/types/controllers/render-controllers/sheet-celll-image-hover.render-controller.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { Workbook } from '@univerjs/core';
|
|
16
17
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
17
18
|
import { Disposable } from '@univerjs/core';
|
|
18
19
|
import { DrawingRenderService } from '@univerjs/drawing-ui';
|
|
@@ -25,7 +26,8 @@ export declare class SheetCellImageHoverRenderController extends Disposable impl
|
|
|
25
26
|
private _drawingRenderService;
|
|
26
27
|
private _sheetSkeletonManagerService;
|
|
27
28
|
private _isSetCursor;
|
|
28
|
-
constructor(_context: IRenderContext
|
|
29
|
+
constructor(_context: IRenderContext<Workbook>, _hoverManagerService: HoverManagerService, _selectionsService: SheetsSelectionsService, _drawingRenderService: DrawingRenderService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
29
30
|
private _initHover;
|
|
30
31
|
private _initImageClick;
|
|
32
|
+
private _previewImage;
|
|
31
33
|
}
|
|
@@ -14,15 +14,19 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
17
|
-
import {
|
|
17
|
+
import { IDrawingManagerService } from '@univerjs/drawing';
|
|
18
|
+
import { IMenuManagerService, IShortcutService, ISidebarService } from '@univerjs/ui';
|
|
18
19
|
export declare class SheetDrawingUIController extends Disposable {
|
|
19
20
|
private readonly _menuManagerService;
|
|
20
21
|
private readonly _commandService;
|
|
21
22
|
private readonly _shortcutService;
|
|
22
|
-
|
|
23
|
+
private readonly _drawingManagerService;
|
|
24
|
+
private readonly _sidebarService;
|
|
25
|
+
constructor(_menuManagerService: IMenuManagerService, _commandService: ICommandService, _shortcutService: IShortcutService, _drawingManagerService: IDrawingManagerService, _sidebarService: ISidebarService);
|
|
23
26
|
private _initCustomComponents;
|
|
24
27
|
private _initMenus;
|
|
25
28
|
private _initCommands;
|
|
26
29
|
private _initShortcuts;
|
|
30
|
+
private _initImagePanel;
|
|
27
31
|
private _init;
|
|
28
32
|
}
|