@univerjs/docs-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.
Files changed (95) hide show
  1. package/lib/cjs/index.js +411 -280
  2. package/lib/cjs/locale/ar-SA.js +66 -0
  3. package/lib/cjs/locale/ca-ES.js +13 -7
  4. package/lib/cjs/locale/de-DE.js +66 -0
  5. package/lib/cjs/locale/en-US.js +13 -7
  6. package/lib/cjs/locale/es-ES.js +13 -7
  7. package/lib/cjs/locale/fa-IR.js +13 -7
  8. package/lib/cjs/locale/fr-FR.js +13 -7
  9. package/lib/cjs/locale/id-ID.js +66 -0
  10. package/lib/cjs/locale/it-IT.js +66 -0
  11. package/lib/cjs/locale/ja-JP.js +13 -7
  12. package/lib/cjs/locale/ko-KR.js +13 -7
  13. package/lib/cjs/locale/pl-PL.js +66 -0
  14. package/lib/cjs/locale/pt-BR.js +66 -0
  15. package/lib/cjs/locale/ru-RU.js +13 -7
  16. package/lib/cjs/locale/sk-SK.js +13 -7
  17. package/lib/cjs/locale/vi-VN.js +13 -7
  18. package/lib/cjs/locale/zh-CN.js +13 -7
  19. package/lib/cjs/locale/zh-HK.js +66 -0
  20. package/lib/cjs/locale/zh-TW.js +13 -7
  21. package/lib/es/index.js +413 -284
  22. package/lib/es/locale/ar-SA.js +65 -0
  23. package/lib/es/locale/ca-ES.js +13 -7
  24. package/lib/es/locale/de-DE.js +65 -0
  25. package/lib/es/locale/en-US.js +13 -7
  26. package/lib/es/locale/es-ES.js +13 -7
  27. package/lib/es/locale/fa-IR.js +13 -7
  28. package/lib/es/locale/fr-FR.js +13 -7
  29. package/lib/es/locale/id-ID.js +65 -0
  30. package/lib/es/locale/it-IT.js +65 -0
  31. package/lib/es/locale/ja-JP.js +13 -7
  32. package/lib/es/locale/ko-KR.js +13 -7
  33. package/lib/es/locale/pl-PL.js +65 -0
  34. package/lib/es/locale/pt-BR.js +65 -0
  35. package/lib/es/locale/ru-RU.js +13 -7
  36. package/lib/es/locale/sk-SK.js +13 -7
  37. package/lib/es/locale/vi-VN.js +13 -7
  38. package/lib/es/locale/zh-CN.js +13 -7
  39. package/lib/es/locale/zh-HK.js +65 -0
  40. package/lib/es/locale/zh-TW.js +13 -7
  41. package/lib/index.js +413 -284
  42. package/lib/locale/ar-SA.js +65 -0
  43. package/lib/locale/ca-ES.js +13 -7
  44. package/lib/locale/de-DE.js +65 -0
  45. package/lib/locale/en-US.js +13 -7
  46. package/lib/locale/es-ES.js +13 -7
  47. package/lib/locale/fa-IR.js +13 -7
  48. package/lib/locale/fr-FR.js +13 -7
  49. package/lib/locale/id-ID.js +65 -0
  50. package/lib/locale/it-IT.js +65 -0
  51. package/lib/locale/ja-JP.js +13 -7
  52. package/lib/locale/ko-KR.js +13 -7
  53. package/lib/locale/pl-PL.js +65 -0
  54. package/lib/locale/pt-BR.js +65 -0
  55. package/lib/locale/ru-RU.js +13 -7
  56. package/lib/locale/sk-SK.js +13 -7
  57. package/lib/locale/vi-VN.js +13 -7
  58. package/lib/locale/zh-CN.js +13 -7
  59. package/lib/locale/zh-HK.js +65 -0
  60. package/lib/locale/zh-TW.js +13 -7
  61. package/lib/types/commands/commands/update-doc-drawing.command.d.ts +8 -0
  62. package/lib/types/controllers/doc-drawing-transformer-update.controller.d.ts +13 -0
  63. package/lib/types/controllers/render-controllers/doc-drawing-transform-update.controller.d.ts +6 -1
  64. package/lib/types/controllers/render-controllers/doc-drawing-update.render-controller.d.ts +1 -0
  65. package/lib/types/index.d.ts +2 -0
  66. package/lib/types/locale/ar-SA.d.ts +18 -0
  67. package/lib/types/locale/de-DE.d.ts +18 -0
  68. package/lib/types/locale/en-US.d.ts +57 -49
  69. package/lib/types/locale/id-ID.d.ts +18 -0
  70. package/lib/types/locale/it-IT.d.ts +18 -0
  71. package/lib/types/locale/pl-PL.d.ts +18 -0
  72. package/lib/types/locale/pt-BR.d.ts +18 -0
  73. package/lib/types/locale/zh-HK.d.ts +18 -0
  74. package/lib/types/menu/drawing-popup-menu.controller.d.ts +5 -2
  75. package/lib/umd/index.js +1 -1
  76. package/lib/umd/locale/ar-SA.js +1 -0
  77. package/lib/umd/locale/ca-ES.js +1 -1
  78. package/lib/umd/locale/de-DE.js +1 -0
  79. package/lib/umd/locale/en-US.js +1 -1
  80. package/lib/umd/locale/es-ES.js +1 -1
  81. package/lib/umd/locale/fa-IR.js +1 -1
  82. package/lib/umd/locale/fr-FR.js +1 -1
  83. package/lib/umd/locale/id-ID.js +1 -0
  84. package/lib/umd/locale/it-IT.js +1 -0
  85. package/lib/umd/locale/ja-JP.js +1 -1
  86. package/lib/umd/locale/ko-KR.js +1 -1
  87. package/lib/umd/locale/pl-PL.js +1 -0
  88. package/lib/umd/locale/pt-BR.js +1 -0
  89. package/lib/umd/locale/ru-RU.js +1 -1
  90. package/lib/umd/locale/sk-SK.js +1 -1
  91. package/lib/umd/locale/vi-VN.js +1 -1
  92. package/lib/umd/locale/zh-CN.js +1 -1
  93. package/lib/umd/locale/zh-HK.js +1 -0
  94. package/lib/umd/locale/zh-TW.js +1 -1
  95. package/package.json +13 -13
