@univerjs/sheets-drawing-ui 0.17.0 → 0.18.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 (117) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +7 -2
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1389
  16. package/lib/es/index.js +7 -4388
  17. package/lib/es/locale/ca-ES.js +1 -54
  18. package/lib/es/locale/en-US.js +1 -54
  19. package/lib/es/locale/es-ES.js +1 -54
  20. package/lib/es/locale/fa-IR.js +1 -54
  21. package/lib/es/locale/fr-FR.js +1 -54
  22. package/lib/es/locale/ja-JP.js +1 -54
  23. package/lib/es/locale/ko-KR.js +1 -54
  24. package/lib/es/locale/ru-RU.js +1 -54
  25. package/lib/es/locale/sk-SK.js +1 -54
  26. package/lib/es/locale/vi-VN.js +1 -54
  27. package/lib/es/locale/zh-CN.js +1 -54
  28. package/lib/es/locale/zh-TW.js +1 -54
  29. package/lib/facade.js +1 -1389
  30. package/lib/index.css +66 -1
  31. package/lib/index.js +7 -4388
  32. package/lib/locale/ca-ES.js +1 -54
  33. package/lib/locale/en-US.js +1 -54
  34. package/lib/locale/es-ES.js +1 -54
  35. package/lib/locale/fa-IR.js +1 -54
  36. package/lib/locale/fr-FR.js +1 -54
  37. package/lib/locale/ja-JP.js +1 -54
  38. package/lib/locale/ko-KR.js +1 -54
  39. package/lib/locale/ru-RU.js +1 -54
  40. package/lib/locale/sk-SK.js +1 -54
  41. package/lib/locale/vi-VN.js +1 -54
  42. package/lib/locale/zh-CN.js +1 -54
  43. package/lib/locale/zh-TW.js +1 -54
  44. package/lib/types/basics/transform-position.d.ts +18 -3
  45. package/lib/types/commands/commands/delete-drawings.command.d.ts +16 -1
  46. package/lib/types/commands/commands/flip-drawings.command.d.ts +16 -1
  47. package/lib/types/commands/commands/group-sheet-drawing.command.d.ts +16 -1
  48. package/lib/types/commands/commands/insert-image.command.d.ts +16 -1
  49. package/lib/types/commands/commands/insert-sheet-drawing.command.d.ts +16 -1
  50. package/lib/types/commands/commands/interfaces.d.ts +17 -2
  51. package/lib/types/commands/commands/move-drawings.command.d.ts +17 -1
  52. package/lib/types/commands/commands/remove-sheet-drawing.command.d.ts +16 -1
  53. package/lib/types/commands/commands/save-cell-images.command.d.ts +16 -1
  54. package/lib/types/commands/commands/set-drawing-arrange.command.d.ts +18 -2
  55. package/lib/types/commands/commands/set-sheet-drawing.command.d.ts +16 -1
  56. package/lib/types/commands/commands/ungroup-sheet-drawing.command.d.ts +16 -1
  57. package/lib/types/commands/commands/utils.d.ts +23 -1
  58. package/lib/types/commands/operations/clear-drawing-transformer.operation.d.ts +16 -1
  59. package/lib/types/commands/operations/edit-sheet-drawing.operation.d.ts +16 -1
  60. package/lib/types/commands/operations/open-drawing-panel.operation.d.ts +16 -1
  61. package/lib/types/config/config.d.ts +17 -2
  62. package/lib/types/controllers/drawing-context-menu.controller.d.ts +28 -0
  63. package/lib/types/controllers/render-controllers/sheet-celll-image-hover.render-controller.d.ts +16 -1
  64. package/lib/types/controllers/render-controllers/sheet-drawing.render-controller.d.ts +16 -1
  65. package/lib/types/controllers/sheet-cell-image-autofill.controller.d.ts +15 -0
  66. package/lib/types/controllers/sheet-cell-image-copy-paste.controller.d.ts +15 -0
  67. package/lib/types/controllers/sheet-cell-image.controller.d.ts +19 -2
  68. package/lib/types/controllers/sheet-drawing-copy-paste.controller.d.ts +15 -0
  69. package/lib/types/controllers/sheet-drawing-group-copy-paste.controller.d.ts +54 -0
  70. package/lib/types/controllers/sheet-drawing-permission.controller.d.ts +15 -0
  71. package/lib/types/controllers/sheet-drawing-printing.controller.d.ts +15 -0
  72. package/lib/types/controllers/sheet-drawing-transform-affected.controller.d.ts +19 -2
  73. package/lib/types/controllers/sheet-drawing-update.controller.d.ts +20 -3
  74. package/lib/types/controllers/sheet-drawing.controller.d.ts +15 -0
  75. package/lib/types/controllers/shortcuts/drawing.shortcut.d.ts +18 -3
  76. package/lib/types/facade/f-enum.d.ts +15 -0
  77. package/lib/types/facade/f-event.d.ts +21 -5
  78. package/lib/types/facade/f-over-grid-image.d.ts +19 -3
  79. package/lib/types/facade/f-range.d.ts +15 -0
  80. package/lib/types/facade/f-univer.d.ts +16 -1
  81. package/lib/types/facade/f-worksheet.d.ts +23 -7
  82. package/lib/types/index.d.ts +1 -0
  83. package/lib/types/locale/ca-ES.d.ts +16 -1
  84. package/lib/types/locale/es-ES.d.ts +16 -1
  85. package/lib/types/locale/fa-IR.d.ts +16 -1
  86. package/lib/types/locale/fr-FR.d.ts +16 -1
  87. package/lib/types/locale/ja-JP.d.ts +16 -1
  88. package/lib/types/locale/ko-KR.d.ts +16 -1
  89. package/lib/types/locale/ru-RU.d.ts +16 -1
  90. package/lib/types/locale/sk-SK.d.ts +16 -1
  91. package/lib/types/locale/vi-VN.d.ts +16 -1
  92. package/lib/types/locale/zh-CN.d.ts +16 -1
  93. package/lib/types/locale/zh-TW.d.ts +16 -1
  94. package/lib/types/menu/drawing-popup-menu.controller.d.ts +17 -1
  95. package/lib/types/menu/image.menu.d.ts +17 -2
  96. package/lib/types/menu/save-images.menu.d.ts +17 -2
  97. package/lib/types/menu/schema.d.ts +16 -1
  98. package/lib/types/plugin.d.ts +16 -1
  99. package/lib/types/services/batch-save-images.service.d.ts +18 -2
  100. package/lib/types/services/canvas-float-dom-manager.service.d.ts +24 -6
  101. package/lib/types/views/printing-float-dom/index.d.ts +18 -3
  102. package/lib/types/views/sheet-image-panel/SheetDrawingAnchor.d.ts +16 -1
  103. package/lib/umd/facade.js +1 -1
  104. package/lib/umd/index.js +7 -2
  105. package/lib/umd/locale/ca-ES.js +1 -1
  106. package/lib/umd/locale/en-US.js +1 -1
  107. package/lib/umd/locale/es-ES.js +1 -1
  108. package/lib/umd/locale/fa-IR.js +1 -1
  109. package/lib/umd/locale/fr-FR.js +1 -1
  110. package/lib/umd/locale/ja-JP.js +1 -1
  111. package/lib/umd/locale/ko-KR.js +1 -1
  112. package/lib/umd/locale/ru-RU.js +1 -1
  113. package/lib/umd/locale/sk-SK.js +1 -1
  114. package/lib/umd/locale/vi-VN.js +1 -1
  115. package/lib/umd/locale/zh-CN.js +1 -1
  116. package/lib/umd/locale/zh-TW.js +1 -1
  117. package/package.json +17 -16
