@univerjs/drawing-ui 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +309 -56
- package/lib/cjs/locale/ar-SA.js +74 -0
- package/lib/cjs/locale/ca-ES.js +27 -19
- package/lib/cjs/locale/de-DE.js +74 -0
- package/lib/cjs/locale/en-US.js +27 -19
- package/lib/cjs/locale/es-ES.js +27 -19
- package/lib/cjs/locale/fa-IR.js +27 -19
- package/lib/cjs/locale/fr-FR.js +27 -19
- package/lib/cjs/locale/id-ID.js +74 -0
- package/lib/cjs/locale/it-IT.js +74 -0
- package/lib/cjs/locale/ja-JP.js +27 -19
- package/lib/cjs/locale/ko-KR.js +27 -19
- package/lib/cjs/locale/pl-PL.js +74 -0
- package/lib/cjs/locale/pt-BR.js +74 -0
- package/lib/cjs/locale/ru-RU.js +27 -19
- package/lib/cjs/locale/sk-SK.js +27 -19
- package/lib/cjs/locale/vi-VN.js +27 -19
- package/lib/cjs/locale/zh-CN.js +27 -19
- package/lib/cjs/locale/zh-HK.js +74 -0
- package/lib/cjs/locale/zh-TW.js +27 -19
- package/lib/es/index.js +312 -59
- package/lib/es/locale/ar-SA.js +73 -0
- package/lib/es/locale/ca-ES.js +27 -19
- package/lib/es/locale/de-DE.js +73 -0
- package/lib/es/locale/en-US.js +27 -19
- package/lib/es/locale/es-ES.js +27 -19
- package/lib/es/locale/fa-IR.js +27 -19
- package/lib/es/locale/fr-FR.js +27 -19
- package/lib/es/locale/id-ID.js +73 -0
- package/lib/es/locale/it-IT.js +73 -0
- package/lib/es/locale/ja-JP.js +27 -19
- package/lib/es/locale/ko-KR.js +27 -19
- package/lib/es/locale/pl-PL.js +73 -0
- package/lib/es/locale/pt-BR.js +73 -0
- package/lib/es/locale/ru-RU.js +27 -19
- package/lib/es/locale/sk-SK.js +27 -19
- package/lib/es/locale/vi-VN.js +27 -19
- package/lib/es/locale/zh-CN.js +27 -19
- package/lib/es/locale/zh-HK.js +73 -0
- package/lib/es/locale/zh-TW.js +27 -19
- package/lib/index.css +183 -0
- package/lib/index.js +312 -59
- package/lib/locale/ar-SA.js +73 -0
- package/lib/locale/ca-ES.js +27 -19
- package/lib/locale/de-DE.js +73 -0
- package/lib/locale/en-US.js +27 -19
- package/lib/locale/es-ES.js +27 -19
- package/lib/locale/fa-IR.js +27 -19
- package/lib/locale/fr-FR.js +27 -19
- package/lib/locale/id-ID.js +73 -0
- package/lib/locale/it-IT.js +73 -0
- package/lib/locale/ja-JP.js +27 -19
- package/lib/locale/ko-KR.js +27 -19
- package/lib/locale/pl-PL.js +73 -0
- package/lib/locale/pt-BR.js +73 -0
- package/lib/locale/ru-RU.js +27 -19
- package/lib/locale/sk-SK.js +27 -19
- package/lib/locale/vi-VN.js +27 -19
- package/lib/locale/zh-CN.js +27 -19
- package/lib/locale/zh-HK.js +73 -0
- package/lib/locale/zh-TW.js +27 -19
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +63 -53
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/views/image-popup-menu/ImagePopupMenu.d.ts +5 -2
- package/lib/umd/index.js +4 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- 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 -0
- package/lib/umd/locale/it-IT.js +1 -0
- 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 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- 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 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
//#region src/locale/zh-TW.ts
|
|
2
|
-
const locale = {
|
|
3
|
-
"image-popup": {
|
|
4
|
-
replace: "替換",
|
|
5
|
-
delete: "刪除",
|
|
6
|
-
edit: "編輯",
|
|
7
|
-
crop: "裁切",
|
|
8
|
-
reset: "重置大小"
|
|
9
|
-
},
|
|
2
|
+
const locale = { "drawing-ui": {
|
|
10
3
|
"image-cropper": { error: "無法裁切非圖片元素" },
|
|
11
4
|
"image-panel": {
|
|
12
5
|
arrange: {
|
|
@@ -28,13 +21,11 @@ const locale = {
|
|
|
28
21
|
crop: {
|
|
29
22
|
title: "裁切",
|
|
30
23
|
start: "開始裁切",
|
|
31
|
-
mode: "自由比例裁切"
|
|
32
|
-
shape: "裁切為形狀"
|
|
24
|
+
mode: "自由比例裁切"
|
|
33
25
|
},
|
|
34
26
|
group: {
|
|
35
27
|
title: "組合",
|
|
36
28
|
group: "組合",
|
|
37
|
-
reGroup: "重新組合",
|
|
38
29
|
unGroup: "取消組合"
|
|
39
30
|
},
|
|
40
31
|
align: {
|
|
@@ -51,15 +42,32 @@ const locale = {
|
|
|
51
42
|
},
|
|
52
43
|
null: "未選取任何物件"
|
|
53
44
|
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
"image-text-wrap": {
|
|
46
|
+
title: "文繞圖",
|
|
47
|
+
wrappingStyle: "文繞圖方式",
|
|
48
|
+
square: "矩形",
|
|
49
|
+
topAndBottom: "上及下",
|
|
50
|
+
inline: "與文字排列",
|
|
51
|
+
behindText: "文字在前",
|
|
52
|
+
inFrontText: "文字在後",
|
|
53
|
+
wrapText: "自動換行",
|
|
54
|
+
bothSide: "兩側",
|
|
55
|
+
leftOnly: "僅左側",
|
|
56
|
+
rightOnly: "僅右側",
|
|
57
|
+
distanceFromText: "與文字距離",
|
|
58
|
+
top: "上(px)",
|
|
59
|
+
left: "左(px)",
|
|
60
|
+
bottom: "下(px)",
|
|
61
|
+
right: "右(px)"
|
|
62
|
+
},
|
|
63
|
+
"image-popup": {
|
|
64
|
+
replace: "替換",
|
|
65
|
+
delete: "刪除",
|
|
66
|
+
edit: "編輯",
|
|
67
|
+
crop: "裁切",
|
|
68
|
+
reset: "重置大小"
|
|
61
69
|
}
|
|
62
|
-
};
|
|
70
|
+
} };
|
|
63
71
|
|
|
64
72
|
//#endregion
|
|
65
73
|
export { locale as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -14,66 +14,76 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
declare const locale: {
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
edit: string;
|
|
21
|
-
crop: string;
|
|
22
|
-
reset: string;
|
|
23
|
-
};
|
|
24
|
-
'image-cropper': {
|
|
25
|
-
error: string;
|
|
26
|
-
};
|
|
27
|
-
'image-panel': {
|
|
28
|
-
arrange: {
|
|
29
|
-
title: string;
|
|
30
|
-
forward: string;
|
|
31
|
-
backward: string;
|
|
32
|
-
front: string;
|
|
33
|
-
back: string;
|
|
17
|
+
'drawing-ui': {
|
|
18
|
+
'image-cropper': {
|
|
19
|
+
error: string;
|
|
34
20
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
21
|
+
'image-panel': {
|
|
22
|
+
arrange: {
|
|
23
|
+
title: string;
|
|
24
|
+
forward: string;
|
|
25
|
+
backward: string;
|
|
26
|
+
front: string;
|
|
27
|
+
back: string;
|
|
28
|
+
};
|
|
29
|
+
transform: {
|
|
30
|
+
title: string;
|
|
31
|
+
rotate: string;
|
|
32
|
+
x: string;
|
|
33
|
+
y: string;
|
|
34
|
+
width: string;
|
|
35
|
+
height: string;
|
|
36
|
+
lock: string;
|
|
37
|
+
};
|
|
38
|
+
crop: {
|
|
39
|
+
title: string;
|
|
40
|
+
start: string;
|
|
41
|
+
mode: string;
|
|
42
|
+
};
|
|
43
|
+
group: {
|
|
44
|
+
title: string;
|
|
45
|
+
group: string;
|
|
46
|
+
unGroup: string;
|
|
47
|
+
};
|
|
48
|
+
align: {
|
|
49
|
+
title: string;
|
|
50
|
+
default: string;
|
|
51
|
+
left: string;
|
|
52
|
+
center: string;
|
|
53
|
+
right: string;
|
|
54
|
+
top: string;
|
|
55
|
+
middle: string;
|
|
56
|
+
bottom: string;
|
|
57
|
+
horizon: string;
|
|
58
|
+
vertical: string;
|
|
59
|
+
};
|
|
60
|
+
null: string;
|
|
49
61
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
'image-popup': {
|
|
63
|
+
replace: string;
|
|
64
|
+
delete: string;
|
|
65
|
+
edit: string;
|
|
66
|
+
crop: string;
|
|
67
|
+
reset: string;
|
|
55
68
|
};
|
|
56
|
-
|
|
69
|
+
'image-text-wrap': {
|
|
57
70
|
title: string;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
wrappingStyle: string;
|
|
72
|
+
square: string;
|
|
73
|
+
topAndBottom: string;
|
|
74
|
+
inline: string;
|
|
75
|
+
behindText: string;
|
|
76
|
+
inFrontText: string;
|
|
77
|
+
wrapText: string;
|
|
78
|
+
bothSide: string;
|
|
79
|
+
leftOnly: string;
|
|
80
|
+
rightOnly: string;
|
|
81
|
+
distanceFromText: string;
|
|
62
82
|
top: string;
|
|
63
|
-
|
|
83
|
+
left: string;
|
|
64
84
|
bottom: string;
|
|
65
|
-
|
|
66
|
-
vertical: string;
|
|
85
|
+
right: string;
|
|
67
86
|
};
|
|
68
|
-
null: string;
|
|
69
|
-
};
|
|
70
|
-
'drawing-view': string;
|
|
71
|
-
shortcut: {
|
|
72
|
-
'drawing-move-down': string;
|
|
73
|
-
'drawing-move-up': string;
|
|
74
|
-
'drawing-move-left': string;
|
|
75
|
-
'drawing-move-right': string;
|
|
76
|
-
'drawing-delete': string;
|
|
77
87
|
};
|
|
78
88
|
};
|
|
79
89
|
export default locale;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type enUS from './en-US';
|
|
17
|
+
declare const locale: typeof enUS;
|
|
18
|
+
export default locale;
|
|
@@ -13,16 +13,19 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IDrawingSearch } from '@univerjs/core';
|
|
17
16
|
export interface IImagePopupMenuItem {
|
|
18
17
|
label: string;
|
|
19
18
|
index: number;
|
|
20
19
|
commandId: string;
|
|
21
|
-
commandParams?:
|
|
20
|
+
commandParams?: object;
|
|
22
21
|
disable: boolean;
|
|
23
22
|
}
|
|
24
23
|
export interface IImagePopupMenuExtraProps {
|
|
25
24
|
menuItems: IImagePopupMenuItem[];
|
|
25
|
+
variant?: 'doc-floating-toolbar';
|
|
26
|
+
unitId?: string;
|
|
27
|
+
subUnitId?: string;
|
|
28
|
+
drawingId?: string;
|
|
26
29
|
}
|
|
27
30
|
export interface IImagePopupMenuProps {
|
|
28
31
|
popup: {
|