@@ -1,10 +1,8 @@
1
1
  //#region src/locale/sk-SK.ts
2
- const locale = {
3
- docImage: {
4
- title: "Obrázok",
5
- upload: { float: "Vložiť obrázok" },
6
- panel: { title: "Upraviť obrázok" }
7
- },
2
+ const locale = { "docs-drawing-ui": {
3
+ title: "Obrázok",
4
+ upload: { float: "Vložiť obrázok" },
5
+ panel: { title: "Upraviť obrázok" },
8
6
  "image-popup": {
9
7
  replace: "Nahradiť",
10
8
  delete: "Odstrániť",
@@ -52,8 +50,16 @@ const locale = {
52
50
  invalidImageType: "Neplatný typ obrázka",
53
51
  exceedMaxCount: "Naraz možno nahrať iba {0} obrázkov",
54
52
  invalidImage: "Neplatný obrázok"
53
+ },
54
+ shortcut: {
55
+ "drawing-view": "Zobrazenie kresby",
56
+ "drawing-move-down": "Posunúť kresbu nadol",
57
+ "drawing-move-up": "Posunúť kresbu nahor",
58
+ "drawing-move-left": "Posunúť kresbu doľava",
59
+ "drawing-move-right": "Posunúť kresbu doprava",
60
+ "drawing-delete": "Odstrániť kresbu"
55
61
  }
56
- };
62
+ } };
57
63
 
58
64
  //#endregion
59
65
  export { locale as default };
@@ -1,10 +1,8 @@
1
1
  //#region src/locale/vi-VN.ts
2
- const locale = {
3
- docImage: {
4
- title: "Hình ảnh",
5
- upload: { float: "Chèn hình ảnh" },
6
- panel: { title: "Chỉnh sửa hình ảnh" }
7
- },
2
+ const locale = { "docs-drawing-ui": {
3
+ title: "Hình ảnh",
4
+ upload: { float: "Chèn hình ảnh" },
5
+ panel: { title: "Chỉnh sửa hình ảnh" },
8
6
  "image-popup": {
9
7
  replace: "Thay thế",
10
8
  delete: "Xóa",
@@ -52,8 +50,16 @@ const locale = {
52
50
  invalidImageType: "Loại hình ảnh không hợp lệ",
53
51
  exceedMaxCount: "Chỉ có thể tải lên tối đa {0} hình ảnh một lần",
54
52
  invalidImage: "Hình ảnh không hợp lệ"
53
+ },
54
+ shortcut: {
55
+ "drawing-view": "Chế độ xem bản vẽ",
56
+ "drawing-move-down": "Move Drawing down",
57
+ "drawing-move-up": "Move Drawing up",
58
+ "drawing-move-left": "Move Drawing left",
59
+ "drawing-move-right": "Move Drawing right",
60
+ "drawing-delete": "Delete Drawing"
55
61
  }
56
- };
62
+ } };
57
63
 
58
64
  //#endregion
59
65
  export { locale as default };
@@ -1,10 +1,8 @@
1
1
  //#region src/locale/zh-CN.ts
2
- const locale = {
3
- docImage: {
4
- title: "图片",
5
- upload: { float: "插入图片" },
6
- panel: { title: "编辑图片" }
7
- },
2
+ const locale = { "docs-drawing-ui": {
3
+ title: "图片",
4
+ upload: { float: "插入图片" },
5
+ panel: { title: "编辑图片" },
8
6
  "image-popup": {
9
7
  replace: "替换",
10
8
  delete: "删除",
@@ -52,8 +50,16 @@ const locale = {
52
50
  invalidImageType: "图片类型错误",
53
51
  exceedMaxCount: "图片只能一次上传{0}张",
54
52
  invalidImage: "无效图片"
53
+ },
54
+ shortcut: {
55
+ "drawing-view": "绘图视图",
56
+ "drawing-move-down": "下移绘图",
57
+ "drawing-move-up": "上移绘图",
58
+ "drawing-move-left": "左移绘图",
59
+ "drawing-move-right": "右移绘图",
60
+ "drawing-delete": "删除绘图"
55
61
  }
56
- };
62
+ } };
57
63
 
58
64
  //#endregion
59
65
  export { locale as default };
@@ -0,0 +1,65 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "docs-drawing-ui": {
3
+ title: "圖片",
4
+ upload: { float: "插入圖片" },
5
+ panel: { title: "編圖" },
6
+ "image-popup": {
7
+ replace: "替換",
8
+ delete: "刪除",
9
+ edit: "編輯",
10
+ crop: "裁切",
11
+ reset: "重置大小"
12
+ },
13
+ "image-text-wrap": {
14
+ title: "文繞圖",
15
+ wrappingStyle: "文繞圖方式",
16
+ square: "矩形",
17
+ topAndBottom: "上及下",
18
+ inline: "與文字排列",
19
+ behindText: "文字在前",
20
+ inFrontText: "文字在後",
21
+ wrapText: "自動換行",
22
+ bothSide: "兩側",
23
+ leftOnly: "僅左側",
24
+ rightOnly: "僅右側",
25
+ distanceFromText: "與文字距離",
26
+ top: "上(px)",
27
+ left: "左(px)",
28
+ bottom: "下(px)",
29
+ right: "右(px)"
30
+ },
31
+ "image-position": {
32
+ title: "位置",
33
+ horizontal: "水平",
34
+ vertical: "垂直",
35
+ absolutePosition: "絕對位置(px)",
36
+ relativePosition: "相對位置",
37
+ toTheRightOf: "右側",
38
+ relativeTo: "相對於",
39
+ bellow: "下方",
40
+ options: "選項",
41
+ moveObjectWithText: "物件隨文字移動",
42
+ column: "欄",
43
+ margin: "邊界",
44
+ page: "頁面",
45
+ line: "行",
46
+ paragraph: "段落"
47
+ },
48
+ "update-status": {
49
+ exceedMaxSize: "圖片大小超過限制, 限制為{0}M",
50
+ invalidImageType: "圖片類型錯誤",
51
+ exceedMaxCount: "圖片只能一次上傳{0}張",
52
+ invalidImage: "無效圖片"
53
+ },
54
+ shortcut: {
55
+ "drawing-view": "繪圖檢視",
56
+ "drawing-move-down": "下移繪圖",
57
+ "drawing-move-up": "上移繪圖",
58
+ "drawing-move-left": "左移繪圖",
59
+ "drawing-move-right": "右移繪圖",
60
+ "drawing-delete": "刪除繪圖"
61
+ }
62
+ } };
63
+
64
+ //#endregion
65
+ export { locale as default };
@@ -1,10 +1,8 @@
1
1
  //#region src/locale/zh-TW.ts
2
- const locale = {
3
- docImage: {
4
- title: "圖片",
5
- upload: { float: "插入圖片" },
6
- panel: { title: "編圖" }
7
- },
2
+ const locale = { "docs-drawing-ui": {
3
+ title: "圖片",
4
+ upload: { float: "插入圖片" },
5
+ panel: { title: "編圖" },
8
6
  "image-popup": {
9
7
  replace: "替換",
10
8
  delete: "刪除",
@@ -52,8 +50,16 @@ const locale = {
52
50
  invalidImageType: "圖片類型錯誤",
53
51
  exceedMaxCount: "圖片只能一次上傳{0}張",
54
52
  invalidImage: "無效圖片"
53
+ },
54
+ shortcut: {
55
+ "drawing-view": "繪圖檢視",
56
+ "drawing-move-down": "下移繪圖",
57
+ "drawing-move-up": "上移繪圖",
58
+ "drawing-move-left": "左移繪圖",
59
+ "drawing-move-right": "右移繪圖",
60
+ "drawing-delete": "刪除繪圖"
55
61
  }
56
- };
62
+ } };
57
63
 
58
64
  //#endregion
59
65
  export { locale as default };
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { ICommand, IDocDrawingBase, IDocDrawingPosition, IObjectPositionH, IObjectPositionV, ISize } from '@univerjs/core';
17
+ import type { IDocumentSkeletonDrawing, IDocumentSkeletonHeaderFooter, IDocumentSkeletonPage } from '@univerjs/engine-render';
17
18
  export declare enum TextWrappingStyle {
18
19
  INLINE = "inline",
19
20
  BEHIND_TEXT = "behindText",
@@ -21,6 +22,12 @@ export declare enum TextWrappingStyle {
21
22
  WRAP_SQUARE = "wrapSquare",
22
23
  WRAP_TOP_AND_BOTTOM = "wrapTopAndBottom"
23
24
  }
25
+ interface IDrawingAnchorInPage {
26
+ skeDrawing: IDocumentSkeletonDrawing;
27
+ pageMarginTop: number;
28
+ pageMarginLeft: number;
29
+ }
30
+ export declare function findDrawingAnchorInPage(page: IDocumentSkeletonPage | IDocumentSkeletonHeaderFooter, drawingId: string, pageMarginTop: number, pageMarginLeft: number): IDrawingAnchorInPage | null;
24
31
  /**
25
32
  * The command to update drawing wrapping style.
26
33
  */
@@ -73,3 +80,4 @@ export interface ITransformNonInlineDrawingParams {
73
80
  * The command to transform non-inline drawing.
74
81
  */
75
82
  export declare const ITransformNonInlineDrawingCommand: ICommand;
83
+ export {};
@@ -13,9 +13,22 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import type { Nullable } from '@univerjs/core';
17
+ import type { IDocumentSkeletonPage, IDocumentSkeletonRow, IDocumentSkeletonTable } from '@univerjs/engine-render';
16
18
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
19
  import { IDrawingManagerService } from '@univerjs/drawing';
18
20
  import { IRenderManagerService } from '@univerjs/engine-render';
21
+ export interface IDocsTableCellAnchorContext {
22
+ cell: IDocumentSkeletonPage;
23
+ hostPage: IDocumentSkeletonPage;
24
+ offset: {
25
+ left: number;
26
+ top: number;
27
+ };
28
+ row: IDocumentSkeletonRow;
29
+ table: IDocumentSkeletonTable;
30
+ }
31
+ export declare function getDocsTableCellAnchorContext(unitId: string, cell: IDocumentSkeletonPage): Nullable<IDocsTableCellAnchorContext>;
19
32
  export declare class DocDrawingTransformerController extends Disposable {
20
33
  private readonly _commandService;
21
34
  private readonly _univerInstanceService;
@@ -14,12 +14,16 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { DocumentDataModel } from '@univerjs/core';
17
- import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
17
+ import type { IDocumentSkeletonPage, IDocumentSkeletonRow, IDocumentSkeletonTable, IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
18
  import { Disposable, ICommandService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
19
19
  import { DocSkeletonManagerService } from '@univerjs/docs';
20
20
  import { IEditorService } from '@univerjs/docs-ui';
21
21
  import { IDrawingManagerService } from '@univerjs/drawing';
22
22
  import { DocRefreshDrawingsService } from '../../services/doc-refresh-drawings.service';
23
+ export declare function getDocsTableCellDrawingOffset(unitId: string, table: IDocumentSkeletonTable, row: IDocumentSkeletonRow, cell: IDocumentSkeletonPage): {
24
+ left: number;
25
+ top: number;
26
+ };
23
27
  export declare class DocDrawingTransformUpdateController extends Disposable implements IRenderModule {
24
28
  private readonly _context;
25
29
  private readonly _docSkeletonManagerService;
@@ -38,5 +42,6 @@ export declare class DocDrawingTransformUpdateController extends Disposable impl
38
42
  private _refreshDrawing;
39
43
  private _handleMultiDrawingsTransform;
40
44
  private _calculateDrawingPosition;
45
+ private _calculateTableCellDrawingPositions;
41
46
  private _drawingInitializeListener;
42
47
  }
@@ -43,6 +43,7 @@ export declare class DocDrawingUpdateRenderController extends Disposable impleme
43
43
  private _insertFloatImages;
44
44
  private _isInsertInHeaderFooter;
45
45
  private _getImagePosition;
46
+ private _getCurrentImageInsertPosition;
46
47
  private _updateOrderListener;
47
48
  private _groupDrawingListener;
48
49
  private _getCurrentSceneAndTransformer;
@@ -29,3 +29,5 @@ export { type IUniverDocsDrawingUIConfig } from './config/config';
29
29
  export { DocFloatDomController } from './controllers/doc-float-dom.controller';
30
30
  export { DOCS_IMAGE_MENU_ID } from './menu/image.menu';
31
31
  export { UniverDocsDrawingUIPlugin } from './plugin';
32
+ export { DocDrawingPosition } from './views/doc-image-panel/DocDrawingPosition';
33
+ export { DocDrawingTextWrap } from './views/doc-image-panel/DocDrawingTextWrap';
@@ -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,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  declare const locale: {
17
- docImage: {
17
+ 'docs-drawing-ui': {
18
18
  title: string;
19
19
  upload: {
20
20
  float: string;
@@ -22,54 +22,62 @@ declare const locale: {
22
22
  panel: {
23
23
  title: string;
24
24
  };
25
- };
26
- 'image-popup': {
27
- replace: string;
28
- delete: string;
29
- edit: string;
30
- crop: string;
31
- reset: string;
32
- };
33
- 'image-text-wrap': {
34
- title: string;
35
- wrappingStyle: string;
36
- square: string;
37
- topAndBottom: string;
38
- inline: string;
39
- behindText: string;
40
- inFrontText: string;
41
- wrapText: string;
42
- bothSide: string;
43
- leftOnly: string;
44
- rightOnly: string;
45
- distanceFromText: string;
46
- top: string;
47
- left: string;
48
- bottom: string;
49
- right: string;
50
- };
51
- 'image-position': {
52
- title: string;
53
- horizontal: string;
54
- vertical: string;
55
- absolutePosition: string;
56
- relativePosition: string;
57
- toTheRightOf: string;
58
- relativeTo: string;
59
- bellow: string;
60
- options: string;
61
- moveObjectWithText: string;
62
- column: string;
63
- margin: string;
64
- page: string;
65
- line: string;
66
- paragraph: string;
67
- };
68
- 'update-status': {
69
- exceedMaxSize: string;
70
- invalidImageType: string;
71
- exceedMaxCount: string;
72
- invalidImage: string;
25
+ 'image-popup': {
26
+ replace: string;
27
+ delete: string;
28
+ edit: string;
29
+ crop: string;
30
+ reset: string;
31
+ };
32
+ 'image-text-wrap': {
33
+ title: string;
34
+ wrappingStyle: string;
35
+ square: string;
36
+ topAndBottom: string;
37
+ inline: string;
38
+ behindText: string;
39
+ inFrontText: string;
40
+ wrapText: string;
41
+ bothSide: string;
42
+ leftOnly: string;
43
+ rightOnly: string;
44
+ distanceFromText: string;
45
+ top: string;
46
+ left: string;
47
+ bottom: string;
48
+ right: string;
49
+ };
50
+ 'image-position': {
51
+ title: string;
52
+ horizontal: string;
53
+ vertical: string;
54
+ absolutePosition: string;
55
+ relativePosition: string;
56
+ toTheRightOf: string;
57
+ relativeTo: string;
58
+ bellow: string;
59
+ options: string;
60
+ moveObjectWithText: string;
61
+ column: string;
62
+ margin: string;
63
+ page: string;
64
+ line: string;
65
+ paragraph: string;
66
+ };
67
+ 'update-status': {
68
+ exceedMaxSize: string;
69
+ invalidImageType: string;
70
+ exceedMaxCount: string;
71
+ invalidImage: string;
72
+ };
73
+ shortcut: {
74
+ 'drawing-view': string;
75
+ 'drawing-move-down': string;
76
+ 'drawing-move-up': string;
77
+ 'drawing-move-left': string;
78
+ 'drawing-move-right': string;
79
+ 'drawing-delete': string;
80
+ };
73
81
  };
74
82
  };
75
83
  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,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
16
+ import { ICommandService, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
17
  import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
18
18
  import { IDrawingManagerService } from '@univerjs/drawing';
19
19
  import { IRenderManagerService } from '@univerjs/engine-render';
@@ -23,11 +23,14 @@ export declare class DocDrawingPopupMenuController extends RxDisposable {
23
23
  private readonly _renderManagerService;
24
24
  private readonly _univerInstanceService;
25
25
  private readonly _contextService;
26
+ private readonly _commandService;
26
27
  private _initImagePopupMenu;
27
28
  private _disposePopups;
28
- constructor(_drawingManagerService: IDrawingManagerService, _canvasPopManagerService: DocCanvasPopManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _contextService: IContextService);
29
+ private _isDrawingPanelOpen;
30
+ constructor(_drawingManagerService: IDrawingManagerService, _canvasPopManagerService: DocCanvasPopManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _contextService: IContextService, _commandService: ICommandService);
29
31
  private _init;
30
32
  private _dispose;
33
+ private _clearPopups;
31
34
  private _create;
32
35
  private _hasCropObject;
33
36
  private _popupMenuListener;