@univerjs/slides-ui 1.0.0-alpha.7 → 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 +26 -68
- package/lib/cjs/locale/ru-RU.js +24 -24
- package/lib/cjs/locale/vi-VN.js +22 -22
- package/lib/cjs/locale/zh-HK.js +22 -22
- package/lib/cjs/locale/zh-TW.js +22 -22
- package/lib/es/index.js +33 -75
- package/lib/es/locale/ru-RU.js +24 -24
- package/lib/es/locale/vi-VN.js +22 -22
- package/lib/es/locale/zh-HK.js +22 -22
- package/lib/es/locale/zh-TW.js +22 -22
- package/lib/index.js +33 -75
- package/lib/locale/ru-RU.js +24 -24
- package/lib/locale/vi-VN.js +22 -22
- package/lib/locale/zh-HK.js +22 -22
- package/lib/locale/zh-TW.js +22 -22
- package/lib/types/services/slide-editor-bridge.service.d.ts +1 -12
- 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 +11 -11
package/lib/es/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { CommandType, DEFAULT_EMPTY_DOCUMENT_VALUE, Direction, Disposable, DisposableCollection, DocumentDataModel, DocumentFlavor, EDITOR_ACTIVATED, FOCUSING_COMMON_DRAWINGS,
|
|
2
|
-
import { DeviceInputEventType, FIX_ONE_PIXEL_BLUR_OFFSET, IRenderManagerService, ObjectType, Rect, Scene, ScrollBar, Slide, Viewport, convertTextRotation, fixLineWidthByScale, getCurrentTypeOfRenderer, pxToNum } from "@univerjs/engine-render";
|
|
3
|
-
import { BasicShapes, ObjectProvider, PageElementType, SLIDE_KEY } from "@univerjs/slides";
|
|
4
|
-
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST, getImageSize } from "@univerjs/drawing";
|
|
5
|
-
import { BuiltInUIPart, ComponentManager, DISABLE_AUTO_FOCUS_KEY, ICanvasPopupService, ILayoutService, ILocalFileService, IMenuManagerService, IShortcutService, ISidebarService, IUIPartsService, IconManager, KeyCode, MenuItemType, MetaKeys, RibbonStartGroup, connectInjector, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
|
|
1
|
+
import { CommandType, DEFAULT_EMPTY_DOCUMENT_VALUE, DependentOn, Direction, Disposable, DisposableCollection, DocumentDataModel, DocumentFlavor, EDITOR_ACTIVATED, FOCUSING_COMMON_DRAWINGS, FOCUSING_EDITOR_STANDALONE, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, HorizontalAlign, ICommandService, IConfigService, IContextService, IImageIoService, IUndoRedoService, IUniverInstanceService, Inject, Injector, LocaleService, Plugin, RxDisposable, UniverInstanceType, VerticalAlign, WrapStrategy, createIdentifier, createInternalEditorID, createParagraphId, debounce, generateRandomId, getColorStyle, merge, mergeOverrideWithDependencies, toDisposable } from "@univerjs/core";
|
|
2
|
+
import { DeviceInputEventType, FIX_ONE_PIXEL_BLUR_OFFSET, IRenderManagerService, ObjectType, Rect, Scene, ScrollBar, Slide, UniverRenderEnginePlugin, Viewport, convertTextRotation, fixLineWidthByScale, getCurrentTypeOfRenderer, pxToNum } from "@univerjs/engine-render";
|
|
3
|
+
import { BasicShapes, ObjectProvider, PageElementType, SLIDE_KEY, UniverSlidesPlugin } from "@univerjs/slides";
|
|
4
|
+
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST, UniverDrawingPlugin, getImageSize } from "@univerjs/drawing";
|
|
5
|
+
import { BuiltInUIPart, ComponentManager, DISABLE_AUTO_FOCUS_KEY, ICanvasPopupService, ILayoutService, ILocalFileService, IMenuManagerService, IShortcutService, ISidebarService, IUIPartsService, IconManager, KeyCode, MenuItemType, MetaKeys, RibbonStartGroup, UniverUIPlugin, connectInjector, getMenuHiddenObservable, useDependency, useObservable } from "@univerjs/ui";
|
|
6
6
|
import { Button, ColorPicker, Dropdown, InputNumber, borderClassName, borderTopClassName, clsx, scrollbarClassName } from "@univerjs/design";
|
|
7
7
|
import { AddImageIcon, AutofillDoubleIcon, BottomIcon, GraphIcon, MoreDownIcon, MoveDownIcon, MoveUpIcon, PaintBucketDoubleIcon, TextIcon, TopmostIcon } from "@univerjs/icons";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { createRef, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
10
|
-
import { DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DeleteLeftCommand, DocSelectionRenderService, IEditorService, MoveCursorOperation, MoveSelectionOperation, VIEWPORT_KEY } from "@univerjs/docs-ui";
|
|
10
|
+
import { DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, DeleteLeftCommand, DocSelectionRenderService, IEditorService, MoveCursorOperation, MoveSelectionOperation, ReplaceSnapshotCommand, UniverDocsUIPlugin, VIEWPORT_KEY } from "@univerjs/docs-ui";
|
|
11
11
|
import { BehaviorSubject, Subject, filter, scan, takeUntil } from "rxjs";
|
|
12
|
-
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation } from "@univerjs/docs";
|
|
12
|
+
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation, UniverDocsPlugin } from "@univerjs/docs";
|
|
13
13
|
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
|
|
15
15
|
function _typeof(o) {
|
|
16
16
|
"@babel/helpers - typeof";
|
|
17
17
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -22,7 +22,7 @@ function _typeof(o) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.
|
|
25
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
|
|
26
26
|
function toPrimitive(t, r) {
|
|
27
27
|
if ("object" != _typeof(t) || !t) return t;
|
|
28
28
|
var e = t[Symbol.toPrimitive];
|
|
@@ -35,14 +35,14 @@ function toPrimitive(t, r) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region \0@oxc-project+runtime@0.
|
|
38
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
|
|
39
39
|
function toPropertyKey(t) {
|
|
40
40
|
var i = toPrimitive(t, "string");
|
|
41
41
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region \0@oxc-project+runtime@0.
|
|
45
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
|
|
46
46
|
function _defineProperty(e, r, t) {
|
|
47
47
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
48
48
|
value: t,
|
|
@@ -53,7 +53,7 @@ function _defineProperty(e, r, t) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region \0@oxc-project+runtime@0.
|
|
56
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateParam.js
|
|
57
57
|
function __decorateParam(paramIndex, decorator) {
|
|
58
58
|
return function(target, key) {
|
|
59
59
|
decorator(target, key, paramIndex);
|
|
@@ -61,7 +61,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region \0@oxc-project+runtime@0.
|
|
64
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
|
|
65
65
|
function __decorate(decorators, target, key, desc) {
|
|
66
66
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
67
67
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -199,7 +199,7 @@ let SlideRenderController = class SlideRenderController extends RxDisposable {
|
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
_thumbSceneRender(pageId, slide) {
|
|
202
|
-
const render = this._renderManagerService.
|
|
202
|
+
const render = this._renderManagerService.getRenderUnitById(pageId);
|
|
203
203
|
if (render == null) return;
|
|
204
204
|
const { engine: thumbEngine } = render;
|
|
205
205
|
if (thumbEngine == null) return;
|
|
@@ -374,7 +374,7 @@ let CanvasView = class CanvasView extends RxDisposable {
|
|
|
374
374
|
this._renderManagerService = _renderManagerService;
|
|
375
375
|
}
|
|
376
376
|
_getSlideRenderControllerFromRenderUnit(unitId) {
|
|
377
|
-
return this._renderManagerService.
|
|
377
|
+
return this._renderManagerService.getRenderUnitById(unitId).with(SlideRenderController);
|
|
378
378
|
}
|
|
379
379
|
createThumbs(unitId) {
|
|
380
380
|
this._getSlideRenderControllerFromRenderUnit(unitId).createThumbs();
|
|
@@ -1320,7 +1320,7 @@ function SlideSideBar() {
|
|
|
1320
1320
|
if (ref.current) {
|
|
1321
1321
|
var _renderManagerService;
|
|
1322
1322
|
const slide = slideList[index];
|
|
1323
|
-
(_renderManagerService = renderManagerService.
|
|
1323
|
+
(_renderManagerService = renderManagerService.getRenderUnitById(slide.id)) === null || _renderManagerService === void 0 || _renderManagerService.engine.mount(ref.current);
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
1326
|
if (divRefs.length > 0) commandService.syncExecuteCommand(SetSlidePageThumbOperation.id, { unitId: currentSlide === null || currentSlide === void 0 ? void 0 : currentSlide.getUnitId() });
|
|
@@ -1500,7 +1500,7 @@ SlidesUIController = __decorate([
|
|
|
1500
1500
|
//#endregion
|
|
1501
1501
|
//#region package.json
|
|
1502
1502
|
var name = "@univerjs/slides-ui";
|
|
1503
|
-
var version = "1.0.0-alpha.
|
|
1503
|
+
var version = "1.0.0-alpha.8";
|
|
1504
1504
|
|
|
1505
1505
|
//#endregion
|
|
1506
1506
|
//#region src/config/config.ts
|
|
@@ -1645,7 +1645,6 @@ let SlideEditorBridgeService = class SlideEditorBridgeService extends Disposable
|
|
|
1645
1645
|
_defineProperty(this, "visible$", this._visible$.asObservable());
|
|
1646
1646
|
_defineProperty(this, "_afterVisible$", new BehaviorSubject(this._visibleParam));
|
|
1647
1647
|
_defineProperty(this, "afterVisible$", this._afterVisible$.asObservable());
|
|
1648
|
-
_defineProperty(this, "endEditing$", new Subject());
|
|
1649
1648
|
_defineProperty(this, "_currentEditRectInfo", void 0);
|
|
1650
1649
|
}
|
|
1651
1650
|
dispose() {
|
|
@@ -1724,7 +1723,7 @@ let SlideEditorBridgeService = class SlideEditorBridgeService extends Disposable
|
|
|
1724
1723
|
left: 0,
|
|
1725
1724
|
top: 0
|
|
1726
1725
|
};
|
|
1727
|
-
const renderUnit = this._renderManagerService.
|
|
1726
|
+
const renderUnit = this._renderManagerService.getRenderUnitById(unitId);
|
|
1728
1727
|
const mainScene = renderUnit === null || renderUnit === void 0 ? void 0 : renderUnit.scene;
|
|
1729
1728
|
const mainViewport = mainScene === null || mainScene === void 0 ? void 0 : mainScene.getViewport(SLIDE_KEY.VIEW);
|
|
1730
1729
|
const slideMainRect = mainScene === null || mainScene === void 0 ? void 0 : mainScene.getObject(SLIDE_KEY.COMPONENT);
|
|
@@ -1763,52 +1762,6 @@ let SlideEditorBridgeService = class SlideEditorBridgeService extends Disposable
|
|
|
1763
1762
|
getCurrentEditorId() {
|
|
1764
1763
|
return this._editorUnitId;
|
|
1765
1764
|
}
|
|
1766
|
-
/**
|
|
1767
|
-
* @deprecated
|
|
1768
|
-
*/
|
|
1769
|
-
genDocData(target) {
|
|
1770
|
-
const editorUnitId = this.getCurrentEditorId();
|
|
1771
|
-
const content = target.text;
|
|
1772
|
-
const fontSize = target.fs;
|
|
1773
|
-
return {
|
|
1774
|
-
id: editorUnitId,
|
|
1775
|
-
body: {
|
|
1776
|
-
dataStream: `${content}\r\n`,
|
|
1777
|
-
textRuns: [{
|
|
1778
|
-
st: 0,
|
|
1779
|
-
ed: content.length
|
|
1780
|
-
}],
|
|
1781
|
-
paragraphs: [{
|
|
1782
|
-
paragraphStyle: {},
|
|
1783
|
-
startIndex: content.length + 1
|
|
1784
|
-
}],
|
|
1785
|
-
sectionBreaks: [{
|
|
1786
|
-
sectionId: createSectionId(/* @__PURE__ */ new Set()),
|
|
1787
|
-
startIndex: content.length + 2
|
|
1788
|
-
}]
|
|
1789
|
-
},
|
|
1790
|
-
documentStyle: {
|
|
1791
|
-
marginBottom: 0,
|
|
1792
|
-
marginLeft: 0,
|
|
1793
|
-
marginRight: 0,
|
|
1794
|
-
marginTop: 0,
|
|
1795
|
-
pageSize: {
|
|
1796
|
-
width: Infinity,
|
|
1797
|
-
height: Infinity
|
|
1798
|
-
},
|
|
1799
|
-
textStyle: { fs: fontSize },
|
|
1800
|
-
renderConfig: {
|
|
1801
|
-
verticalAlign: VerticalAlign.MIDDLE,
|
|
1802
|
-
centerAngle: 0,
|
|
1803
|
-
vertexAngle: 0,
|
|
1804
|
-
wrapStrategy: 0
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
drawings: {},
|
|
1808
|
-
drawingsOrder: [],
|
|
1809
|
-
settings: { zoomRatio: 1 }
|
|
1810
|
-
};
|
|
1811
|
-
}
|
|
1812
1765
|
};
|
|
1813
1766
|
SlideEditorBridgeService = __decorate([
|
|
1814
1767
|
__decorateParam(0, IEditorService),
|
|
@@ -1895,11 +1848,11 @@ let SlideEditingRenderController = class SlideEditingRenderController extends Di
|
|
|
1895
1848
|
}
|
|
1896
1849
|
_getEditorSkeleton(editorId) {
|
|
1897
1850
|
var _this$_renderManagerS;
|
|
1898
|
-
return (_this$_renderManagerS = this._renderManagerService.
|
|
1851
|
+
return (_this$_renderManagerS = this._renderManagerService.getRenderUnitById(editorId)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.with(DocSkeletonManagerService).getSkeleton();
|
|
1899
1852
|
}
|
|
1900
1853
|
_getEditorViewModel(editorId) {
|
|
1901
1854
|
var _this$_renderManagerS2;
|
|
1902
|
-
return (_this$_renderManagerS2 = this._renderManagerService.
|
|
1855
|
+
return (_this$_renderManagerS2 = this._renderManagerService.getRenderUnitById(editorId)) === null || _this$_renderManagerS2 === void 0 ? void 0 : _this$_renderManagerS2.with(DocSkeletonManagerService).getViewModel();
|
|
1903
1856
|
}
|
|
1904
1857
|
_initialCursorSync(d) {
|
|
1905
1858
|
d.add(this._cellEditorManagerService.focus$.pipe(filter((f) => !!f)).subscribe(() => {
|
|
@@ -1920,9 +1873,14 @@ let SlideEditingRenderController = class SlideEditingRenderController extends Di
|
|
|
1920
1873
|
const { vertexAngle: angle } = convertTextRotation(textRotation);
|
|
1921
1874
|
documentModel.updateDocumentId(editorUnitId);
|
|
1922
1875
|
if (wrapStrategy === WrapStrategy.WRAP && angle === 0) documentModel.updateDocumentDataPageSize((endX - startX) / scaleX);
|
|
1923
|
-
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1876
|
+
const snapshot = documentModel.getSnapshot();
|
|
1877
|
+
if (this._instanceSrv.getUnit(editorUnitId, UniverInstanceType.UNIVER_DOC) == null) this._instanceSrv.createUnit(UniverInstanceType.UNIVER_DOC, snapshot);
|
|
1878
|
+
else this._commandService.syncExecuteCommand(ReplaceSnapshotCommand.id, {
|
|
1879
|
+
unitId: editorUnitId,
|
|
1880
|
+
snapshot
|
|
1881
|
+
});
|
|
1882
|
+
this._instanceSrv.setCurrentUnitForType(editorUnitId);
|
|
1883
|
+
this._textSelectionManagerService.replaceDocRanges([{
|
|
1926
1884
|
startOffset: 0,
|
|
1927
1885
|
endOffset: 0
|
|
1928
1886
|
}]);
|
|
@@ -2109,11 +2067,11 @@ let SlideEditingRenderController = class SlideEditingRenderController extends Di
|
|
|
2109
2067
|
this._fitTextSize(position, canvasOffset, skeleton, documentLayoutObject, scaleX, scaleY);
|
|
2110
2068
|
const cursor = documentDataModel.getBody().dataStream.length - 2 || 0;
|
|
2111
2069
|
(_scene$getViewport = scene.getViewport(VIEWPORT_KEY.VIEW_MAIN)) === null || _scene$getViewport === void 0 || _scene$getViewport.scrollToViewportPos({ viewportScrollX: Number.POSITIVE_INFINITY });
|
|
2112
|
-
this._textSelectionManagerService.
|
|
2070
|
+
this._textSelectionManagerService.replaceDocRanges([{
|
|
2113
2071
|
startOffset: cursor,
|
|
2114
2072
|
endOffset: cursor
|
|
2115
2073
|
}]);
|
|
2116
|
-
(_this$_renderManagerS3 = this._renderManagerService.
|
|
2074
|
+
(_this$_renderManagerS3 = this._renderManagerService.getRenderUnitById(unitId)) === null || _this$_renderManagerS3 === void 0 || _this$_renderManagerS3.scene.resetCursor();
|
|
2117
2075
|
}
|
|
2118
2076
|
_resetBodyStyle(body, removeStyle = false) {
|
|
2119
2077
|
body.dataStream = DEFAULT_EMPTY_DOCUMENT_VALUE;
|
|
@@ -2255,7 +2213,7 @@ SlideEditingRenderController = __decorate([
|
|
|
2255
2213
|
], SlideEditingRenderController);
|
|
2256
2214
|
function getEditorObject(unitId, renderManagerService) {
|
|
2257
2215
|
if (unitId == null) return;
|
|
2258
|
-
const currentRender = renderManagerService.
|
|
2216
|
+
const currentRender = renderManagerService.getRenderUnitById(unitId);
|
|
2259
2217
|
if (currentRender == null) return;
|
|
2260
2218
|
const { mainComponent, scene, engine, components } = currentRender;
|
|
2261
2219
|
return {
|
|
@@ -2361,7 +2319,6 @@ let SlideEditorBridgeRenderController = class SlideEditorBridgeRenderController
|
|
|
2361
2319
|
if (!this._instanceSrv.getCurrentUnitOfType(UniverInstanceType.UNIVER_SLIDE)) return false;
|
|
2362
2320
|
curRichText.refreshDocumentByDocData();
|
|
2363
2321
|
curRichText.resizeToContentSize();
|
|
2364
|
-
this._editorBridgeService.endEditing$.next(curRichText);
|
|
2365
2322
|
const richText = {
|
|
2366
2323
|
bl: 1,
|
|
2367
2324
|
fs: curRichText.fs,
|
|
@@ -2481,7 +2438,7 @@ let SlideCanvasPopMangerService = class SlideCanvasPopMangerService extends Disp
|
|
|
2481
2438
|
}
|
|
2482
2439
|
attachPopupToObject(targetObject, popup) {
|
|
2483
2440
|
const unitId = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SLIDE).getUnitId();
|
|
2484
|
-
const currentRender = this._renderManagerService.
|
|
2441
|
+
const currentRender = this._renderManagerService.getRenderUnitById(unitId);
|
|
2485
2442
|
if (!currentRender) return { dispose: () => {} };
|
|
2486
2443
|
const { position, position$, disposable } = this._createObjectPositionObserver(targetObject, currentRender);
|
|
2487
2444
|
const id = this._globalPopupManagerService.addPopup({
|
|
@@ -2723,6 +2680,7 @@ _defineProperty(UniverSlidesUIPlugin, "packageName", name);
|
|
|
2723
2680
|
_defineProperty(UniverSlidesUIPlugin, "version", version);
|
|
2724
2681
|
_defineProperty(UniverSlidesUIPlugin, "type", UniverInstanceType.UNIVER_SLIDE);
|
|
2725
2682
|
UniverSlidesUIPlugin = __decorate([
|
|
2683
|
+
DependentOn(UniverDocsPlugin, UniverDrawingPlugin, UniverRenderEnginePlugin, UniverSlidesPlugin, UniverUIPlugin, UniverDocsUIPlugin),
|
|
2726
2684
|
__decorateParam(1, Inject(Injector)),
|
|
2727
2685
|
__decorateParam(2, IRenderManagerService),
|
|
2728
2686
|
__decorateParam(3, IUniverInstanceService),
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
//#region src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "slides-ui": {
|
|
3
|
-
append: "
|
|
4
|
-
text: { insert: { title: "
|
|
3
|
+
append: "Добавить слайд",
|
|
4
|
+
text: { insert: { title: "Вставить текст" } },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "Вставить фигуру",
|
|
7
|
+
rectangle: "Вставить прямоугольник",
|
|
8
|
+
ellipse: "Вставить эллипс"
|
|
9
9
|
} },
|
|
10
10
|
image: { insert: {
|
|
11
|
-
title: "
|
|
12
|
-
float: "
|
|
11
|
+
title: "Вставить изображение",
|
|
12
|
+
float: "Вставить плавающее изображение"
|
|
13
13
|
} },
|
|
14
14
|
popup: {
|
|
15
|
-
edit: "
|
|
16
|
-
delete: "
|
|
15
|
+
edit: "Изменить",
|
|
16
|
+
delete: "Удалить"
|
|
17
17
|
},
|
|
18
18
|
sidebar: {
|
|
19
|
-
text: "
|
|
20
|
-
shape: "
|
|
21
|
-
image: "
|
|
19
|
+
text: "Изменить текст",
|
|
20
|
+
shape: "Изменить фигуру",
|
|
21
|
+
image: "Изменить изображение"
|
|
22
22
|
},
|
|
23
23
|
"image-panel": {
|
|
24
24
|
arrange: {
|
|
25
|
-
title: "
|
|
26
|
-
forward: "
|
|
27
|
-
backward: "
|
|
28
|
-
front: "
|
|
29
|
-
back: "
|
|
25
|
+
title: "Упорядочить",
|
|
26
|
+
forward: "Переложить вперёд",
|
|
27
|
+
backward: "Переложить назад",
|
|
28
|
+
front: "На передний план",
|
|
29
|
+
back: "На задний план"
|
|
30
30
|
},
|
|
31
31
|
transform: {
|
|
32
|
-
title: "
|
|
33
|
-
width: "
|
|
34
|
-
height: "
|
|
35
|
-
x: "X (
|
|
36
|
-
y: "Y (
|
|
37
|
-
rotate: "
|
|
32
|
+
title: "Преобразование",
|
|
33
|
+
width: "Ширина (пкс)",
|
|
34
|
+
height: "Высота (пкс)",
|
|
35
|
+
x: "X (пкс)",
|
|
36
|
+
y: "Y (пкс)",
|
|
37
|
+
rotate: "Повернуть (°)"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
panel: { fill: { title: "
|
|
40
|
+
panel: { fill: { title: "Цвет заливки" } }
|
|
41
41
|
} };
|
|
42
42
|
|
|
43
43
|
//#endregion
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
//#region src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "slides-ui": {
|
|
3
|
-
append: "
|
|
4
|
-
text: { insert: { title: "
|
|
3
|
+
append: "Thêm trang chiếu",
|
|
4
|
+
text: { insert: { title: "Chèn văn bản" } },
|
|
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
|
image: { insert: {
|
|
11
|
-
title: "
|
|
12
|
-
float: "
|
|
11
|
+
title: "Chèn hình ảnh",
|
|
12
|
+
float: "Chèn hình ảnh nổi"
|
|
13
13
|
} },
|
|
14
14
|
popup: {
|
|
15
|
-
edit: "
|
|
16
|
-
delete: "
|
|
15
|
+
edit: "Chỉnh sửa",
|
|
16
|
+
delete: "Xóa"
|
|
17
17
|
},
|
|
18
18
|
sidebar: {
|
|
19
|
-
text: "
|
|
20
|
-
shape: "
|
|
21
|
-
image: "
|
|
19
|
+
text: "Chỉnh sửa văn bản",
|
|
20
|
+
shape: "Chỉnh sửa hình",
|
|
21
|
+
image: "Chỉnh sửa hình ảnh"
|
|
22
22
|
},
|
|
23
23
|
"image-panel": {
|
|
24
24
|
arrange: {
|
|
25
|
-
title: "
|
|
26
|
-
forward: "
|
|
27
|
-
backward: "
|
|
28
|
-
front: "
|
|
29
|
-
back: "
|
|
25
|
+
title: "Sắp xếp",
|
|
26
|
+
forward: "Chuyển lên trên",
|
|
27
|
+
backward: "Chuyển xuống dưới",
|
|
28
|
+
front: "Đưa lên trên cùng",
|
|
29
|
+
back: "Đưa xuống dưới cùng"
|
|
30
30
|
},
|
|
31
31
|
transform: {
|
|
32
|
-
title: "
|
|
33
|
-
width: "
|
|
34
|
-
height: "
|
|
32
|
+
title: "Biến đổi",
|
|
33
|
+
width: "Chiều rộng (px)",
|
|
34
|
+
height: "Chiều cao (px)",
|
|
35
35
|
x: "X (px)",
|
|
36
36
|
y: "Y (px)",
|
|
37
|
-
rotate: "
|
|
37
|
+
rotate: "Xoay (°)"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
panel: { fill: { title: "
|
|
40
|
+
panel: { fill: { title: "Màu tô" } }
|
|
41
41
|
} };
|
|
42
42
|
|
|
43
43
|
//#endregion
|
package/lib/es/locale/zh-HK.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
//#region src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "slides-ui": {
|
|
3
|
-
append: "
|
|
4
|
-
text: { insert: { title: "
|
|
3
|
+
append: "新增幻灯片",
|
|
4
|
+
text: { insert: { title: "插入文字" } },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "插入圖形",
|
|
7
|
+
rectangle: "插入矩形",
|
|
8
|
+
ellipse: "插入橢圓"
|
|
9
9
|
} },
|
|
10
10
|
image: { insert: {
|
|
11
|
-
title: "
|
|
12
|
-
float: "
|
|
11
|
+
title: "插入圖片",
|
|
12
|
+
float: "插入浮動圖片"
|
|
13
13
|
} },
|
|
14
14
|
popup: {
|
|
15
|
-
edit: "
|
|
16
|
-
delete: "
|
|
15
|
+
edit: "編輯",
|
|
16
|
+
delete: "刪除"
|
|
17
17
|
},
|
|
18
18
|
sidebar: {
|
|
19
|
-
text: "
|
|
20
|
-
shape: "
|
|
21
|
-
image: "
|
|
19
|
+
text: "編輯文字",
|
|
20
|
+
shape: "編輯圖形",
|
|
21
|
+
image: "編輯圖片"
|
|
22
22
|
},
|
|
23
23
|
"image-panel": {
|
|
24
24
|
arrange: {
|
|
25
|
-
title: "
|
|
26
|
-
forward: "
|
|
27
|
-
backward: "
|
|
28
|
-
front: "
|
|
29
|
-
back: "
|
|
25
|
+
title: "排列",
|
|
26
|
+
forward: "上移一層",
|
|
27
|
+
backward: "下移一層",
|
|
28
|
+
front: "至頂",
|
|
29
|
+
back: "至底"
|
|
30
30
|
},
|
|
31
31
|
transform: {
|
|
32
|
-
title: "
|
|
33
|
-
width: "
|
|
34
|
-
height: "
|
|
32
|
+
title: "變換",
|
|
33
|
+
width: "寬度 (px)",
|
|
34
|
+
height: "高度 (px)",
|
|
35
35
|
x: "X (px)",
|
|
36
36
|
y: "Y (px)",
|
|
37
|
-
rotate: "
|
|
37
|
+
rotate: "旋轉 (°)"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
panel: { fill: { title: "
|
|
40
|
+
panel: { fill: { title: "填色" } }
|
|
41
41
|
} };
|
|
42
42
|
|
|
43
43
|
//#endregion
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
//#region src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "slides-ui": {
|
|
3
|
-
append: "
|
|
4
|
-
text: { insert: { title: "
|
|
3
|
+
append: "新增幻灯片",
|
|
4
|
+
text: { insert: { title: "插入文字" } },
|
|
5
5
|
shape: { insert: {
|
|
6
|
-
title: "
|
|
7
|
-
rectangle: "
|
|
8
|
-
ellipse: "
|
|
6
|
+
title: "插入圖形",
|
|
7
|
+
rectangle: "插入矩形",
|
|
8
|
+
ellipse: "插入橢圓"
|
|
9
9
|
} },
|
|
10
10
|
image: { insert: {
|
|
11
|
-
title: "
|
|
12
|
-
float: "
|
|
11
|
+
title: "插入圖片",
|
|
12
|
+
float: "插入浮動圖片"
|
|
13
13
|
} },
|
|
14
14
|
popup: {
|
|
15
|
-
edit: "
|
|
16
|
-
delete: "
|
|
15
|
+
edit: "編輯",
|
|
16
|
+
delete: "刪除"
|
|
17
17
|
},
|
|
18
18
|
sidebar: {
|
|
19
|
-
text: "
|
|
20
|
-
shape: "
|
|
21
|
-
image: "
|
|
19
|
+
text: "編輯文字",
|
|
20
|
+
shape: "編輯圖形",
|
|
21
|
+
image: "編輯圖片"
|
|
22
22
|
},
|
|
23
23
|
"image-panel": {
|
|
24
24
|
arrange: {
|
|
25
|
-
title: "
|
|
26
|
-
forward: "
|
|
27
|
-
backward: "
|
|
28
|
-
front: "
|
|
29
|
-
back: "
|
|
25
|
+
title: "排列",
|
|
26
|
+
forward: "上移一層",
|
|
27
|
+
backward: "下移一層",
|
|
28
|
+
front: "至頂",
|
|
29
|
+
back: "至底"
|
|
30
30
|
},
|
|
31
31
|
transform: {
|
|
32
|
-
title: "
|
|
33
|
-
width: "
|
|
34
|
-
height: "
|
|
32
|
+
title: "變換",
|
|
33
|
+
width: "寬度 (px)",
|
|
34
|
+
height: "高度 (px)",
|
|
35
35
|
x: "X (px)",
|
|
36
36
|
y: "Y (px)",
|
|
37
|
-
rotate: "
|
|
37
|
+
rotate: "旋轉 (°)"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
panel: { fill: { title: "
|
|
40
|
+
panel: { fill: { title: "填色" } }
|
|
41
41
|
} };
|
|
42
42
|
|
|
43
43
|
//#endregion
|