@univerjs/docs-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 (95) hide show
  1. package/lib/cjs/index.js +37 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +37 -2891
  15. package/lib/es/locale/ca-ES.js +1 -62
  16. package/lib/es/locale/en-US.js +1 -62
  17. package/lib/es/locale/es-ES.js +1 -62
  18. package/lib/es/locale/fa-IR.js +1 -62
  19. package/lib/es/locale/fr-FR.js +1 -62
  20. package/lib/es/locale/ja-JP.js +1 -62
  21. package/lib/es/locale/ko-KR.js +1 -62
  22. package/lib/es/locale/ru-RU.js +1 -62
  23. package/lib/es/locale/sk-SK.js +1 -62
  24. package/lib/es/locale/vi-VN.js +1 -62
  25. package/lib/es/locale/zh-CN.js +1 -62
  26. package/lib/es/locale/zh-TW.js +1 -62
  27. package/lib/index.css +57 -1
  28. package/lib/index.js +37 -2891
  29. package/lib/locale/ca-ES.js +1 -62
  30. package/lib/locale/en-US.js +1 -62
  31. package/lib/locale/es-ES.js +1 -62
  32. package/lib/locale/fa-IR.js +1 -62
  33. package/lib/locale/fr-FR.js +1 -62
  34. package/lib/locale/ja-JP.js +1 -62
  35. package/lib/locale/ko-KR.js +1 -62
  36. package/lib/locale/ru-RU.js +1 -62
  37. package/lib/locale/sk-SK.js +1 -62
  38. package/lib/locale/vi-VN.js +1 -62
  39. package/lib/locale/zh-CN.js +1 -62
  40. package/lib/locale/zh-TW.js +1 -62
  41. package/lib/types/commands/commands/delete-doc-drawing.command.d.ts +16 -1
  42. package/lib/types/commands/commands/group-doc-drawing.command.d.ts +16 -1
  43. package/lib/types/commands/commands/insert-doc-drawing.command.d.ts +16 -1
  44. package/lib/types/commands/commands/insert-image.command.d.ts +16 -1
  45. package/lib/types/commands/commands/interfaces.d.ts +17 -2
  46. package/lib/types/commands/commands/move-drawings.command.d.ts +17 -1
  47. package/lib/types/commands/commands/remove-doc-drawing.command.d.ts +16 -1
  48. package/lib/types/commands/commands/set-drawing-arrange.command.d.ts +18 -2
  49. package/lib/types/commands/commands/ungroup-doc-drawing.command.d.ts +16 -1
  50. package/lib/types/commands/commands/update-doc-drawing.command.d.ts +16 -1
  51. package/lib/types/commands/commands/utils.d.ts +16 -1
  52. package/lib/types/commands/operations/clear-drawing-transformer.operation.d.ts +16 -1
  53. package/lib/types/commands/operations/edit-doc-drawing.operation.d.ts +16 -1
  54. package/lib/types/commands/operations/open-drawing-panel.operation.d.ts +16 -1
  55. package/lib/types/controllers/doc-drawing-notification.controller.d.ts +15 -0
  56. package/lib/types/controllers/doc-drawing-printing.controller.d.ts +15 -0
  57. package/lib/types/controllers/doc-drawing-transformer-update.controller.d.ts +15 -0
  58. package/lib/types/controllers/doc-drawing.controller.d.ts +15 -0
  59. package/lib/types/controllers/doc-float-dom.controller.d.ts +21 -3
  60. package/lib/types/controllers/render-controllers/doc-drawing-transform-update.controller.d.ts +18 -2
  61. package/lib/types/controllers/render-controllers/doc-drawing-update.render-controller.d.ts +19 -2
  62. package/lib/types/controllers/shortcuts/drawing.shortcut.d.ts +18 -3
  63. package/lib/types/locale/ca-ES.d.ts +16 -1
  64. package/lib/types/locale/es-ES.d.ts +16 -1
  65. package/lib/types/locale/fa-IR.d.ts +16 -1
  66. package/lib/types/locale/fr-FR.d.ts +16 -1
  67. package/lib/types/locale/ja-JP.d.ts +16 -1
  68. package/lib/types/locale/ko-KR.d.ts +16 -1
  69. package/lib/types/locale/ru-RU.d.ts +16 -1
  70. package/lib/types/locale/sk-SK.d.ts +16 -1
  71. package/lib/types/locale/vi-VN.d.ts +16 -1
  72. package/lib/types/locale/zh-CN.d.ts +16 -1
  73. package/lib/types/locale/zh-TW.d.ts +16 -1
  74. package/lib/types/menu/drawing-popup-menu.controller.d.ts +15 -0
  75. package/lib/types/menu/image.menu.d.ts +17 -2
  76. package/lib/types/menu/schema.d.ts +16 -1
  77. package/lib/types/plugin.d.ts +16 -1
  78. package/lib/types/services/doc-refresh-drawings.service.d.ts +18 -3
  79. package/lib/types/views/doc-image-panel/DocDrawingPosition.d.ts +16 -1
  80. package/lib/types/views/doc-image-panel/DocDrawingTextWrap.d.ts +16 -1
  81. package/lib/types/views/printing-float-dom/index.d.ts +17 -2
  82. package/lib/umd/index.js +37 -1
  83. package/lib/umd/locale/ca-ES.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/ja-JP.js +1 -1
  89. package/lib/umd/locale/ko-KR.js +1 -1
  90. package/lib/umd/locale/ru-RU.js +1 -1
  91. package/lib/umd/locale/sk-SK.js +1 -1
  92. package/lib/umd/locale/vi-VN.js +1 -1
  93. package/lib/umd/locale/zh-CN.js +1 -1
  94. package/lib/umd/locale/zh-TW.js +1 -1
  95. package/package.json +15 -14
