@ww_nero/skills 2.2.1 → 2.2.3
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/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -85,8 +85,9 @@ const GUIDES = {
|
|
|
85
85
|
- 如果用户未明确声明,则**默认比例为宽1280px、高720px,默认背景为深邃蓝色、科技感、弱渐变、简约风格**
|
|
86
86
|
- 不同页面应尽可能使用不同的布局方式,避免过于单调,可适当使用图表来呈现信息,例如折线图、柱状图、饼状图等,但背景颜色保持一致
|
|
87
87
|
- 如果需要插入图片,则按照以下方式:
|
|
88
|
-
-
|
|
89
|
-
-
|
|
88
|
+
- 收集全部图片素材,优先使用用户提供的图片;若未提供,则优先使用网络搜索合适的图片或图标并保存到本地;仍无合适的,则使用图像生成工具生成图片
|
|
89
|
+
- 将图片素材保存到\`images\`文件夹中,并使用临时python脚本获取每个图片的宽高比例
|
|
90
|
+
- 对图片素材进行重命名来编号,通过名称标识每个图片用于哪个slide及其宽高比例,例如\`slide_1_1_16_9.png\`表示该图片为第1张Slide中的第1张图,宽高比为16:9
|
|
90
91
|
|
|
91
92
|
2. **逐页生成SVG代码**:
|
|
92
93
|
- 对于插图,统一使用\`rect\`或\`circle\`元素进行占位(必须符合图片宽高比例),之后转化成pptx时,在python脚本中换成真实的本地图片
|
|
@@ -195,7 +196,7 @@ const listTools = () => ({
|
|
|
195
196
|
]
|
|
196
197
|
});
|
|
197
198
|
|
|
198
|
-
const server = new Server({ name: 'skills', version: '2.2.
|
|
199
|
+
const server = new Server({ name: 'skills', version: '2.2.3' }, { capabilities: { tools: {} } });
|
|
199
200
|
|
|
200
201
|
server.setRequestHandler(ListToolsRequestSchema, async () => listTools());
|
|
201
202
|
|