wps-multitool-mcp 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/bridge/cancellable.d.ts +36 -0
- package/dist/bridge/cancellable.d.ts.map +1 -0
- package/dist/bridge/cancellable.js +155 -0
- package/dist/bridge/cancellable.js.map +1 -0
- package/dist/bridge/index.d.ts +37 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/index.js +381 -0
- package/dist/bridge/index.js.map +1 -0
- package/dist/bridge/ps-child.d.ts +155 -0
- package/dist/bridge/ps-child.d.ts.map +1 -0
- package/dist/bridge/ps-child.js +578 -0
- package/dist/bridge/ps-child.js.map +1 -0
- package/dist/client/action-routes.d.ts +32 -0
- package/dist/client/action-routes.d.ts.map +1 -0
- package/dist/client/action-routes.generated.d.ts +10 -0
- package/dist/client/action-routes.generated.d.ts.map +1 -0
- package/dist/client/action-routes.generated.js +322 -0
- package/dist/client/action-routes.generated.js.map +1 -0
- package/dist/client/action-routes.js +57 -0
- package/dist/client/action-routes.js.map +1 -0
- package/dist/client/mac-poll-server.d.ts +77 -0
- package/dist/client/mac-poll-server.d.ts.map +1 -0
- package/dist/client/mac-poll-server.js +516 -0
- package/dist/client/mac-poll-server.js.map +1 -0
- package/dist/client/ps-daemon.d.ts +95 -0
- package/dist/client/ps-daemon.d.ts.map +1 -0
- package/dist/client/ps-daemon.js +424 -0
- package/dist/client/ps-daemon.js.map +1 -0
- package/dist/client/wps-client.d.ts +72 -0
- package/dist/client/wps-client.d.ts.map +1 -0
- package/dist/client/wps-client.js +408 -0
- package/dist/client/wps-client.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +121 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime-identity.d.ts +23 -0
- package/dist/runtime-identity.d.ts.map +1 -0
- package/dist/runtime-identity.js +26 -0
- package/dist/runtime-identity.js.map +1 -0
- package/dist/server/cancel-context.d.ts +30 -0
- package/dist/server/cancel-context.d.ts.map +1 -0
- package/dist/server/cancel-context.js +38 -0
- package/dist/server/cancel-context.js.map +1 -0
- package/dist/server/mcp-server.d.ts +74 -0
- package/dist/server/mcp-server.d.ts.map +1 -0
- package/dist/server/mcp-server.js +725 -0
- package/dist/server/mcp-server.js.map +1 -0
- package/dist/server/server-info.d.ts +21 -0
- package/dist/server/server-info.d.ts.map +1 -0
- package/dist/server/server-info.js +56 -0
- package/dist/server/server-info.js.map +1 -0
- package/dist/server/tool-annotations.d.ts +52 -0
- package/dist/server/tool-annotations.d.ts.map +1 -0
- package/dist/server/tool-annotations.generated.d.ts +14 -0
- package/dist/server/tool-annotations.generated.d.ts.map +1 -0
- package/dist/server/tool-annotations.generated.js +324 -0
- package/dist/server/tool-annotations.generated.js.map +1 -0
- package/dist/server/tool-annotations.js +116 -0
- package/dist/server/tool-annotations.js.map +1 -0
- package/dist/server/tool-group-events.d.ts +23 -0
- package/dist/server/tool-group-events.d.ts.map +1 -0
- package/dist/server/tool-group-events.js +44 -0
- package/dist/server/tool-group-events.js.map +1 -0
- package/dist/server/tool-metadata.d.ts +43 -0
- package/dist/server/tool-metadata.d.ts.map +1 -0
- package/dist/server/tool-metadata.js +657 -0
- package/dist/server/tool-metadata.js.map +1 -0
- package/dist/server/tool-registry.d.ts +164 -0
- package/dist/server/tool-registry.d.ts.map +1 -0
- package/dist/server/tool-registry.js +453 -0
- package/dist/server/tool-registry.js.map +1 -0
- package/dist/server/tool-tiers.d.ts +39 -0
- package/dist/server/tool-tiers.d.ts.map +1 -0
- package/dist/server/tool-tiers.js +102 -0
- package/dist/server/tool-tiers.js.map +1 -0
- package/dist/tools/common/batch.d.ts +33 -0
- package/dist/tools/common/batch.d.ts.map +1 -0
- package/dist/tools/common/batch.js +195 -0
- package/dist/tools/common/batch.js.map +1 -0
- package/dist/tools/common/convert.d.ts +41 -0
- package/dist/tools/common/convert.d.ts.map +1 -0
- package/dist/tools/common/convert.js +299 -0
- package/dist/tools/common/convert.js.map +1 -0
- package/dist/tools/common/general.d.ts +39 -0
- package/dist/tools/common/general.d.ts.map +1 -0
- package/dist/tools/common/general.js +624 -0
- package/dist/tools/common/general.js.map +1 -0
- package/dist/tools/common/index.d.ts +36 -0
- package/dist/tools/common/index.d.ts.map +1 -0
- package/dist/tools/common/index.js +102 -0
- package/dist/tools/common/index.js.map +1 -0
- package/dist/tools/common/intent.d.ts +48 -0
- package/dist/tools/common/intent.d.ts.map +1 -0
- package/dist/tools/common/intent.js +221 -0
- package/dist/tools/common/intent.js.map +1 -0
- package/dist/tools/common/repair.d.ts +29 -0
- package/dist/tools/common/repair.d.ts.map +1 -0
- package/dist/tools/common/repair.js +140 -0
- package/dist/tools/common/repair.js.map +1 -0
- package/dist/tools/common/status.d.ts +27 -0
- package/dist/tools/common/status.d.ts.map +1 -0
- package/dist/tools/common/status.js +139 -0
- package/dist/tools/common/status.js.map +1 -0
- package/dist/tools/common/toolgroups.d.ts +38 -0
- package/dist/tools/common/toolgroups.d.ts.map +1 -0
- package/dist/tools/common/toolgroups.js +238 -0
- package/dist/tools/common/toolgroups.js.map +1 -0
- package/dist/tools/excel/chart.d.ts +86 -0
- package/dist/tools/excel/chart.d.ts.map +1 -0
- package/dist/tools/excel/chart.js +659 -0
- package/dist/tools/excel/chart.js.map +1 -0
- package/dist/tools/excel/comment-protect.d.ts +58 -0
- package/dist/tools/excel/comment-protect.d.ts.map +1 -0
- package/dist/tools/excel/comment-protect.js +274 -0
- package/dist/tools/excel/comment-protect.js.map +1 -0
- package/dist/tools/excel/data-advanced.d.ts +47 -0
- package/dist/tools/excel/data-advanced.d.ts.map +1 -0
- package/dist/tools/excel/data-advanced.js +263 -0
- package/dist/tools/excel/data-advanced.js.map +1 -0
- package/dist/tools/excel/data.d.ts +91 -0
- package/dist/tools/excel/data.d.ts.map +1 -0
- package/dist/tools/excel/data.js +626 -0
- package/dist/tools/excel/data.js.map +1 -0
- package/dist/tools/excel/format.d.ts +42 -0
- package/dist/tools/excel/format.d.ts.map +1 -0
- package/dist/tools/excel/format.js +715 -0
- package/dist/tools/excel/format.js.map +1 -0
- package/dist/tools/excel/formula.d.ts +64 -0
- package/dist/tools/excel/formula.d.ts.map +1 -0
- package/dist/tools/excel/formula.js +333 -0
- package/dist/tools/excel/formula.js.map +1 -0
- package/dist/tools/excel/index.d.ts +44 -0
- package/dist/tools/excel/index.d.ts.map +1 -0
- package/dist/tools/excel/index.js +249 -0
- package/dist/tools/excel/index.js.map +1 -0
- package/dist/tools/excel/pivot.d.ts +39 -0
- package/dist/tools/excel/pivot.d.ts.map +1 -0
- package/dist/tools/excel/pivot.js +455 -0
- package/dist/tools/excel/pivot.js.map +1 -0
- package/dist/tools/excel/row-column.d.ts +64 -0
- package/dist/tools/excel/row-column.d.ts.map +1 -0
- package/dist/tools/excel/row-column.js +299 -0
- package/dist/tools/excel/row-column.js.map +1 -0
- package/dist/tools/excel/sheet-gaps.d.ts +50 -0
- package/dist/tools/excel/sheet-gaps.d.ts.map +1 -0
- package/dist/tools/excel/sheet-gaps.js +373 -0
- package/dist/tools/excel/sheet-gaps.js.map +1 -0
- package/dist/tools/excel/sheet.d.ts +112 -0
- package/dist/tools/excel/sheet.d.ts.map +1 -0
- package/dist/tools/excel/sheet.js +937 -0
- package/dist/tools/excel/sheet.js.map +1 -0
- package/dist/tools/excel/workbook.d.ts +62 -0
- package/dist/tools/excel/workbook.d.ts.map +1 -0
- package/dist/tools/excel/workbook.js +366 -0
- package/dist/tools/excel/workbook.js.map +1 -0
- package/dist/tools/index.d.ts +48 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +113 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/ppt/animation.d.ts +79 -0
- package/dist/tools/ppt/animation.d.ts.map +1 -0
- package/dist/tools/ppt/animation.js +719 -0
- package/dist/tools/ppt/animation.js.map +1 -0
- package/dist/tools/ppt/background.d.ts +72 -0
- package/dist/tools/ppt/background.d.ts.map +1 -0
- package/dist/tools/ppt/background.js +595 -0
- package/dist/tools/ppt/background.js.map +1 -0
- package/dist/tools/ppt/beautify-advanced.d.ts +72 -0
- package/dist/tools/ppt/beautify-advanced.d.ts.map +1 -0
- package/dist/tools/ppt/beautify-advanced.js +663 -0
- package/dist/tools/ppt/beautify-advanced.js.map +1 -0
- package/dist/tools/ppt/chart-flow.d.ts +58 -0
- package/dist/tools/ppt/chart-flow.d.ts.map +1 -0
- package/dist/tools/ppt/chart-flow.js +523 -0
- package/dist/tools/ppt/chart-flow.js.map +1 -0
- package/dist/tools/ppt/data-viz.d.ts +64 -0
- package/dist/tools/ppt/data-viz.d.ts.map +1 -0
- package/dist/tools/ppt/data-viz.js +514 -0
- package/dist/tools/ppt/data-viz.js.map +1 -0
- package/dist/tools/ppt/image.d.ts +30 -0
- package/dist/tools/ppt/image.d.ts.map +1 -0
- package/dist/tools/ppt/image.js +452 -0
- package/dist/tools/ppt/image.js.map +1 -0
- package/dist/tools/ppt/index.d.ts +72 -0
- package/dist/tools/ppt/index.d.ts.map +1 -0
- package/dist/tools/ppt/index.js +350 -0
- package/dist/tools/ppt/index.js.map +1 -0
- package/dist/tools/ppt/misc.d.ts +99 -0
- package/dist/tools/ppt/misc.d.ts.map +1 -0
- package/dist/tools/ppt/misc.js +868 -0
- package/dist/tools/ppt/misc.js.map +1 -0
- package/dist/tools/ppt/presentation.d.ts +72 -0
- package/dist/tools/ppt/presentation.d.ts.map +1 -0
- package/dist/tools/ppt/presentation.js +680 -0
- package/dist/tools/ppt/presentation.js.map +1 -0
- package/dist/tools/ppt/shape-basic.d.ts +46 -0
- package/dist/tools/ppt/shape-basic.d.ts.map +1 -0
- package/dist/tools/ppt/shape-basic.js +756 -0
- package/dist/tools/ppt/shape-basic.js.map +1 -0
- package/dist/tools/ppt/slide-ops.d.ts +79 -0
- package/dist/tools/ppt/slide-ops.d.ts.map +1 -0
- package/dist/tools/ppt/slide-ops.js +1646 -0
- package/dist/tools/ppt/slide-ops.js.map +1 -0
- package/dist/tools/ppt/slide.d.ts +51 -0
- package/dist/tools/ppt/slide.d.ts.map +1 -0
- package/dist/tools/ppt/slide.js +470 -0
- package/dist/tools/ppt/slide.js.map +1 -0
- package/dist/tools/ppt/table.d.ts +58 -0
- package/dist/tools/ppt/table.d.ts.map +1 -0
- package/dist/tools/ppt/table.js +512 -0
- package/dist/tools/ppt/table.js.map +1 -0
- package/dist/tools/ppt/textbox.d.ts +47 -0
- package/dist/tools/ppt/textbox.d.ts.map +1 -0
- package/dist/tools/ppt/textbox.js +246 -0
- package/dist/tools/ppt/textbox.js.map +1 -0
- package/dist/tools/word/academic.d.ts +50 -0
- package/dist/tools/word/academic.d.ts.map +1 -0
- package/dist/tools/word/academic.js +500 -0
- package/dist/tools/word/academic.js.map +1 -0
- package/dist/tools/word/content.d.ts +97 -0
- package/dist/tools/word/content.d.ts.map +1 -0
- package/dist/tools/word/content.js +838 -0
- package/dist/tools/word/content.js.map +1 -0
- package/dist/tools/word/document.d.ts +70 -0
- package/dist/tools/word/document.d.ts.map +1 -0
- package/dist/tools/word/document.js +633 -0
- package/dist/tools/word/document.js.map +1 -0
- package/dist/tools/word/format.d.ts +50 -0
- package/dist/tools/word/format.d.ts.map +1 -0
- package/dist/tools/word/format.js +462 -0
- package/dist/tools/word/format.js.map +1 -0
- package/dist/tools/word/gaps.d.ts +58 -0
- package/dist/tools/word/gaps.d.ts.map +1 -0
- package/dist/tools/word/gaps.js +431 -0
- package/dist/tools/word/gaps.js.map +1 -0
- package/dist/tools/word/index.d.ts +34 -0
- package/dist/tools/word/index.d.ts.map +1 -0
- package/dist/tools/word/index.js +124 -0
- package/dist/tools/word/index.js.map +1 -0
- package/dist/tools/word/professional.d.ts +48 -0
- package/dist/tools/word/professional.d.ts.map +1 -0
- package/dist/tools/word/professional.js +657 -0
- package/dist/tools/word/professional.js.map +1 -0
- package/dist/tools/word/proofread.d.ts +25 -0
- package/dist/tools/word/proofread.d.ts.map +1 -0
- package/dist/tools/word/proofread.js +718 -0
- package/dist/tools/word/proofread.js.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +25 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/tools.d.ts +163 -0
- package/dist/types/tools.d.ts.map +1 -0
- package/dist/types/tools.js +45 -0
- package/dist/types/tools.js.map +1 -0
- package/dist/types/wps.d.ts +190 -0
- package/dist/types/wps.d.ts.map +1 -0
- package/dist/types/wps.js +23 -0
- package/dist/types/wps.js.map +1 -0
- package/dist/utils/error.d.ts +147 -0
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +417 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/logger.d.ts +56 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +138 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/version.d.ts +22 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +101 -0
- package/dist/version.js.map +1 -0
- package/package.json +57 -4
- package/scripts/wps-com.ps1 +7260 -0
- package/scripts/wps-comd.ps1 +123 -0
- package/skills/wps-multitool/SKILL.md +111 -0
- package/skills/wps-multitool/references/errors.md +62 -0
- package/skills/wps-multitool/references/recipes.md +82 -0
- package/skills/wps-multitool/references/routing.md +88 -0
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Input: PPT 背景、页脚、形状操作参数
|
|
4
|
+
* Output: 背景/页脚/形状操作结果
|
|
5
|
+
* Pos: PPT 背景与页面信息工具实现。一旦我被修改,请更新我的头部注释,以及所属文件夹的md。
|
|
6
|
+
* PPT背景Tools - 背景、页面信息、高级形状模块
|
|
7
|
+
* 处理幻灯片背景设置、页码/页脚/日期时间、形状复制与层级调整
|
|
8
|
+
*
|
|
9
|
+
* 包含:
|
|
10
|
+
* - wps_ppt_set_slide_background: 设置幻灯片背景(通用)
|
|
11
|
+
* - wps_ppt_set_background_color: 设置幻灯片背景颜色
|
|
12
|
+
* - wps_ppt_set_background_image: 设置幻灯片背景图片
|
|
13
|
+
* - wps_ppt_set_slide_number: 设置幻灯片页码显示
|
|
14
|
+
* - wps_ppt_set_ppt_footer: 设置PPT页脚
|
|
15
|
+
* - wps_ppt_set_ppt_date_time: 设置PPT日期时间
|
|
16
|
+
* - wps_ppt_duplicate_shape: 复制形状
|
|
17
|
+
* - wps_ppt_set_shape_z_order: 设置形状层级顺序
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.backgroundTools = exports.setShapeZOrderHandler = exports.setShapeZOrderDefinition = exports.duplicateShapeHandler = exports.duplicateShapeDefinition = exports.setPptDateTimeHandler = exports.setPptDateTimeDefinition = exports.setPptFooterHandler = exports.setPptFooterDefinition = exports.setSlideNumberHandler = exports.setSlideNumberDefinition = exports.setBackgroundImageHandler = exports.setBackgroundImageDefinition = exports.setBackgroundColorHandler = exports.setBackgroundColorDefinition = exports.setSlideBackgroundHandler = exports.setSlideBackgroundDefinition = void 0;
|
|
21
|
+
const uuid_1 = require("uuid");
|
|
22
|
+
const tools_1 = require("../../types/tools");
|
|
23
|
+
const wps_client_1 = require("../../client/wps-client");
|
|
24
|
+
const wps_1 = require("../../types/wps");
|
|
25
|
+
// ==================== 背景 (3) ====================
|
|
26
|
+
/**
|
|
27
|
+
* 设置幻灯片背景(通用)
|
|
28
|
+
* 支持纯色、渐变、图片等多种背景类型
|
|
29
|
+
*/
|
|
30
|
+
exports.setSlideBackgroundDefinition = {
|
|
31
|
+
name: 'wps_ppt_set_slide_background',
|
|
32
|
+
description: `设置幻灯片背景,支持多种背景类型。
|
|
33
|
+
|
|
34
|
+
支持的背景类型(background.type):
|
|
35
|
+
- solid: 纯色背景,需提供 color 字段
|
|
36
|
+
- gradient: 渐变背景,需提供 colors 数组
|
|
37
|
+
- image: 图片背景,需提供 imagePath 字段
|
|
38
|
+
- pattern: 图案背景,需提供 pattern 和 color 字段
|
|
39
|
+
|
|
40
|
+
使用场景:
|
|
41
|
+
- "给第1页设置蓝色背景"
|
|
42
|
+
- "设置渐变背景"
|
|
43
|
+
- "用图片做背景"`,
|
|
44
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
45
|
+
inputSchema: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
slideIndex: {
|
|
49
|
+
type: 'number',
|
|
50
|
+
description: '幻灯片页码(从1开始)',
|
|
51
|
+
},
|
|
52
|
+
background: {
|
|
53
|
+
type: 'object',
|
|
54
|
+
description: '背景配置对象,包含 type/color/colors/imagePath/pattern 等字段',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
required: ['slideIndex', 'background'],
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
const setSlideBackgroundHandler = async (args) => {
|
|
61
|
+
const { slideIndex, background } = args;
|
|
62
|
+
try {
|
|
63
|
+
const response = await wps_client_1.wpsClient.executeMethod('setSlideBackground', { slideIndex, background }, wps_1.WpsAppType.PRESENTATION);
|
|
64
|
+
if (response.success) {
|
|
65
|
+
const bgType = background.type || 'solid';
|
|
66
|
+
const typeName = {
|
|
67
|
+
solid: '纯色',
|
|
68
|
+
gradient: '渐变',
|
|
69
|
+
image: '图片',
|
|
70
|
+
pattern: '图案',
|
|
71
|
+
};
|
|
72
|
+
return {
|
|
73
|
+
id: (0, uuid_1.v4)(),
|
|
74
|
+
success: true,
|
|
75
|
+
content: [
|
|
76
|
+
{
|
|
77
|
+
type: 'text',
|
|
78
|
+
text: `幻灯片背景设置成功!\n幻灯片: 第 ${slideIndex} 页\n背景类型: ${typeName[bgType] || bgType}`,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return {
|
|
85
|
+
id: (0, uuid_1.v4)(),
|
|
86
|
+
success: false,
|
|
87
|
+
content: [{ type: 'text', text: `设置幻灯片背景失败: ${response.error}` }],
|
|
88
|
+
error: response.error,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
94
|
+
return {
|
|
95
|
+
id: (0, uuid_1.v4)(),
|
|
96
|
+
success: false,
|
|
97
|
+
content: [{ type: 'text', text: `设置幻灯片背景出错: ${errMsg}` }],
|
|
98
|
+
error: errMsg,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.setSlideBackgroundHandler = setSlideBackgroundHandler;
|
|
103
|
+
/**
|
|
104
|
+
* 设置幻灯片背景颜色
|
|
105
|
+
* 快速设置纯色背景的便捷方法
|
|
106
|
+
*/
|
|
107
|
+
exports.setBackgroundColorDefinition = {
|
|
108
|
+
name: 'wps_ppt_set_background_color',
|
|
109
|
+
description: `设置幻灯片背景为指定颜色。
|
|
110
|
+
|
|
111
|
+
使用场景:
|
|
112
|
+
- "把第1页背景改成蓝色"
|
|
113
|
+
- "设置背景颜色为 #FF5733"
|
|
114
|
+
- "背景换成白色"`,
|
|
115
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
116
|
+
inputSchema: {
|
|
117
|
+
type: 'object',
|
|
118
|
+
properties: {
|
|
119
|
+
slideIndex: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
description: '幻灯片页码(从1开始)',
|
|
122
|
+
},
|
|
123
|
+
color: {
|
|
124
|
+
type: 'string',
|
|
125
|
+
description: '十六进制颜色值,如 "#FF0000"、"#FFFFFF"',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
required: ['slideIndex', 'color'],
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
const setBackgroundColorHandler = async (args) => {
|
|
132
|
+
const { slideIndex, color } = args;
|
|
133
|
+
try {
|
|
134
|
+
const response = await wps_client_1.wpsClient.executeMethod('setBackgroundColor', { slideIndex, color }, wps_1.WpsAppType.PRESENTATION);
|
|
135
|
+
if (response.success) {
|
|
136
|
+
return {
|
|
137
|
+
id: (0, uuid_1.v4)(),
|
|
138
|
+
success: true,
|
|
139
|
+
content: [
|
|
140
|
+
{
|
|
141
|
+
type: 'text',
|
|
142
|
+
text: `背景颜色设置成功!\n幻灯片: 第 ${slideIndex} 页\n颜色: ${color}`,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return {
|
|
149
|
+
id: (0, uuid_1.v4)(),
|
|
150
|
+
success: false,
|
|
151
|
+
content: [{ type: 'text', text: `设置背景颜色失败: ${response.error}` }],
|
|
152
|
+
error: response.error,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
158
|
+
return {
|
|
159
|
+
id: (0, uuid_1.v4)(),
|
|
160
|
+
success: false,
|
|
161
|
+
content: [{ type: 'text', text: `设置背景颜色出错: ${errMsg}` }],
|
|
162
|
+
error: errMsg,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
exports.setBackgroundColorHandler = setBackgroundColorHandler;
|
|
167
|
+
/**
|
|
168
|
+
* 设置幻灯片背景图片
|
|
169
|
+
* 使用图片文件作为幻灯片背景
|
|
170
|
+
*/
|
|
171
|
+
exports.setBackgroundImageDefinition = {
|
|
172
|
+
name: 'wps_ppt_set_background_image',
|
|
173
|
+
description: `设置幻灯片背景为指定图片。
|
|
174
|
+
|
|
175
|
+
使用场景:
|
|
176
|
+
- "用这张图片做背景"
|
|
177
|
+
- "设置第2页的背景图片"
|
|
178
|
+
- "把图片设为幻灯片背景"`,
|
|
179
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
180
|
+
inputSchema: {
|
|
181
|
+
type: 'object',
|
|
182
|
+
properties: {
|
|
183
|
+
slideIndex: {
|
|
184
|
+
type: 'number',
|
|
185
|
+
description: '幻灯片页码(从1开始)',
|
|
186
|
+
},
|
|
187
|
+
imagePath: {
|
|
188
|
+
type: 'string',
|
|
189
|
+
description: '图片文件的完整路径',
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
required: ['slideIndex', 'imagePath'],
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
const setBackgroundImageHandler = async (args) => {
|
|
196
|
+
const { slideIndex, imagePath } = args;
|
|
197
|
+
try {
|
|
198
|
+
// 参数对齐:底层读取 params.path,需同时发送 path/filePath
|
|
199
|
+
const response = await wps_client_1.wpsClient.executeMethod('setBackgroundImage', { slideIndex, imagePath, path: imagePath, filePath: imagePath }, wps_1.WpsAppType.PRESENTATION);
|
|
200
|
+
if (response.success) {
|
|
201
|
+
return {
|
|
202
|
+
id: (0, uuid_1.v4)(),
|
|
203
|
+
success: true,
|
|
204
|
+
content: [
|
|
205
|
+
{
|
|
206
|
+
type: 'text',
|
|
207
|
+
text: `背景图片设置成功!\n幻灯片: 第 ${slideIndex} 页\n图片: ${imagePath}`,
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
return {
|
|
214
|
+
id: (0, uuid_1.v4)(),
|
|
215
|
+
success: false,
|
|
216
|
+
content: [{ type: 'text', text: `设置背景图片失败: ${response.error}` }],
|
|
217
|
+
error: response.error,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
catch (error) {
|
|
222
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
223
|
+
return {
|
|
224
|
+
id: (0, uuid_1.v4)(),
|
|
225
|
+
success: false,
|
|
226
|
+
content: [{ type: 'text', text: `设置背景图片出错: ${errMsg}` }],
|
|
227
|
+
error: errMsg,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
exports.setBackgroundImageHandler = setBackgroundImageHandler;
|
|
232
|
+
// ==================== 页面信息 (3) ====================
|
|
233
|
+
/**
|
|
234
|
+
* 设置幻灯片页码显示
|
|
235
|
+
* 控制页码的显示/隐藏和起始编号
|
|
236
|
+
*/
|
|
237
|
+
exports.setSlideNumberDefinition = {
|
|
238
|
+
name: 'wps_ppt_set_slide_number',
|
|
239
|
+
description: `设置幻灯片页码的显示状态和起始编号。
|
|
240
|
+
|
|
241
|
+
使用场景:
|
|
242
|
+
- "显示页码"
|
|
243
|
+
- "隐藏幻灯片编号"
|
|
244
|
+
- "页码从第2页开始编号"`,
|
|
245
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
246
|
+
inputSchema: {
|
|
247
|
+
type: 'object',
|
|
248
|
+
properties: {
|
|
249
|
+
show: {
|
|
250
|
+
type: 'boolean',
|
|
251
|
+
description: '是否显示页码',
|
|
252
|
+
},
|
|
253
|
+
startFrom: {
|
|
254
|
+
type: 'number',
|
|
255
|
+
description: '页码起始编号,默认为1',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
required: ['show'],
|
|
259
|
+
},
|
|
260
|
+
};
|
|
261
|
+
const setSlideNumberHandler = async (args) => {
|
|
262
|
+
const { show, startFrom } = args;
|
|
263
|
+
try {
|
|
264
|
+
const response = await wps_client_1.wpsClient.executeMethod('setSlideNumber', { show, startFrom }, wps_1.WpsAppType.PRESENTATION);
|
|
265
|
+
if (response.success) {
|
|
266
|
+
let text = `幻灯片页码设置成功!\n显示状态: ${show ? '显示' : '隐藏'}`;
|
|
267
|
+
if (startFrom !== undefined) {
|
|
268
|
+
text += `\n起始编号: ${startFrom}`;
|
|
269
|
+
}
|
|
270
|
+
return {
|
|
271
|
+
id: (0, uuid_1.v4)(),
|
|
272
|
+
success: true,
|
|
273
|
+
content: [{ type: 'text', text }],
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
return {
|
|
278
|
+
id: (0, uuid_1.v4)(),
|
|
279
|
+
success: false,
|
|
280
|
+
content: [{ type: 'text', text: `设置页码失败: ${response.error}` }],
|
|
281
|
+
error: response.error,
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
catch (error) {
|
|
286
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
287
|
+
return {
|
|
288
|
+
id: (0, uuid_1.v4)(),
|
|
289
|
+
success: false,
|
|
290
|
+
content: [{ type: 'text', text: `设置页码出错: ${errMsg}` }],
|
|
291
|
+
error: errMsg,
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
exports.setSlideNumberHandler = setSlideNumberHandler;
|
|
296
|
+
/**
|
|
297
|
+
* 设置PPT页脚
|
|
298
|
+
* 控制页脚文本的显示/隐藏
|
|
299
|
+
*/
|
|
300
|
+
exports.setPptFooterDefinition = {
|
|
301
|
+
name: 'wps_ppt_set_ppt_footer',
|
|
302
|
+
description: `设置演示文稿页脚文本。
|
|
303
|
+
|
|
304
|
+
使用场景:
|
|
305
|
+
- "添加页脚'公司名称'"
|
|
306
|
+
- "设置页脚为'机密文件'"
|
|
307
|
+
- "隐藏页脚"`,
|
|
308
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
309
|
+
inputSchema: {
|
|
310
|
+
type: 'object',
|
|
311
|
+
properties: {
|
|
312
|
+
text: {
|
|
313
|
+
type: 'string',
|
|
314
|
+
description: '页脚文本内容',
|
|
315
|
+
},
|
|
316
|
+
show: {
|
|
317
|
+
type: 'boolean',
|
|
318
|
+
description: '是否显示页脚,默认为true',
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
required: ['text'],
|
|
322
|
+
},
|
|
323
|
+
};
|
|
324
|
+
const setPptFooterHandler = async (args) => {
|
|
325
|
+
const { text, show } = args;
|
|
326
|
+
try {
|
|
327
|
+
const response = await wps_client_1.wpsClient.executeMethod('setPptFooter', { text, show: show !== false }, wps_1.WpsAppType.PRESENTATION);
|
|
328
|
+
if (response.success) {
|
|
329
|
+
return {
|
|
330
|
+
id: (0, uuid_1.v4)(),
|
|
331
|
+
success: true,
|
|
332
|
+
content: [
|
|
333
|
+
{
|
|
334
|
+
type: 'text',
|
|
335
|
+
text: `页脚设置成功!\n页脚文本: ${text}\n显示状态: ${show !== false ? '显示' : '隐藏'}`,
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
return {
|
|
342
|
+
id: (0, uuid_1.v4)(),
|
|
343
|
+
success: false,
|
|
344
|
+
content: [{ type: 'text', text: `设置页脚失败: ${response.error}` }],
|
|
345
|
+
error: response.error,
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
catch (error) {
|
|
350
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
351
|
+
return {
|
|
352
|
+
id: (0, uuid_1.v4)(),
|
|
353
|
+
success: false,
|
|
354
|
+
content: [{ type: 'text', text: `设置页脚出错: ${errMsg}` }],
|
|
355
|
+
error: errMsg,
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
exports.setPptFooterHandler = setPptFooterHandler;
|
|
360
|
+
/**
|
|
361
|
+
* 设置PPT日期时间
|
|
362
|
+
* 控制日期时间占位符的显示和格式
|
|
363
|
+
*/
|
|
364
|
+
exports.setPptDateTimeDefinition = {
|
|
365
|
+
name: 'wps_ppt_set_ppt_date_time',
|
|
366
|
+
description: `设置演示文稿日期时间显示。
|
|
367
|
+
|
|
368
|
+
支持的日期格式(format):
|
|
369
|
+
- "YYYY-MM-DD": 如 2026-03-21
|
|
370
|
+
- "YYYY/MM/DD": 如 2026/03/21
|
|
371
|
+
- "MM/DD/YYYY": 如 03/21/2026
|
|
372
|
+
- "DD/MM/YYYY": 如 21/03/2026
|
|
373
|
+
|
|
374
|
+
使用场景:
|
|
375
|
+
- "显示日期时间"
|
|
376
|
+
- "设置自动更新日期"
|
|
377
|
+
- "隐藏日期"`,
|
|
378
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
379
|
+
inputSchema: {
|
|
380
|
+
type: 'object',
|
|
381
|
+
properties: {
|
|
382
|
+
show: {
|
|
383
|
+
type: 'boolean',
|
|
384
|
+
description: '是否显示日期时间',
|
|
385
|
+
},
|
|
386
|
+
autoUpdate: {
|
|
387
|
+
type: 'boolean',
|
|
388
|
+
description: '是否自动更新日期时间,默认为true',
|
|
389
|
+
},
|
|
390
|
+
format: {
|
|
391
|
+
type: 'string',
|
|
392
|
+
description: '日期时间格式,如 "YYYY-MM-DD"',
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
required: ['show'],
|
|
396
|
+
},
|
|
397
|
+
};
|
|
398
|
+
const setPptDateTimeHandler = async (args) => {
|
|
399
|
+
const { show, autoUpdate, format } = args;
|
|
400
|
+
try {
|
|
401
|
+
const response = await wps_client_1.wpsClient.executeMethod('setPptDateTime', { show, autoUpdate, format }, wps_1.WpsAppType.PRESENTATION);
|
|
402
|
+
if (response.success) {
|
|
403
|
+
let text = `日期时间设置成功!\n显示状态: ${show ? '显示' : '隐藏'}`;
|
|
404
|
+
if (show) {
|
|
405
|
+
text += `\n自动更新: ${autoUpdate !== false ? '是' : '否'}`;
|
|
406
|
+
if (format) {
|
|
407
|
+
text += `\n格式: ${format}`;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return {
|
|
411
|
+
id: (0, uuid_1.v4)(),
|
|
412
|
+
success: true,
|
|
413
|
+
content: [{ type: 'text', text }],
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
return {
|
|
418
|
+
id: (0, uuid_1.v4)(),
|
|
419
|
+
success: false,
|
|
420
|
+
content: [{ type: 'text', text: `设置日期时间失败: ${response.error}` }],
|
|
421
|
+
error: response.error,
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
catch (error) {
|
|
426
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
427
|
+
return {
|
|
428
|
+
id: (0, uuid_1.v4)(),
|
|
429
|
+
success: false,
|
|
430
|
+
content: [{ type: 'text', text: `设置日期时间出错: ${errMsg}` }],
|
|
431
|
+
error: errMsg,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
exports.setPptDateTimeHandler = setPptDateTimeHandler;
|
|
436
|
+
// ==================== 高级形状 (2) ====================
|
|
437
|
+
/**
|
|
438
|
+
* 复制形状
|
|
439
|
+
* 在同一幻灯片内复制指定形状
|
|
440
|
+
*/
|
|
441
|
+
exports.duplicateShapeDefinition = {
|
|
442
|
+
name: 'wps_ppt_duplicate_shape',
|
|
443
|
+
description: `复制幻灯片中的指定形状。
|
|
444
|
+
|
|
445
|
+
使用场景:
|
|
446
|
+
- "复制这个形状"
|
|
447
|
+
- "把第1页的第2个形状复制一份"
|
|
448
|
+
- "克隆这个元素"`,
|
|
449
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
450
|
+
inputSchema: {
|
|
451
|
+
type: 'object',
|
|
452
|
+
properties: {
|
|
453
|
+
slideIndex: {
|
|
454
|
+
type: 'number',
|
|
455
|
+
description: '幻灯片页码(从1开始)',
|
|
456
|
+
},
|
|
457
|
+
shapeIndex: {
|
|
458
|
+
type: 'number',
|
|
459
|
+
description: '要复制的形状索引(从1开始)',
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
required: ['slideIndex', 'shapeIndex'],
|
|
463
|
+
},
|
|
464
|
+
};
|
|
465
|
+
const duplicateShapeHandler = async (args) => {
|
|
466
|
+
const { slideIndex, shapeIndex } = args;
|
|
467
|
+
try {
|
|
468
|
+
const response = await wps_client_1.wpsClient.executeMethod('duplicateShape', { slideIndex, shapeIndex }, wps_1.WpsAppType.PRESENTATION);
|
|
469
|
+
if (response.success) {
|
|
470
|
+
let text = `形状复制成功!\n幻灯片: 第 ${slideIndex} 页\n源形状: 第 ${shapeIndex} 个`;
|
|
471
|
+
if (response.data?.newShapeIndex) {
|
|
472
|
+
text += `\n新形状索引: ${response.data.newShapeIndex}`;
|
|
473
|
+
}
|
|
474
|
+
return {
|
|
475
|
+
id: (0, uuid_1.v4)(),
|
|
476
|
+
success: true,
|
|
477
|
+
content: [{ type: 'text', text }],
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
return {
|
|
482
|
+
id: (0, uuid_1.v4)(),
|
|
483
|
+
success: false,
|
|
484
|
+
content: [{ type: 'text', text: `复制形状失败: ${response.error}` }],
|
|
485
|
+
error: response.error,
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
catch (error) {
|
|
490
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
491
|
+
return {
|
|
492
|
+
id: (0, uuid_1.v4)(),
|
|
493
|
+
success: false,
|
|
494
|
+
content: [{ type: 'text', text: `复制形状出错: ${errMsg}` }],
|
|
495
|
+
error: errMsg,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
exports.duplicateShapeHandler = duplicateShapeHandler;
|
|
500
|
+
/**
|
|
501
|
+
* 设置形状层级顺序
|
|
502
|
+
* 调整形状在幻灯片中的前后层级
|
|
503
|
+
*/
|
|
504
|
+
exports.setShapeZOrderDefinition = {
|
|
505
|
+
name: 'wps_ppt_set_shape_z_order',
|
|
506
|
+
description: `设置形状在幻灯片中的层级顺序(Z轴排列)。
|
|
507
|
+
|
|
508
|
+
支持的层级操作(order):
|
|
509
|
+
- front: 置于顶层
|
|
510
|
+
- back: 置于底层
|
|
511
|
+
- forward: 上移一层
|
|
512
|
+
- backward: 下移一层
|
|
513
|
+
|
|
514
|
+
使用场景:
|
|
515
|
+
- "把这个形状移到最前面"
|
|
516
|
+
- "将形状置于底层"
|
|
517
|
+
- "上移一层"`,
|
|
518
|
+
category: tools_1.ToolCategory.PRESENTATION,
|
|
519
|
+
inputSchema: {
|
|
520
|
+
type: 'object',
|
|
521
|
+
properties: {
|
|
522
|
+
slideIndex: {
|
|
523
|
+
type: 'number',
|
|
524
|
+
description: '幻灯片页码(从1开始)',
|
|
525
|
+
},
|
|
526
|
+
shapeIndex: {
|
|
527
|
+
type: 'number',
|
|
528
|
+
description: '形状索引(从1开始)',
|
|
529
|
+
},
|
|
530
|
+
order: {
|
|
531
|
+
type: 'string',
|
|
532
|
+
description: '层级操作类型',
|
|
533
|
+
enum: ['front', 'back', 'forward', 'backward'],
|
|
534
|
+
},
|
|
535
|
+
},
|
|
536
|
+
required: ['slideIndex', 'shapeIndex', 'order'],
|
|
537
|
+
},
|
|
538
|
+
};
|
|
539
|
+
const setShapeZOrderHandler = async (args) => {
|
|
540
|
+
const { slideIndex, shapeIndex, order } = args;
|
|
541
|
+
try {
|
|
542
|
+
const response = await wps_client_1.wpsClient.executeMethod('setShapeZOrder', { slideIndex, shapeIndex, order }, wps_1.WpsAppType.PRESENTATION);
|
|
543
|
+
if (response.success) {
|
|
544
|
+
const orderName = {
|
|
545
|
+
front: '置于顶层',
|
|
546
|
+
back: '置于底层',
|
|
547
|
+
forward: '上移一层',
|
|
548
|
+
backward: '下移一层',
|
|
549
|
+
};
|
|
550
|
+
return {
|
|
551
|
+
id: (0, uuid_1.v4)(),
|
|
552
|
+
success: true,
|
|
553
|
+
content: [
|
|
554
|
+
{
|
|
555
|
+
type: 'text',
|
|
556
|
+
text: `形状层级调整成功!\n幻灯片: 第 ${slideIndex} 页\n形状: 第 ${shapeIndex} 个\n操作: ${orderName[order] || order}`,
|
|
557
|
+
},
|
|
558
|
+
],
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
return {
|
|
563
|
+
id: (0, uuid_1.v4)(),
|
|
564
|
+
success: false,
|
|
565
|
+
content: [{ type: 'text', text: `调整形状层级失败: ${response.error}` }],
|
|
566
|
+
error: response.error,
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
catch (error) {
|
|
571
|
+
const errMsg = error instanceof Error ? error.message : String(error);
|
|
572
|
+
return {
|
|
573
|
+
id: (0, uuid_1.v4)(),
|
|
574
|
+
success: false,
|
|
575
|
+
content: [{ type: 'text', text: `调整形状层级出错: ${errMsg}` }],
|
|
576
|
+
error: errMsg,
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
exports.setShapeZOrderHandler = setShapeZOrderHandler;
|
|
581
|
+
/**
|
|
582
|
+
* 导出所有背景、页面信息、高级形状相关的Tools
|
|
583
|
+
*/
|
|
584
|
+
exports.backgroundTools = [
|
|
585
|
+
{ definition: exports.setSlideBackgroundDefinition, handler: exports.setSlideBackgroundHandler },
|
|
586
|
+
{ definition: exports.setBackgroundColorDefinition, handler: exports.setBackgroundColorHandler },
|
|
587
|
+
{ definition: exports.setBackgroundImageDefinition, handler: exports.setBackgroundImageHandler },
|
|
588
|
+
{ definition: exports.setSlideNumberDefinition, handler: exports.setSlideNumberHandler },
|
|
589
|
+
{ definition: exports.setPptFooterDefinition, handler: exports.setPptFooterHandler },
|
|
590
|
+
{ definition: exports.setPptDateTimeDefinition, handler: exports.setPptDateTimeHandler },
|
|
591
|
+
{ definition: exports.duplicateShapeDefinition, handler: exports.duplicateShapeHandler },
|
|
592
|
+
{ definition: exports.setShapeZOrderDefinition, handler: exports.setShapeZOrderHandler },
|
|
593
|
+
];
|
|
594
|
+
exports.default = exports.backgroundTools;
|
|
595
|
+
//# sourceMappingURL=background.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background.js","sourceRoot":"","sources":["../../../src/tools/ppt/background.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,+BAAoC;AACpC,6CAM2B;AAC3B,wDAAoD;AACpD,yCAA6C;AAE7C,mDAAmD;AAEnD;;;GAGG;AACU,QAAA,4BAA4B,GAAmB;IAC1D,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE;;;;;;;;;;;WAWJ;IACT,QAAQ,EAAE,oBAAY,CAAC,YAAY;IACnC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAA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AE,gCAAwB,EAAE,OAAO,EAAE,6BAAqB,EAAE;CACzE,CAAC;AAEF,kBAAe,uBAAe,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input: PPT 高级美化操作参数
|
|
3
|
+
* Output: 高级美化操作结果
|
|
4
|
+
* Pos: PPT 高级美化工具实现。一旦我被修改,请更新我的头部注释,以及所属文件夹的md。
|
|
5
|
+
* PPT高级美化Tools - 高级美化模块
|
|
6
|
+
* 处理配色方案、自动美化、KPI卡片、装饰元素等高级美化操作
|
|
7
|
+
*
|
|
8
|
+
* 包含:
|
|
9
|
+
* - wps_ppt_apply_color_scheme: 应用配色方案
|
|
10
|
+
* - wps_ppt_auto_beautify_slide: 自动美化单页幻灯片
|
|
11
|
+
* - wps_ppt_beautify_all_slides: 批量美化所有幻灯片
|
|
12
|
+
* - wps_ppt_create_kpi_cards: 创建KPI指标卡片
|
|
13
|
+
* - wps_ppt_create_styled_table: 创建带样式的表格
|
|
14
|
+
* - wps_ppt_add_title_decoration: 添加标题装饰元素
|
|
15
|
+
* - wps_ppt_add_page_indicator: 添加页码指示器
|
|
16
|
+
* - wps_ppt_set_background_gradient: 设置渐变背景
|
|
17
|
+
*/
|
|
18
|
+
import { ToolDefinition, ToolHandler, RegisteredTool } from '../../types/tools';
|
|
19
|
+
/**
|
|
20
|
+
* 应用配色方案
|
|
21
|
+
* 为幻灯片或全文档应用统一配色方案
|
|
22
|
+
*/
|
|
23
|
+
export declare const applyColorSchemeDefinition: ToolDefinition;
|
|
24
|
+
export declare const applyColorSchemeHandler: ToolHandler;
|
|
25
|
+
/**
|
|
26
|
+
* 自动美化单页幻灯片
|
|
27
|
+
* 智能分析并优化单页幻灯片的排版、字体、间距和配色
|
|
28
|
+
*/
|
|
29
|
+
export declare const autoBeautifySlideDefinition: ToolDefinition;
|
|
30
|
+
export declare const autoBeautifySlideHandler: ToolHandler;
|
|
31
|
+
/**
|
|
32
|
+
* 批量美化所有幻灯片
|
|
33
|
+
* 对演示文稿中所有幻灯片应用统一美化风格
|
|
34
|
+
*/
|
|
35
|
+
export declare const beautifyAllSlidesDefinition: ToolDefinition;
|
|
36
|
+
export declare const beautifyAllSlidesHandler: ToolHandler;
|
|
37
|
+
/**
|
|
38
|
+
* 创建KPI指标卡片
|
|
39
|
+
* 在幻灯片上生成数据指标卡片,适合展示关键业绩数据
|
|
40
|
+
*/
|
|
41
|
+
export declare const createKpiCardsDefinition: ToolDefinition;
|
|
42
|
+
export declare const createKpiCardsHandler: ToolHandler;
|
|
43
|
+
/**
|
|
44
|
+
* 创建带样式的表格
|
|
45
|
+
* 插入预设样式的精美表格
|
|
46
|
+
*/
|
|
47
|
+
export declare const createStyledTableDefinition: ToolDefinition;
|
|
48
|
+
export declare const createStyledTableHandler: ToolHandler;
|
|
49
|
+
/**
|
|
50
|
+
* 添加标题装饰元素
|
|
51
|
+
* 为幻灯片标题添加装饰性元素(下划线、色块、图标等)
|
|
52
|
+
*/
|
|
53
|
+
export declare const addTitleDecorationDefinition: ToolDefinition;
|
|
54
|
+
export declare const addTitleDecorationHandler: ToolHandler;
|
|
55
|
+
/**
|
|
56
|
+
* 添加页码指示器
|
|
57
|
+
* 在幻灯片上添加页码/进度指示器
|
|
58
|
+
*/
|
|
59
|
+
export declare const addPageIndicatorDefinition: ToolDefinition;
|
|
60
|
+
export declare const addPageIndicatorHandler: ToolHandler;
|
|
61
|
+
/**
|
|
62
|
+
* 设置渐变背景
|
|
63
|
+
* 为幻灯片设置渐变色背景
|
|
64
|
+
*/
|
|
65
|
+
export declare const setBackgroundGradientDefinition: ToolDefinition;
|
|
66
|
+
export declare const setBackgroundGradientHandler: ToolHandler;
|
|
67
|
+
/**
|
|
68
|
+
* 导出所有高级美化相关的Tools
|
|
69
|
+
*/
|
|
70
|
+
export declare const beautifyAdvancedTools: RegisteredTool[];
|
|
71
|
+
export default beautifyAdvancedTools;
|
|
72
|
+
//# sourceMappingURL=beautify-advanced.d.ts.map
|