@ww_nero/skills 3.0.8 → 3.0.10
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 +0 -0
- package/assets/html_to_png.py +0 -0
- package/assets/pdf_to_png.py +0 -0
- package/assets/pptx_to_png.py +0 -0
- package/assets/svg_to_pptx.py +0 -0
- package/index.js +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
package/assets/html_to_png.py
CHANGED
|
File without changes
|
package/assets/pdf_to_png.py
CHANGED
|
File without changes
|
package/assets/pptx_to_png.py
CHANGED
|
File without changes
|
package/assets/svg_to_pptx.py
CHANGED
|
File without changes
|
package/index.js
CHANGED
|
@@ -183,9 +183,12 @@ const GUIDES = {
|
|
|
183
183
|
1. **规划PPT内容**,存储到markdown文件中:
|
|
184
184
|
- 每页Slide的规划需要包含:内容、布局方式、插图(只有用户明确提出要求时才添加插图)
|
|
185
185
|
- 不同页面应尽可能使用不同的布局方式,避免过于单调,可适当使用图表来呈现信息,例如折线图、柱状图、饼状图等;各正文页面标题样式、背景和文字色调**必须保持一致**。
|
|
186
|
-
- 如果用户未明确提出要求,则页面默认比例为宽1280px、高720px
|
|
186
|
+
- 如果用户未明确提出要求,则页面默认比例为宽1280px、高720px,默认背景为弱渐变的浅灰蓝(#F2F4F7 → #FCFCFC),现代科技感、扁平化风格。
|
|
187
187
|
- 如果需要插入图片,则按照以下方式:
|
|
188
|
-
-
|
|
188
|
+
- 收集图片素材,优先使用用户提供的图片;如未提供,**必须**首先尝试在互联网上搜索需要的图片素材,再使用图片生成工具生成作为兜底方案(成本较高)
|
|
189
|
+
- 常用的图片素材搜索网址:
|
|
190
|
+
- PNG素材、图标素材:https://www.pngsucai.com/
|
|
191
|
+
- 高清图片、设计图、摄影图素材:https://www.pexels.com/
|
|
189
192
|
- 将图片素材保存到\`images\`文件夹中,通过python脚本获取每个图片的宽高比例,然后对每张图片进行重命名,通过名称标识图片的内容及宽高比例,例如\`main_background_16_9.png\`表示该图片是主背景图,宽高比为16:9;对于用户提供的图片素材,可调用工具解读图片内容
|
|
190
193
|
|
|
191
194
|
2. **通过SVG代码实现Slides的排版**:
|
|
@@ -284,7 +287,7 @@ const listTools = () => ({
|
|
|
284
287
|
]
|
|
285
288
|
});
|
|
286
289
|
|
|
287
|
-
const server = new Server({ name: 'skills', version: '3.0.
|
|
290
|
+
const server = new Server({ name: 'skills', version: '3.0.10' }, { capabilities: { tools: {} } });
|
|
288
291
|
|
|
289
292
|
server.setRequestHandler(ListToolsRequestSchema, async () => listTools());
|
|
290
293
|
|