@@ -1,62 +1 @@
1
- const e = {
2
- docImage: {
3
- title: "图片",
4
- upload: {
5
- float: "插入图片"
6
- },
7
- panel: {
8
- title: "编辑图片"
9
- }
10
- },
11
- "image-popup": {
12
- replace: "替换",
13
- delete: "删除",
14
- edit: "编辑",
15
- crop: "裁剪",
16
- reset: "重置大小"
17
- },
18
- "image-text-wrap": {
19
- title: "文字环绕",
20
- wrappingStyle: "环绕方式",
21
- square: "四周型",
22
- topAndBottom: "上下型",
23
- inline: "嵌入型",
24
- behindText: "衬于文字下方",
25
- inFrontText: "浮于文字上方",
26
- wrapText: "自动换行",
27
- bothSide: "两侧",
28
- leftOnly: "左侧",
29
- rightOnly: "右侧",
30
- distanceFromText: "距正文",
31
- top: "上(px)",
32
- left: "左(px)",
33
- bottom: "下(px)",
34
- right: "右(px)"
35
- },
36
- "image-position": {
37
- title: "位置",
38
- horizontal: "水平",
39
- vertical: "垂直",
40
- absolutePosition: "绝对位置(px)",
41
- relativePosition: "相对位置",
42
- toTheRightOf: "右侧",
43
- relativeTo: "相对于",
44
- bellow: "下方",
45
- options: "选项",
46
- moveObjectWithText: "对象随文字移动",
47
- column: "栏",
48
- margin: "页边距",
49
- page: "页面",
50
- line: "行",
51
- paragraph: "段落"
52
- },
53
- "update-status": {
54
- exceedMaxSize: "图片大小超过限制, 限制为{0}M",
55
- invalidImageType: "图片类型错误",
56
- exceedMaxCount: "图片只能一次上传{0}张",
57
- invalidImage: "无效图片"
58
- }
59
- };
60
- export {
61
- e as default
62
- };
1
+ const e={docImage:{title:`图片`,upload:{float:`插入图片`},panel:{title:`编辑图片`}},"image-popup":{replace:`替换`,delete:`删除`,edit:`编辑`,crop:`裁剪`,reset:`重置大小`},"image-text-wrap":{title:`文字环绕`,wrappingStyle:`环绕方式`,square:`四周型`,topAndBottom:`上下型`,inline:`嵌入型`,behindText:`衬于文字下方`,inFrontText:`浮于文字上方`,wrapText:`自动换行`,bothSide:`两侧`,leftOnly:`左侧`,rightOnly:`右侧`,distanceFromText:`距正文`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`绝对位置(px)`,relativePosition:`相对位置`,toTheRightOf:`右侧`,relativeTo:`相对于`,bellow:`下方`,options:`选项`,moveObjectWithText:`对象随文字移动`,column:`栏`,margin:`页边距`,page:`页面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`图片大小超过限制, 限制为{0}M`,invalidImageType:`图片类型错误`,exceedMaxCount:`图片只能一次上传{0}张`,invalidImage:`无效图片`}};export{e as default};
@@ -1,62 +1 @@
1
- const e = {
2
- docImage: {
3
- title: "圖片",
4
- upload: {
5
- float: "插入圖片"
6
- },
7
- panel: {
8
- title: "編圖"
9
- }
10
- },
11
- "image-popup": {
12
- replace: "替換",
13
- delete: "刪除",
14
- edit: "編輯",
15
- crop: "裁切",
16
- reset: "重置大小"
17
- },
18
- "image-text-wrap": {
19
- title: "文繞圖",
20
- wrappingStyle: "文繞圖方式",
21
- square: "矩形",
22
- topAndBottom: "上及下",
23
- inline: "與文字排列",
24
- behindText: "文字在前",
25
- inFrontText: "文字在後",
26
- wrapText: "自動換行",
27
- bothSide: "兩側",
28
- leftOnly: "僅左側",
29
- rightOnly: "僅右側",
30
- distanceFromText: "與文字距離",
31
- top: "上(px)",
32
- left: "左(px)",
33
- bottom: "下(px)",
34
- right: "右(px)"
35
- },
36
- "image-position": {
37
- title: "位置",
38
- horizontal: "水平",
39
- vertical: "垂直",
40
- absolutePosition: "絕對位置(px)",
41
- relativePosition: "相對位置",
42
- toTheRightOf: "右側",
43
- relativeTo: "相對於",
44
- bellow: "下方",
45
- options: "選項",
46
- moveObjectWithText: "物件隨文字移動",
47
- column: "欄",
48
- margin: "邊界",
49
- page: "頁面",
50
- line: "行",
51
- paragraph: "段落"
52
- },
53
- "update-status": {
54
- exceedMaxSize: "圖片大小超過限制, 限制為{0}M",
55
- invalidImageType: "圖片類型錯誤",
56
- exceedMaxCount: "圖片只能一次上傳{0}張",
57
- invalidImage: "無效圖片"
58
- }
59
- };
60
- export {
61
- e as default
62
- };
1
+ const e={docImage:{title:`圖片`,upload:{float:`插入圖片`},panel:{title:`編圖`}},"image-popup":{replace:`替換`,delete:`刪除`,edit:`編輯`,crop:`裁切`,reset:`重置大小`},"image-text-wrap":{title:`文繞圖`,wrappingStyle:`文繞圖方式`,square:`矩形`,topAndBottom:`上及下`,inline:`與文字排列`,behindText:`文字在前`,inFrontText:`文字在後`,wrapText:`自動換行`,bothSide:`兩側`,leftOnly:`僅左側`,rightOnly:`僅右側`,distanceFromText:`與文字距離`,top:`上(px)`,left:`左(px)`,bottom:`下(px)`,right:`右(px)`},"image-position":{title:`位置`,horizontal:`水平`,vertical:`垂直`,absolutePosition:`絕對位置(px)`,relativePosition:`相對位置`,toTheRightOf:`右側`,relativeTo:`相對於`,bellow:`下方`,options:`選項`,moveObjectWithText:`物件隨文字移動`,column:`欄`,margin:`邊界`,page:`頁面`,line:`行`,paragraph:`段落`},"update-status":{exceedMaxSize:`圖片大小超過限制, 限制為{0}M`,invalidImageType:`圖片類型錯誤`,exceedMaxCount:`圖片只能一次上傳{0}張`,invalidImage:`無效圖片`}};export{e as default};
@@ -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 DeleteDocDrawingsCommand: 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
  /**
3
18
  * The command to insert new 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 drawings
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 IInsertDocImageCommandParams {
3
18
  files: Nullable<File[]>;
4
19
  }
@@ -1,5 +1,20 @@
1
- import { DrawingTypeEnum } from '@univerjs/core';
2
- import { IDocDrawing } from '@univerjs/docs-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 { IDocDrawing } from '@univerjs/docs-drawing';
3
18
  export interface IInsertDrawingCommandParams {
4
19
  unitId: string;
5
20
  drawings: IDocDrawing[];
@@ -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,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 insert new defined name
4
19
  */
@@ -1,4 +1,19 @@
1
- import { ICommand, IDocDrawingBase, IDocDrawingPosition, IObjectPositionH, IObjectPositionV, ISize } 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, IDocDrawingBase, IDocDrawingPosition, IObjectPositionH, IObjectPositionV, ISize } from '@univerjs/core';
2
17
  export declare enum TextWrappingStyle {
3
18
  INLINE = "inline",
4
19
  BEHIND_TEXT = "behindText",
@@ -1,3 +1,18 @@
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 { IDrawingGroupUpdateParam } from '@univerjs/drawing';
2
17
  export declare function ungroupToGroup(ungroupParams: IDrawingGroupUpdateParam[]): IDrawingGroupUpdateParam[];
3
18
  export declare function groupToUngroup(groupParams: IDrawingGroupUpdateParam[]): IDrawingGroupUpdateParam[];
@@ -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 ClearDocDrawingTransformerOperation: 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 EditDocDrawingOperation: 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,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 } from '@univerjs/core';
2
17
  import { IDocDrawingService } from '@univerjs/docs-drawing';
3
18
  import { IDrawingManagerService } from '@univerjs/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 { DocPrintInterceptorService } from '@univerjs/docs-ui';
3
18
  import { IDrawingManagerService } from '@univerjs/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, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
17
  import { IDrawingManagerService } from '@univerjs/drawing';
3
18
  import { IRenderManagerService } from '@univerjs/engine-render';
@@ -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 { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';
3
18
  export declare class DocDrawingUIController extends Disposable {
@@ -1,8 +1,26 @@
1
- import { IDocFloatDomDataBase, IDrawingManagerService } from '@univerjs/drawing';
2
- import { IBoundRectNoAngle, Scene, IRenderManagerService } from '@univerjs/engine-render';
3
- import { IFloatDomLayout, CanvasFloatDomService } 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 { IDocFloatDomDataBase } from '@univerjs/drawing';
17
+ import type { IBoundRectNoAngle, Scene } from '@univerjs/engine-render';
18
+ import type { IFloatDomLayout } from '@univerjs/ui';
4
19
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
20
+ import { IDrawingManagerService } from '@univerjs/drawing';
5
21
  import { DrawingRenderService } from '@univerjs/drawing-ui';
22
+ import { IRenderManagerService } from '@univerjs/engine-render';
23
+ import { CanvasFloatDomService } from '@univerjs/ui';
6
24
  export declare function calcDocFloatDomPositionByRect(rect: IBoundRectNoAngle, scene: Scene, opacity?: number, angle?: number): IFloatDomLayout;
7
25
  interface IDocFloatDomParams extends IDocFloatDomDataBase {
8
26
  }
@@ -1,5 +1,21 @@
1
- import { DocumentDataModel, Disposable, ICommandService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
2
- 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 { DocumentDataModel } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
+ import { Disposable, ICommandService, IUniverInstanceService, LifecycleService } from '@univerjs/core';
3
19
  import { DocSkeletonManagerService } from '@univerjs/docs';
4
20
  import { IEditorService } from '@univerjs/docs-ui';
5
21
  import { IDrawingManagerService } from '@univerjs/drawing';
@@ -1,9 +1,26 @@
1
- import { DocumentDataModel, Disposable, ICommandService, IContextService, LocaleService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule, IRenderManagerService } 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 { DocumentDataModel } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
+ import { Disposable, ICommandService, IContextService, LocaleService } from '@univerjs/core';
3
19
  import { DocSelectionManagerService } from '@univerjs/docs';
4
20
  import { IDocDrawingService } from '@univerjs/docs-drawing';
5
21
  import { DocSelectionRenderService } from '@univerjs/docs-ui';
6
22
  import { IDrawingManagerService, IImageIoService } from '@univerjs/drawing';
23
+ import { IRenderManagerService } from '@univerjs/engine-render';
7
24
  import { ILocalFileService, IMessageService } from '@univerjs/ui';
8
25
  import { DocRefreshDrawingsService } from '../../services/doc-refresh-drawings.service';
9
26
  export declare class DocDrawingUpdateRenderController extends Disposable implements IRenderModule {
@@ -1,6 +1,21 @@
1
- import { IContextService } from '@univerjs/core';
2
- import { IShortcutItem } from '@univerjs/ui';
3
- import { IMoveDrawingsCommandParams } from '../../commands/commands/move-drawings.command';
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 { IContextService } from '@univerjs/core';
17
+ import type { IShortcutItem } from '@univerjs/ui';
18
+ import type { IMoveDrawingsCommandParams } from '../../commands/commands/move-drawings.command';
4
19
  export declare function whenDocDrawingFocused(contextService: IContextService): boolean;
5
20
  export declare const MoveDrawingDownShortcutItem: IShortcutItem<IMoveDrawingsCommandParams>;
6
21
  export declare const MoveDrawingUpShortcutItem: IShortcutItem<IMoveDrawingsCommandParams>;
@@ -1,3 +1,18 @@
1
- import { default as enUS } from './en-US';
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';
2
17
  declare const locale: typeof enUS;
3
18
  export default locale;