@@ -1,54 +1 @@
1
- const e = {
2
- sheetImage: {
3
- title: "圖片",
4
- upload: {
5
- float: "浮動圖片",
6
- cell: "儲存格圖片"
7
- },
8
- panel: {
9
- title: "編圖"
10
- },
11
- save: {
12
- title: "儲存儲存格圖片",
13
- menuLabel: "儲存儲存格圖片",
14
- imageCount: "圖片數量",
15
- fileNameConfig: "檔案名稱",
16
- useRowCol: "使用儲存格地址 (A1, B2...)",
17
- useColumnValue: "使用某欄的值",
18
- selectColumn: "選擇欄",
19
- cancel: "取消",
20
- confirm: "儲存",
21
- saving: "儲存中...",
22
- error: "儲存儲存格圖片失敗"
23
- }
24
- },
25
- "image-popup": {
26
- replace: "替換",
27
- delete: "刪除",
28
- edit: "編輯",
29
- crop: "裁切",
30
- reset: "重置大小",
31
- flipH: "水平翻轉",
32
- flipV: "垂直翻轉"
33
- },
34
- "drawing-anchor": {
35
- title: "錨點屬性",
36
- both: "與儲存格一起移動和調整大小",
37
- position: "移動但不調整大小與儲存格",
38
- none: "不要移動或調整大小與儲存格"
39
- },
40
- "update-status": {
41
- exceedMaxSize: "圖片大小超過限制, 限制為{0}M",
42
- invalidImageType: "圖片類型錯誤",
43
- exceedMaxCount: "圖片只能一次上傳{0}張",
44
- invalidImage: "無效圖片"
45
- },
46
- "cell-image": {
47
- pasteTitle: "貼上為儲存格圖片",
48
- pasteContent: "貼上儲存格圖片將覆蓋儲存格中的現有內容,繼續貼上",
49
- pasteError: "此儲存格不支援儲存格圖片複製貼上"
50
- }
51
- };
52
- export {
53
- e as default
54
- };
1
+ const e={sheetImage:{title:`圖片`,upload:{float:`浮動圖片`,cell:`儲存格圖片`},panel:{title:`編圖`},save:{title:`儲存儲存格圖片`,menuLabel:`儲存儲存格圖片`,imageCount:`圖片數量`,fileNameConfig:`檔案名稱`,useRowCol:`使用儲存格地址 (A1, B2...)`,useColumnValue:`使用某欄的值`,selectColumn:`選擇欄`,cancel:`取消`,confirm:`儲存`,saving:`儲存中...`,error:`儲存儲存格圖片失敗`}},"image-popup":{replace:`替換`,delete:`刪除`,edit:`編輯`,crop:`裁切`,reset:`重置大小`,flipH:`水平翻轉`,flipV:`垂直翻轉`},"drawing-anchor":{title:`錨點屬性`,both:`與儲存格一起移動和調整大小`,position:`移動但不調整大小與儲存格`,none:`不要移動或調整大小與儲存格`},"update-status":{exceedMaxSize:`圖片大小超過限制, 限制為{0}M`,invalidImageType:`圖片類型錯誤`,exceedMaxCount:`圖片只能一次上傳{0}張`,invalidImage:`無效圖片`},"cell-image":{pasteTitle:`貼上為儲存格圖片`,pasteContent:`貼上儲存格圖片將覆蓋儲存格中的現有內容,繼續貼上`,pasteError:`此儲存格不支援儲存格圖片複製貼上`}};export{e as default};
@@ -1,6 +1,21 @@
1
- import { ITransformState, Nullable } from '@univerjs/core';
2
- import { ISheetDrawingPosition } from '@univerjs/sheets-drawing';
3
- import { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
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 { ITransformState, Nullable } from '@univerjs/core';
17
+ import type { ISheetDrawingPosition } from '@univerjs/sheets-drawing';
18
+ import type { ISheetSelectionRenderService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
4
19
  export declare function drawingPositionToTransform(position: ISheetDrawingPosition, selectionRenderService: ISheetSelectionRenderService, sheetSkeletonManagerService: SheetSkeletonManagerService): Nullable<ITransformState>;
5
20
  export declare function transformToDrawingPosition(transform: ITransformState, selectionRenderService: ISheetSelectionRenderService): Nullable<ISheetDrawingPosition>;
6
21
  /**
@@ -1,2 +1,17 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  export declare const DeleteDrawingsCommand: ICommand;
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  interface IFlipDrawingCommandParam {
3
18
  unitId: string;
4
19
  subUnitId: string;
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  /**
3
18
  * The command to insert new defined name
4
19
  */
@@ -1,4 +1,19 @@
1
- import { ICommand, Nullable } from '@univerjs/core';
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 { ICommand, Nullable } from '@univerjs/core';
2
17
  export interface IInsertImageCommandParams {
3
18
  files: Nullable<File[]>;
4
19
  }
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  /**
3
18
  * The command to insert new defined name
4
19
  */
@@ -1,5 +1,20 @@
1
- import { DrawingTypeEnum } from '@univerjs/core';
2
- import { ISheetDrawing } from '@univerjs/sheets-drawing';
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 { DrawingTypeEnum } from '@univerjs/core';
17
+ import type { ISheetDrawing } from '@univerjs/sheets-drawing';
3
18
  export interface IInsertDrawingCommandParams {
4
19
  unitId: string;
5
20
  drawings: ISheetDrawing[];
@@ -1,4 +1,20 @@
1
- import { ICommand, Direction } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
17
+ import { Direction } from '@univerjs/core';
2
18
  export interface IMoveDrawingsCommandParams {
3
19
  direction: Direction;
4
20
  }
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  /**
3
18
  * The command to remove new sheet image
4
19
  */
@@ -1,2 +1,17 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  export declare const SaveCellImagesCommand: ICommand;
@@ -1,5 +1,21 @@
1
- import { ICommand, ArrangeTypeEnum } from '@univerjs/core';
2
- import { IDrawingOrderMapParam } from '@univerjs/drawing';
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 { ICommand } from '@univerjs/core';
17
+ import type { IDrawingOrderMapParam } from '@univerjs/drawing';
18
+ import { ArrangeTypeEnum } from '@univerjs/core';
3
19
  export interface ISetDrawingArrangeCommandParams extends IDrawingOrderMapParam {
4
20
  arrangeType: ArrangeTypeEnum;
5
21
  }
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  /**
3
18
  * The command to update defined name
4
19
  */
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  /**
3
18
  * The command to insert new defined name
4
19
  */
@@ -1,3 +1,25 @@
1
- import { IDrawingGroupUpdateParam } from '@univerjs/drawing';
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 { IDrawingGroupNestedParam } from '@univerjs/core';
17
+ import type { IDrawingGroupUpdateParam } from '@univerjs/drawing';
2
18
  export declare function ungroupToGroup(ungroupParams: IDrawingGroupUpdateParam[]): IDrawingGroupUpdateParam[];
3
19
  export declare function groupToUngroup(groupParams: IDrawingGroupUpdateParam[]): IDrawingGroupUpdateParam[];
20
+ export interface ICloneGroupResult {
21
+ cloned: IDrawingGroupNestedParam;
22
+ /** Map from original drawingId → new drawingId, for updating connector/line relations */
23
+ idMap: Map<string, string>;
24
+ }
25
+ export declare function cloneGroupParams(groupParams: IDrawingGroupNestedParam): ICloneGroupResult;
@@ -1,2 +1,17 @@
1
- import { IMutation } from '@univerjs/core';
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 { IMutation } from '@univerjs/core';
2
17
  export declare const ClearSheetDrawingTransformerOperation: IMutation<string[]>;
@@ -1,2 +1,17 @@
1
- import { IDrawingSearch, IOperation } from '@univerjs/core';
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 '@univerjs/core';
2
17
  export declare const EditSheetDrawingOperation: IOperation<IDrawingSearch>;
@@ -1,4 +1,19 @@
1
- import { ICommand } from '@univerjs/core';
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 { ICommand } from '@univerjs/core';
2
17
  export interface IUIComponentCommandParams {
3
18
  value: string;
4
19
  }
@@ -1,5 +1,20 @@
1
- import { DependencyOverride } from '@univerjs/core';
2
- import { MenuConfig } from '@univerjs/ui';
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 { DependencyOverride } from '@univerjs/core';
17
+ import type { MenuConfig } from '@univerjs/ui';
3
18
  export declare const SHEETS_DRAWING_UI_PLUGIN_CONFIG_KEY = "sheets-drawing-ui.config";
4
19
  export declare const configSymbol: unique symbol;
5
20
  export interface IUniverSheetsDrawingUIConfig {
@@ -0,0 +1,28 @@
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 { IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
+ import { IDrawingManagerService } from '@univerjs/drawing';
18
+ import { IRenderManagerService } from '@univerjs/engine-render';
19
+ import { IContextMenuService } from '@univerjs/ui';
20
+ export declare class DrawingContextMenuController extends RxDisposable {
21
+ private readonly _drawingManagerService;
22
+ private readonly _contextMenuService;
23
+ private readonly _renderManagerService;
24
+ private readonly _univerInstanceService;
25
+ constructor(_drawingManagerService: IDrawingManagerService, _contextMenuService: IContextMenuService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
26
+ private _init;
27
+ private _contextMenuListener;
28
+ }
@@ -1,4 +1,19 @@
1
- import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
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 { IRenderContext, IRenderModule } from '@univerjs/engine-render';
2
17
  import { Disposable } from '@univerjs/core';
3
18
  import { DrawingRenderService } from '@univerjs/drawing-ui';
4
19
  import { SheetsSelectionsService } from '@univerjs/sheets';
@@ -1,4 +1,19 @@
1
- import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
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 { IRenderContext, IRenderModule } from '@univerjs/engine-render';
2
17
  import { Disposable } from '@univerjs/core';
3
18
  import { IDrawingManagerService } from '@univerjs/drawing';
4
19
  import { ISheetDrawingService } from '@univerjs/sheets-drawing';
@@ -1,3 +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
+ */
1
16
  import { Disposable, Injector } from '@univerjs/core';
2
17
  import { IAutoFillService } from '@univerjs/sheets';
3
18
  export declare class SheetCellImageAutofillController extends Disposable {
@@ -1,3 +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
+ */
1
16
  import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
17
  import { IRenderManagerService } from '@univerjs/engine-render';
3
18
  import { IDialogService } from '@univerjs/ui';
@@ -1,7 +1,24 @@
1
- import { ICellData, Nullable, Disposable, ICommandService, Injector } from '@univerjs/core';
2
- import { ISheetLocationBase, SheetInterceptorService } from '@univerjs/sheets';
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 { ICellData, Nullable } from '@univerjs/core';
17
+ import type { ISheetLocationBase } from '@univerjs/sheets';
18
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
3
19
  import { DocDrawingController } from '@univerjs/docs-drawing';
4
20
  import { IDrawingManagerService } from '@univerjs/drawing';
21
+ import { SheetInterceptorService } from '@univerjs/sheets';
5
22
  import { IEditorBridgeService } from '@univerjs/sheets-ui';
6
23
  export declare function resizeImageByCell(injector: Injector, location: ISheetLocationBase, cell: Nullable<ICellData>): boolean;
7
24
  export declare class SheetCellImageController extends Disposable {
@@ -1,3 +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
+ */
1
16
  import { Disposable, ICommandService } from '@univerjs/core';
2
17
  import { IDrawingManagerService } from '@univerjs/drawing';
3
18
  import { IRenderManagerService } from '@univerjs/engine-render';