@univerjs/docs-drawing-ui 1.0.0-alpha.6 → 1.0.0-alpha.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 +48 -47
- package/lib/cjs/locale/ru-RU.js +34 -34
- package/lib/cjs/locale/vi-VN.js +39 -39
- package/lib/cjs/locale/zh-HK.js +3 -3
- package/lib/cjs/locale/zh-TW.js +3 -3
- package/lib/es/index.js +51 -50
- package/lib/es/locale/ru-RU.js +34 -34
- package/lib/es/locale/vi-VN.js +39 -39
- package/lib/es/locale/zh-HK.js +3 -3
- package/lib/es/locale/zh-TW.js +3 -3
- package/lib/index.js +51 -50
- package/lib/locale/ru-RU.js +34 -34
- package/lib/locale/vi-VN.js +39 -39
- package/lib/locale/zh-HK.js +3 -3
- package/lib/locale/zh-TW.js +3 -3
- package/lib/types/controllers/doc-drawing-transformer-update.controller.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
package/lib/es/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AlignTypeH, AlignTypeV, BooleanNumber, COLORS, CommandType, DOC_DRAWING_PRINTING_COMPONENT_KEY, DependentOn, Direction, Disposable, DisposableCollection, DocumentFlavor, DrawingTypeEnum, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_UNIVER_EDITOR, ICommandService, IConfigService, IContextService, IImageIoService, IUniverInstanceService, ImageSourceType, ImageUploadStatusType, Inject, Injector, JSONX, LifecycleService, LifecycleStages, LocaleService, ObjectRelativeFromH, ObjectRelativeFromV, Plugin, PositionedObjectLayoutType, RedoCommand, RxDisposable, TextX, TextXActionType, Tools, UndoCommand, UniverInstanceType, WrapTextType, fromEventSubject, generateRandomId, getRichTextEditPath, isInternalEditorID, merge, throttle, toDisposable } from "@univerjs/core";
|
|
2
2
|
import { IDocDrawingAdapterService, IDocDrawingService, InsertDocDrawingCommand, RemoveDocDrawingCommand, SetDocDrawingArrangeCommand, TextWrappingStyle, UniverDocsDrawingPlugin, UpdateDocDrawingWrappingStyleCommand, UpdateDrawingDocTransformCommand, getDocDrawingRenderOrder } from "@univerjs/docs-drawing";
|
|
3
|
-
import { CURSOR_TYPE, DocumentEditArea, DocumentSkeletonPageType, IRenderManagerService, Liquid, PageLayoutType, Rect, TRANSFORM_CHANGE_OBSERVABLE_TYPE, Vector2, getColor, getCurrentTypeOfRenderer, getDocsTableRenderViewport, getTableIdAndSliceIndex } from "@univerjs/engine-render";
|
|
3
|
+
import { CURSOR_TYPE, DocumentEditArea, DocumentSkeletonPageType, IRenderManagerService, Liquid, PageLayoutType, Rect, TRANSFORM_CHANGE_OBSERVABLE_TYPE, UniverRenderEnginePlugin, Vector2, getColor, getCurrentTypeOfRenderer, getDocsTableRenderViewport, getTableIdAndSliceIndex } from "@univerjs/engine-render";
|
|
4
4
|
import { Checkbox, InputNumber, MessageType, Radio, RadioGroup, Select, clsx, render, unmount } from "@univerjs/design";
|
|
5
|
-
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation, buildDocTransform, docDrawingPositionToTransform } from "@univerjs/docs";
|
|
6
|
-
import { DOC_CONTENT_INSERT_MENU_ID, DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID, DOC_PARAGRAPH_T_INSERT_MENU_ID, DocCanvasPopManagerService, DocPrintInterceptorService, DocSelectionRenderService, EMPTY_PARAGRAPH_MENU_ID, IEditorService, INSERT_BELLOW_MENU_ID, NodePositionConvertToCursor, SetDocZoomRatioOperation, TEXT_RANGE_LAYER_INDEX, VIEWPORT_KEY, getAnchorBounding,
|
|
5
|
+
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation, UniverDocsPlugin, buildDocTransform, docDrawingPositionToTransform } from "@univerjs/docs";
|
|
6
|
+
import { DOC_CONTENT_INSERT_MENU_ID, DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID, DOC_PARAGRAPH_T_INSERT_MENU_ID, DocCanvasPopManagerService, DocPrintInterceptorService, DocSelectionRenderService, EMPTY_PARAGRAPH_MENU_ID, IEditorService, INSERT_BELLOW_MENU_ID, NodePositionConvertToCursor, SetDocZoomRatioOperation, TEXT_RANGE_LAYER_INDEX, UniverDocsUIPlugin, VIEWPORT_KEY, getAnchorBounding, getOneTextSelectionRange, neoGetDocObject } from "@univerjs/docs-ui";
|
|
7
7
|
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST, DRAWING_IMAGE_COUNT_LIMIT, DRAWING_IMAGE_HEIGHT_LIMIT, DRAWING_IMAGE_WIDTH_LIMIT, IDrawingManagerService, UniverDrawingPlugin, getDrawingImageAllowSize, getDrawingShapeKeyByDrawingSearch, getImageSize } from "@univerjs/drawing";
|
|
8
8
|
import { CanvasFloatDomService, ComponentManager, ContextMenuGroup, ContextMenuPosition, ILocalFileService, IMenuManagerService, IMessageService, IShortcutService, ISidebarService, KeyCode, MenuItemType, PrintFloatDomSingle, RibbonInsertGroup, UniverUIPlugin, connectInjector, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
|
|
9
9
|
import { BehaviorSubject, Observable, debounceTime, filter, map, of, switchMap, takeUntil } from "rxjs";
|
|
@@ -73,7 +73,7 @@ const UngroupDocDrawingCommand = {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region \0@oxc-project+runtime@0.
|
|
76
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
|
|
77
77
|
function _typeof(o) {
|
|
78
78
|
"@babel/helpers - typeof";
|
|
79
79
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -84,7 +84,7 @@ function _typeof(o) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region \0@oxc-project+runtime@0.
|
|
87
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
|
|
88
88
|
function toPrimitive(t, r) {
|
|
89
89
|
if ("object" != _typeof(t) || !t) return t;
|
|
90
90
|
var e = t[Symbol.toPrimitive];
|
|
@@ -97,14 +97,14 @@ function toPrimitive(t, r) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
//#endregion
|
|
100
|
-
//#region \0@oxc-project+runtime@0.
|
|
100
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
|
|
101
101
|
function toPropertyKey(t) {
|
|
102
102
|
var i = toPrimitive(t, "string");
|
|
103
103
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region \0@oxc-project+runtime@0.
|
|
107
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
|
|
108
108
|
function _defineProperty(e, r, t) {
|
|
109
109
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
110
110
|
value: t,
|
|
@@ -127,7 +127,7 @@ var DocRefreshDrawingsService = class {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
//#endregion
|
|
130
|
-
//#region \0@oxc-project+runtime@0.
|
|
130
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateParam.js
|
|
131
131
|
function __decorateParam(paramIndex, decorator) {
|
|
132
132
|
return function(target, key) {
|
|
133
133
|
decorator(target, key, paramIndex);
|
|
@@ -135,7 +135,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
//#endregion
|
|
138
|
-
//#region \0@oxc-project+runtime@0.
|
|
138
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
|
|
139
139
|
function __decorate(decorators, target, key, desc) {
|
|
140
140
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
141
141
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -264,7 +264,7 @@ let DocDrawingUpdateRenderController = class DocDrawingUpdateRenderController ex
|
|
|
264
264
|
_isInsertInHeaderFooter() {
|
|
265
265
|
var _this$_renderManagerS;
|
|
266
266
|
const { unitId } = this._context;
|
|
267
|
-
const viewModel = (_this$_renderManagerS = this._renderManagerSrv.
|
|
267
|
+
const viewModel = (_this$_renderManagerS = this._renderManagerSrv.getRenderUnitById(unitId)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.with(DocSkeletonManagerService).getViewModel();
|
|
268
268
|
const editArea = viewModel === null || viewModel === void 0 ? void 0 : viewModel.getEditArea();
|
|
269
269
|
return editArea === DocumentEditArea.HEADER || editArea === DocumentEditArea.FOOTER;
|
|
270
270
|
}
|
|
@@ -367,7 +367,7 @@ let DocDrawingUpdateRenderController = class DocDrawingUpdateRenderController ex
|
|
|
367
367
|
var _this$_renderManagerS2;
|
|
368
368
|
if (!this._context) return;
|
|
369
369
|
const { unit: docDataModel, scene, unitId } = this._context;
|
|
370
|
-
const viewModel = (_this$_renderManagerS2 = this._renderManagerSrv.
|
|
370
|
+
const viewModel = (_this$_renderManagerS2 = this._renderManagerSrv.getRenderUnitById(unitId)) === null || _this$_renderManagerS2 === void 0 ? void 0 : _this$_renderManagerS2.with(DocSkeletonManagerService).getViewModel();
|
|
371
371
|
if (viewModel == null || docDataModel == null) return;
|
|
372
372
|
const { drawings = {} } = docDataModel.getSnapshot();
|
|
373
373
|
const isEditBody = viewModel.getEditArea() === DocumentEditArea.BODY;
|
|
@@ -398,7 +398,7 @@ let DocDrawingUpdateRenderController = class DocDrawingUpdateRenderController ex
|
|
|
398
398
|
_editAreaChangeListener() {
|
|
399
399
|
var _this$_renderManagerS3;
|
|
400
400
|
const { unitId } = this._context;
|
|
401
|
-
const viewModel = (_this$_renderManagerS3 = this._renderManagerSrv.
|
|
401
|
+
const viewModel = (_this$_renderManagerS3 = this._renderManagerSrv.getRenderUnitById(unitId)) === null || _this$_renderManagerS3 === void 0 ? void 0 : _this$_renderManagerS3.with(DocSkeletonManagerService).getViewModel();
|
|
402
402
|
if (viewModel == null) return;
|
|
403
403
|
this._updateDrawingsEditStatus();
|
|
404
404
|
this.disposeWithMe(viewModel.editAreaChange$.subscribe(() => {
|
|
@@ -529,7 +529,7 @@ const MoveDocDrawingsCommand = {
|
|
|
529
529
|
const drawings = docDrawingService.getFocusDrawings();
|
|
530
530
|
if (drawings.length === 0) return false;
|
|
531
531
|
const unitId = drawings[0].unitId;
|
|
532
|
-
const renderObject = renderManagerService.
|
|
532
|
+
const renderObject = renderManagerService.getRenderUnitById(unitId);
|
|
533
533
|
const scene = renderObject === null || renderObject === void 0 ? void 0 : renderObject.scene;
|
|
534
534
|
if (scene == null) return false;
|
|
535
535
|
const transformer = scene.getTransformerByCreate();
|
|
@@ -581,7 +581,7 @@ const ClearDocDrawingTransformerOperation = {
|
|
|
581
581
|
const renderManagerService = accessor.get(IRenderManagerService);
|
|
582
582
|
params.forEach((unitId) => {
|
|
583
583
|
var _renderManagerService;
|
|
584
|
-
(_renderManagerService = renderManagerService.
|
|
584
|
+
(_renderManagerService = renderManagerService.getRenderUnitById(unitId)) === null || _renderManagerService === void 0 || (_renderManagerService = _renderManagerService.scene.getTransformer()) === null || _renderManagerService === void 0 || _renderManagerService.debounceRefreshControls();
|
|
585
585
|
});
|
|
586
586
|
return true;
|
|
587
587
|
}
|
|
@@ -727,7 +727,7 @@ let DocFloatDomController = class DocFloatDomController extends Disposable {
|
|
|
727
727
|
}
|
|
728
728
|
_getSceneAndTransformerByDrawingSearch(unitId) {
|
|
729
729
|
if (unitId == null) return;
|
|
730
|
-
const renderObject = this._renderManagerService.
|
|
730
|
+
const renderObject = this._renderManagerService.getRenderUnitById(unitId);
|
|
731
731
|
if (renderObject == null) return null;
|
|
732
732
|
const scene = renderObject.scene;
|
|
733
733
|
return {
|
|
@@ -863,7 +863,7 @@ let DocFloatDomController = class DocFloatDomController extends Disposable {
|
|
|
863
863
|
this.disposeWithMe(this._univerInstanceService.getCurrentTypeOfUnit$(UniverInstanceType.UNIVER_DOC).pipe(map((documentDataModel) => {
|
|
864
864
|
if (!documentDataModel) return null;
|
|
865
865
|
const unitId = documentDataModel.getUnitId();
|
|
866
|
-
const render = this._renderManagerService.
|
|
866
|
+
const render = this._renderManagerService.getRenderUnitById(unitId);
|
|
867
867
|
return render ? {
|
|
868
868
|
render,
|
|
869
869
|
unitId
|
|
@@ -1196,7 +1196,7 @@ const menuSchema = {
|
|
|
1196
1196
|
//#endregion
|
|
1197
1197
|
//#region package.json
|
|
1198
1198
|
var name = "@univerjs/docs-drawing-ui";
|
|
1199
|
-
var version = "1.0.0-alpha.
|
|
1199
|
+
var version = "1.0.0-alpha.8";
|
|
1200
1200
|
|
|
1201
1201
|
//#endregion
|
|
1202
1202
|
//#region src/config/config.ts
|
|
@@ -1227,7 +1227,7 @@ const DocDrawingPosition = (props) => {
|
|
|
1227
1227
|
var _renderManagerService;
|
|
1228
1228
|
const renderManagerService = useDependency(IRenderManagerService);
|
|
1229
1229
|
const drawingParam = props.drawings[0];
|
|
1230
|
-
const scene = drawingParam ? (_renderManagerService = renderManagerService.
|
|
1230
|
+
const scene = drawingParam ? (_renderManagerService = renderManagerService.getRenderUnitById(drawingParam.unitId)) === null || _renderManagerService === void 0 ? void 0 : _renderManagerService.scene : void 0;
|
|
1231
1231
|
return drawingParam && scene ? /* @__PURE__ */ jsx(DocDrawingPositionContent, { ...props }) : null;
|
|
1232
1232
|
};
|
|
1233
1233
|
function DocDrawingPositionContent(props) {
|
|
@@ -1240,7 +1240,7 @@ function DocDrawingPositionContent(props) {
|
|
|
1240
1240
|
const { unitId } = drawings[0];
|
|
1241
1241
|
const documentDataModel = univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_DOC);
|
|
1242
1242
|
const documentFlavor = documentDataModel === null || documentDataModel === void 0 ? void 0 : documentDataModel.getSnapshot().documentStyle.documentFlavor;
|
|
1243
|
-
const transformer = renderManagerService.
|
|
1243
|
+
const transformer = renderManagerService.getRenderUnitById(unitId).scene.getTransformerByCreate();
|
|
1244
1244
|
const HORIZONTAL_RELATIVE_FROM = [
|
|
1245
1245
|
{
|
|
1246
1246
|
label: localeService.t("docs-drawing-ui.image-position.column"),
|
|
@@ -1309,7 +1309,7 @@ function DocDrawingPositionContent(props) {
|
|
|
1309
1309
|
value
|
|
1310
1310
|
}))
|
|
1311
1311
|
});
|
|
1312
|
-
const docSelectionRenderService = (_renderManagerService2 = renderManagerService.
|
|
1312
|
+
const docSelectionRenderService = (_renderManagerService2 = renderManagerService.getRenderUnitById(unitId)) === null || _renderManagerService2 === void 0 ? void 0 : _renderManagerService2.with(DocSelectionRenderService);
|
|
1313
1313
|
if (docSelectionRenderService) docSelectionRenderService.blur();
|
|
1314
1314
|
transformer.refreshControls();
|
|
1315
1315
|
}
|
|
@@ -1325,7 +1325,7 @@ function DocDrawingPositionContent(props) {
|
|
|
1325
1325
|
const unitId = focusDrawings[0].unitId;
|
|
1326
1326
|
let drawing = null;
|
|
1327
1327
|
let pageMarginLeft = 0;
|
|
1328
|
-
const skeleton = (_renderManagerService3 = renderManagerService.
|
|
1328
|
+
const skeleton = (_renderManagerService3 = renderManagerService.getRenderUnitById(unitId)) === null || _renderManagerService3 === void 0 ? void 0 : _renderManagerService3.with(DocSkeletonManagerService).getSkeleton();
|
|
1329
1329
|
const skeletonData = skeleton === null || skeleton === void 0 ? void 0 : skeleton.getSkeletonData();
|
|
1330
1330
|
if (skeletonData == null) return;
|
|
1331
1331
|
const { pages, skeHeaders, skeFooters } = skeletonData;
|
|
@@ -1764,7 +1764,7 @@ const ITransformNonInlineDrawingCommand = {
|
|
|
1764
1764
|
const docSelectionRenderService = (_renderManagerService2 = renderManagerService.getRenderUnitById(unitId)) === null || _renderManagerService2 === void 0 ? void 0 : _renderManagerService2.with(DocSelectionRenderService);
|
|
1765
1765
|
const renderObject = renderManagerService.getRenderUnitById(unitId);
|
|
1766
1766
|
const scene = renderObject === null || renderObject === void 0 ? void 0 : renderObject.scene;
|
|
1767
|
-
if (scene == null || docSelectionRenderService == null) return false;
|
|
1767
|
+
if (renderObject == null || scene == null || docSelectionRenderService == null) return false;
|
|
1768
1768
|
const transformer = scene.getTransformerByCreate();
|
|
1769
1769
|
const commandService = accessor.get(ICommandService);
|
|
1770
1770
|
const documentDataModel = accessor.get(IUniverInstanceService).getUnit(unitId, UniverInstanceType.UNIVER_DOC);
|
|
@@ -1826,6 +1826,8 @@ const ITransformNonInlineDrawingCommand = {
|
|
|
1826
1826
|
return JSONX.compose(acc, cur);
|
|
1827
1827
|
}, null);
|
|
1828
1828
|
const result = commandService.syncExecuteCommand(doMutation.id, doMutation.params);
|
|
1829
|
+
const skeleton = renderObject.with(DocSkeletonManagerService).getSkeleton();
|
|
1830
|
+
accessor.get(DocRefreshDrawingsService).refreshDrawings(skeleton);
|
|
1829
1831
|
transformer.refreshControls();
|
|
1830
1832
|
return Boolean(result);
|
|
1831
1833
|
}
|
|
@@ -1899,10 +1901,11 @@ function DocDrawingTextWrapContent(props) {
|
|
|
1899
1901
|
}
|
|
1900
1902
|
function handleDistToTextChange(value, direction) {
|
|
1901
1903
|
if (value == null) return;
|
|
1902
|
-
|
|
1904
|
+
const newDistToText = {
|
|
1903
1905
|
...distToText,
|
|
1904
1906
|
[direction]: value
|
|
1905
|
-
}
|
|
1907
|
+
};
|
|
1908
|
+
setDistToText(newDistToText);
|
|
1906
1909
|
const focusDrawings = drawingManagerService.getFocusDrawings();
|
|
1907
1910
|
if (focusDrawings.length === 0) return;
|
|
1908
1911
|
const drawings = focusDrawings.map((drawing) => {
|
|
@@ -2264,7 +2267,7 @@ let DocDrawingAddRemoveController = class DocDrawingAddRemoveController extends
|
|
|
2264
2267
|
this.disposeWithMe(this._commandService.onCommandExecuted((command) => {
|
|
2265
2268
|
if (command.id !== UpdateDrawingDocTransformCommand.id && command.id !== UpdateDocDrawingWrappingStyleCommand.id) return;
|
|
2266
2269
|
const { unitId } = command.params;
|
|
2267
|
-
const renderObject = this._renderManagerService.
|
|
2270
|
+
const renderObject = this._renderManagerService.getRenderUnitById(unitId);
|
|
2268
2271
|
const scene = renderObject === null || renderObject === void 0 ? void 0 : renderObject.scene;
|
|
2269
2272
|
if (renderObject == null || scene == null) return;
|
|
2270
2273
|
this._docRefreshDrawingsService.refreshDrawings(renderObject.with(DocSkeletonManagerService).getSkeleton());
|
|
@@ -2287,7 +2290,7 @@ let DocDrawingAddRemoveController = class DocDrawingAddRemoveController extends
|
|
|
2287
2290
|
if (params.wrappingStyle === TextWrappingStyle.INLINE) return;
|
|
2288
2291
|
const { unitId } = params;
|
|
2289
2292
|
const documentDataModel = this._univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_DOC);
|
|
2290
|
-
const renderObject = this._renderManagerService.
|
|
2293
|
+
const renderObject = this._renderManagerService.getRenderUnitById(unitId);
|
|
2291
2294
|
const skeletonManager = renderObject === null || renderObject === void 0 ? void 0 : renderObject.with(DocSkeletonManagerService);
|
|
2292
2295
|
const skeletonData = skeletonManager === null || skeletonManager === void 0 ? void 0 : skeletonManager.getSkeleton().getSkeletonData();
|
|
2293
2296
|
const viewModel = skeletonManager === null || skeletonManager === void 0 ? void 0 : skeletonManager.getViewModel();
|
|
@@ -2767,11 +2770,11 @@ let DocDrawingTransformUpdateController = class DocDrawingTransformUpdateControl
|
|
|
2767
2770
|
clipOffsetTop: clipOffset === null || clipOffset === void 0 ? void 0 : clipOffset.top,
|
|
2768
2771
|
page: clipPage
|
|
2769
2772
|
});
|
|
2770
|
-
const pageRelativeAnchorPage = drawingOrigin.layoutType === PositionedObjectLayoutType.
|
|
2773
|
+
const pageRelativeAnchorPage = drawingOrigin.layoutType === PositionedObjectLayoutType.WRAP_NONE ? getDocsPageRelativeDrawingAnchorPage({
|
|
2771
2774
|
page,
|
|
2772
2775
|
clipPage,
|
|
2773
2776
|
hostPage
|
|
2774
|
-
});
|
|
2777
|
+
}) : void 0;
|
|
2775
2778
|
const pageRelativeLeft = pageRelativeAnchorPage != null ? getDocsPageRelativeDrawingLeft({
|
|
2776
2779
|
hostPage: pageRelativeAnchorPage,
|
|
2777
2780
|
positionH: drawingOrigin.docTransform.positionH,
|
|
@@ -3031,7 +3034,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3031
3034
|
}
|
|
3032
3035
|
_getInlineDrawingAnchor(drawing, offsetX, offsetY) {
|
|
3033
3036
|
var _this$_renderManagerS, _getOneTextSelectionR;
|
|
3034
|
-
const currentRender = this._renderManagerService.
|
|
3037
|
+
const currentRender = this._renderManagerService.getRenderUnitById(drawing.unitId);
|
|
3035
3038
|
const skeleton = currentRender === null || currentRender === void 0 ? void 0 : currentRender.with(DocSkeletonManagerService).getSkeleton();
|
|
3036
3039
|
if (currentRender == null) return;
|
|
3037
3040
|
const { mainComponent, scene } = currentRender;
|
|
@@ -3045,7 +3048,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3045
3048
|
const HALF = .5;
|
|
3046
3049
|
const coord = this._getTransformCoordForDocumentOffset(documentComponent, activeViewport, offsetX, offsetY);
|
|
3047
3050
|
if (coord == null) return;
|
|
3048
|
-
const docSelectionRenderService = (_this$_renderManagerS = this._renderManagerService.
|
|
3051
|
+
const docSelectionRenderService = (_this$_renderManagerS = this._renderManagerService.getRenderUnitById(drawing.unitId)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.with(DocSelectionRenderService);
|
|
3049
3052
|
if (docSelectionRenderService == null) return;
|
|
3050
3053
|
const nodeInfo = skeleton === null || skeleton === void 0 ? void 0 : skeleton.findNodeByCoord(coord, pageLayoutType, pageMarginLeft, pageMarginTop, {
|
|
3051
3054
|
strict: false,
|
|
@@ -3061,8 +3064,8 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3061
3064
|
}
|
|
3062
3065
|
if (glyphAnchor == null) return;
|
|
3063
3066
|
const nodePosition = skeleton === null || skeleton === void 0 ? void 0 : skeleton.findPositionByGlyph(glyphAnchor, segmentPageIndex);
|
|
3064
|
-
const docObject =
|
|
3065
|
-
if (nodePosition == null || skeleton == null
|
|
3067
|
+
const docObject = neoGetDocObject(currentRender);
|
|
3068
|
+
if (nodePosition == null || skeleton == null) return;
|
|
3066
3069
|
const positionWithIsBack = {
|
|
3067
3070
|
...nodePosition,
|
|
3068
3071
|
isBack
|
|
@@ -3078,8 +3081,8 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3078
3081
|
};
|
|
3079
3082
|
}
|
|
3080
3083
|
_getDrawingAnchor(drawing, object) {
|
|
3081
|
-
var _this$_renderManagerS2, _glyphAnchor$parent, _column$lines$find, _column$
|
|
3082
|
-
const currentRender = this._renderManagerService.
|
|
3084
|
+
var _this$_renderManagerS2, _glyphAnchor$parent, _column$parent$top, _column$parent, _column$lines$find, _column$parent2, _tableCellContext$hos, _getOneTextSelectionR2;
|
|
3085
|
+
const currentRender = this._renderManagerService.getRenderUnitById(drawing.unitId);
|
|
3083
3086
|
const skeleton = currentRender === null || currentRender === void 0 ? void 0 : currentRender.with(DocSkeletonManagerService).getSkeleton();
|
|
3084
3087
|
const skeletonData = skeleton === null || skeleton === void 0 ? void 0 : skeleton.getSkeletonData();
|
|
3085
3088
|
if (skeletonData == null || currentRender == null) return;
|
|
@@ -3097,7 +3100,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3097
3100
|
let glyphAnchor = null;
|
|
3098
3101
|
let segmentId = "";
|
|
3099
3102
|
let segmentPage = -1;
|
|
3100
|
-
const isBack =
|
|
3103
|
+
const isBack = true;
|
|
3101
3104
|
const docTransform = {
|
|
3102
3105
|
...drawing.docTransform,
|
|
3103
3106
|
size: {
|
|
@@ -3109,7 +3112,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3109
3112
|
const { x, y } = scene.getViewportScrollXY(activeViewport);
|
|
3110
3113
|
const coord = this._getTransformCoordForDocumentOffset(documentComponent, activeViewport, left - x, top - y);
|
|
3111
3114
|
if (coord == null) return;
|
|
3112
|
-
const docSelectionRenderService = (_this$_renderManagerS2 = this._renderManagerService.
|
|
3115
|
+
const docSelectionRenderService = (_this$_renderManagerS2 = this._renderManagerService.getRenderUnitById(drawing.unitId)) === null || _this$_renderManagerS2 === void 0 ? void 0 : _this$_renderManagerS2.with(DocSelectionRenderService);
|
|
3113
3116
|
if (docSelectionRenderService == null) return;
|
|
3114
3117
|
const nodeInfo = skeleton === null || skeleton === void 0 ? void 0 : skeleton.findNodeByCoord(coord, pageLayoutType, pageMarginLeft, pageMarginTop, {
|
|
3115
3118
|
strict: false,
|
|
@@ -3125,8 +3128,9 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3125
3128
|
if (glyphAnchor == null) return;
|
|
3126
3129
|
const line = (_glyphAnchor$parent = glyphAnchor.parent) === null || _glyphAnchor$parent === void 0 ? void 0 : _glyphAnchor$parent.parent;
|
|
3127
3130
|
const column = line === null || line === void 0 ? void 0 : line.parent;
|
|
3131
|
+
const sectionTop = (_column$parent$top = column === null || column === void 0 || (_column$parent = column.parent) === null || _column$parent === void 0 ? void 0 : _column$parent.top) !== null && _column$parent$top !== void 0 ? _column$parent$top : 0;
|
|
3128
3132
|
const paragraphStartLine = (_column$lines$find = column === null || column === void 0 ? void 0 : column.lines.find((l) => l.paragraphIndex === (line === null || line === void 0 ? void 0 : line.paragraphIndex) && l.paragraphStart)) !== null && _column$lines$find !== void 0 ? _column$lines$find : column === null || column === void 0 ? void 0 : column.lines[0];
|
|
3129
|
-
const page = column === null || column === void 0 || (_column$
|
|
3133
|
+
const page = column === null || column === void 0 || (_column$parent2 = column.parent) === null || _column$parent2 === void 0 ? void 0 : _column$parent2.parent;
|
|
3130
3134
|
if (line == null || column == null || paragraphStartLine == null || page == null) return;
|
|
3131
3135
|
this._liquid.reset();
|
|
3132
3136
|
const tableCellContext = page.type === DocumentSkeletonPageType.CELL ? getDocsTableCellAnchorContext(drawing.unitId, page) : null;
|
|
@@ -3195,16 +3199,16 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3195
3199
|
docTransform.positionV.posOffset = top - this._liquid.y - docsTop - page.marginTop;
|
|
3196
3200
|
break;
|
|
3197
3201
|
case ObjectRelativeFromV.LINE:
|
|
3198
|
-
docTransform.positionV.posOffset = top - this._liquid.y - docsTop - line.top;
|
|
3202
|
+
docTransform.positionV.posOffset = top - this._liquid.y - docsTop - sectionTop - line.top;
|
|
3199
3203
|
break;
|
|
3200
3204
|
case ObjectRelativeFromV.PARAGRAPH:
|
|
3201
|
-
docTransform.positionV.posOffset = top - this._liquid.y - docsTop - paragraphStartLine.top;
|
|
3205
|
+
docTransform.positionV.posOffset = top - this._liquid.y - docsTop - sectionTop - paragraphStartLine.top;
|
|
3202
3206
|
break;
|
|
3203
3207
|
}
|
|
3204
3208
|
if (glyphAnchor == null) return;
|
|
3205
3209
|
const nodePosition = skeleton === null || skeleton === void 0 ? void 0 : skeleton.findPositionByGlyph(glyphAnchor, segmentPage);
|
|
3206
|
-
const docObject =
|
|
3207
|
-
if (nodePosition == null || skeleton == null
|
|
3210
|
+
const docObject = neoGetDocObject(currentRender);
|
|
3211
|
+
if (nodePosition == null || skeleton == null) return;
|
|
3208
3212
|
const positionWithIsBack = {
|
|
3209
3213
|
...nodePosition,
|
|
3210
3214
|
isBack
|
|
@@ -3260,7 +3264,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3260
3264
|
});
|
|
3261
3265
|
}
|
|
3262
3266
|
_limitDrawingInPage(drawing, object) {
|
|
3263
|
-
const currentRender = this._renderManagerService.
|
|
3267
|
+
const currentRender = this._renderManagerService.getRenderUnitById(drawing.unitId);
|
|
3264
3268
|
const { left, top, width, height, angle } = object;
|
|
3265
3269
|
const skeleton = currentRender === null || currentRender === void 0 ? void 0 : currentRender.with(DocSkeletonManagerService).getSkeleton();
|
|
3266
3270
|
const skeletonData = skeleton === null || skeleton === void 0 ? void 0 : skeleton.getSkeletonData();
|
|
@@ -3310,7 +3314,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3310
3314
|
}
|
|
3311
3315
|
_getSceneAndTransformerByDrawingSearch(unitId) {
|
|
3312
3316
|
if (unitId == null) return;
|
|
3313
|
-
const renderObject = this._renderManagerService.
|
|
3317
|
+
const renderObject = this._renderManagerService.getRenderUnitById(unitId);
|
|
3314
3318
|
const scene = renderObject === null || renderObject === void 0 ? void 0 : renderObject.scene;
|
|
3315
3319
|
if (scene == null) return;
|
|
3316
3320
|
return {
|
|
@@ -3325,7 +3329,7 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3325
3329
|
return documentTransform.clone().invert().applyPoint(originCoord);
|
|
3326
3330
|
}
|
|
3327
3331
|
_createOrUpdateInlineAnchor(unitId, pointsGroup) {
|
|
3328
|
-
const currentRender = this._renderManagerService.
|
|
3332
|
+
const currentRender = this._renderManagerService.getRenderUnitById(unitId);
|
|
3329
3333
|
if (currentRender == null) return;
|
|
3330
3334
|
const { mainComponent, scene } = currentRender;
|
|
3331
3335
|
const { docsLeft, docsTop } = mainComponent.getOffsetConfig();
|
|
@@ -3352,11 +3356,8 @@ let DocDrawingTransformerController = class DocDrawingTransformerController exte
|
|
|
3352
3356
|
this._anchorShape = anchor;
|
|
3353
3357
|
scene.addObject(anchor, TEXT_RANGE_LAYER_INDEX);
|
|
3354
3358
|
}
|
|
3355
|
-
_getDocObject() {
|
|
3356
|
-
return getDocObject(this._univerInstanceService, this._renderManagerService);
|
|
3357
|
-
}
|
|
3358
3359
|
_getPageContentSize(drawing) {
|
|
3359
|
-
const currentRender = this._renderManagerService.
|
|
3360
|
+
const currentRender = this._renderManagerService.getRenderUnitById(drawing.unitId);
|
|
3360
3361
|
const skeleton = currentRender === null || currentRender === void 0 ? void 0 : currentRender.with(DocSkeletonManagerService).getSkeleton();
|
|
3361
3362
|
const MAX_WIDTH = 500;
|
|
3362
3363
|
const MAX_HEIGHT = 500;
|
|
@@ -3603,7 +3604,7 @@ let DocDrawingPopupMenuController = class DocDrawingPopupMenuController extends
|
|
|
3603
3604
|
}
|
|
3604
3605
|
_popupMenuListener(unitId) {
|
|
3605
3606
|
var _this$_renderManagerS;
|
|
3606
|
-
const scene = (_this$_renderManagerS = this._renderManagerService.
|
|
3607
|
+
const scene = (_this$_renderManagerS = this._renderManagerService.getRenderUnitById(unitId)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.scene;
|
|
3607
3608
|
if (!scene) return;
|
|
3608
3609
|
const transformer = scene.getTransformerByCreate();
|
|
3609
3610
|
if (!transformer) return;
|
|
@@ -3785,7 +3786,7 @@ _defineProperty(UniverDocsDrawingUIPlugin, "pluginName", "DOC_DRAWING_UI_PLUGIN"
|
|
|
3785
3786
|
_defineProperty(UniverDocsDrawingUIPlugin, "packageName", name);
|
|
3786
3787
|
_defineProperty(UniverDocsDrawingUIPlugin, "version", version);
|
|
3787
3788
|
UniverDocsDrawingUIPlugin = __decorate([
|
|
3788
|
-
DependentOn(
|
|
3789
|
+
DependentOn(UniverDocsPlugin, UniverDrawingPlugin, UniverRenderEnginePlugin, UniverDocsDrawingPlugin, UniverUIPlugin, UniverDocsUIPlugin, UniverDrawingUIPlugin),
|
|
3789
3790
|
__decorateParam(1, Inject(Injector)),
|
|
3790
3791
|
__decorateParam(2, IRenderManagerService),
|
|
3791
3792
|
__decorateParam(3, IConfigService)
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -3,9 +3,9 @@ const locale = { "docs-drawing-ui": {
|
|
|
3
3
|
title: "Изображение",
|
|
4
4
|
upload: { float: "Вставить изображение" },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "Вставить фигуру",
|
|
7
|
+
rectangle: "Вставить прямоугольник",
|
|
8
|
+
ellipse: "Вставить эллипс"
|
|
9
9
|
} },
|
|
10
10
|
panel: { title: "Редактировать изображение" },
|
|
11
11
|
"image-popup": {
|
|
@@ -16,39 +16,39 @@ const locale = { "docs-drawing-ui": {
|
|
|
16
16
|
reset: "Сбросить размер"
|
|
17
17
|
},
|
|
18
18
|
"image-text-wrap": {
|
|
19
|
-
title: "
|
|
20
|
-
wrappingStyle: "
|
|
21
|
-
square: "
|
|
22
|
-
topAndBottom: "
|
|
23
|
-
inline: "
|
|
24
|
-
behindText: "
|
|
25
|
-
inFrontText: "
|
|
26
|
-
wrapText: "
|
|
27
|
-
bothSide: "
|
|
28
|
-
leftOnly: "
|
|
29
|
-
rightOnly: "
|
|
30
|
-
distanceFromText: "
|
|
31
|
-
top: "
|
|
32
|
-
left: "
|
|
33
|
-
bottom: "
|
|
34
|
-
right: "
|
|
19
|
+
title: "Обтекание текстом",
|
|
20
|
+
wrappingStyle: "Стиль обтекания",
|
|
21
|
+
square: "Квадрат",
|
|
22
|
+
topAndBottom: "Сверху и снизу",
|
|
23
|
+
inline: "В тексте",
|
|
24
|
+
behindText: "За текстом",
|
|
25
|
+
inFrontText: "Перед текстом",
|
|
26
|
+
wrapText: "Обтекание текстом",
|
|
27
|
+
bothSide: "С обеих сторон",
|
|
28
|
+
leftOnly: "Только слева",
|
|
29
|
+
rightOnly: "Только справа",
|
|
30
|
+
distanceFromText: "Расстояние от текста",
|
|
31
|
+
top: "Сверху (px)",
|
|
32
|
+
left: "Слева (px)",
|
|
33
|
+
bottom: "Снизу (px)",
|
|
34
|
+
right: "Справа (px)"
|
|
35
35
|
},
|
|
36
36
|
"image-position": {
|
|
37
|
-
title: "
|
|
38
|
-
horizontal: "
|
|
39
|
-
vertical: "
|
|
40
|
-
absolutePosition: "
|
|
41
|
-
relativePosition: "
|
|
42
|
-
toTheRightOf: "
|
|
43
|
-
relativeTo: "
|
|
44
|
-
bellow: "
|
|
45
|
-
options: "
|
|
46
|
-
moveObjectWithText: "
|
|
47
|
-
column: "
|
|
48
|
-
margin: "
|
|
49
|
-
page: "
|
|
50
|
-
line: "
|
|
51
|
-
paragraph: "
|
|
37
|
+
title: "Положение",
|
|
38
|
+
horizontal: "По горизонтали",
|
|
39
|
+
vertical: "По вертикали",
|
|
40
|
+
absolutePosition: "Абсолютное положение (px)",
|
|
41
|
+
relativePosition: "Относительное положение",
|
|
42
|
+
toTheRightOf: "справа от",
|
|
43
|
+
relativeTo: "относительно",
|
|
44
|
+
bellow: "снизу",
|
|
45
|
+
options: "Параметры",
|
|
46
|
+
moveObjectWithText: "Перемещать объект с текстом",
|
|
47
|
+
column: "Колонка",
|
|
48
|
+
margin: "Поле",
|
|
49
|
+
page: "Страница",
|
|
50
|
+
line: "Строка",
|
|
51
|
+
paragraph: "Абзац"
|
|
52
52
|
},
|
|
53
53
|
"update-status": {
|
|
54
54
|
exceedMaxSize: "Размер изображения превышает лимит, лимит составляет {0}М",
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -3,9 +3,9 @@ const locale = { "docs-drawing-ui": {
|
|
|
3
3
|
title: "Hình ảnh",
|
|
4
4
|
upload: { float: "Chèn hình ảnh" },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "Chèn hình",
|
|
7
|
+
rectangle: "Chèn hình chữ nhật",
|
|
8
|
+
ellipse: "Chèn hình elip"
|
|
9
9
|
} },
|
|
10
10
|
panel: { title: "Chỉnh sửa hình ảnh" },
|
|
11
11
|
"image-popup": {
|
|
@@ -16,39 +16,39 @@ const locale = { "docs-drawing-ui": {
|
|
|
16
16
|
reset: "Đặt lại kích thước"
|
|
17
17
|
},
|
|
18
18
|
"image-text-wrap": {
|
|
19
|
-
title: "
|
|
20
|
-
wrappingStyle: "
|
|
21
|
-
square: "
|
|
22
|
-
topAndBottom: "
|
|
23
|
-
inline: "
|
|
24
|
-
behindText: "
|
|
25
|
-
inFrontText: "
|
|
26
|
-
wrapText: "
|
|
27
|
-
bothSide: "
|
|
28
|
-
leftOnly: "
|
|
29
|
-
rightOnly: "
|
|
30
|
-
distanceFromText: "
|
|
31
|
-
top: "
|
|
32
|
-
left: "
|
|
33
|
-
bottom: "
|
|
34
|
-
right: "
|
|
19
|
+
title: "Bọc văn bản",
|
|
20
|
+
wrappingStyle: "Kiểu bọc văn bản",
|
|
21
|
+
square: "Hình vuông",
|
|
22
|
+
topAndBottom: "Trên và dưới",
|
|
23
|
+
inline: "Cùng dòng với văn bản",
|
|
24
|
+
behindText: "Phía sau văn bản",
|
|
25
|
+
inFrontText: "Phía trước văn bản",
|
|
26
|
+
wrapText: "Bọc văn bản",
|
|
27
|
+
bothSide: "Cả hai bên",
|
|
28
|
+
leftOnly: "Chỉ bên trái",
|
|
29
|
+
rightOnly: "Chỉ bên phải",
|
|
30
|
+
distanceFromText: "Khoảng cách với văn bản",
|
|
31
|
+
top: "Trên (px)",
|
|
32
|
+
left: "Trái (px)",
|
|
33
|
+
bottom: "Dưới (px)",
|
|
34
|
+
right: "Phải (px)"
|
|
35
35
|
},
|
|
36
36
|
"image-position": {
|
|
37
|
-
title: "
|
|
38
|
-
horizontal: "
|
|
39
|
-
vertical: "
|
|
40
|
-
absolutePosition: "
|
|
41
|
-
relativePosition: "
|
|
42
|
-
toTheRightOf: "
|
|
43
|
-
relativeTo: "
|
|
44
|
-
bellow: "
|
|
45
|
-
options: "
|
|
46
|
-
moveObjectWithText: "
|
|
47
|
-
column: "
|
|
48
|
-
margin: "
|
|
49
|
-
page: "
|
|
50
|
-
line: "
|
|
51
|
-
paragraph: "
|
|
37
|
+
title: "Vị trí",
|
|
38
|
+
horizontal: "Ngang",
|
|
39
|
+
vertical: "Dọc",
|
|
40
|
+
absolutePosition: "Vị trí tuyệt đối (px)",
|
|
41
|
+
relativePosition: "Vị trí tương đối",
|
|
42
|
+
toTheRightOf: "ở bên phải",
|
|
43
|
+
relativeTo: "tương đối với",
|
|
44
|
+
bellow: "bên dưới",
|
|
45
|
+
options: "Tùy chọn",
|
|
46
|
+
moveObjectWithText: "Di chuyển đối tượng cùng văn bản",
|
|
47
|
+
column: "Cột",
|
|
48
|
+
margin: "Lề",
|
|
49
|
+
page: "Trang",
|
|
50
|
+
line: "Dòng",
|
|
51
|
+
paragraph: "Đoạn văn"
|
|
52
52
|
},
|
|
53
53
|
"update-status": {
|
|
54
54
|
exceedMaxSize: "Kích thước hình ảnh vượt quá giới hạn, giới hạn là {0}M",
|
|
@@ -58,11 +58,11 @@ const locale = { "docs-drawing-ui": {
|
|
|
58
58
|
},
|
|
59
59
|
shortcut: {
|
|
60
60
|
"drawing-view": "Chế độ xem bản vẽ",
|
|
61
|
-
"drawing-move-down": "
|
|
62
|
-
"drawing-move-up": "
|
|
63
|
-
"drawing-move-left": "
|
|
64
|
-
"drawing-move-right": "
|
|
65
|
-
"drawing-delete": "
|
|
61
|
+
"drawing-move-down": "Di chuyển bản vẽ xuống",
|
|
62
|
+
"drawing-move-up": "Di chuyển bản vẽ lên",
|
|
63
|
+
"drawing-move-left": "Di chuyển bản vẽ sang trái",
|
|
64
|
+
"drawing-move-right": "Di chuyển bản vẽ sang phải",
|
|
65
|
+
"drawing-delete": "Xóa bản vẽ"
|
|
66
66
|
}
|
|
67
67
|
} };
|
|
68
68
|
|
package/lib/es/locale/zh-HK.js
CHANGED
|
@@ -3,9 +3,9 @@ const locale = { "docs-drawing-ui": {
|
|
|
3
3
|
title: "圖片",
|
|
4
4
|
upload: { float: "插入圖片" },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "插入圖形",
|
|
7
|
+
rectangle: "插入矩形",
|
|
8
|
+
ellipse: "插入橢圓形"
|
|
9
9
|
} },
|
|
10
10
|
panel: { title: "編圖" },
|
|
11
11
|
"image-popup": {
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -3,9 +3,9 @@ const locale = { "docs-drawing-ui": {
|
|
|
3
3
|
title: "圖片",
|
|
4
4
|
upload: { float: "插入圖片" },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "插入圖形",
|
|
7
|
+
rectangle: "插入矩形",
|
|
8
|
+
ellipse: "插入橢圓形"
|
|
9
9
|
} },
|
|
10
10
|
panel: { title: "編圖" },
|
|
11
11
|
"image-popup": {
|