@cool-office/drawing-ui 0.0.0-stage → 1.2.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 (155) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +40 -2
  3. package/lib/cjs/index.js +5691 -0
  4. package/lib/cjs/locale/ar-SA.js +110 -0
  5. package/lib/cjs/locale/ca-ES.js +110 -0
  6. package/lib/cjs/locale/de-DE.js +110 -0
  7. package/lib/cjs/locale/en-US.js +125 -0
  8. package/lib/cjs/locale/es-ES.js +110 -0
  9. package/lib/cjs/locale/fa-IR.js +110 -0
  10. package/lib/cjs/locale/fr-FR.js +110 -0
  11. package/lib/cjs/locale/id-ID.js +110 -0
  12. package/lib/cjs/locale/it-IT.js +110 -0
  13. package/lib/cjs/locale/ja-JP.js +110 -0
  14. package/lib/cjs/locale/ko-KR.js +110 -0
  15. package/lib/cjs/locale/pl-PL.js +110 -0
  16. package/lib/cjs/locale/pt-BR.js +110 -0
  17. package/lib/cjs/locale/ru-RU.js +110 -0
  18. package/lib/cjs/locale/sk-SK.js +110 -0
  19. package/lib/cjs/locale/vi-VN.js +110 -0
  20. package/lib/cjs/locale/zh-CN.js +110 -0
  21. package/lib/cjs/locale/zh-HK.js +110 -0
  22. package/lib/cjs/locale/zh-TW.js +110 -0
  23. package/lib/es/index.js +5637 -0
  24. package/lib/es/locale/ar-SA.js +110 -0
  25. package/lib/es/locale/ca-ES.js +110 -0
  26. package/lib/es/locale/de-DE.js +110 -0
  27. package/lib/es/locale/en-US.js +125 -0
  28. package/lib/es/locale/es-ES.js +110 -0
  29. package/lib/es/locale/fa-IR.js +110 -0
  30. package/lib/es/locale/fr-FR.js +110 -0
  31. package/lib/es/locale/id-ID.js +110 -0
  32. package/lib/es/locale/it-IT.js +110 -0
  33. package/lib/es/locale/ja-JP.js +110 -0
  34. package/lib/es/locale/ko-KR.js +110 -0
  35. package/lib/es/locale/pl-PL.js +110 -0
  36. package/lib/es/locale/pt-BR.js +110 -0
  37. package/lib/es/locale/ru-RU.js +110 -0
  38. package/lib/es/locale/sk-SK.js +110 -0
  39. package/lib/es/locale/vi-VN.js +110 -0
  40. package/lib/es/locale/zh-CN.js +110 -0
  41. package/lib/es/locale/zh-HK.js +110 -0
  42. package/lib/es/locale/zh-TW.js +110 -0
  43. package/lib/index.css +738 -0
  44. package/lib/index.js +5637 -0
  45. package/lib/locale/ar-SA.js +110 -0
  46. package/lib/locale/ca-ES.js +110 -0
  47. package/lib/locale/de-DE.js +110 -0
  48. package/lib/locale/en-US.js +125 -0
  49. package/lib/locale/es-ES.js +110 -0
  50. package/lib/locale/fa-IR.js +110 -0
  51. package/lib/locale/fr-FR.js +110 -0
  52. package/lib/locale/id-ID.js +110 -0
  53. package/lib/locale/it-IT.js +110 -0
  54. package/lib/locale/ja-JP.js +110 -0
  55. package/lib/locale/ko-KR.js +110 -0
  56. package/lib/locale/pl-PL.js +110 -0
  57. package/lib/locale/pt-BR.js +110 -0
  58. package/lib/locale/ru-RU.js +110 -0
  59. package/lib/locale/sk-SK.js +110 -0
  60. package/lib/locale/vi-VN.js +110 -0
  61. package/lib/locale/zh-CN.js +110 -0
  62. package/lib/locale/zh-HK.js +110 -0
  63. package/lib/locale/zh-TW.js +110 -0
  64. package/lib/types/commands/operations/drawing-align.operation.d.ts +43 -0
  65. package/lib/types/commands/operations/drawing-arrange.operation.d.ts +29 -0
  66. package/lib/types/commands/operations/drawing-group.operation.d.ts +37 -0
  67. package/lib/types/commands/operations/image-crop.operation.d.ts +38 -0
  68. package/lib/types/commands/operations/image-reset-size.operation.d.ts +17 -0
  69. package/lib/types/config/config.d.ts +22 -0
  70. package/lib/types/controllers/components.controller.d.ts +24 -0
  71. package/lib/types/controllers/drawing-update.controller.d.ts +49 -0
  72. package/lib/types/controllers/image-cropper.controller.d.ts +51 -0
  73. package/lib/types/controllers/image-update.controller.d.ts +37 -0
  74. package/lib/types/controllers/mobile/components.controller.d.ts +20 -0
  75. package/lib/types/controllers/mobile/image-cropper.controller.d.ts +51 -0
  76. package/lib/types/controllers/mobile/image-update.controller.d.ts +39 -0
  77. package/lib/types/controllers/mobile/ui.controller.d.ts +27 -0
  78. package/lib/types/controllers/ui.controller.d.ts +25 -0
  79. package/lib/types/controllers/utils.d.ts +31 -0
  80. package/lib/types/index.d.ts +43 -0
  81. package/lib/types/locale/ar-SA.d.ts +18 -0
  82. package/lib/types/locale/ca-ES.d.ts +18 -0
  83. package/lib/types/locale/de-DE.d.ts +18 -0
  84. package/lib/types/locale/en-US.d.ts +126 -0
  85. package/lib/types/locale/es-ES.d.ts +18 -0
  86. package/lib/types/locale/fa-IR.d.ts +18 -0
  87. package/lib/types/locale/fr-FR.d.ts +18 -0
  88. package/lib/types/locale/id-ID.d.ts +18 -0
  89. package/lib/types/locale/it-IT.d.ts +18 -0
  90. package/lib/types/locale/ja-JP.d.ts +18 -0
  91. package/lib/types/locale/ko-KR.d.ts +18 -0
  92. package/lib/types/locale/pl-PL.d.ts +18 -0
  93. package/lib/types/locale/pt-BR.d.ts +18 -0
  94. package/lib/types/locale/ru-RU.d.ts +18 -0
  95. package/lib/types/locale/sk-SK.d.ts +18 -0
  96. package/lib/types/locale/types.d.ts +18 -0
  97. package/lib/types/locale/vi-VN.d.ts +18 -0
  98. package/lib/types/locale/zh-CN.d.ts +18 -0
  99. package/lib/types/locale/zh-HK.d.ts +18 -0
  100. package/lib/types/locale/zh-TW.d.ts +18 -0
  101. package/lib/types/menu/align.menu.d.ts +28 -0
  102. package/lib/types/menu/arrange.menu.d.ts +24 -0
  103. package/lib/types/menu/group.menu.d.ts +22 -0
  104. package/lib/types/menu/schema.d.ts +17 -0
  105. package/lib/types/mobile-plugin.d.ts +29 -0
  106. package/lib/types/plugin.d.ts +29 -0
  107. package/lib/types/services/drawing-image-clip.service.d.ts +48 -0
  108. package/lib/types/services/drawing-render.service.d.ts +52 -0
  109. package/lib/types/utils/clipboard-image.d.ts +25 -0
  110. package/lib/types/utils/config.d.ts +18 -0
  111. package/lib/types/utils/get-update-params.d.ts +19 -0
  112. package/lib/types/utils/image-crop-transform.d.ts +31 -0
  113. package/lib/types/utils/rotate-enabled.d.ts +19 -0
  114. package/lib/types/views/crop/MobileCropActions.d.ts +16 -0
  115. package/lib/types/views/crop/image-cropper-object.d.ts +49 -0
  116. package/lib/types/views/image-popup-menu/ImagePopupMenu.d.ts +46 -0
  117. package/lib/types/views/image-popup-menu/MobileImagePopupMenu.d.ts +26 -0
  118. package/lib/types/views/image-popup-menu/component-name.d.ts +17 -0
  119. package/lib/types/views/image-preview/mobile-image-preview-button.d.ts +37 -0
  120. package/lib/types/views/object-list-panel/MobileObjectListPanel.d.ts +17 -0
  121. package/lib/types/views/object-list-panel/ObjectListPanelBase.d.ts +174 -0
  122. package/lib/types/views/object-list-panel/object-list-panel-layer.d.ts +21 -0
  123. package/lib/types/views/panel/DrawingAlign.d.ts +21 -0
  124. package/lib/types/views/panel/DrawingArrange.d.ts +21 -0
  125. package/lib/types/views/panel/DrawingCommonPanel.d.ts +26 -0
  126. package/lib/types/views/panel/DrawingGroup.d.ts +21 -0
  127. package/lib/types/views/panel/DrawingTransform.d.ts +21 -0
  128. package/lib/types/views/panel/ImageCropper.d.ts +22 -0
  129. package/lib/types/views/panel/MobileDrawingArrange.d.ts +22 -0
  130. package/lib/types/views/panel/MobileDrawingControls.d.ts +32 -0
  131. package/lib/types/views/panel/MobileImageCropper.d.ts +17 -0
  132. package/lib/types/views/panel/component-name.d.ts +20 -0
  133. package/lib/types/views/panel/drawing-transform-rotation.d.ts +26 -0
  134. package/lib/types/views/panel/use-image-cropper.d.ts +31 -0
  135. package/lib/umd/index.js +13 -0
  136. package/lib/umd/locale/ar-SA.js +1 -0
  137. package/lib/umd/locale/ca-ES.js +1 -0
  138. package/lib/umd/locale/de-DE.js +1 -0
  139. package/lib/umd/locale/en-US.js +1 -0
  140. package/lib/umd/locale/es-ES.js +1 -0
  141. package/lib/umd/locale/fa-IR.js +1 -0
  142. package/lib/umd/locale/fr-FR.js +1 -0
  143. package/lib/umd/locale/id-ID.js +1 -0
  144. package/lib/umd/locale/it-IT.js +1 -0
  145. package/lib/umd/locale/ja-JP.js +1 -0
  146. package/lib/umd/locale/ko-KR.js +1 -0
  147. package/lib/umd/locale/pl-PL.js +1 -0
  148. package/lib/umd/locale/pt-BR.js +1 -0
  149. package/lib/umd/locale/ru-RU.js +1 -0
  150. package/lib/umd/locale/sk-SK.js +1 -0
  151. package/lib/umd/locale/vi-VN.js +1 -0
  152. package/lib/umd/locale/zh-CN.js +1 -0
  153. package/lib/umd/locale/zh-HK.js +1 -0
  154. package/lib/umd/locale/zh-TW.js +1 -0
  155. package/package.json +84 -3
