@univerjs/slides-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 +44 -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 +51 -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 +51 -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 +12 -12
package/lib/cjs/index.js
CHANGED
|
@@ -12,7 +12,7 @@ let _univerjs_docs_ui = require("@univerjs/docs-ui");
|
|
|
12
12
|
let rxjs = require("rxjs");
|
|
13
13
|
let _univerjs_docs = require("@univerjs/docs");
|
|
14
14
|
|
|
15
|
-
//#region \0@oxc-project+runtime@0.
|
|
15
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
|
|
16
16
|
function _typeof(o) {
|
|
17
17
|
"@babel/helpers - typeof";
|
|
18
18
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -23,7 +23,7 @@ function _typeof(o) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
|
|
27
27
|
function toPrimitive(t, r) {
|
|
28
28
|
if ("object" != _typeof(t) || !t) return t;
|
|
29
29
|
var e = t[Symbol.toPrimitive];
|
|
@@ -36,14 +36,14 @@ function toPrimitive(t, r) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
|
|
40
40
|
function toPropertyKey(t) {
|
|
41
41
|
var i = toPrimitive(t, "string");
|
|
42
42
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
|
-
//#region \0@oxc-project+runtime@0.
|
|
46
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
|
|
47
47
|
function _defineProperty(e, r, t) {
|
|
48
48
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
49
49
|
value: t,
|
|
@@ -54,7 +54,7 @@ function _defineProperty(e, r, t) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region \0@oxc-project+runtime@0.
|
|
57
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorateParam.js
|
|
58
58
|
function __decorateParam(paramIndex, decorator) {
|
|
59
59
|
return function(target, key) {
|
|
60
60
|
decorator(target, key, paramIndex);
|
|
@@ -62,7 +62,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
|
-
//#region \0@oxc-project+runtime@0.
|
|
65
|
+
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/decorate.js
|
|
66
66
|
function __decorate(decorators, target, key, desc) {
|
|
67
67
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
68
68
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -200,7 +200,7 @@ let SlideRenderController = class SlideRenderController extends _univerjs_core.R
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
_thumbSceneRender(pageId, slide) {
|
|
203
|
-
const render = this._renderManagerService.
|
|
203
|
+
const render = this._renderManagerService.getRenderUnitById(pageId);
|
|
204
204
|
if (render == null) return;
|
|
205
205
|
const { engine: thumbEngine } = render;
|
|
206
206
|
if (thumbEngine == null) return;
|
|
@@ -375,7 +375,7 @@ let CanvasView = class CanvasView extends _univerjs_core.RxDisposable {
|
|
|
375
375
|
this._renderManagerService = _renderManagerService;
|
|
376
376
|
}
|
|
377
377
|
_getSlideRenderControllerFromRenderUnit(unitId) {
|
|
378
|
-
return this._renderManagerService.
|
|
378
|
+
return this._renderManagerService.getRenderUnitById(unitId).with(SlideRenderController);
|
|
379
379
|
}
|
|
380
380
|
createThumbs(unitId) {
|
|
381
381
|
this._getSlideRenderControllerFromRenderUnit(unitId).createThumbs();
|
|
@@ -1150,10 +1150,22 @@ function SlideAddTextMenuItemFactory(_accessor) {
|
|
|
1150
1150
|
const menuSchema = { [_univerjs_ui.RibbonStartGroup.FORMAT]: {
|
|
1151
1151
|
[SlideAddTextCommand.id]: {
|
|
1152
1152
|
order: 0,
|
|
1153
|
+
gridLayout: {
|
|
1154
|
+
row: 1,
|
|
1155
|
+
column: 1,
|
|
1156
|
+
rowSpan: 2,
|
|
1157
|
+
showLabel: true
|
|
1158
|
+
},
|
|
1153
1159
|
menuItemFactory: SlideAddTextMenuItemFactory
|
|
1154
1160
|
},
|
|
1155
1161
|
[SLIDES_IMAGE_MENU_ID]: {
|
|
1156
1162
|
order: 0,
|
|
1163
|
+
gridLayout: {
|
|
1164
|
+
row: 1,
|
|
1165
|
+
column: 2,
|
|
1166
|
+
rowSpan: 2,
|
|
1167
|
+
showLabel: true
|
|
1168
|
+
},
|
|
1157
1169
|
menuItemFactory: SlideImageMenuFactory,
|
|
1158
1170
|
[InsertSlideFloatImageCommand.id]: {
|
|
1159
1171
|
order: 0,
|
|
@@ -1162,6 +1174,12 @@ const menuSchema = { [_univerjs_ui.RibbonStartGroup.FORMAT]: {
|
|
|
1162
1174
|
},
|
|
1163
1175
|
[SHAPE_MENU_ID]: {
|
|
1164
1176
|
order: 0,
|
|
1177
|
+
gridLayout: {
|
|
1178
|
+
row: 1,
|
|
1179
|
+
column: 3,
|
|
1180
|
+
rowSpan: 2,
|
|
1181
|
+
showLabel: true
|
|
1182
|
+
},
|
|
1165
1183
|
menuItemFactory: SlideShapeMenuFactory,
|
|
1166
1184
|
[InsertSlideShapeRectangleCommand.id]: {
|
|
1167
1185
|
order: 0,
|
|
@@ -1303,7 +1321,7 @@ function SlideSideBar() {
|
|
|
1303
1321
|
if (ref.current) {
|
|
1304
1322
|
var _renderManagerService;
|
|
1305
1323
|
const slide = slideList[index];
|
|
1306
|
-
(_renderManagerService = renderManagerService.
|
|
1324
|
+
(_renderManagerService = renderManagerService.getRenderUnitById(slide.id)) === null || _renderManagerService === void 0 || _renderManagerService.engine.mount(ref.current);
|
|
1307
1325
|
}
|
|
1308
1326
|
});
|
|
1309
1327
|
if (divRefs.length > 0) commandService.syncExecuteCommand(SetSlidePageThumbOperation.id, { unitId: currentSlide === null || currentSlide === void 0 ? void 0 : currentSlide.getUnitId() });
|
|
@@ -1483,7 +1501,7 @@ SlidesUIController = __decorate([
|
|
|
1483
1501
|
//#endregion
|
|
1484
1502
|
//#region package.json
|
|
1485
1503
|
var name = "@univerjs/slides-ui";
|
|
1486
|
-
var version = "1.0.0-alpha.
|
|
1504
|
+
var version = "1.0.0-alpha.8";
|
|
1487
1505
|
|
|
1488
1506
|
//#endregion
|
|
1489
1507
|
//#region src/config/config.ts
|
|
@@ -1628,7 +1646,6 @@ let SlideEditorBridgeService = class SlideEditorBridgeService extends _univerjs_
|
|
|
1628
1646
|
_defineProperty(this, "visible$", this._visible$.asObservable());
|
|
1629
1647
|
_defineProperty(this, "_afterVisible$", new rxjs.BehaviorSubject(this._visibleParam));
|
|
1630
1648
|
_defineProperty(this, "afterVisible$", this._afterVisible$.asObservable());
|
|
1631
|
-
_defineProperty(this, "endEditing$", new rxjs.Subject());
|
|
1632
1649
|
_defineProperty(this, "_currentEditRectInfo", void 0);
|
|
1633
1650
|
}
|
|
1634
1651
|
dispose() {
|
|
@@ -1707,7 +1724,7 @@ let SlideEditorBridgeService = class SlideEditorBridgeService extends _univerjs_
|
|
|
1707
1724
|
left: 0,
|
|
1708
1725
|
top: 0
|
|
1709
1726
|
};
|
|
1710
|
-
const renderUnit = this._renderManagerService.
|
|
1727
|
+
const renderUnit = this._renderManagerService.getRenderUnitById(unitId);
|
|
1711
1728
|
const mainScene = renderUnit === null || renderUnit === void 0 ? void 0 : renderUnit.scene;
|
|
1712
1729
|
const mainViewport = mainScene === null || mainScene === void 0 ? void 0 : mainScene.getViewport(_univerjs_slides.SLIDE_KEY.VIEW);
|
|
1713
1730
|
const slideMainRect = mainScene === null || mainScene === void 0 ? void 0 : mainScene.getObject(_univerjs_slides.SLIDE_KEY.COMPONENT);
|
|
@@ -1746,52 +1763,6 @@ let SlideEditorBridgeService = class SlideEditorBridgeService extends _univerjs_
|
|
|
1746
1763
|
getCurrentEditorId() {
|
|
1747
1764
|
return this._editorUnitId;
|
|
1748
1765
|
}
|
|
1749
|
-
/**
|
|
1750
|
-
* @deprecated
|
|
1751
|
-
*/
|
|
1752
|
-
genDocData(target) {
|
|
1753
|
-
const editorUnitId = this.getCurrentEditorId();
|
|
1754
|
-
const content = target.text;
|
|
1755
|
-
const fontSize = target.fs;
|
|
1756
|
-
return {
|
|
1757
|
-
id: editorUnitId,
|
|
1758
|
-
body: {
|
|
1759
|
-
dataStream: `${content}\r\n`,
|
|
1760
|
-
textRuns: [{
|
|
1761
|
-
st: 0,
|
|
1762
|
-
ed: content.length
|
|
1763
|
-
}],
|
|
1764
|
-
paragraphs: [{
|
|
1765
|
-
paragraphStyle: {},
|
|
1766
|
-
startIndex: content.length + 1
|
|
1767
|
-
}],
|
|
1768
|
-
sectionBreaks: [{
|
|
1769
|
-
sectionId: (0, _univerjs_core.createSectionId)(/* @__PURE__ */ new Set()),
|
|
1770
|
-
startIndex: content.length + 2
|
|
1771
|
-
}]
|
|
1772
|
-
},
|
|
1773
|
-
documentStyle: {
|
|
1774
|
-
marginBottom: 0,
|
|
1775
|
-
marginLeft: 0,
|
|
1776
|
-
marginRight: 0,
|
|
1777
|
-
marginTop: 0,
|
|
1778
|
-
pageSize: {
|
|
1779
|
-
width: Infinity,
|
|
1780
|
-
height: Infinity
|
|
1781
|
-
},
|
|
1782
|
-
textStyle: { fs: fontSize },
|
|
1783
|
-
renderConfig: {
|
|
1784
|
-
verticalAlign: _univerjs_core.VerticalAlign.MIDDLE,
|
|
1785
|
-
centerAngle: 0,
|
|
1786
|
-
vertexAngle: 0,
|
|
1787
|
-
wrapStrategy: 0
|
|
1788
|
-
}
|
|
1789
|
-
},
|
|
1790
|
-
drawings: {},
|
|
1791
|
-
drawingsOrder: [],
|
|
1792
|
-
settings: { zoomRatio: 1 }
|
|
1793
|
-
};
|
|
1794
|
-
}
|
|
1795
1766
|
};
|
|
1796
1767
|
SlideEditorBridgeService = __decorate([
|
|
1797
1768
|
__decorateParam(0, _univerjs_docs_ui.IEditorService),
|
|
@@ -1878,11 +1849,11 @@ let SlideEditingRenderController = class SlideEditingRenderController extends _u
|
|
|
1878
1849
|
}
|
|
1879
1850
|
_getEditorSkeleton(editorId) {
|
|
1880
1851
|
var _this$_renderManagerS;
|
|
1881
|
-
return (_this$_renderManagerS = this._renderManagerService.
|
|
1852
|
+
return (_this$_renderManagerS = this._renderManagerService.getRenderUnitById(editorId)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.with(_univerjs_docs.DocSkeletonManagerService).getSkeleton();
|
|
1882
1853
|
}
|
|
1883
1854
|
_getEditorViewModel(editorId) {
|
|
1884
1855
|
var _this$_renderManagerS2;
|
|
1885
|
-
return (_this$_renderManagerS2 = this._renderManagerService.
|
|
1856
|
+
return (_this$_renderManagerS2 = this._renderManagerService.getRenderUnitById(editorId)) === null || _this$_renderManagerS2 === void 0 ? void 0 : _this$_renderManagerS2.with(_univerjs_docs.DocSkeletonManagerService).getViewModel();
|
|
1886
1857
|
}
|
|
1887
1858
|
_initialCursorSync(d) {
|
|
1888
1859
|
d.add(this._cellEditorManagerService.focus$.pipe((0, rxjs.filter)((f) => !!f)).subscribe(() => {
|
|
@@ -1903,9 +1874,14 @@ let SlideEditingRenderController = class SlideEditingRenderController extends _u
|
|
|
1903
1874
|
const { vertexAngle: angle } = (0, _univerjs_engine_render.convertTextRotation)(textRotation);
|
|
1904
1875
|
documentModel.updateDocumentId(editorUnitId);
|
|
1905
1876
|
if (wrapStrategy === _univerjs_core.WrapStrategy.WRAP && angle === 0) documentModel.updateDocumentDataPageSize((endX - startX) / scaleX);
|
|
1906
|
-
|
|
1907
|
-
this.
|
|
1908
|
-
this.
|
|
1877
|
+
const snapshot = documentModel.getSnapshot();
|
|
1878
|
+
if (this._instanceSrv.getUnit(editorUnitId, _univerjs_core.UniverInstanceType.UNIVER_DOC) == null) this._instanceSrv.createUnit(_univerjs_core.UniverInstanceType.UNIVER_DOC, snapshot);
|
|
1879
|
+
else this._commandService.syncExecuteCommand(_univerjs_docs_ui.ReplaceSnapshotCommand.id, {
|
|
1880
|
+
unitId: editorUnitId,
|
|
1881
|
+
snapshot
|
|
1882
|
+
});
|
|
1883
|
+
this._instanceSrv.setCurrentUnitForType(editorUnitId);
|
|
1884
|
+
this._textSelectionManagerService.replaceDocRanges([{
|
|
1909
1885
|
startOffset: 0,
|
|
1910
1886
|
endOffset: 0
|
|
1911
1887
|
}]);
|
|
@@ -2092,11 +2068,11 @@ let SlideEditingRenderController = class SlideEditingRenderController extends _u
|
|
|
2092
2068
|
this._fitTextSize(position, canvasOffset, skeleton, documentLayoutObject, scaleX, scaleY);
|
|
2093
2069
|
const cursor = documentDataModel.getBody().dataStream.length - 2 || 0;
|
|
2094
2070
|
(_scene$getViewport = scene.getViewport(_univerjs_docs_ui.VIEWPORT_KEY.VIEW_MAIN)) === null || _scene$getViewport === void 0 || _scene$getViewport.scrollToViewportPos({ viewportScrollX: Number.POSITIVE_INFINITY });
|
|
2095
|
-
this._textSelectionManagerService.
|
|
2071
|
+
this._textSelectionManagerService.replaceDocRanges([{
|
|
2096
2072
|
startOffset: cursor,
|
|
2097
2073
|
endOffset: cursor
|
|
2098
2074
|
}]);
|
|
2099
|
-
(_this$_renderManagerS3 = this._renderManagerService.
|
|
2075
|
+
(_this$_renderManagerS3 = this._renderManagerService.getRenderUnitById(unitId)) === null || _this$_renderManagerS3 === void 0 || _this$_renderManagerS3.scene.resetCursor();
|
|
2100
2076
|
}
|
|
2101
2077
|
_resetBodyStyle(body, removeStyle = false) {
|
|
2102
2078
|
body.dataStream = _univerjs_core.DEFAULT_EMPTY_DOCUMENT_VALUE;
|
|
@@ -2238,7 +2214,7 @@ SlideEditingRenderController = __decorate([
|
|
|
2238
2214
|
], SlideEditingRenderController);
|
|
2239
2215
|
function getEditorObject(unitId, renderManagerService) {
|
|
2240
2216
|
if (unitId == null) return;
|
|
2241
|
-
const currentRender = renderManagerService.
|
|
2217
|
+
const currentRender = renderManagerService.getRenderUnitById(unitId);
|
|
2242
2218
|
if (currentRender == null) return;
|
|
2243
2219
|
const { mainComponent, scene, engine, components } = currentRender;
|
|
2244
2220
|
return {
|
|
@@ -2344,7 +2320,6 @@ let SlideEditorBridgeRenderController = class SlideEditorBridgeRenderController
|
|
|
2344
2320
|
if (!this._instanceSrv.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SLIDE)) return false;
|
|
2345
2321
|
curRichText.refreshDocumentByDocData();
|
|
2346
2322
|
curRichText.resizeToContentSize();
|
|
2347
|
-
this._editorBridgeService.endEditing$.next(curRichText);
|
|
2348
2323
|
const richText = {
|
|
2349
2324
|
bl: 1,
|
|
2350
2325
|
fs: curRichText.fs,
|
|
@@ -2464,7 +2439,7 @@ let SlideCanvasPopMangerService = class SlideCanvasPopMangerService extends _uni
|
|
|
2464
2439
|
}
|
|
2465
2440
|
attachPopupToObject(targetObject, popup) {
|
|
2466
2441
|
const unitId = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SLIDE).getUnitId();
|
|
2467
|
-
const currentRender = this._renderManagerService.
|
|
2442
|
+
const currentRender = this._renderManagerService.getRenderUnitById(unitId);
|
|
2468
2443
|
if (!currentRender) return { dispose: () => {} };
|
|
2469
2444
|
const { position, position$, disposable } = this._createObjectPositionObserver(targetObject, currentRender);
|
|
2470
2445
|
const id = this._globalPopupManagerService.addPopup({
|
|
@@ -2706,6 +2681,7 @@ _defineProperty(UniverSlidesUIPlugin, "packageName", name);
|
|
|
2706
2681
|
_defineProperty(UniverSlidesUIPlugin, "version", version);
|
|
2707
2682
|
_defineProperty(UniverSlidesUIPlugin, "type", _univerjs_core.UniverInstanceType.UNIVER_SLIDE);
|
|
2708
2683
|
UniverSlidesUIPlugin = __decorate([
|
|
2684
|
+
(0, _univerjs_core.DependentOn)(_univerjs_docs.UniverDocsPlugin, _univerjs_drawing.UniverDrawingPlugin, _univerjs_engine_render.UniverRenderEnginePlugin, _univerjs_slides.UniverSlidesPlugin, _univerjs_ui.UniverUIPlugin, _univerjs_docs_ui.UniverDocsUIPlugin),
|
|
2709
2685
|
__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2710
2686
|
__decorateParam(2, _univerjs_engine_render.IRenderManagerService),
|
|
2711
2687
|
__decorateParam(3, _univerjs_core.IUniverInstanceService),
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/ru-RU.ts
|
|
3
3
|
const locale = { "slides-ui": {
|
|
4
|
-
append: "
|
|
5
|
-
text: { insert: { title: "
|
|
4
|
+
append: "Добавить слайд",
|
|
5
|
+
text: { insert: { title: "Вставить текст" } },
|
|
6
6
|
shape: { insert: {
|
|
7
|
-
title: "
|
|
8
|
-
rectangle: "
|
|
9
|
-
ellipse: "
|
|
7
|
+
title: "Вставить фигуру",
|
|
8
|
+
rectangle: "Вставить прямоугольник",
|
|
9
|
+
ellipse: "Вставить эллипс"
|
|
10
10
|
} },
|
|
11
11
|
image: { insert: {
|
|
12
|
-
title: "
|
|
13
|
-
float: "
|
|
12
|
+
title: "Вставить изображение",
|
|
13
|
+
float: "Вставить плавающее изображение"
|
|
14
14
|
} },
|
|
15
15
|
popup: {
|
|
16
|
-
edit: "
|
|
17
|
-
delete: "
|
|
16
|
+
edit: "Изменить",
|
|
17
|
+
delete: "Удалить"
|
|
18
18
|
},
|
|
19
19
|
sidebar: {
|
|
20
|
-
text: "
|
|
21
|
-
shape: "
|
|
22
|
-
image: "
|
|
20
|
+
text: "Изменить текст",
|
|
21
|
+
shape: "Изменить фигуру",
|
|
22
|
+
image: "Изменить изображение"
|
|
23
23
|
},
|
|
24
24
|
"image-panel": {
|
|
25
25
|
arrange: {
|
|
26
|
-
title: "
|
|
27
|
-
forward: "
|
|
28
|
-
backward: "
|
|
29
|
-
front: "
|
|
30
|
-
back: "
|
|
26
|
+
title: "Упорядочить",
|
|
27
|
+
forward: "Переложить вперёд",
|
|
28
|
+
backward: "Переложить назад",
|
|
29
|
+
front: "На передний план",
|
|
30
|
+
back: "На задний план"
|
|
31
31
|
},
|
|
32
32
|
transform: {
|
|
33
|
-
title: "
|
|
34
|
-
width: "
|
|
35
|
-
height: "
|
|
36
|
-
x: "X (
|
|
37
|
-
y: "Y (
|
|
38
|
-
rotate: "
|
|
33
|
+
title: "Преобразование",
|
|
34
|
+
width: "Ширина (пкс)",
|
|
35
|
+
height: "Высота (пкс)",
|
|
36
|
+
x: "X (пкс)",
|
|
37
|
+
y: "Y (пкс)",
|
|
38
|
+
rotate: "Повернуть (°)"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
panel: { fill: { title: "
|
|
41
|
+
panel: { fill: { title: "Цвет заливки" } }
|
|
42
42
|
} };
|
|
43
43
|
|
|
44
44
|
//#endregion
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/vi-VN.ts
|
|
3
3
|
const locale = { "slides-ui": {
|
|
4
|
-
append: "
|
|
5
|
-
text: { insert: { title: "
|
|
4
|
+
append: "Thêm trang chiếu",
|
|
5
|
+
text: { insert: { title: "Chèn văn bản" } },
|
|
6
6
|
shape: { insert: {
|
|
7
|
-
title: "
|
|
8
|
-
rectangle: "
|
|
9
|
-
ellipse: "
|
|
7
|
+
title: "Chèn hình",
|
|
8
|
+
rectangle: "Chèn hình chữ nhật",
|
|
9
|
+
ellipse: "Chèn hình elip"
|
|
10
10
|
} },
|
|
11
11
|
image: { insert: {
|
|
12
|
-
title: "
|
|
13
|
-
float: "
|
|
12
|
+
title: "Chèn hình ảnh",
|
|
13
|
+
float: "Chèn hình ảnh nổi"
|
|
14
14
|
} },
|
|
15
15
|
popup: {
|
|
16
|
-
edit: "
|
|
17
|
-
delete: "
|
|
16
|
+
edit: "Chỉnh sửa",
|
|
17
|
+
delete: "Xóa"
|
|
18
18
|
},
|
|
19
19
|
sidebar: {
|
|
20
|
-
text: "
|
|
21
|
-
shape: "
|
|
22
|
-
image: "
|
|
20
|
+
text: "Chỉnh sửa văn bản",
|
|
21
|
+
shape: "Chỉnh sửa hình",
|
|
22
|
+
image: "Chỉnh sửa hình ảnh"
|
|
23
23
|
},
|
|
24
24
|
"image-panel": {
|
|
25
25
|
arrange: {
|
|
26
|
-
title: "
|
|
27
|
-
forward: "
|
|
28
|
-
backward: "
|
|
29
|
-
front: "
|
|
30
|
-
back: "
|
|
26
|
+
title: "Sắp xếp",
|
|
27
|
+
forward: "Chuyển lên trên",
|
|
28
|
+
backward: "Chuyển xuống dưới",
|
|
29
|
+
front: "Đưa lên trên cùng",
|
|
30
|
+
back: "Đưa xuống dưới cùng"
|
|
31
31
|
},
|
|
32
32
|
transform: {
|
|
33
|
-
title: "
|
|
34
|
-
width: "
|
|
35
|
-
height: "
|
|
33
|
+
title: "Biến đổi",
|
|
34
|
+
width: "Chiều rộng (px)",
|
|
35
|
+
height: "Chiều cao (px)",
|
|
36
36
|
x: "X (px)",
|
|
37
37
|
y: "Y (px)",
|
|
38
|
-
rotate: "
|
|
38
|
+
rotate: "Xoay (°)"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
panel: { fill: { title: "
|
|
41
|
+
panel: { fill: { title: "Màu tô" } }
|
|
42
42
|
} };
|
|
43
43
|
|
|
44
44
|
//#endregion
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-HK.ts
|
|
3
3
|
const locale = { "slides-ui": {
|
|
4
|
-
append: "
|
|
5
|
-
text: { insert: { title: "
|
|
4
|
+
append: "新增幻灯片",
|
|
5
|
+
text: { insert: { title: "插入文字" } },
|
|
6
6
|
shape: { insert: {
|
|
7
|
-
title: "
|
|
8
|
-
rectangle: "
|
|
9
|
-
ellipse: "
|
|
7
|
+
title: "插入圖形",
|
|
8
|
+
rectangle: "插入矩形",
|
|
9
|
+
ellipse: "插入橢圓"
|
|
10
10
|
} },
|
|
11
11
|
image: { insert: {
|
|
12
|
-
title: "
|
|
13
|
-
float: "
|
|
12
|
+
title: "插入圖片",
|
|
13
|
+
float: "插入浮動圖片"
|
|
14
14
|
} },
|
|
15
15
|
popup: {
|
|
16
|
-
edit: "
|
|
17
|
-
delete: "
|
|
16
|
+
edit: "編輯",
|
|
17
|
+
delete: "刪除"
|
|
18
18
|
},
|
|
19
19
|
sidebar: {
|
|
20
|
-
text: "
|
|
21
|
-
shape: "
|
|
22
|
-
image: "
|
|
20
|
+
text: "編輯文字",
|
|
21
|
+
shape: "編輯圖形",
|
|
22
|
+
image: "編輯圖片"
|
|
23
23
|
},
|
|
24
24
|
"image-panel": {
|
|
25
25
|
arrange: {
|
|
26
|
-
title: "
|
|
27
|
-
forward: "
|
|
28
|
-
backward: "
|
|
29
|
-
front: "
|
|
30
|
-
back: "
|
|
26
|
+
title: "排列",
|
|
27
|
+
forward: "上移一層",
|
|
28
|
+
backward: "下移一層",
|
|
29
|
+
front: "至頂",
|
|
30
|
+
back: "至底"
|
|
31
31
|
},
|
|
32
32
|
transform: {
|
|
33
|
-
title: "
|
|
34
|
-
width: "
|
|
35
|
-
height: "
|
|
33
|
+
title: "變換",
|
|
34
|
+
width: "寬度 (px)",
|
|
35
|
+
height: "高度 (px)",
|
|
36
36
|
x: "X (px)",
|
|
37
37
|
y: "Y (px)",
|
|
38
|
-
rotate: "
|
|
38
|
+
rotate: "旋轉 (°)"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
panel: { fill: { title: "
|
|
41
|
+
panel: { fill: { title: "填色" } }
|
|
42
42
|
} };
|
|
43
43
|
|
|
44
44
|
//#endregion
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/locale/zh-TW.ts
|
|
3
3
|
const locale = { "slides-ui": {
|
|
4
|
-
append: "
|
|
5
|
-
text: { insert: { title: "
|
|
4
|
+
append: "新增幻灯片",
|
|
5
|
+
text: { insert: { title: "插入文字" } },
|
|
6
6
|
shape: { insert: {
|
|
7
|
-
title: "
|
|
8
|
-
rectangle: "
|
|
9
|
-
ellipse: "
|
|
7
|
+
title: "插入圖形",
|
|
8
|
+
rectangle: "插入矩形",
|
|
9
|
+
ellipse: "插入橢圓"
|
|
10
10
|
} },
|
|
11
11
|
image: { insert: {
|
|
12
|
-
title: "
|
|
13
|
-
float: "
|
|
12
|
+
title: "插入圖片",
|
|
13
|
+
float: "插入浮動圖片"
|
|
14
14
|
} },
|
|
15
15
|
popup: {
|
|
16
|
-
edit: "
|
|
17
|
-
delete: "
|
|
16
|
+
edit: "編輯",
|
|
17
|
+
delete: "刪除"
|
|
18
18
|
},
|
|
19
19
|
sidebar: {
|
|
20
|
-
text: "
|
|
21
|
-
shape: "
|
|
22
|
-
image: "
|
|
20
|
+
text: "編輯文字",
|
|
21
|
+
shape: "編輯圖形",
|
|
22
|
+
image: "編輯圖片"
|
|
23
23
|
},
|
|
24
24
|
"image-panel": {
|
|
25
25
|
arrange: {
|
|
26
|
-
title: "
|
|
27
|
-
forward: "
|
|
28
|
-
backward: "
|
|
29
|
-
front: "
|
|
30
|
-
back: "
|
|
26
|
+
title: "排列",
|
|
27
|
+
forward: "上移一層",
|
|
28
|
+
backward: "下移一層",
|
|
29
|
+
front: "至頂",
|
|
30
|
+
back: "至底"
|
|
31
31
|
},
|
|
32
32
|
transform: {
|
|
33
|
-
title: "
|
|
34
|
-
width: "
|
|
35
|
-
height: "
|
|
33
|
+
title: "變換",
|
|
34
|
+
width: "寬度 (px)",
|
|
35
|
+
height: "高度 (px)",
|
|
36
36
|
x: "X (px)",
|
|
37
37
|
y: "Y (px)",
|
|
38
|
-
rotate: "
|
|
38
|
+
rotate: "旋轉 (°)"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
panel: { fill: { title: "
|
|
41
|
+
panel: { fill: { title: "填色" } }
|
|
42
42
|
} };
|
|
43
43
|
|
|
44
44
|
//#endregion
|