@@ -0,0 +1,110 @@
1
+ //#region src/locale/zh-TW.ts
2
+ const locale = { "drawing-ui": {
3
+ mobile: {
4
+ close: "關閉",
5
+ more: "更多"
6
+ },
7
+ "image-cropper": { error: "無法裁切非圖片元素" },
8
+ objectListPanel: {
9
+ title: "圖層",
10
+ empty: "暫無物件",
11
+ showAll: "全部顯示",
12
+ hideAll: "全部隱藏",
13
+ lockAll: "全部鎖定",
14
+ unlockAll: "全部解鎖",
15
+ moveForward: "上移一層",
16
+ moveBackward: "下移一層",
17
+ close: "關閉",
18
+ show: "顯示",
19
+ hide: "隱藏",
20
+ lock: "鎖定",
21
+ unlock: "解鎖",
22
+ lockHint: "鎖定,防止誤選",
23
+ unlockHint: "已鎖定,點擊解鎖",
24
+ name: "名稱",
25
+ nameInput: "物件名稱",
26
+ description: "描述",
27
+ descriptionPlaceholder: "新增描述",
28
+ details: "詳細資料",
29
+ locate: "定位",
30
+ expand: "展開",
31
+ collapse: "摺疊",
32
+ dragToReorder: "拖曳調整圖層",
33
+ search: "搜尋物件",
34
+ filterAll: "全部",
35
+ filterHidden: "隱藏",
36
+ filterLocked: "鎖定",
37
+ sectionCanvas: "畫布層",
38
+ sectionFloating: "浮動層",
39
+ typeNames: {
40
+ object: "物件",
41
+ shape: "形狀",
42
+ connector: "連接線",
43
+ image: "圖片",
44
+ chart: "圖表",
45
+ table: "表格",
46
+ smartArt: "SmartArt",
47
+ video: "影片",
48
+ group: "群組",
49
+ unit: "單元",
50
+ dom: "DOM",
51
+ text: "文字",
52
+ placeholder: "預留位置",
53
+ container: "容器"
54
+ },
55
+ noSelection: "請選取一個物件以編輯詳細資訊"
56
+ },
57
+ "image-panel": {
58
+ arrange: {
59
+ title: "排列",
60
+ forward: "上移一層",
61
+ backward: "下移一層",
62
+ front: "置於頂層",
63
+ back: "置於底層"
64
+ },
65
+ transform: {
66
+ title: "變換",
67
+ rotate: "旋轉 (°)",
68
+ x: "X (px)",
69
+ y: "Y (px)",
70
+ width: "寬度 (px)",
71
+ height: "高度 (px)",
72
+ lock: "鎖定比例 (%)"
73
+ },
74
+ crop: {
75
+ cancel: "取消",
76
+ apply: "完成",
77
+ title: "裁切",
78
+ start: "開始裁切",
79
+ mode: "自由比例裁切"
80
+ },
81
+ group: {
82
+ title: "組合",
83
+ group: "組合",
84
+ unGroup: "取消組合"
85
+ },
86
+ align: {
87
+ title: "對齊方式",
88
+ default: "選擇對齊方式",
89
+ left: "左對齊",
90
+ center: "水平居中",
91
+ right: "右對齊",
92
+ top: "頂部對齊",
93
+ middle: "垂直居中",
94
+ bottom: "底部對齊",
95
+ horizon: "水平分佈",
96
+ vertical: "垂直分佈"
97
+ },
98
+ null: "未選取任何物件"
99
+ },
100
+ "image-text-wrap": {
101
+ square: "矩形",
102
+ topAndBottom: "上及下",
103
+ inline: "與文字排列",
104
+ behindText: "文字在前",
105
+ inFrontText: "文字在後"
106
+ }
107
+ } };
108
+
109
+ //#endregion
110
+ export { locale as default };
@@ -0,0 +1,43 @@
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 { IDrawingParam, IOperation } from '@cool-office/core';
17
+ export declare enum AlignType {
18
+ default = "0",
19
+ left = "1",
20
+ center = "2",
21
+ right = "3",
22
+ top = "4",
23
+ middle = "5",
24
+ bottom = "6",
25
+ horizon = "7",
26
+ vertical = "8"
27
+ }
28
+ export interface ISetDrawingAlignOperationParams {
29
+ alignType: AlignType;
30
+ drawings?: IDrawingParam[];
31
+ }
32
+ /**
33
+ * Set drawing align operation, including left, center, right, top, middle, bottom, horizon and vertical align.
34
+ */
35
+ export declare const SetDrawingAlignOperation: IOperation<ISetDrawingAlignOperationParams>;
36
+ export declare const SetDrawingAlignLeftOperation: IOperation;
37
+ export declare const SetDrawingAlignCenterOperation: IOperation;
38
+ export declare const SetDrawingAlignRightOperation: IOperation;
39
+ export declare const SetDrawingAlignTopOperation: IOperation;
40
+ export declare const SetDrawingAlignMiddleOperation: IOperation;
41
+ export declare const SetDrawingAlignBottomOperation: IOperation;
42
+ export declare const SetDrawingAlignHorizonOperation: IOperation;
43
+ export declare const SetDrawingAlignVerticalOperation: IOperation;
@@ -0,0 +1,29 @@
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 { IDrawingParam, IOperation } from '@cool-office/core';
17
+ import { ArrangeTypeEnum } from '@cool-office/core';
18
+ export interface IDrawingArrangeOperationParams {
19
+ arrangeType: ArrangeTypeEnum;
20
+ drawings?: IDrawingParam[];
21
+ }
22
+ /**
23
+ * Set the layer of the drawing, including forward, backward, front, and back
24
+ */
25
+ export declare const SetDrawingArrangeOperation: IOperation<IDrawingArrangeOperationParams>;
26
+ export declare const SetDrawingArrangeFrontOperation: IOperation;
27
+ export declare const SetDrawingArrangeForwardOperation: IOperation;
28
+ export declare const SetDrawingArrangeBackOperation: IOperation;
29
+ export declare const SetDrawingArrangeBackwardOperation: IOperation;
@@ -0,0 +1,37 @@
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 { IDrawingParam, IOperation } from '@cool-office/core';
17
+ import { DrawingTypeEnum } from '@cool-office/core';
18
+ /**
19
+ * Now only support grouping images, shapes, charts, and groups.
20
+ */
21
+ export declare const DRAWING_GROUP_TYPES: readonly [DrawingTypeEnum.DRAWING_IMAGE, DrawingTypeEnum.DRAWING_SHAPE, DrawingTypeEnum.DRAWING_CHART, DrawingTypeEnum.DRAWING_SLICER, DrawingTypeEnum.DRAWING_TIMELINE, DrawingTypeEnum.DRAWING_GROUP];
22
+ export interface IDrawingGroupOperationParams {
23
+ drawings?: IDrawingParam[];
24
+ }
25
+ /**
26
+ * Group the selected drawings into a new group. The selected drawings must be
27
+ * of type image, shape, chart, or group, and there must be at least 2 drawings
28
+ * selected.
29
+ */
30
+ export declare const SetDrawingGroupOperation: IOperation<IDrawingGroupOperationParams>;
31
+ export interface ICancelDrawingGroupOperationParams {
32
+ drawings?: IDrawingParam[];
33
+ }
34
+ /**
35
+ * Ungroup the selected groups. The selected drawings must be at least 1 group selected.
36
+ */
37
+ export declare const CancelDrawingGroupOperation: IOperation<ICancelDrawingGroupOperationParams>;
@@ -0,0 +1,38 @@
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 { IDrawingSearch, IOperation } from '@cool-office/core';
17
+ export declare const OpenImageCropOperation: IOperation<IDrawingSearch>;
18
+ export interface ICloseImageCropOperationParams {
19
+ isAuto?: boolean;
20
+ isCancel?: boolean;
21
+ }
22
+ export declare const CloseImageCropOperation: IOperation<ICloseImageCropOperationParams>;
23
+ export declare enum CropType {
24
+ FREE = "0",
25
+ R1_1 = "1",
26
+ R16_9 = "2",
27
+ R9_16 = "3",
28
+ R5_4 = "4",
29
+ R4_5 = "5",
30
+ R4_3 = "6",
31
+ R3_4 = "7",
32
+ R3_2 = "8",
33
+ R2_3 = "9"
34
+ }
35
+ export interface IOpenImageCropOperationBySrcRectParams {
36
+ cropType: CropType;
37
+ }
38
+ export declare const AutoImageCropOperation: IOperation<IOpenImageCropOperationBySrcRectParams>;
@@ -0,0 +1,17 @@
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 { IDrawingSearch, IOperation } from '@cool-office/core';
17
+ export declare const ImageResetSizeOperation: IOperation<IDrawingSearch[]>;
@@ -0,0 +1,22 @@
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 { MenuConfig } from '@cool-office/ui';
17
+ export declare const DRAWING_UI_PLUGIN_CONFIG_KEY = "drawing-ui.config";
18
+ export declare const configSymbol: unique symbol;
19
+ export interface IUniverDrawingUIConfig {
20
+ menu?: MenuConfig;
21
+ }
22
+ export declare const defaultPluginConfig: IUniverDrawingUIConfig;
@@ -0,0 +1,24 @@
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 { Disposable } from '@cool-office/core';
17
+ import { ComponentManager, IconManager } from '@cool-office/ui';
18
+ export declare class ComponentsController extends Disposable {
19
+ private readonly _componentManager;
20
+ private readonly _iconManager;
21
+ constructor(_componentManager: ComponentManager, _iconManager: IconManager);
22
+ private _registerComponents;
23
+ private _registerIcons;
24
+ }
@@ -0,0 +1,49 @@
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 { Disposable, ICommandService, IUniverInstanceService } from '@cool-office/core';
17
+ import { IDrawingManagerService } from '@cool-office/drawing';
18
+ import { IRenderManagerService } from '@cool-office/engine-render';
19
+ export declare class DrawingUpdateController extends Disposable {
20
+ private readonly _currentUniverService;
21
+ private readonly _commandService;
22
+ private readonly _renderManagerService;
23
+ private readonly _drawingManagerService;
24
+ constructor(_currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _drawingManagerService: IDrawingManagerService);
25
+ dispose(): void;
26
+ private _initialize;
27
+ private _recoveryImages;
28
+ private _commandExecutedListener;
29
+ private _drawingGroupListener;
30
+ private _getSceneAndTransformerByDrawingSearch;
31
+ private _groupDrawings;
32
+ private _groupDrawing;
33
+ private _ungroupDrawings;
34
+ private _ungroupDrawing;
35
+ private _drawingAlign;
36
+ private _applyAlignType;
37
+ private _sortDrawingTransform;
38
+ private _drawingArrangeListener;
39
+ private _drawingArrange;
40
+ private _sceneListenerOnDrawingMap;
41
+ private _drawingAddListener;
42
+ private _insertDrawing;
43
+ private _drawingRemoveListener;
44
+ private _drawingUpdateListener;
45
+ private _drawingRefreshListener;
46
+ private _drawingVisibleListener;
47
+ private _filterUpdateParams;
48
+ private _addListenerOnDrawing;
49
+ }
@@ -0,0 +1,51 @@
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 { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@cool-office/core';
17
+ import { IDrawingManagerService } from '@cool-office/drawing';
18
+ import { IRenderManagerService } from '@cool-office/engine-render';
19
+ import { ILayoutService, IMessageService, IShortcutService } from '@cool-office/ui';
20
+ export declare class ImageCropperController extends Disposable {
21
+ private readonly _commandService;
22
+ private readonly _drawingManagerService;
23
+ private readonly _renderManagerService;
24
+ private _univerInstanceService;
25
+ private readonly _messageService;
26
+ private readonly _localeService;
27
+ private readonly _shortcutService;
28
+ private readonly _layoutService;
29
+ private _sceneListenerOnImageMap;
30
+ private readonly _cropShortcutDisposables;
31
+ private readonly _cropSnapshots;
32
+ private _pendingCropSnapshot;
33
+ private _activeCropSession;
34
+ private readonly _cropping$;
35
+ readonly cropping$: import("rxjs").Observable<boolean>;
36
+ constructor(_commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _shortcutService: IShortcutService, _layoutService: ILayoutService);
37
+ private _init;
38
+ private _initAutoCrop;
39
+ private _calculateSrcRectByRatio;
40
+ private _updateCropperObject;
41
+ private _initOpenCrop;
42
+ private _searchCropObject;
43
+ private _initCloseCrop;
44
+ private _getApplyObjectByCropObject;
45
+ private _captureCropSnapshot;
46
+ private _restoreCropSnapshot;
47
+ private _registerCropShortcuts;
48
+ private _addListenerOnImage;
49
+ private _addHoverForImageCopper;
50
+ private _endCropListener;
51
+ }
@@ -0,0 +1,37 @@
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 { Disposable, ICommandService, IUniverInstanceService } from '@cool-office/core';
17
+ import { IDrawingManagerService } from '@cool-office/drawing';
18
+ import { IRenderManagerService } from '@cool-office/engine-render';
19
+ import { DrawingRenderService } from '../services/drawing-render.service';
20
+ export declare class ImageUpdateController extends Disposable {
21
+ private readonly _commandService;
22
+ private readonly _renderManagerService;
23
+ private readonly _drawingManagerService;
24
+ private readonly _currentUniverService;
25
+ private readonly _drawingRenderService;
26
+ constructor(_commandService: ICommandService, _renderManagerService: IRenderManagerService, _drawingManagerService: IDrawingManagerService, _currentUniverService: IUniverInstanceService, _drawingRenderService: DrawingRenderService);
27
+ dispose(): void;
28
+ private _initialize;
29
+ private _commandExecutedListener;
30
+ private _getSceneAndTransformerByDrawingSearch;
31
+ private _resetImageSize;
32
+ private _drawingAddListener;
33
+ private _insertImages;
34
+ private _imageUpdateListener;
35
+ private _addHoverForImage;
36
+ private _addDialogForImage;
37
+ }
@@ -0,0 +1,20 @@
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 { Disposable } from '@cool-office/core';
17
+ import { ComponentManager, IconManager } from '@cool-office/ui';
18
+ export declare class MobileComponentsController extends Disposable {
19
+ constructor(componentManager: ComponentManager, iconManager: IconManager);
20
+ }
@@ -0,0 +1,51 @@
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 { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@cool-office/core';
17
+ import { IDrawingManagerService } from '@cool-office/drawing';
18
+ import { IRenderManagerService } from '@cool-office/engine-render';
19
+ import { ILayoutService, IMessageService, IShortcutService } from '@cool-office/ui';
20
+ export declare class MobileImageCropperController extends Disposable {
21
+ private readonly _commandService;
22
+ private readonly _drawingManagerService;
23
+ private readonly _renderManagerService;
24
+ private readonly _univerInstanceService;
25
+ private readonly _messageService;
26
+ private readonly _localeService;
27
+ private readonly _shortcutService;
28
+ private readonly _layoutService;
29
+ private _sceneListenerOnImageMap;
30
+ private readonly _cropShortcutDisposables;
31
+ private readonly _cropSnapshots;
32
+ private _pendingCropSnapshot;
33
+ private _activeCropSession;
34
+ private readonly _cropping$;
35
+ readonly cropping$: import("rxjs").Observable<boolean>;
36
+ constructor(_commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _messageService: IMessageService, _localeService: LocaleService, _shortcutService: IShortcutService, _layoutService: ILayoutService);
37
+ private _init;
38
+ private _initAutoCrop;
39
+ private _calculateSrcRectByRatio;
40
+ private _updateCropperObject;
41
+ private _initOpenCrop;
42
+ private _searchCropObject;
43
+ private _initCloseCrop;
44
+ private _getApplyObjectByCropObject;
45
+ private _captureCropSnapshot;
46
+ private _restoreCropSnapshot;
47
+ private _registerCropShortcuts;
48
+ private _addListenerOnImage;
49
+ private _addHoverForImageCopper;
50
+ private _endCropListener;
51
+ }
@@ -0,0 +1,39 @@
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 { Disposable, ICommandService, IUniverInstanceService, ThemeService } from '@cool-office/core';
17
+ import { IDrawingManagerService } from '@cool-office/drawing';
18
+ import { IRenderManagerService } from '@cool-office/engine-render';
19
+ import { DrawingRenderService } from '../../services/drawing-render.service';
20
+ import { MobileImageCropperController } from './image-cropper.controller';
21
+ export declare class MobileImageUpdateController extends Disposable {
22
+ private readonly _commandService;
23
+ private readonly _renderManagerService;
24
+ private readonly _drawingManagerService;
25
+ private readonly _currentUniverService;
26
+ private readonly _drawingRenderService;
27
+ private readonly _themeService;
28
+ private readonly _imageCropperController;
29
+ constructor(_commandService: ICommandService, _renderManagerService: IRenderManagerService, _drawingManagerService: IDrawingManagerService, _currentUniverService: IUniverInstanceService, _drawingRenderService: DrawingRenderService, _themeService: ThemeService, _imageCropperController: MobileImageCropperController);
30
+ private _initialize;
31
+ private _commandExecutedListener;
32
+ private _getSceneAndTransformerByDrawingSearch;
33
+ private _resetImageSize;
34
+ private _drawingAddListener;
35
+ private _insertImages;
36
+ private _imageUpdateListener;
37
+ private _addHoverForImage;
38
+ private _addDialogForImage;
39
+ }
@@ -0,0 +1,27 @@
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 { Disposable, ICommandService, Injector } from '@cool-office/core';
17
+ import { IMenuManagerService, IUIPartsService } from '@cool-office/ui';
18
+ export declare class MobileDrawingUIController extends Disposable {
19
+ private readonly _commandService;
20
+ private readonly _menuManagerService;
21
+ private readonly _uiPartsService;
22
+ private readonly _injector;
23
+ constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService, _injector: Injector);
24
+ private _initMenus;
25
+ private _initCommands;
26
+ private _initUiParts;
27
+ }
@@ -0,0 +1,25 @@
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 { Disposable, ICommandService } from '@cool-office/core';
17
+ import { IMenuManagerService } from '@cool-office/ui';
18
+ export declare class DrawingUIController extends Disposable {
19
+ private readonly _commandService;
20
+ private readonly _menuManagerService;
21
+ constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService);
22
+ private _init;
23
+ private _initMenus;
24
+ private _initCommands;
25
+ }
@@ -0,0 +1,31 @@
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 { IDrawingParam, IDrawingSearch, IUniverInstanceService, Nullable } from '@cool-office/core';
17
+ import type { IDrawingManagerService } from '@cool-office/drawing';
18
+ import type { BaseObject, Scene } from '@cool-office/engine-render';
19
+ import { BooleanNumber, UniverInstanceType } from '@cool-office/core';
20
+ import { Group } from '@cool-office/engine-render';
21
+ export declare function getDrawingRenderObject(scene: Scene, drawingSearch: IDrawingSearch): BaseObject | null;
22
+ export declare function disposeDrawingRenderObject(scene: Scene, drawingSearch: IDrawingSearch & {
23
+ isMultiTransform?: BooleanNumber;
24
+ }): boolean;
25
+ export declare function syncGroupRotateEnabled(group: Group, groupParam: IDrawingParam, scene: Scene, drawingManagerService: IDrawingManagerService, children?: readonly IDrawingParam[]): void;
26
+ export declare function insertGroupObject(objectParam: IDrawingSearch, object: BaseObject, scene: Scene, drawingManagerService: IDrawingManagerService, transformIndex?: number, attachTransformer?: boolean): void;
27
+ export declare function getCurrentUnitInfo(currentUniverService: IUniverInstanceService, propUnitId?: string): {
28
+ unitId: string;
29
+ subUnitId: Nullable<string>;
30
+ current: import("@cool-office/core").UnitModel<object, UniverInstanceType>;
31
+ } | undefined;