codewave-openclaw-installer 1.0.2 → 2.1.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.
- package/README.md +95 -22
- package/bin/check.mjs +623 -0
- package/bin/install-lib.mjs +215 -0
- package/bin/install.mjs +818 -76
- package/index.js +21 -0
- package/openclaw.plugin.json +11 -0
- package/package.json +28 -5
- package/skills/acceptance-doc-entry/SKILL.md +289 -0
- package/skills/meeting-to-prd/SKILL.md +210 -0
- package/skills/meeting-to-prd/references/meeting-notes-template.md +50 -0
- package/skills/meeting-to-prd/references/prd-reference.docx +0 -0
- package/skills/meeting-to-prd/references/prd-template.md +67 -0
- package/skills/pmo-weekly-report/SKILL.md +536 -0
- package/skills/popo-doc/SKILL.md +77 -0
- package/skills/popo-robot-api/SKILL.md +232 -0
- package/skills/ppt-master/SKILL.md +314 -0
- package/skills/ppt-master/projects/.gitkeep +0 -0
- package/skills/ppt-master/references/canvas-formats.md +73 -0
- package/skills/ppt-master/references/executor-base.md +198 -0
- package/skills/ppt-master/references/executor-consultant-top.md +218 -0
- package/skills/ppt-master/references/executor-consultant.md +197 -0
- package/skills/ppt-master/references/executor-general.md +122 -0
- package/skills/ppt-master/references/image-generator.md +444 -0
- package/skills/ppt-master/references/image-layout-spec.md +174 -0
- package/skills/ppt-master/references/shared-standards.md +442 -0
- package/skills/ppt-master/references/strategist.md +391 -0
- package/skills/ppt-master/references/svg-image-embedding.md +177 -0
- package/skills/ppt-master/references/template-designer.md +175 -0
- package/skills/ppt-master/scripts/README.md +78 -0
- package/skills/ppt-master/scripts/analyze_images.py +239 -0
- package/skills/ppt-master/scripts/assets/bg_48.png +0 -0
- package/skills/ppt-master/scripts/assets/bg_96.png +0 -0
- package/skills/ppt-master/scripts/batch_validate.py +309 -0
- package/skills/ppt-master/scripts/config.py +604 -0
- package/skills/ppt-master/scripts/doc_to_md.py +232 -0
- package/skills/ppt-master/scripts/docs/conversion.md +89 -0
- package/skills/ppt-master/scripts/docs/image.md +96 -0
- package/skills/ppt-master/scripts/docs/project.md +84 -0
- package/skills/ppt-master/scripts/docs/svg-pipeline.md +161 -0
- package/skills/ppt-master/scripts/docs/troubleshooting.md +62 -0
- package/skills/ppt-master/scripts/error_helper.py +438 -0
- package/skills/ppt-master/scripts/finalize_svg.py +302 -0
- package/skills/ppt-master/scripts/gemini_watermark_remover.py +230 -0
- package/skills/ppt-master/scripts/generate_examples_index.py +241 -0
- package/skills/ppt-master/scripts/image_backends/__init__.py +1 -0
- package/skills/ppt-master/scripts/image_backends/backend_aigw_gemini.py +209 -0
- package/skills/ppt-master/scripts/image_backends/backend_bfl.py +177 -0
- package/skills/ppt-master/scripts/image_backends/backend_common.py +244 -0
- package/skills/ppt-master/scripts/image_backends/backend_fal.py +127 -0
- package/skills/ppt-master/scripts/image_backends/backend_gemini.py +227 -0
- package/skills/ppt-master/scripts/image_backends/backend_ideogram.py +152 -0
- package/skills/ppt-master/scripts/image_backends/backend_openai.py +233 -0
- package/skills/ppt-master/scripts/image_backends/backend_qwen.py +197 -0
- package/skills/ppt-master/scripts/image_backends/backend_replicate.py +173 -0
- package/skills/ppt-master/scripts/image_backends/backend_siliconflow.py +180 -0
- package/skills/ppt-master/scripts/image_backends/backend_stability.py +143 -0
- package/skills/ppt-master/scripts/image_backends/backend_volcengine.py +187 -0
- package/skills/ppt-master/scripts/image_backends/backend_zhipu.py +188 -0
- package/skills/ppt-master/scripts/image_gen.py +412 -0
- package/skills/ppt-master/scripts/pdf_to_md.py +794 -0
- package/skills/ppt-master/scripts/pptx_animations.py +268 -0
- package/skills/ppt-master/scripts/project_manager.py +661 -0
- package/skills/ppt-master/scripts/project_utils.py +475 -0
- package/skills/ppt-master/scripts/rotate_images.py +583 -0
- package/skills/ppt-master/scripts/svg_finalize/__init__.py +1 -0
- package/skills/ppt-master/scripts/svg_finalize/crop_images.py +343 -0
- package/skills/ppt-master/scripts/svg_finalize/embed_icons.py +250 -0
- package/skills/ppt-master/scripts/svg_finalize/embed_images.py +184 -0
- package/skills/ppt-master/scripts/svg_finalize/fix_image_aspect.py +380 -0
- package/skills/ppt-master/scripts/svg_finalize/flatten_tspan.py +493 -0
- package/skills/ppt-master/scripts/svg_finalize/svg_rect_to_path.py +337 -0
- package/skills/ppt-master/scripts/svg_position_calculator.py +1486 -0
- package/skills/ppt-master/scripts/svg_quality_checker.py +487 -0
- package/skills/ppt-master/scripts/svg_to_pptx/__init__.py +17 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_context.py +102 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_converter.py +269 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_elements.py +848 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_paths.py +429 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_styles.py +359 -0
- package/skills/ppt-master/scripts/svg_to_pptx/drawingml_utils.py +310 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_builder.py +366 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_cli.py +196 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_dimensions.py +148 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_discovery.py +101 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_media.py +86 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_notes.py +157 -0
- package/skills/ppt-master/scripts/svg_to_pptx/pptx_slide_xml.py +136 -0
- package/skills/ppt-master/scripts/svg_to_pptx.py +17 -0
- package/skills/ppt-master/scripts/total_md_split.py +367 -0
- package/skills/ppt-master/scripts/web_to_md.cjs +850 -0
- package/skills/ppt-master/scripts/web_to_md.py +755 -0
- package/skills/ppt-master/templates/README.md +48 -0
- package/skills/ppt-master/templates/charts/README.md +102 -0
- package/skills/ppt-master/templates/charts/area_chart.svg +255 -0
- package/skills/ppt-master/templates/charts/bar_chart.svg +185 -0
- package/skills/ppt-master/templates/charts/box_plot_chart.svg +308 -0
- package/skills/ppt-master/templates/charts/bubble_chart.svg +289 -0
- package/skills/ppt-master/templates/charts/bullet_chart.svg +214 -0
- package/skills/ppt-master/templates/charts/butterfly_chart.svg +247 -0
- package/skills/ppt-master/templates/charts/charts_index.json +286 -0
- package/skills/ppt-master/templates/charts/donut_chart.svg +246 -0
- package/skills/ppt-master/templates/charts/dual_axis_line_chart.svg +311 -0
- package/skills/ppt-master/templates/charts/dumbbell_chart.svg +196 -0
- package/skills/ppt-master/templates/charts/funnel_chart.svg +241 -0
- package/skills/ppt-master/templates/charts/gantt_chart.svg +315 -0
- package/skills/ppt-master/templates/charts/gauge_chart.svg +262 -0
- package/skills/ppt-master/templates/charts/grouped_bar_chart.svg +275 -0
- package/skills/ppt-master/templates/charts/heatmap_chart.svg +214 -0
- package/skills/ppt-master/templates/charts/horizontal_bar_chart.svg +213 -0
- package/skills/ppt-master/templates/charts/kpi_cards.svg +215 -0
- package/skills/ppt-master/templates/charts/line_chart.svg +218 -0
- package/skills/ppt-master/templates/charts/matrix_2x2.svg +334 -0
- package/skills/ppt-master/templates/charts/org_chart.svg +316 -0
- package/skills/ppt-master/templates/charts/pareto_chart.svg +227 -0
- package/skills/ppt-master/templates/charts/pie_chart.svg +215 -0
- package/skills/ppt-master/templates/charts/porter_five_forces.svg +246 -0
- package/skills/ppt-master/templates/charts/process_flow.svg +333 -0
- package/skills/ppt-master/templates/charts/progress_bar_chart.svg +295 -0
- package/skills/ppt-master/templates/charts/radar_chart.svg +158 -0
- package/skills/ppt-master/templates/charts/sankey_chart.svg +303 -0
- package/skills/ppt-master/templates/charts/scatter_chart.svg +235 -0
- package/skills/ppt-master/templates/charts/stacked_area_chart.svg +230 -0
- package/skills/ppt-master/templates/charts/stacked_bar_chart.svg +199 -0
- package/skills/ppt-master/templates/charts/swot_analysis.svg +277 -0
- package/skills/ppt-master/templates/charts/timeline.svg +279 -0
- package/skills/ppt-master/templates/charts/treemap_chart.svg +226 -0
- package/skills/ppt-master/templates/charts/waterfall_chart.svg +265 -0
- package/skills/ppt-master/templates/design_spec_reference.md +282 -0
- package/skills/ppt-master/templates/icons/FULL_INDEX.md +272 -0
- package/skills/ppt-master/templates/icons/README.md +75 -0
- package/skills/ppt-master/templates/icons/a.svg +4 -0
- package/skills/ppt-master/templates/icons/accessibility.svg +4 -0
- package/skills/ppt-master/templates/icons/activity.svg +5 -0
- package/skills/ppt-master/templates/icons/address-card.svg +4 -0
- package/skills/ppt-master/templates/icons/alarm-clock.svg +6 -0
- package/skills/ppt-master/templates/icons/alien.svg +4 -0
- package/skills/ppt-master/templates/icons/align-bottom.svg +6 -0
- package/skills/ppt-master/templates/icons/align-center-horizontal.svg +5 -0
- package/skills/ppt-master/templates/icons/align-center-vertical.svg +5 -0
- package/skills/ppt-master/templates/icons/align-left.svg +6 -0
- package/skills/ppt-master/templates/icons/align-right.svg +6 -0
- package/skills/ppt-master/templates/icons/align-text-center.svg +7 -0
- package/skills/ppt-master/templates/icons/align-text-justify.svg +7 -0
- package/skills/ppt-master/templates/icons/align-text-left.svg +7 -0
- package/skills/ppt-master/templates/icons/align-text-right.svg +7 -0
- package/skills/ppt-master/templates/icons/align-top.svg +6 -0
- package/skills/ppt-master/templates/icons/anchor.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-down.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-left.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-right.svg +4 -0
- package/skills/ppt-master/templates/icons/angle-up.svg +4 -0
- package/skills/ppt-master/templates/icons/angles-down.svg +5 -0
- package/skills/ppt-master/templates/icons/angles-left.svg +5 -0
- package/skills/ppt-master/templates/icons/angles-right.svg +5 -0
- package/skills/ppt-master/templates/icons/angles-up.svg +5 -0
- package/skills/ppt-master/templates/icons/aperture.svg +9 -0
- package/skills/ppt-master/templates/icons/aquarius.svg +6 -0
- package/skills/ppt-master/templates/icons/archive-box.svg +5 -0
- package/skills/ppt-master/templates/icons/aries.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-down-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-down-short-wide.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-down-to-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-down-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-down-wide-short.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-left-arrow-right.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-left-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-left-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-right-from-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right-to-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-rotate-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-rotate-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-trend-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-trend-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-left-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-left-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-right-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-right-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-turn-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-left-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-left-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-right-down.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-right-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-u-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-up-arrow-down.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-from-bracket.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-from-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-up-right-from-square.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrow-up-short-wide.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-up-to-line.svg +5 -0
- package/skills/ppt-master/templates/icons/arrow-up-wide-short.svg +7 -0
- package/skills/ppt-master/templates/icons/arrow-up.svg +4 -0
- package/skills/ppt-master/templates/icons/arrows-left-right.svg +4 -0
- package/skills/ppt-master/templates/icons/arrows-repeat.svg +5 -0
- package/skills/ppt-master/templates/icons/arrows-rotate-clockwise.svg +5 -0
- package/skills/ppt-master/templates/icons/arrows-rotate-counter-clockwise.svg +5 -0
- package/skills/ppt-master/templates/icons/arrows-up-down.svg +4 -0
- package/skills/ppt-master/templates/icons/at.svg +4 -0
- package/skills/ppt-master/templates/icons/axe.svg +4 -0
- package/skills/ppt-master/templates/icons/b.svg +4 -0
- package/skills/ppt-master/templates/icons/badge-check.svg +4 -0
- package/skills/ppt-master/templates/icons/badge.svg +4 -0
- package/skills/ppt-master/templates/icons/ban.svg +4 -0
- package/skills/ppt-master/templates/icons/baseball-bat.svg +5 -0
- package/skills/ppt-master/templates/icons/baseball.svg +6 -0
- package/skills/ppt-master/templates/icons/basketball.svg +9 -0
- package/skills/ppt-master/templates/icons/battery-charge.svg +5 -0
- package/skills/ppt-master/templates/icons/battery-empty.svg +4 -0
- package/skills/ppt-master/templates/icons/battery-full.svg +4 -0
- package/skills/ppt-master/templates/icons/battery-half.svg +4 -0
- package/skills/ppt-master/templates/icons/battery-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/bed.svg +4 -0
- package/skills/ppt-master/templates/icons/bee.svg +5 -0
- package/skills/ppt-master/templates/icons/bell-slash.svg +6 -0
- package/skills/ppt-master/templates/icons/bell.svg +5 -0
- package/skills/ppt-master/templates/icons/bicycle.svg +7 -0
- package/skills/ppt-master/templates/icons/bishop.svg +4 -0
- package/skills/ppt-master/templates/icons/block-quote.svg +8 -0
- package/skills/ppt-master/templates/icons/bluetooth.svg +4 -0
- package/skills/ppt-master/templates/icons/bold.svg +4 -0
- package/skills/ppt-master/templates/icons/bolt.svg +4 -0
- package/skills/ppt-master/templates/icons/bomb.svg +6 -0
- package/skills/ppt-master/templates/icons/bone.svg +4 -0
- package/skills/ppt-master/templates/icons/book-open.svg +4 -0
- package/skills/ppt-master/templates/icons/book.svg +4 -0
- package/skills/ppt-master/templates/icons/bookmark-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/bookmark.svg +4 -0
- package/skills/ppt-master/templates/icons/books.svg +6 -0
- package/skills/ppt-master/templates/icons/bottle.svg +5 -0
- package/skills/ppt-master/templates/icons/bow-and-arrow.svg +4 -0
- package/skills/ppt-master/templates/icons/bowl.svg +5 -0
- package/skills/ppt-master/templates/icons/box.svg +4 -0
- package/skills/ppt-master/templates/icons/bridge.svg +4 -0
- package/skills/ppt-master/templates/icons/british-pound.svg +4 -0
- package/skills/ppt-master/templates/icons/browser.svg +4 -0
- package/skills/ppt-master/templates/icons/brush.svg +5 -0
- package/skills/ppt-master/templates/icons/bug.svg +5 -0
- package/skills/ppt-master/templates/icons/building.svg +4 -0
- package/skills/ppt-master/templates/icons/bullhorn.svg +5 -0
- package/skills/ppt-master/templates/icons/burger.svg +6 -0
- package/skills/ppt-master/templates/icons/bus.svg +4 -0
- package/skills/ppt-master/templates/icons/butterfly.svg +4 -0
- package/skills/ppt-master/templates/icons/c.svg +4 -0
- package/skills/ppt-master/templates/icons/cake-slice.svg +5 -0
- package/skills/ppt-master/templates/icons/cake.svg +8 -0
- package/skills/ppt-master/templates/icons/calculator.svg +4 -0
- package/skills/ppt-master/templates/icons/calendar.svg +5 -0
- package/skills/ppt-master/templates/icons/camera-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/camera.svg +4 -0
- package/skills/ppt-master/templates/icons/cancer.svg +5 -0
- package/skills/ppt-master/templates/icons/capricorn.svg +4 -0
- package/skills/ppt-master/templates/icons/car.svg +4 -0
- package/skills/ppt-master/templates/icons/card-stack.svg +6 -0
- package/skills/ppt-master/templates/icons/caret-down.svg +4 -0
- package/skills/ppt-master/templates/icons/caret-left.svg +4 -0
- package/skills/ppt-master/templates/icons/caret-right.svg +4 -0
- package/skills/ppt-master/templates/icons/caret-up.svg +4 -0
- package/skills/ppt-master/templates/icons/castle.svg +4 -0
- package/skills/ppt-master/templates/icons/cat.svg +5 -0
- package/skills/ppt-master/templates/icons/chair.svg +5 -0
- package/skills/ppt-master/templates/icons/chart-bar.svg +6 -0
- package/skills/ppt-master/templates/icons/chart-line.svg +5 -0
- package/skills/ppt-master/templates/icons/chart-pie.svg +5 -0
- package/skills/ppt-master/templates/icons/checkmark.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-3-dots-horizontal.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-3-dots-vertical.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-down-left.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-down-right.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-down.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-left.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-right.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-up-left.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-up-right.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-arrow-up.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-checkmark.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-divide.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-equals.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-half.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-info.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-minus.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-0.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-number-1.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-2.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-3.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-4.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-5.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-6.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-number-7.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-number-8.svg +6 -0
- package/skills/ppt-master/templates/icons/circle-number-9.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-pause.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-play.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-question.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-stop.svg +4 -0
- package/skills/ppt-master/templates/icons/circle-user.svg +5 -0
- package/skills/ppt-master/templates/icons/circle-x.svg +4 -0
- package/skills/ppt-master/templates/icons/circle.svg +4 -0
- package/skills/ppt-master/templates/icons/citrus-slice.svg +7 -0
- package/skills/ppt-master/templates/icons/city.svg +4 -0
- package/skills/ppt-master/templates/icons/clipboard.svg +5 -0
- package/skills/ppt-master/templates/icons/clock.svg +4 -0
- package/skills/ppt-master/templates/icons/closed-captioning.svg +4 -0
- package/skills/ppt-master/templates/icons/clothes-hanger.svg +4 -0
- package/skills/ppt-master/templates/icons/cloud-arrow-down.svg +4 -0
- package/skills/ppt-master/templates/icons/cloud-arrow-up.svg +4 -0
- package/skills/ppt-master/templates/icons/cloud-fog.svg +7 -0
- package/skills/ppt-master/templates/icons/cloud-lightning.svg +5 -0
- package/skills/ppt-master/templates/icons/cloud-rain.svg +7 -0
- package/skills/ppt-master/templates/icons/cloud-snow.svg +9 -0
- package/skills/ppt-master/templates/icons/cloud.svg +4 -0
- package/skills/ppt-master/templates/icons/club.svg +4 -0
- package/skills/ppt-master/templates/icons/cocktail.svg +4 -0
- package/skills/ppt-master/templates/icons/code-block.svg +4 -0
- package/skills/ppt-master/templates/icons/code.svg +6 -0
- package/skills/ppt-master/templates/icons/cog.svg +4 -0
- package/skills/ppt-master/templates/icons/coin.svg +4 -0
- package/skills/ppt-master/templates/icons/columns.svg +5 -0
- package/skills/ppt-master/templates/icons/command.svg +4 -0
- package/skills/ppt-master/templates/icons/comment-dots.svg +4 -0
- package/skills/ppt-master/templates/icons/comment.svg +4 -0
- package/skills/ppt-master/templates/icons/comments-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/comments.svg +5 -0
- package/skills/ppt-master/templates/icons/compact-disc.svg +4 -0
- package/skills/ppt-master/templates/icons/compass-drafting.svg +5 -0
- package/skills/ppt-master/templates/icons/compass.svg +5 -0
- package/skills/ppt-master/templates/icons/component.svg +7 -0
- package/skills/ppt-master/templates/icons/copy.svg +5 -0
- package/skills/ppt-master/templates/icons/copyright.svg +4 -0
- package/skills/ppt-master/templates/icons/credit-card.svg +5 -0
- package/skills/ppt-master/templates/icons/crop.svg +5 -0
- package/skills/ppt-master/templates/icons/crosshairs.svg +5 -0
- package/skills/ppt-master/templates/icons/crown.svg +4 -0
- package/skills/ppt-master/templates/icons/crystal-ball.svg +5 -0
- package/skills/ppt-master/templates/icons/cube.svg +4 -0
- package/skills/ppt-master/templates/icons/cupcake.svg +5 -0
- package/skills/ppt-master/templates/icons/curling-stone.svg +5 -0
- package/skills/ppt-master/templates/icons/cursor-click.svg +7 -0
- package/skills/ppt-master/templates/icons/cursor.svg +4 -0
- package/skills/ppt-master/templates/icons/d-pad.svg +7 -0
- package/skills/ppt-master/templates/icons/d.svg +4 -0
- package/skills/ppt-master/templates/icons/database.svg +6 -0
- package/skills/ppt-master/templates/icons/delete.svg +4 -0
- package/skills/ppt-master/templates/icons/desktop.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond-half.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond-shape.svg +4 -0
- package/skills/ppt-master/templates/icons/diamond.svg +4 -0
- package/skills/ppt-master/templates/icons/dice.svg +5 -0
- package/skills/ppt-master/templates/icons/die-1.svg +4 -0
- package/skills/ppt-master/templates/icons/die-2.svg +4 -0
- package/skills/ppt-master/templates/icons/die-3.svg +4 -0
- package/skills/ppt-master/templates/icons/die-4.svg +4 -0
- package/skills/ppt-master/templates/icons/die-5.svg +4 -0
- package/skills/ppt-master/templates/icons/die-6.svg +4 -0
- package/skills/ppt-master/templates/icons/distribute-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/distribute-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/divide.svg +6 -0
- package/skills/ppt-master/templates/icons/dna.svg +4 -0
- package/skills/ppt-master/templates/icons/dog.svg +4 -0
- package/skills/ppt-master/templates/icons/dollar.svg +4 -0
- package/skills/ppt-master/templates/icons/door-open.svg +4 -0
- package/skills/ppt-master/templates/icons/door.svg +4 -0
- package/skills/ppt-master/templates/icons/dots-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/dots-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/droplet.svg +4 -0
- package/skills/ppt-master/templates/icons/e.svg +4 -0
- package/skills/ppt-master/templates/icons/ear-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/ear.svg +4 -0
- package/skills/ppt-master/templates/icons/eject.svg +5 -0
- package/skills/ppt-master/templates/icons/envelope.svg +5 -0
- package/skills/ppt-master/templates/icons/equals.svg +5 -0
- package/skills/ppt-master/templates/icons/euro.svg +4 -0
- package/skills/ppt-master/templates/icons/exclude.svg +4 -0
- package/skills/ppt-master/templates/icons/eye-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/eye.svg +4 -0
- package/skills/ppt-master/templates/icons/eyedropper.svg +5 -0
- package/skills/ppt-master/templates/icons/f.svg +4 -0
- package/skills/ppt-master/templates/icons/face-angry.svg +4 -0
- package/skills/ppt-master/templates/icons/face-cry.svg +4 -0
- package/skills/ppt-master/templates/icons/face-id.svg +10 -0
- package/skills/ppt-master/templates/icons/face-laugh.svg +4 -0
- package/skills/ppt-master/templates/icons/face-meh.svg +4 -0
- package/skills/ppt-master/templates/icons/face-melt.svg +4 -0
- package/skills/ppt-master/templates/icons/face-no-mouth.svg +4 -0
- package/skills/ppt-master/templates/icons/face-open-mouth.svg +4 -0
- package/skills/ppt-master/templates/icons/face-sad.svg +4 -0
- package/skills/ppt-master/templates/icons/face-smile.svg +4 -0
- package/skills/ppt-master/templates/icons/factory.svg +4 -0
- package/skills/ppt-master/templates/icons/fast-forward.svg +4 -0
- package/skills/ppt-master/templates/icons/file-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/file.svg +5 -0
- package/skills/ppt-master/templates/icons/files.svg +5 -0
- package/skills/ppt-master/templates/icons/film.svg +4 -0
- package/skills/ppt-master/templates/icons/filter.svg +7 -0
- package/skills/ppt-master/templates/icons/fire.svg +4 -0
- package/skills/ppt-master/templates/icons/fireplace.svg +5 -0
- package/skills/ppt-master/templates/icons/fish.svg +4 -0
- package/skills/ppt-master/templates/icons/flag.svg +4 -0
- package/skills/ppt-master/templates/icons/floppy-disk.svg +5 -0
- package/skills/ppt-master/templates/icons/flower.svg +6 -0
- package/skills/ppt-master/templates/icons/folder-open.svg +4 -0
- package/skills/ppt-master/templates/icons/folder.svg +4 -0
- package/skills/ppt-master/templates/icons/folders.svg +5 -0
- package/skills/ppt-master/templates/icons/font-case.svg +5 -0
- package/skills/ppt-master/templates/icons/football.svg +4 -0
- package/skills/ppt-master/templates/icons/frame.svg +4 -0
- package/skills/ppt-master/templates/icons/funnel.svg +4 -0
- package/skills/ppt-master/templates/icons/g.svg +4 -0
- package/skills/ppt-master/templates/icons/game-controller.svg +4 -0
- package/skills/ppt-master/templates/icons/gauge-high.svg +4 -0
- package/skills/ppt-master/templates/icons/gauge-low.svg +4 -0
- package/skills/ppt-master/templates/icons/gauge-medium.svg +4 -0
- package/skills/ppt-master/templates/icons/gem.svg +4 -0
- package/skills/ppt-master/templates/icons/gemini.svg +4 -0
- package/skills/ppt-master/templates/icons/ghost.svg +4 -0
- package/skills/ppt-master/templates/icons/gift.svg +6 -0
- package/skills/ppt-master/templates/icons/git-branch.svg +4 -0
- package/skills/ppt-master/templates/icons/git-commit.svg +4 -0
- package/skills/ppt-master/templates/icons/git-compare.svg +5 -0
- package/skills/ppt-master/templates/icons/git-fork.svg +4 -0
- package/skills/ppt-master/templates/icons/git-merge.svg +4 -0
- package/skills/ppt-master/templates/icons/glasses.svg +4 -0
- package/skills/ppt-master/templates/icons/globe.svg +7 -0
- package/skills/ppt-master/templates/icons/grid-masonry.svg +7 -0
- package/skills/ppt-master/templates/icons/grid.svg +4 -0
- package/skills/ppt-master/templates/icons/grip-horizontal.svg +9 -0
- package/skills/ppt-master/templates/icons/grip-vertical.svg +9 -0
- package/skills/ppt-master/templates/icons/group.svg +15 -0
- package/skills/ppt-master/templates/icons/h.svg +4 -0
- package/skills/ppt-master/templates/icons/hammer.svg +5 -0
- package/skills/ppt-master/templates/icons/hand-tap.svg +7 -0
- package/skills/ppt-master/templates/icons/hand.svg +4 -0
- package/skills/ppt-master/templates/icons/hashtag.svg +4 -0
- package/skills/ppt-master/templates/icons/head-side.svg +4 -0
- package/skills/ppt-master/templates/icons/headlights.svg +7 -0
- package/skills/ppt-master/templates/icons/headphones.svg +4 -0
- package/skills/ppt-master/templates/icons/heart-broken.svg +4 -0
- package/skills/ppt-master/templates/icons/heart-half.svg +4 -0
- package/skills/ppt-master/templates/icons/heart.svg +4 -0
- package/skills/ppt-master/templates/icons/hexagon.svg +4 -0
- package/skills/ppt-master/templates/icons/hockey.svg +6 -0
- package/skills/ppt-master/templates/icons/home-1.svg +4 -0
- package/skills/ppt-master/templates/icons/home.svg +4 -0
- package/skills/ppt-master/templates/icons/hospital.svg +4 -0
- package/skills/ppt-master/templates/icons/hourglass-empty.svg +4 -0
- package/skills/ppt-master/templates/icons/hourglass-half-bottom.svg +4 -0
- package/skills/ppt-master/templates/icons/hourglass-half-top.svg +4 -0
- package/skills/ppt-master/templates/icons/i-cursor.svg +4 -0
- package/skills/ppt-master/templates/icons/i.svg +4 -0
- package/skills/ppt-master/templates/icons/ice-cream.svg +5 -0
- package/skills/ppt-master/templates/icons/icons_index.json +257 -0
- package/skills/ppt-master/templates/icons/image.svg +4 -0
- package/skills/ppt-master/templates/icons/images.svg +5 -0
- package/skills/ppt-master/templates/icons/inbox.svg +4 -0
- package/skills/ppt-master/templates/icons/indent.svg +8 -0
- package/skills/ppt-master/templates/icons/intersect.svg +4 -0
- package/skills/ppt-master/templates/icons/italic.svg +4 -0
- package/skills/ppt-master/templates/icons/j.svg +4 -0
- package/skills/ppt-master/templates/icons/jersey.svg +5 -0
- package/skills/ppt-master/templates/icons/joystick.svg +4 -0
- package/skills/ppt-master/templates/icons/k.svg +4 -0
- package/skills/ppt-master/templates/icons/key-skeleton.svg +4 -0
- package/skills/ppt-master/templates/icons/key.svg +4 -0
- package/skills/ppt-master/templates/icons/keyboard.svg +14 -0
- package/skills/ppt-master/templates/icons/keyhole.svg +4 -0
- package/skills/ppt-master/templates/icons/king.svg +4 -0
- package/skills/ppt-master/templates/icons/knight.svg +4 -0
- package/skills/ppt-master/templates/icons/l.svg +4 -0
- package/skills/ppt-master/templates/icons/label.svg +4 -0
- package/skills/ppt-master/templates/icons/ladder.svg +4 -0
- package/skills/ppt-master/templates/icons/lamp.svg +5 -0
- package/skills/ppt-master/templates/icons/language.svg +4 -0
- package/skills/ppt-master/templates/icons/laptop.svg +5 -0
- package/skills/ppt-master/templates/icons/laundry-machine.svg +4 -0
- package/skills/ppt-master/templates/icons/layers.svg +6 -0
- package/skills/ppt-master/templates/icons/leaf.svg +4 -0
- package/skills/ppt-master/templates/icons/leo.svg +4 -0
- package/skills/ppt-master/templates/icons/libra.svg +5 -0
- package/skills/ppt-master/templates/icons/life-ring.svg +4 -0
- package/skills/ppt-master/templates/icons/lightbulb.svg +4 -0
- package/skills/ppt-master/templates/icons/lines-magnifying-glass.svg +8 -0
- package/skills/ppt-master/templates/icons/lines-plus.svg +8 -0
- package/skills/ppt-master/templates/icons/lines.svg +7 -0
- package/skills/ppt-master/templates/icons/link.svg +6 -0
- package/skills/ppt-master/templates/icons/list-ordered.svg +9 -0
- package/skills/ppt-master/templates/icons/list.svg +11 -0
- package/skills/ppt-master/templates/icons/location-arrow-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/location-arrow.svg +4 -0
- package/skills/ppt-master/templates/icons/location-target.svg +5 -0
- package/skills/ppt-master/templates/icons/lock-closed.svg +4 -0
- package/skills/ppt-master/templates/icons/lock-open.svg +4 -0
- package/skills/ppt-master/templates/icons/m.svg +4 -0
- package/skills/ppt-master/templates/icons/magnet.svg +6 -0
- package/skills/ppt-master/templates/icons/magnifying-glass.svg +4 -0
- package/skills/ppt-master/templates/icons/mailbox.svg +4 -0
- package/skills/ppt-master/templates/icons/map-pin.svg +4 -0
- package/skills/ppt-master/templates/icons/map.svg +6 -0
- package/skills/ppt-master/templates/icons/maximize.svg +5 -0
- package/skills/ppt-master/templates/icons/meeple.svg +4 -0
- package/skills/ppt-master/templates/icons/megaphone.svg +4 -0
- package/skills/ppt-master/templates/icons/meteor.svg +4 -0
- package/skills/ppt-master/templates/icons/microchip.svg +5 -0
- package/skills/ppt-master/templates/icons/microphone-slash.svg +6 -0
- package/skills/ppt-master/templates/icons/microphone.svg +5 -0
- package/skills/ppt-master/templates/icons/minimize.svg +5 -0
- package/skills/ppt-master/templates/icons/minus.svg +4 -0
- package/skills/ppt-master/templates/icons/mobile.svg +4 -0
- package/skills/ppt-master/templates/icons/money.svg +8 -0
- package/skills/ppt-master/templates/icons/moon-cloud.svg +6 -0
- package/skills/ppt-master/templates/icons/moon-fog.svg +7 -0
- package/skills/ppt-master/templates/icons/moon.svg +5 -0
- package/skills/ppt-master/templates/icons/mortarboard.svg +5 -0
- package/skills/ppt-master/templates/icons/mountains.svg +4 -0
- package/skills/ppt-master/templates/icons/mouse.svg +6 -0
- package/skills/ppt-master/templates/icons/move-down.svg +6 -0
- package/skills/ppt-master/templates/icons/move-up.svg +6 -0
- package/skills/ppt-master/templates/icons/mug.svg +7 -0
- package/skills/ppt-master/templates/icons/museum.svg +5 -0
- package/skills/ppt-master/templates/icons/music.svg +4 -0
- package/skills/ppt-master/templates/icons/n.svg +4 -0
- package/skills/ppt-master/templates/icons/newspaper.svg +4 -0
- package/skills/ppt-master/templates/icons/number-0-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-0.svg +4 -0
- package/skills/ppt-master/templates/icons/number-1-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-1.svg +4 -0
- package/skills/ppt-master/templates/icons/number-2-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-2.svg +4 -0
- package/skills/ppt-master/templates/icons/number-3-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-3.svg +4 -0
- package/skills/ppt-master/templates/icons/number-4-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-4.svg +4 -0
- package/skills/ppt-master/templates/icons/number-5-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-5.svg +4 -0
- package/skills/ppt-master/templates/icons/number-6-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-6.svg +4 -0
- package/skills/ppt-master/templates/icons/number-7-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-7.svg +4 -0
- package/skills/ppt-master/templates/icons/number-8-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-8.svg +4 -0
- package/skills/ppt-master/templates/icons/number-9-alt.svg +4 -0
- package/skills/ppt-master/templates/icons/number-9.svg +4 -0
- package/skills/ppt-master/templates/icons/nut.svg +4 -0
- package/skills/ppt-master/templates/icons/o.svg +4 -0
- package/skills/ppt-master/templates/icons/octagon-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/octagon.svg +4 -0
- package/skills/ppt-master/templates/icons/option.svg +5 -0
- package/skills/ppt-master/templates/icons/outdent.svg +8 -0
- package/skills/ppt-master/templates/icons/outlet.svg +4 -0
- package/skills/ppt-master/templates/icons/p.svg +4 -0
- package/skills/ppt-master/templates/icons/paint-bucket.svg +5 -0
- package/skills/ppt-master/templates/icons/paint-roller.svg +4 -0
- package/skills/ppt-master/templates/icons/painting.svg +5 -0
- package/skills/ppt-master/templates/icons/palette.svg +4 -0
- package/skills/ppt-master/templates/icons/pants.svg +4 -0
- package/skills/ppt-master/templates/icons/paper-plane.svg +4 -0
- package/skills/ppt-master/templates/icons/paperclip.svg +4 -0
- package/skills/ppt-master/templates/icons/pause.svg +5 -0
- package/skills/ppt-master/templates/icons/paw.svg +8 -0
- package/skills/ppt-master/templates/icons/pawn.svg +4 -0
- package/skills/ppt-master/templates/icons/pen-nib.svg +4 -0
- package/skills/ppt-master/templates/icons/pencil-square.svg +5 -0
- package/skills/ppt-master/templates/icons/pencil.svg +5 -0
- package/skills/ppt-master/templates/icons/percent.svg +6 -0
- package/skills/ppt-master/templates/icons/person-walking.svg +5 -0
- package/skills/ppt-master/templates/icons/person-wave.svg +5 -0
- package/skills/ppt-master/templates/icons/person.svg +5 -0
- package/skills/ppt-master/templates/icons/phone-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/phone.svg +4 -0
- package/skills/ppt-master/templates/icons/pills.svg +6 -0
- package/skills/ppt-master/templates/icons/pisces.svg +4 -0
- package/skills/ppt-master/templates/icons/pizza.svg +5 -0
- package/skills/ppt-master/templates/icons/plane.svg +4 -0
- package/skills/ppt-master/templates/icons/planet.svg +5 -0
- package/skills/ppt-master/templates/icons/play-pause.svg +6 -0
- package/skills/ppt-master/templates/icons/play.svg +4 -0
- package/skills/ppt-master/templates/icons/playing-card.svg +4 -0
- package/skills/ppt-master/templates/icons/plug.svg +4 -0
- package/skills/ppt-master/templates/icons/plus.svg +4 -0
- package/skills/ppt-master/templates/icons/point-down.svg +4 -0
- package/skills/ppt-master/templates/icons/point-left.svg +4 -0
- package/skills/ppt-master/templates/icons/point-right.svg +4 -0
- package/skills/ppt-master/templates/icons/point-up.svg +4 -0
- package/skills/ppt-master/templates/icons/poop.svg +4 -0
- package/skills/ppt-master/templates/icons/potion-empty.svg +4 -0
- package/skills/ppt-master/templates/icons/potion-full.svg +4 -0
- package/skills/ppt-master/templates/icons/potion-half.svg +4 -0
- package/skills/ppt-master/templates/icons/power.svg +5 -0
- package/skills/ppt-master/templates/icons/printer.svg +5 -0
- package/skills/ppt-master/templates/icons/q.svg +4 -0
- package/skills/ppt-master/templates/icons/queen.svg +5 -0
- package/skills/ppt-master/templates/icons/question-mark.svg +5 -0
- package/skills/ppt-master/templates/icons/quote-left.svg +5 -0
- package/skills/ppt-master/templates/icons/quote-right.svg +5 -0
- package/skills/ppt-master/templates/icons/radar.svg +4 -0
- package/skills/ppt-master/templates/icons/radioactive.svg +4 -0
- package/skills/ppt-master/templates/icons/rainbow-cloud.svg +6 -0
- package/skills/ppt-master/templates/icons/rainbow.svg +5 -0
- package/skills/ppt-master/templates/icons/receipt.svg +4 -0
- package/skills/ppt-master/templates/icons/recycle.svg +6 -0
- package/skills/ppt-master/templates/icons/reflect-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/reflect-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/rewind.svg +4 -0
- package/skills/ppt-master/templates/icons/robot.svg +4 -0
- package/skills/ppt-master/templates/icons/rocket.svg +5 -0
- package/skills/ppt-master/templates/icons/rook.svg +4 -0
- package/skills/ppt-master/templates/icons/route.svg +6 -0
- package/skills/ppt-master/templates/icons/rows.svg +5 -0
- package/skills/ppt-master/templates/icons/rss.svg +6 -0
- package/skills/ppt-master/templates/icons/ruler.svg +4 -0
- package/skills/ppt-master/templates/icons/s.svg +4 -0
- package/skills/ppt-master/templates/icons/sagittarius.svg +4 -0
- package/skills/ppt-master/templates/icons/scissors.svg +5 -0
- package/skills/ppt-master/templates/icons/scooter.svg +4 -0
- package/skills/ppt-master/templates/icons/scorpio.svg +4 -0
- package/skills/ppt-master/templates/icons/screencast.svg +6 -0
- package/skills/ppt-master/templates/icons/screw.svg +6 -0
- package/skills/ppt-master/templates/icons/screwdriver.svg +5 -0
- package/skills/ppt-master/templates/icons/scribble.svg +5 -0
- package/skills/ppt-master/templates/icons/seedling.svg +4 -0
- package/skills/ppt-master/templates/icons/server.svg +5 -0
- package/skills/ppt-master/templates/icons/service-bell.svg +5 -0
- package/skills/ppt-master/templates/icons/share-nodes.svg +4 -0
- package/skills/ppt-master/templates/icons/shield-check.svg +4 -0
- package/skills/ppt-master/templates/icons/shield-half.svg +4 -0
- package/skills/ppt-master/templates/icons/shield.svg +4 -0
- package/skills/ppt-master/templates/icons/shift.svg +4 -0
- package/skills/ppt-master/templates/icons/ship.svg +5 -0
- package/skills/ppt-master/templates/icons/shirt.svg +4 -0
- package/skills/ppt-master/templates/icons/shoe.svg +5 -0
- package/skills/ppt-master/templates/icons/shop.svg +5 -0
- package/skills/ppt-master/templates/icons/shopping-bag.svg +5 -0
- package/skills/ppt-master/templates/icons/shopping-basket.svg +4 -0
- package/skills/ppt-master/templates/icons/shopping-cart.svg +4 -0
- package/skills/ppt-master/templates/icons/shuffle.svg +5 -0
- package/skills/ppt-master/templates/icons/sidebar-left.svg +5 -0
- package/skills/ppt-master/templates/icons/sidebar-right.svg +5 -0
- package/skills/ppt-master/templates/icons/signal-fair.svg +5 -0
- package/skills/ppt-master/templates/icons/signal-good.svg +6 -0
- package/skills/ppt-master/templates/icons/signal-slash.svg +7 -0
- package/skills/ppt-master/templates/icons/signal-weak.svg +4 -0
- package/skills/ppt-master/templates/icons/signal.svg +7 -0
- package/skills/ppt-master/templates/icons/signpost.svg +5 -0
- package/skills/ppt-master/templates/icons/sink.svg +5 -0
- package/skills/ppt-master/templates/icons/skip-backward.svg +4 -0
- package/skills/ppt-master/templates/icons/skip-forward.svg +4 -0
- package/skills/ppt-master/templates/icons/skull.svg +4 -0
- package/skills/ppt-master/templates/icons/sliders.svg +5 -0
- package/skills/ppt-master/templates/icons/smartwatch.svg +4 -0
- package/skills/ppt-master/templates/icons/snow.svg +4 -0
- package/skills/ppt-master/templates/icons/soccer.svg +9 -0
- package/skills/ppt-master/templates/icons/soda.svg +5 -0
- package/skills/ppt-master/templates/icons/sort.svg +5 -0
- package/skills/ppt-master/templates/icons/spade.svg +4 -0
- package/skills/ppt-master/templates/icons/sparkles.svg +8 -0
- package/skills/ppt-master/templates/icons/square-checkmark.svg +4 -0
- package/skills/ppt-master/templates/icons/square-divide.svg +4 -0
- package/skills/ppt-master/templates/icons/square-equals.svg +4 -0
- package/skills/ppt-master/templates/icons/square-minus.svg +4 -0
- package/skills/ppt-master/templates/icons/square-plus.svg +4 -0
- package/skills/ppt-master/templates/icons/square-user.svg +5 -0
- package/skills/ppt-master/templates/icons/square-x.svg +4 -0
- package/skills/ppt-master/templates/icons/square.svg +4 -0
- package/skills/ppt-master/templates/icons/squares-horizontal.svg +6 -0
- package/skills/ppt-master/templates/icons/squares-vertical.svg +6 -0
- package/skills/ppt-master/templates/icons/star-half.svg +4 -0
- package/skills/ppt-master/templates/icons/star.svg +4 -0
- package/skills/ppt-master/templates/icons/sticky-note.svg +5 -0
- package/skills/ppt-master/templates/icons/stop.svg +4 -0
- package/skills/ppt-master/templates/icons/stopwatch.svg +4 -0
- package/skills/ppt-master/templates/icons/strikethrough.svg +5 -0
- package/skills/ppt-master/templates/icons/subtract.svg +4 -0
- package/skills/ppt-master/templates/icons/suitcase.svg +6 -0
- package/skills/ppt-master/templates/icons/sun-cloud.svg +9 -0
- package/skills/ppt-master/templates/icons/sun-fog.svg +12 -0
- package/skills/ppt-master/templates/icons/sun.svg +12 -0
- package/skills/ppt-master/templates/icons/sunglasses.svg +4 -0
- package/skills/ppt-master/templates/icons/swatches.svg +6 -0
- package/skills/ppt-master/templates/icons/sword.svg +4 -0
- package/skills/ppt-master/templates/icons/swords-crossed.svg +6 -0
- package/skills/ppt-master/templates/icons/t.svg +4 -0
- package/skills/ppt-master/templates/icons/table.svg +8 -0
- package/skills/ppt-master/templates/icons/tag.svg +4 -0
- package/skills/ppt-master/templates/icons/target-arrow.svg +6 -0
- package/skills/ppt-master/templates/icons/target.svg +5 -0
- package/skills/ppt-master/templates/icons/taurus.svg +4 -0
- package/skills/ppt-master/templates/icons/temperature-high.svg +8 -0
- package/skills/ppt-master/templates/icons/temperature-low.svg +8 -0
- package/skills/ppt-master/templates/icons/temperature-medium.svg +8 -0
- package/skills/ppt-master/templates/icons/tennis-ball.svg +6 -0
- package/skills/ppt-master/templates/icons/terminal.svg +5 -0
- package/skills/ppt-master/templates/icons/text.svg +4 -0
- package/skills/ppt-master/templates/icons/thumbs-down.svg +5 -0
- package/skills/ppt-master/templates/icons/thumbs-up.svg +5 -0
- package/skills/ppt-master/templates/icons/thumbtack.svg +5 -0
- package/skills/ppt-master/templates/icons/ticket.svg +4 -0
- package/skills/ppt-master/templates/icons/toggle-circle-left.svg +4 -0
- package/skills/ppt-master/templates/icons/toggle-circle-right.svg +4 -0
- package/skills/ppt-master/templates/icons/toolbox.svg +5 -0
- package/skills/ppt-master/templates/icons/traffic-cone.svg +6 -0
- package/skills/ppt-master/templates/icons/traffic-light.svg +4 -0
- package/skills/ppt-master/templates/icons/train.svg +4 -0
- package/skills/ppt-master/templates/icons/trash.svg +5 -0
- package/skills/ppt-master/templates/icons/tree-evergreen.svg +4 -0
- package/skills/ppt-master/templates/icons/tree.svg +4 -0
- package/skills/ppt-master/templates/icons/triangle-exclamation.svg +4 -0
- package/skills/ppt-master/templates/icons/triangle.svg +4 -0
- package/skills/ppt-master/templates/icons/trophy.svg +4 -0
- package/skills/ppt-master/templates/icons/truck.svg +4 -0
- package/skills/ppt-master/templates/icons/tv-retro.svg +4 -0
- package/skills/ppt-master/templates/icons/tv.svg +5 -0
- package/skills/ppt-master/templates/icons/u.svg +4 -0
- package/skills/ppt-master/templates/icons/ufo.svg +5 -0
- package/skills/ppt-master/templates/icons/umbrella.svg +4 -0
- package/skills/ppt-master/templates/icons/underline.svg +5 -0
- package/skills/ppt-master/templates/icons/unite.svg +4 -0
- package/skills/ppt-master/templates/icons/user.svg +5 -0
- package/skills/ppt-master/templates/icons/users.svg +7 -0
- package/skills/ppt-master/templates/icons/utensils.svg +5 -0
- package/skills/ppt-master/templates/icons/v.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-circle.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-curve.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-line.svg +4 -0
- package/skills/ppt-master/templates/icons/vector-square.svg +4 -0
- package/skills/ppt-master/templates/icons/video-camera-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/video-camera.svg +5 -0
- package/skills/ppt-master/templates/icons/video.svg +4 -0
- package/skills/ppt-master/templates/icons/virgo.svg +4 -0
- package/skills/ppt-master/templates/icons/volume-high.svg +6 -0
- package/skills/ppt-master/templates/icons/volume-low.svg +5 -0
- package/skills/ppt-master/templates/icons/volume-none.svg +4 -0
- package/skills/ppt-master/templates/icons/volume-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/volume-x.svg +5 -0
- package/skills/ppt-master/templates/icons/vr.svg +4 -0
- package/skills/ppt-master/templates/icons/w.svg +4 -0
- package/skills/ppt-master/templates/icons/wallet.svg +4 -0
- package/skills/ppt-master/templates/icons/wand-with-sparkles.svg +7 -0
- package/skills/ppt-master/templates/icons/watch.svg +4 -0
- package/skills/ppt-master/templates/icons/water.svg +5 -0
- package/skills/ppt-master/templates/icons/waveform.svg +7 -0
- package/skills/ppt-master/templates/icons/wheelchair.svg +5 -0
- package/skills/ppt-master/templates/icons/wifi-low.svg +4 -0
- package/skills/ppt-master/templates/icons/wifi-medium.svg +5 -0
- package/skills/ppt-master/templates/icons/wifi-slash.svg +5 -0
- package/skills/ppt-master/templates/icons/wifi.svg +6 -0
- package/skills/ppt-master/templates/icons/wind.svg +5 -0
- package/skills/ppt-master/templates/icons/window.svg +6 -0
- package/skills/ppt-master/templates/icons/wine-glass.svg +4 -0
- package/skills/ppt-master/templates/icons/wrench.svg +4 -0
- package/skills/ppt-master/templates/icons/x-1.svg +4 -0
- package/skills/ppt-master/templates/icons/x.svg +4 -0
- package/skills/ppt-master/templates/icons/y.svg +4 -0
- package/skills/ppt-master/templates/icons/yen.svg +4 -0
- package/skills/ppt-master/templates/icons/z.svg +4 -0
- package/skills/ppt-master/templates/icons/zoom-in.svg +4 -0
- package/skills/ppt-master/templates/icons/zoom-out.svg +4 -0
- package/skills/ppt-master/templates/layouts/README.md +257 -0
- package/skills/ppt-master/templates/layouts/academic_defense/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts/academic_defense/02_chapter.svg +36 -0
- package/skills/ppt-master/templates/layouts/academic_defense/02_toc.svg +63 -0
- package/skills/ppt-master/templates/layouts/academic_defense/03_content.svg +58 -0
- package/skills/ppt-master/templates/layouts/academic_defense/04_ending.svg +52 -0
- package/skills/ppt-master/templates/layouts/academic_defense/design_spec.md +294 -0
- package/skills/ppt-master/templates/layouts/ai_ops/01_cover.svg +65 -0
- package/skills/ppt-master/templates/layouts/ai_ops/02_chapter.svg +36 -0
- package/skills/ppt-master/templates/layouts/ai_ops/02_toc.svg +51 -0
- package/skills/ppt-master/templates/layouts/ai_ops/03_content.svg +37 -0
- package/skills/ppt-master/templates/layouts/ai_ops/04_ending.svg +59 -0
- package/skills/ppt-master/templates/layouts/ai_ops/design_spec.md +357 -0
- package/skills/ppt-master/templates/layouts/ai_ops/reference_style.svg +154 -0
- package/skills/ppt-master/templates/layouts/anthropic/01_cover.svg +105 -0
- package/skills/ppt-master/templates/layouts/anthropic/02_chapter.svg +75 -0
- package/skills/ppt-master/templates/layouts/anthropic/02_toc.svg +120 -0
- package/skills/ppt-master/templates/layouts/anthropic/03_content.svg +118 -0
- package/skills/ppt-master/templates/layouts/anthropic/04_ending.svg +107 -0
- package/skills/ppt-master/templates/layouts/anthropic/design_spec.md +243 -0
- package/skills/ppt-master/templates/layouts/exhibit/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts/exhibit/02_chapter.svg +43 -0
- package/skills/ppt-master/templates/layouts/exhibit/02_toc.svg +82 -0
- package/skills/ppt-master/templates/layouts/exhibit/03_content.svg +38 -0
- package/skills/ppt-master/templates/layouts/exhibit/04_ending.svg +54 -0
- package/skills/ppt-master/templates/layouts/exhibit/design_spec.md +244 -0
- package/skills/ppt-master/templates/layouts/google_style/01_cover.svg +79 -0
- package/skills/ppt-master/templates/layouts/google_style/02_chapter.svg +62 -0
- package/skills/ppt-master/templates/layouts/google_style/02_toc.svg +89 -0
- package/skills/ppt-master/templates/layouts/google_style/03_content.svg +72 -0
- package/skills/ppt-master/templates/layouts/google_style/04_ending.svg +97 -0
- package/skills/ppt-master/templates/layouts/google_style/design_spec.md +303 -0
- package/skills/ppt-master/templates/layouts/government_blue/01_cover.svg +93 -0
- package/skills/ppt-master/templates/layouts/government_blue/02_chapter.svg +82 -0
- package/skills/ppt-master/templates/layouts/government_blue/02_toc.svg +107 -0
- package/skills/ppt-master/templates/layouts/government_blue/03_content.svg +78 -0
- package/skills/ppt-master/templates/layouts/government_blue/04_ending.svg +81 -0
- package/skills/ppt-master/templates/layouts/government_blue/design_spec.md +233 -0
- package/skills/ppt-master/templates/layouts/government_red/01_cover.svg +73 -0
- package/skills/ppt-master/templates/layouts/government_red/02_chapter.svg +66 -0
- package/skills/ppt-master/templates/layouts/government_red/02_toc.svg +88 -0
- package/skills/ppt-master/templates/layouts/government_red/03_content.svg +66 -0
- package/skills/ppt-master/templates/layouts/government_red/04_ending.svg +75 -0
- package/skills/ppt-master/templates/layouts/government_red/design_spec.md +227 -0
- package/skills/ppt-master/templates/layouts/layouts_index.json +204 -0
- package/skills/ppt-master/templates/layouts/mckinsey/01_cover.svg +84 -0
- package/skills/ppt-master/templates/layouts/mckinsey/02_chapter.svg +76 -0
- package/skills/ppt-master/templates/layouts/mckinsey/02_toc.svg +91 -0
- package/skills/ppt-master/templates/layouts/mckinsey/03_content.svg +92 -0
- package/skills/ppt-master/templates/layouts/mckinsey/04_ending.svg +87 -0
- package/skills/ppt-master/templates/layouts/mckinsey/design_spec.md +265 -0
- package/skills/ppt-master/templates/layouts/medical_university/01_cover.svg +71 -0
- package/skills/ppt-master/templates/layouts/medical_university/02_chapter.svg +50 -0
- package/skills/ppt-master/templates/layouts/medical_university/02_toc.svg +97 -0
- package/skills/ppt-master/templates/layouts/medical_university/03_content.svg +78 -0
- package/skills/ppt-master/templates/layouts/medical_university/04_ending.svg +79 -0
- package/skills/ppt-master/templates/layouts/medical_university/design_spec.md +292 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/01_cover.svg +36 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/02_chapter.svg +23 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/02_toc.svg +42 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content.svg +28 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_architecture.svg +84 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_bullet.svg +77 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_cards.svg +123 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_comparison.svg +56 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_data.svg +69 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_gray.svg +34 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_image_full.svg +46 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_image_grid.svg +44 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_image_left.svg +43 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_logos.svg +86 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_table.svg +131 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/03_content_timeline.svg +82 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/04_ending.svg +26 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/content_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/cover_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/design_spec.md +134 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/ending_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_000.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_001.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_002.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_003.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_004.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_005.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_006.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_007.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_008.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_009.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_010.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_011.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_012.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_013.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_014.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_015.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_016.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_017.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_018.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_019.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_020.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_021.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_022.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_023.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_024.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_025.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_026.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_027.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_028.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_029.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_030.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_031.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_032.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_033.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_034.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_035.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_036.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_037.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_038.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_039.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_040.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_041.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_042.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_043.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_044.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_045.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_046.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_047.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_048.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_049.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_050.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_051.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_052.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_053.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_054.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_055.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_056.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_057.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_058.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_059.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_060.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_061.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_062.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_063.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_064.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_065.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_066.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_067.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_068.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_069.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_070.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_071.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_072.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_073.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_074.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_075.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_076.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_077.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_078.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_079.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_080.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_081.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_082.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_083.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_084.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_085.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_086.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_087.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_088.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_089.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_090.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_091.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_092.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_093.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_094.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_095.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_096.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_097.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_098.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_099.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_100.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_101.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_102.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_103.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_104.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_105.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_106.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_107.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_108.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_109.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_110.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_111.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_112.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_113.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_114.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_115.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_116.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_117.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_118.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/icons/icon_119.svg +3 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/logo_full.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/logo_zhiqi.png +0 -0
- package/skills/ppt-master/templates/layouts/netease_zhiqi/toc_bg.png +0 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/01_cover.svg +138 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/02_chapter.svg +130 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/02_toc.svg +130 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/03_content.svg +50 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/04_ending.svg +167 -0
- package/skills/ppt-master/templates/layouts/pixel_retro/design_spec.md +308 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/01_cover.svg +78 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/02_chapter.svg +82 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/02_toc.svg +115 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/03_content.svg +41 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/04_ending.svg +100 -0
- package/skills/ppt-master/templates/layouts/psychology_attachment/design_spec.md +394 -0
- package/skills/ppt-master/templates/layouts/smart_red/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts/smart_red/02_chapter.svg +29 -0
- package/skills/ppt-master/templates/layouts/smart_red/02_toc.svg +59 -0
- package/skills/ppt-master/templates/layouts/smart_red/03_content.svg +59 -0
- package/skills/ppt-master/templates/layouts/smart_red/04_ending.svg +44 -0
- package/skills/ppt-master/templates/layouts/smart_red/design_spec.md +208 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/01_cover.svg +100 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/02_chapter.svg +81 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/02_toc.svg +112 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/03_content.svg +57 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/04_ending.svg +92 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204/design_spec.md +209 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//344/270/255/345/233/275/346/260/264/345/212/241logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//345/215/216/344/270/234/351/231/242logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//346/260/264/347/224/265/344/270/211/345/261/200logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/345/270/270/350/247/204//347/224/265/345/273/272logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/01_cover.svg +90 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/02_chapter.svg +61 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/02_toc.svg +131 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/03_content.svg +77 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/04_ending.svg +78 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243/design_spec.md +177 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//344/270/255/345/233/275/346/260/264/345/212/241logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//345/215/216/344/270/234/351/231/242logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//346/260/264/347/224/265/344/270/211/345/261/200logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/345/233/275/347/224/265/345/273/272_/347/216/260/344/273/243//347/224/265/345/273/272logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/01_cover.svg +83 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/02_chapter.svg +55 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/02_toc.svg +110 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/03_content.svg +62 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/04_ending.svg +60 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241/design_spec.md +166 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241//345/217/263/344/270/212/350/247/222 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/225/206/345/212/241//345/244/247/345/236/213 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/01_cover.svg +49 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/02_chapter.svg +47 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/02_toc.svg +73 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/03_content.svg +57 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/04_ending.svg +62 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204/design_spec.md +214 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204//345/217/263/344/270/212/350/247/222 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/345/270/270/350/247/204//345/244/247/345/236/213 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/01_cover.svg +89 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/02_chapter.svg +55 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/02_toc.svg +92 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/03_content.svg +56 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/04_ending.svg +64 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243/design_spec.md +170 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243//345/217/263/344/270/212/350/247/222 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//344/270/255/346/261/275/347/240/224_/347/216/260/344/273/243//345/244/247/345/236/213 logo.png +0 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/01_cover.svg +113 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/02_chapter.svg +90 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/02_toc.svg +108 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/03_content.svg +69 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/04_ending.svg +120 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214/design_spec.md +209 -0
- package/skills/ppt-master/templates/layouts//346/213/233/345/225/206/351/223/266/350/241/214//346/213/233/345/225/206/351/223/266/350/241/214/345/205/254/345/217/270/351/207/221/350/236/215.png +0 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/01_cover.svg +52 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/02_chapter.svg +50 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/02_toc.svg +67 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/03_content.svg +28 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/04_ending.svg +52 -0
- package/skills/ppt-master/templates/layouts//347/247/221/346/212/200/350/223/235/345/225/206/345/212/241/design_spec.md +206 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/01_cover.svg +74 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/02_chapter.svg +52 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/02_toc.svg +80 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/03_content.svg +56 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/04_ending.svg +62 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246/design_spec.md +243 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246//351/207/215/345/272/206/345/244/247/345/255/246logo.png +0 -0
- package/skills/ppt-master/templates/layouts//351/207/215/345/272/206/345/244/247/345/255/246//351/207/215/345/272/206/345/244/247/345/255/246logo2.png +0 -0
- package/skills/ppt-master/workflows/create-template.md +173 -0
- package/skills/speed-to-text/SKILL.md +64 -0
- package/skills/tencent-meeting/SKILL.md +65 -0
- package/skills/yidun-skill-sec/SKILL.md +838 -0
- package/skills/smart-customer-service/docs//344/270/212/347/272/277/350/257/225/350/277/220/350/241/214/346/235/220/346/226/231.zip +0 -0
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
"""SVG element converters: rect, circle, line, path, polygon, polyline, text, image, ellipse."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import math
|
|
6
|
+
import re
|
|
7
|
+
import base64
|
|
8
|
+
from typing import Any
|
|
9
|
+
from xml.etree import ElementTree as ET
|
|
10
|
+
|
|
11
|
+
from .drawingml_context import ConvertContext
|
|
12
|
+
from .drawingml_utils import (
|
|
13
|
+
SVG_NS, XLINK_NS, ANGLE_UNIT, FONT_PX_TO_HUNDREDTHS_PT, DASH_PRESETS,
|
|
14
|
+
px_to_emu, _f, _get_attr,
|
|
15
|
+
ctx_x, ctx_y, ctx_w, ctx_h,
|
|
16
|
+
parse_hex_color, resolve_url_id, get_effective_filter_id,
|
|
17
|
+
parse_font_family, is_cjk_char, estimate_text_width,
|
|
18
|
+
_xml_escape,
|
|
19
|
+
)
|
|
20
|
+
from .drawingml_styles import (
|
|
21
|
+
build_solid_fill, build_gradient_fill,
|
|
22
|
+
build_fill_xml, build_stroke_xml, build_effect_xml,
|
|
23
|
+
get_fill_opacity, get_stroke_opacity,
|
|
24
|
+
)
|
|
25
|
+
from .drawingml_paths import (
|
|
26
|
+
PathCommand, parse_svg_path, svg_path_to_absolute,
|
|
27
|
+
normalize_path_commands, path_commands_to_drawingml,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _wrap_shape(
|
|
32
|
+
shape_id: int, name: str,
|
|
33
|
+
off_x: int, off_y: int,
|
|
34
|
+
ext_cx: int, ext_cy: int,
|
|
35
|
+
geom_xml: str, fill_xml: str, stroke_xml: str,
|
|
36
|
+
effect_xml: str = '', extra_xml: str = '',
|
|
37
|
+
rot: int = 0,
|
|
38
|
+
) -> str:
|
|
39
|
+
"""Wrap DrawingML content into a <p:sp> shape element."""
|
|
40
|
+
rot_attr = f' rot="{rot}"' if rot else ''
|
|
41
|
+
return f'''<p:sp>
|
|
42
|
+
<p:nvSpPr>
|
|
43
|
+
<p:cNvPr id="{shape_id}" name="{_xml_escape(name)}"/>
|
|
44
|
+
<p:cNvSpPr/><p:nvPr/>
|
|
45
|
+
</p:nvSpPr>
|
|
46
|
+
<p:spPr>
|
|
47
|
+
<a:xfrm{rot_attr}><a:off x="{off_x}" y="{off_y}"/><a:ext cx="{ext_cx}" cy="{ext_cy}"/></a:xfrm>
|
|
48
|
+
{geom_xml}
|
|
49
|
+
{fill_xml}
|
|
50
|
+
{stroke_xml}
|
|
51
|
+
{effect_xml}
|
|
52
|
+
</p:spPr>
|
|
53
|
+
{extra_xml}
|
|
54
|
+
</p:sp>'''
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# ---------------------------------------------------------------------------
|
|
58
|
+
# rect
|
|
59
|
+
# ---------------------------------------------------------------------------
|
|
60
|
+
|
|
61
|
+
def convert_rect(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
62
|
+
"""Convert SVG <rect> to DrawingML shape."""
|
|
63
|
+
x = ctx_x(_f(elem.get('x')), ctx)
|
|
64
|
+
y = ctx_y(_f(elem.get('y')), ctx)
|
|
65
|
+
w = ctx_w(_f(elem.get('width')), ctx)
|
|
66
|
+
h = ctx_h(_f(elem.get('height')), ctx)
|
|
67
|
+
|
|
68
|
+
if w <= 0 or h <= 0:
|
|
69
|
+
return ''
|
|
70
|
+
|
|
71
|
+
fill_op = get_fill_opacity(elem, ctx)
|
|
72
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
73
|
+
fill = build_fill_xml(elem, ctx, fill_op)
|
|
74
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
75
|
+
|
|
76
|
+
effect = ''
|
|
77
|
+
filt_id = get_effective_filter_id(elem, ctx)
|
|
78
|
+
if filt_id and filt_id in ctx.defs:
|
|
79
|
+
effect = build_effect_xml(ctx.defs[filt_id])
|
|
80
|
+
|
|
81
|
+
rot = 0
|
|
82
|
+
transform = elem.get('transform')
|
|
83
|
+
if transform:
|
|
84
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
85
|
+
if r_match:
|
|
86
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
87
|
+
|
|
88
|
+
geom = '<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>'
|
|
89
|
+
|
|
90
|
+
shape_id = ctx.next_id()
|
|
91
|
+
return _wrap_shape(
|
|
92
|
+
shape_id, f'Rectangle {shape_id}',
|
|
93
|
+
px_to_emu(x), px_to_emu(y), px_to_emu(w), px_to_emu(h),
|
|
94
|
+
geom, fill, stroke, effect, rot=rot,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# ---------------------------------------------------------------------------
|
|
99
|
+
# circle (including donut-chart arc segments)
|
|
100
|
+
# ---------------------------------------------------------------------------
|
|
101
|
+
|
|
102
|
+
def _build_arc_ring_path(
|
|
103
|
+
cx: float, cy: float, r: float,
|
|
104
|
+
stroke_width: float,
|
|
105
|
+
dash_len: float, dash_offset: float,
|
|
106
|
+
rotate_deg: float,
|
|
107
|
+
sx: float, sy: float,
|
|
108
|
+
) -> tuple[str, int, int, int, int]:
|
|
109
|
+
"""Build a filled annular-sector (donut segment) as DrawingML custGeom.
|
|
110
|
+
|
|
111
|
+
SVG donut charts use stroke-dasharray on a circle to draw arc segments.
|
|
112
|
+
DrawingML cannot reproduce this, so we convert each arc segment into a
|
|
113
|
+
filled ring shape (outer arc -> line -> inner arc -> close).
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
(geom_xml, min_x_emu, min_y_emu, w_emu, h_emu).
|
|
117
|
+
"""
|
|
118
|
+
circumference = 2 * math.pi * r
|
|
119
|
+
if circumference <= 0:
|
|
120
|
+
return '', 0, 0, 0, 0
|
|
121
|
+
|
|
122
|
+
start_frac = -dash_offset / circumference
|
|
123
|
+
end_frac = start_frac + dash_len / circumference
|
|
124
|
+
|
|
125
|
+
start_angle = start_frac * 2 * math.pi + math.radians(rotate_deg)
|
|
126
|
+
end_angle = end_frac * 2 * math.pi + math.radians(rotate_deg)
|
|
127
|
+
|
|
128
|
+
half_sw = stroke_width / 2
|
|
129
|
+
r_outer = r + half_sw
|
|
130
|
+
r_inner = r - half_sw
|
|
131
|
+
|
|
132
|
+
num_segments = max(16, int(abs(end_angle - start_angle) / (math.pi / 32)))
|
|
133
|
+
angles = [
|
|
134
|
+
start_angle + (end_angle - start_angle) * i / num_segments
|
|
135
|
+
for i in range(num_segments + 1)
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
outer_pts = [(cx + r_outer * math.sin(a), cy - r_outer * math.cos(a)) for a in angles]
|
|
139
|
+
inner_pts = [(cx + r_inner * math.sin(a), cy - r_inner * math.cos(a)) for a in reversed(angles)]
|
|
140
|
+
|
|
141
|
+
all_pts = [(px * sx, py * sy) for px, py in outer_pts + inner_pts]
|
|
142
|
+
|
|
143
|
+
xs = [p[0] for p in all_pts]
|
|
144
|
+
ys = [p[1] for p in all_pts]
|
|
145
|
+
min_x, max_x = min(xs), max(xs)
|
|
146
|
+
min_y, max_y = min(ys), max(ys)
|
|
147
|
+
width = max_x - min_x
|
|
148
|
+
height = max_y - min_y
|
|
149
|
+
|
|
150
|
+
if width < 0.5 or height < 0.5:
|
|
151
|
+
return '', 0, 0, 0, 0
|
|
152
|
+
|
|
153
|
+
w_emu = px_to_emu(width)
|
|
154
|
+
h_emu = px_to_emu(height)
|
|
155
|
+
|
|
156
|
+
lines: list[str] = []
|
|
157
|
+
for i, (px, py) in enumerate(all_pts):
|
|
158
|
+
lx = px_to_emu(px - min_x)
|
|
159
|
+
ly = px_to_emu(py - min_y)
|
|
160
|
+
if i == 0:
|
|
161
|
+
lines.append(f'<a:moveTo><a:pt x="{lx}" y="{ly}"/></a:moveTo>')
|
|
162
|
+
else:
|
|
163
|
+
lines.append(f'<a:lnTo><a:pt x="{lx}" y="{ly}"/></a:lnTo>')
|
|
164
|
+
lines.append('<a:close/>')
|
|
165
|
+
|
|
166
|
+
path_xml = '\n'.join(lines)
|
|
167
|
+
geom = f'''<a:custGeom>
|
|
168
|
+
<a:avLst/><a:gdLst/><a:ahLst/><a:cxnLst/>
|
|
169
|
+
<a:rect l="l" t="t" r="r" b="b"/>
|
|
170
|
+
<a:pathLst><a:path w="{w_emu}" h="{h_emu}">
|
|
171
|
+
{path_xml}
|
|
172
|
+
</a:path></a:pathLst>
|
|
173
|
+
</a:custGeom>'''
|
|
174
|
+
|
|
175
|
+
return geom, px_to_emu(min_x), px_to_emu(min_y), w_emu, h_emu
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def _is_donut_circle(elem: ET.Element, ctx: ConvertContext) -> bool:
|
|
179
|
+
"""Detect if a circle uses stroke-dasharray to simulate an arc segment."""
|
|
180
|
+
dasharray = _get_attr(elem, 'stroke-dasharray', ctx)
|
|
181
|
+
if not dasharray or dasharray == 'none':
|
|
182
|
+
return False
|
|
183
|
+
stroke = _get_attr(elem, 'stroke', ctx)
|
|
184
|
+
if not stroke or stroke == 'none':
|
|
185
|
+
return False
|
|
186
|
+
|
|
187
|
+
sw = _f(_get_attr(elem, 'stroke-width', ctx), 0)
|
|
188
|
+
r = _f(elem.get('r'), 0)
|
|
189
|
+
if sw <= 0 or r <= 0:
|
|
190
|
+
return False
|
|
191
|
+
|
|
192
|
+
# Standard dash presets are not donut segments
|
|
193
|
+
if dasharray.strip() in DASH_PRESETS:
|
|
194
|
+
return False
|
|
195
|
+
|
|
196
|
+
return True
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def convert_circle(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
200
|
+
"""Convert SVG <circle> to DrawingML ellipse or donut-arc shape."""
|
|
201
|
+
cx_ = _f(elem.get('cx'))
|
|
202
|
+
cy_ = _f(elem.get('cy'))
|
|
203
|
+
r = _f(elem.get('r'))
|
|
204
|
+
|
|
205
|
+
if r <= 0:
|
|
206
|
+
return ''
|
|
207
|
+
|
|
208
|
+
# --- Donut-chart arc segment detection ---
|
|
209
|
+
if _is_donut_circle(elem, ctx):
|
|
210
|
+
dasharray = _get_attr(elem, 'stroke-dasharray', ctx)
|
|
211
|
+
dash_vals = re.split(r'[\s,]+', dasharray.strip())
|
|
212
|
+
dash_len = float(dash_vals[0]) if dash_vals else 0
|
|
213
|
+
dash_offset = _f(elem.get('stroke-dashoffset'), 0)
|
|
214
|
+
stroke_width = _f(_get_attr(elem, 'stroke-width', ctx), 1)
|
|
215
|
+
|
|
216
|
+
rotate_deg = 0.0
|
|
217
|
+
transform = elem.get('transform', '')
|
|
218
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
219
|
+
if r_match:
|
|
220
|
+
rotate_deg = float(r_match.group(1))
|
|
221
|
+
|
|
222
|
+
geom, min_x, min_y, w_emu, h_emu = _build_arc_ring_path(
|
|
223
|
+
ctx_x(cx_, ctx) / ctx.scale_x,
|
|
224
|
+
ctx_y(cy_, ctx) / ctx.scale_y,
|
|
225
|
+
r, stroke_width, dash_len, dash_offset, rotate_deg,
|
|
226
|
+
ctx.scale_x, ctx.scale_y,
|
|
227
|
+
)
|
|
228
|
+
if not geom:
|
|
229
|
+
return ''
|
|
230
|
+
|
|
231
|
+
# Use the stroke color/gradient as fill for the arc shape
|
|
232
|
+
stroke_val = _get_attr(elem, 'stroke', ctx)
|
|
233
|
+
op = get_fill_opacity(elem, ctx)
|
|
234
|
+
grad_id = resolve_url_id(stroke_val) if stroke_val else None
|
|
235
|
+
if grad_id and grad_id in ctx.defs:
|
|
236
|
+
fill = build_gradient_fill(ctx.defs[grad_id], op)
|
|
237
|
+
elif stroke_val:
|
|
238
|
+
color = parse_hex_color(stroke_val)
|
|
239
|
+
fill = build_solid_fill(color, op) if color else '<a:noFill/>'
|
|
240
|
+
else:
|
|
241
|
+
fill = '<a:noFill/>'
|
|
242
|
+
|
|
243
|
+
stroke_xml = '<a:ln><a:noFill/></a:ln>'
|
|
244
|
+
|
|
245
|
+
effect = ''
|
|
246
|
+
filt_id = get_effective_filter_id(elem, ctx)
|
|
247
|
+
if filt_id and filt_id in ctx.defs:
|
|
248
|
+
effect = build_effect_xml(ctx.defs[filt_id])
|
|
249
|
+
|
|
250
|
+
shape_id = ctx.next_id()
|
|
251
|
+
return _wrap_shape(
|
|
252
|
+
shape_id, f'Arc {shape_id}',
|
|
253
|
+
min_x, min_y, w_emu, h_emu,
|
|
254
|
+
geom, fill, stroke_xml, effect,
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
# --- Normal circle ---
|
|
258
|
+
cx_s = ctx_x(cx_, ctx)
|
|
259
|
+
cy_s = ctx_y(cy_, ctx)
|
|
260
|
+
r_x = r * ctx.scale_x
|
|
261
|
+
r_y = r * ctx.scale_y
|
|
262
|
+
|
|
263
|
+
x = cx_s - r_x
|
|
264
|
+
y = cy_s - r_y
|
|
265
|
+
w = r_x * 2
|
|
266
|
+
h = r_y * 2
|
|
267
|
+
|
|
268
|
+
fill_op = get_fill_opacity(elem, ctx)
|
|
269
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
270
|
+
fill = build_fill_xml(elem, ctx, fill_op)
|
|
271
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
272
|
+
|
|
273
|
+
effect = ''
|
|
274
|
+
filt_id = get_effective_filter_id(elem, ctx)
|
|
275
|
+
if filt_id and filt_id in ctx.defs:
|
|
276
|
+
effect = build_effect_xml(ctx.defs[filt_id])
|
|
277
|
+
|
|
278
|
+
geom = '<a:prstGeom prst="ellipse"><a:avLst/></a:prstGeom>'
|
|
279
|
+
|
|
280
|
+
shape_id = ctx.next_id()
|
|
281
|
+
return _wrap_shape(
|
|
282
|
+
shape_id, f'Ellipse {shape_id}',
|
|
283
|
+
px_to_emu(x), px_to_emu(y), px_to_emu(w), px_to_emu(h),
|
|
284
|
+
geom, fill, stroke, effect,
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
# ---------------------------------------------------------------------------
|
|
289
|
+
# line
|
|
290
|
+
# ---------------------------------------------------------------------------
|
|
291
|
+
|
|
292
|
+
def convert_line(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
293
|
+
"""Convert SVG <line> to DrawingML custom geometry shape."""
|
|
294
|
+
x1 = ctx_x(_f(elem.get('x1')), ctx)
|
|
295
|
+
y1 = ctx_y(_f(elem.get('y1')), ctx)
|
|
296
|
+
x2 = ctx_x(_f(elem.get('x2')), ctx)
|
|
297
|
+
y2 = ctx_y(_f(elem.get('y2')), ctx)
|
|
298
|
+
|
|
299
|
+
min_x = min(x1, x2)
|
|
300
|
+
min_y = min(y1, y2)
|
|
301
|
+
w = max(abs(x2 - x1), 1)
|
|
302
|
+
h = max(abs(y2 - y1), 1)
|
|
303
|
+
|
|
304
|
+
w_emu = px_to_emu(w)
|
|
305
|
+
h_emu = px_to_emu(h)
|
|
306
|
+
|
|
307
|
+
lx1 = px_to_emu(x1 - min_x)
|
|
308
|
+
ly1 = px_to_emu(y1 - min_y)
|
|
309
|
+
lx2 = px_to_emu(x2 - min_x)
|
|
310
|
+
ly2 = px_to_emu(y2 - min_y)
|
|
311
|
+
|
|
312
|
+
geom = f'''<a:custGeom>
|
|
313
|
+
<a:avLst/><a:gdLst/><a:ahLst/><a:cxnLst/>
|
|
314
|
+
<a:rect l="l" t="t" r="r" b="b"/>
|
|
315
|
+
<a:pathLst><a:path w="{w_emu}" h="{h_emu}">
|
|
316
|
+
<a:moveTo><a:pt x="{lx1}" y="{ly1}"/></a:moveTo>
|
|
317
|
+
<a:lnTo><a:pt x="{lx2}" y="{ly2}"/></a:lnTo>
|
|
318
|
+
</a:path></a:pathLst>
|
|
319
|
+
</a:custGeom>'''
|
|
320
|
+
|
|
321
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
322
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
323
|
+
|
|
324
|
+
rot = 0
|
|
325
|
+
transform = elem.get('transform')
|
|
326
|
+
if transform:
|
|
327
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
328
|
+
if r_match:
|
|
329
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
330
|
+
|
|
331
|
+
shape_id = ctx.next_id()
|
|
332
|
+
return _wrap_shape(
|
|
333
|
+
shape_id, f'Line {shape_id}',
|
|
334
|
+
px_to_emu(min_x), px_to_emu(min_y), w_emu, h_emu,
|
|
335
|
+
geom, '<a:noFill/>', stroke, rot=rot,
|
|
336
|
+
)
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
# ---------------------------------------------------------------------------
|
|
340
|
+
# path
|
|
341
|
+
# ---------------------------------------------------------------------------
|
|
342
|
+
|
|
343
|
+
def convert_path(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
344
|
+
"""Convert SVG <path> to DrawingML custom geometry shape."""
|
|
345
|
+
d = elem.get('d', '')
|
|
346
|
+
if not d:
|
|
347
|
+
return ''
|
|
348
|
+
|
|
349
|
+
commands = parse_svg_path(d)
|
|
350
|
+
commands = svg_path_to_absolute(commands)
|
|
351
|
+
commands = normalize_path_commands(commands)
|
|
352
|
+
|
|
353
|
+
tx, ty = 0.0, 0.0
|
|
354
|
+
rot = 0
|
|
355
|
+
transform = elem.get('transform')
|
|
356
|
+
if transform:
|
|
357
|
+
t_match = re.search(r'translate\(\s*([-\d.]+)[\s,]+([-\d.]+)\s*\)', transform)
|
|
358
|
+
if t_match:
|
|
359
|
+
tx = float(t_match.group(1))
|
|
360
|
+
ty = float(t_match.group(2))
|
|
361
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
362
|
+
if r_match:
|
|
363
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
364
|
+
|
|
365
|
+
path_xml, min_x, min_y, width, height = path_commands_to_drawingml(
|
|
366
|
+
commands, ctx.translate_x + tx, ctx.translate_y + ty,
|
|
367
|
+
ctx.scale_x, ctx.scale_y,
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
if not path_xml:
|
|
371
|
+
return ''
|
|
372
|
+
|
|
373
|
+
w_emu = px_to_emu(width)
|
|
374
|
+
h_emu = px_to_emu(height)
|
|
375
|
+
|
|
376
|
+
geom = f'''<a:custGeom>
|
|
377
|
+
<a:avLst/><a:gdLst/><a:ahLst/><a:cxnLst/>
|
|
378
|
+
<a:rect l="l" t="t" r="r" b="b"/>
|
|
379
|
+
<a:pathLst><a:path w="{w_emu}" h="{h_emu}">
|
|
380
|
+
{path_xml}
|
|
381
|
+
</a:path></a:pathLst>
|
|
382
|
+
</a:custGeom>'''
|
|
383
|
+
|
|
384
|
+
fill_op = get_fill_opacity(elem, ctx)
|
|
385
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
386
|
+
fill = build_fill_xml(elem, ctx, fill_op)
|
|
387
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
388
|
+
|
|
389
|
+
effect = ''
|
|
390
|
+
filt_id = get_effective_filter_id(elem, ctx)
|
|
391
|
+
if filt_id and filt_id in ctx.defs:
|
|
392
|
+
effect = build_effect_xml(ctx.defs[filt_id])
|
|
393
|
+
|
|
394
|
+
shape_id = ctx.next_id()
|
|
395
|
+
return _wrap_shape(
|
|
396
|
+
shape_id, f'Freeform {shape_id}',
|
|
397
|
+
px_to_emu(min_x), px_to_emu(min_y), w_emu, h_emu,
|
|
398
|
+
geom, fill, stroke, effect, rot=rot,
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
# ---------------------------------------------------------------------------
|
|
403
|
+
# polygon / polyline
|
|
404
|
+
# ---------------------------------------------------------------------------
|
|
405
|
+
|
|
406
|
+
def _parse_points(points_str: str) -> list[tuple[float, float]]:
|
|
407
|
+
"""Parse SVG points attribute into a list of (x, y) tuples."""
|
|
408
|
+
nums = re.findall(r'[-+]?(?:\d+\.?\d*|\.\d+)', points_str)
|
|
409
|
+
if len(nums) < 4:
|
|
410
|
+
return []
|
|
411
|
+
return [(float(nums[i]), float(nums[i + 1])) for i in range(0, len(nums) - 1, 2)]
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
def convert_polygon(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
415
|
+
"""Convert SVG <polygon> to DrawingML custom geometry shape."""
|
|
416
|
+
points = _parse_points(elem.get('points', ''))
|
|
417
|
+
if not points:
|
|
418
|
+
return ''
|
|
419
|
+
|
|
420
|
+
commands = [PathCommand('M', [points[0][0], points[0][1]])]
|
|
421
|
+
for px_, py_ in points[1:]:
|
|
422
|
+
commands.append(PathCommand('L', [px_, py_]))
|
|
423
|
+
commands.append(PathCommand('Z', []))
|
|
424
|
+
|
|
425
|
+
path_xml, min_x, min_y, width, height = path_commands_to_drawingml(
|
|
426
|
+
commands, ctx.translate_x, ctx.translate_y,
|
|
427
|
+
ctx.scale_x, ctx.scale_y,
|
|
428
|
+
)
|
|
429
|
+
|
|
430
|
+
if not path_xml:
|
|
431
|
+
return ''
|
|
432
|
+
|
|
433
|
+
w_emu = px_to_emu(width)
|
|
434
|
+
h_emu = px_to_emu(height)
|
|
435
|
+
|
|
436
|
+
geom = f'''<a:custGeom>
|
|
437
|
+
<a:avLst/><a:gdLst/><a:ahLst/><a:cxnLst/>
|
|
438
|
+
<a:rect l="l" t="t" r="r" b="b"/>
|
|
439
|
+
<a:pathLst><a:path w="{w_emu}" h="{h_emu}">
|
|
440
|
+
{path_xml}
|
|
441
|
+
</a:path></a:pathLst>
|
|
442
|
+
</a:custGeom>'''
|
|
443
|
+
|
|
444
|
+
fill_op = get_fill_opacity(elem, ctx)
|
|
445
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
446
|
+
fill = build_fill_xml(elem, ctx, fill_op)
|
|
447
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
448
|
+
|
|
449
|
+
rot = 0
|
|
450
|
+
transform = elem.get('transform')
|
|
451
|
+
if transform:
|
|
452
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
453
|
+
if r_match:
|
|
454
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
455
|
+
|
|
456
|
+
shape_id = ctx.next_id()
|
|
457
|
+
return _wrap_shape(
|
|
458
|
+
shape_id, f'Polygon {shape_id}',
|
|
459
|
+
px_to_emu(min_x), px_to_emu(min_y), w_emu, h_emu,
|
|
460
|
+
geom, fill, stroke, rot=rot,
|
|
461
|
+
)
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
def convert_polyline(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
465
|
+
"""Convert SVG <polyline> to DrawingML custom geometry shape."""
|
|
466
|
+
points = _parse_points(elem.get('points', ''))
|
|
467
|
+
if not points:
|
|
468
|
+
return ''
|
|
469
|
+
|
|
470
|
+
commands = [PathCommand('M', [points[0][0], points[0][1]])]
|
|
471
|
+
for px_, py_ in points[1:]:
|
|
472
|
+
commands.append(PathCommand('L', [px_, py_]))
|
|
473
|
+
|
|
474
|
+
path_xml, min_x, min_y, width, height = path_commands_to_drawingml(
|
|
475
|
+
commands, ctx.translate_x, ctx.translate_y,
|
|
476
|
+
ctx.scale_x, ctx.scale_y,
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
if not path_xml:
|
|
480
|
+
return ''
|
|
481
|
+
|
|
482
|
+
w_emu = px_to_emu(width)
|
|
483
|
+
h_emu = px_to_emu(height)
|
|
484
|
+
|
|
485
|
+
geom = f'''<a:custGeom>
|
|
486
|
+
<a:avLst/><a:gdLst/><a:ahLst/><a:cxnLst/>
|
|
487
|
+
<a:rect l="l" t="t" r="r" b="b"/>
|
|
488
|
+
<a:pathLst><a:path w="{w_emu}" h="{h_emu}">
|
|
489
|
+
{path_xml}
|
|
490
|
+
</a:path></a:pathLst>
|
|
491
|
+
</a:custGeom>'''
|
|
492
|
+
|
|
493
|
+
fill_op = get_fill_opacity(elem, ctx)
|
|
494
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
495
|
+
fill = build_fill_xml(elem, ctx, fill_op)
|
|
496
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
497
|
+
|
|
498
|
+
rot = 0
|
|
499
|
+
transform = elem.get('transform')
|
|
500
|
+
if transform:
|
|
501
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
502
|
+
if r_match:
|
|
503
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
504
|
+
|
|
505
|
+
shape_id = ctx.next_id()
|
|
506
|
+
return _wrap_shape(
|
|
507
|
+
shape_id, f'Polyline {shape_id}',
|
|
508
|
+
px_to_emu(min_x), px_to_emu(min_y), w_emu, h_emu,
|
|
509
|
+
geom, '<a:noFill/>', stroke, rot=rot,
|
|
510
|
+
)
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
# ---------------------------------------------------------------------------
|
|
514
|
+
# text
|
|
515
|
+
# ---------------------------------------------------------------------------
|
|
516
|
+
|
|
517
|
+
def _normalize_text(text: str) -> str:
|
|
518
|
+
"""Collapse internal whitespace/newlines into a single space, strip ends."""
|
|
519
|
+
if not text:
|
|
520
|
+
return ''
|
|
521
|
+
return re.sub(r'\s+', ' ', text).strip()
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def _build_text_runs(
|
|
525
|
+
elem: ET.Element,
|
|
526
|
+
parent_attrs: dict[str, Any],
|
|
527
|
+
) -> list[dict[str, Any]]:
|
|
528
|
+
"""Build a list of text runs from a <text> element, handling <tspan> children.
|
|
529
|
+
|
|
530
|
+
Each run is a dict with keys: text, fill, fill_raw, font_weight,
|
|
531
|
+
font_style, font_family, font_size.
|
|
532
|
+
"""
|
|
533
|
+
runs: list[dict[str, Any]] = []
|
|
534
|
+
|
|
535
|
+
if elem.text:
|
|
536
|
+
t = _normalize_text(elem.text)
|
|
537
|
+
if t:
|
|
538
|
+
runs.append({**parent_attrs, 'text': t})
|
|
539
|
+
|
|
540
|
+
for child in elem:
|
|
541
|
+
child_tag = child.tag.replace(f'{{{SVG_NS}}}', '')
|
|
542
|
+
if child_tag == 'tspan':
|
|
543
|
+
t = _normalize_text(''.join(child.itertext()))
|
|
544
|
+
if t:
|
|
545
|
+
run_attrs = dict(parent_attrs)
|
|
546
|
+
if child.get('font-weight'):
|
|
547
|
+
run_attrs['font_weight'] = child.get('font-weight')
|
|
548
|
+
if child.get('fill'):
|
|
549
|
+
child_fill = child.get('fill')
|
|
550
|
+
run_attrs['fill_raw'] = child_fill
|
|
551
|
+
c = parse_hex_color(child_fill)
|
|
552
|
+
if c:
|
|
553
|
+
run_attrs['fill'] = c
|
|
554
|
+
if child.get('font-size'):
|
|
555
|
+
run_attrs['font_size'] = _f(child.get('font-size'), run_attrs['font_size'])
|
|
556
|
+
if child.get('font-family'):
|
|
557
|
+
run_attrs['font_family'] = child.get('font-family')
|
|
558
|
+
if child.get('font-style'):
|
|
559
|
+
run_attrs['font_style'] = child.get('font-style')
|
|
560
|
+
if child.get('text-decoration'):
|
|
561
|
+
run_attrs['text_decoration'] = child.get('text-decoration')
|
|
562
|
+
runs.append({**run_attrs, 'text': t})
|
|
563
|
+
|
|
564
|
+
# Tail text after </tspan> belongs to parent
|
|
565
|
+
if child.tail:
|
|
566
|
+
t = _normalize_text(child.tail)
|
|
567
|
+
if t:
|
|
568
|
+
runs.append({**parent_attrs, 'text': t})
|
|
569
|
+
|
|
570
|
+
return runs
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
def _build_run_xml(
|
|
574
|
+
run: dict[str, Any],
|
|
575
|
+
default_fonts: dict[str, str],
|
|
576
|
+
ctx: ConvertContext | None = None,
|
|
577
|
+
) -> str:
|
|
578
|
+
"""Build a single <a:r> XML from a run dict. Supports gradient fills on text."""
|
|
579
|
+
text = run['text']
|
|
580
|
+
fill = run.get('fill', '000000')
|
|
581
|
+
fill_raw = run.get('fill_raw', '')
|
|
582
|
+
fw = run.get('font_weight', '400')
|
|
583
|
+
fs_px = run.get('font_size', 16)
|
|
584
|
+
fstyle = run.get('font_style', '')
|
|
585
|
+
ff = run.get('font_family', '')
|
|
586
|
+
opacity = run.get('opacity')
|
|
587
|
+
|
|
588
|
+
text_dec = run.get('text_decoration', '')
|
|
589
|
+
|
|
590
|
+
sz = round(fs_px * FONT_PX_TO_HUNDREDTHS_PT)
|
|
591
|
+
b_attr = ' b="1"' if fw in ('bold', '600', '700', '800', '900') else ''
|
|
592
|
+
i_attr = ' i="1"' if fstyle == 'italic' else ''
|
|
593
|
+
u_attr = ' u="sng"' if 'underline' in text_dec else ''
|
|
594
|
+
strike_attr = ' strike="sngStrike"' if 'line-through' in text_dec else ''
|
|
595
|
+
|
|
596
|
+
fonts = parse_font_family(ff) if ff else default_fonts
|
|
597
|
+
|
|
598
|
+
# Build fill XML - gradient or solid
|
|
599
|
+
grad_id = resolve_url_id(fill_raw)
|
|
600
|
+
if grad_id and ctx and grad_id in ctx.defs:
|
|
601
|
+
fill_xml = build_gradient_fill(ctx.defs[grad_id], opacity)
|
|
602
|
+
else:
|
|
603
|
+
alpha_xml = ''
|
|
604
|
+
if opacity is not None and opacity < 1.0:
|
|
605
|
+
alpha_xml = f'<a:alpha val="{int(opacity * 100000)}"/>'
|
|
606
|
+
fill_xml = f'<a:solidFill><a:srgbClr val="{fill}">{alpha_xml}</a:srgbClr></a:solidFill>'
|
|
607
|
+
|
|
608
|
+
return f'''<a:r>
|
|
609
|
+
<a:rPr lang="zh-CN" sz="{sz}"{b_attr}{i_attr}{u_attr}{strike_attr} dirty="0">
|
|
610
|
+
{fill_xml}
|
|
611
|
+
<a:latin typeface="{_xml_escape(fonts['latin'])}"/>
|
|
612
|
+
<a:ea typeface="{_xml_escape(fonts['ea'])}"/>
|
|
613
|
+
<a:cs typeface="{_xml_escape(fonts['latin'])}"/>
|
|
614
|
+
</a:rPr>
|
|
615
|
+
<a:t>{_xml_escape(text)}</a:t>
|
|
616
|
+
</a:r>'''
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
def convert_text(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
620
|
+
"""Convert SVG <text> to DrawingML text shape with multi-run support."""
|
|
621
|
+
x = ctx_x(_f(elem.get('x')), ctx)
|
|
622
|
+
y = ctx_y(_f(elem.get('y')), ctx)
|
|
623
|
+
font_size = _f(_get_attr(elem, 'font-size', ctx), 16) * ctx.scale_y
|
|
624
|
+
font_weight = _get_attr(elem, 'font-weight', ctx) or '400'
|
|
625
|
+
font_family_str = _get_attr(elem, 'font-family', ctx) or ''
|
|
626
|
+
text_anchor = _get_attr(elem, 'text-anchor', ctx) or 'start'
|
|
627
|
+
fill_raw = _get_attr(elem, 'fill', ctx) or '#000000'
|
|
628
|
+
fill_color = parse_hex_color(fill_raw) or '000000'
|
|
629
|
+
opacity = get_fill_opacity(elem, ctx)
|
|
630
|
+
font_style = _get_attr(elem, 'font-style', ctx) or ''
|
|
631
|
+
text_decoration = _get_attr(elem, 'text-decoration', ctx) or ''
|
|
632
|
+
|
|
633
|
+
fonts = parse_font_family(font_family_str)
|
|
634
|
+
|
|
635
|
+
parent_attrs: dict[str, Any] = {
|
|
636
|
+
'fill': fill_color,
|
|
637
|
+
'fill_raw': fill_raw,
|
|
638
|
+
'font_weight': font_weight,
|
|
639
|
+
'font_size': font_size,
|
|
640
|
+
'font_family': font_family_str,
|
|
641
|
+
'font_style': font_style,
|
|
642
|
+
'text_decoration': text_decoration,
|
|
643
|
+
'opacity': opacity,
|
|
644
|
+
}
|
|
645
|
+
runs = _build_text_runs(elem, parent_attrs)
|
|
646
|
+
|
|
647
|
+
if not runs:
|
|
648
|
+
return ''
|
|
649
|
+
|
|
650
|
+
full_text = ''.join(r['text'] for r in runs)
|
|
651
|
+
if not full_text.strip():
|
|
652
|
+
return ''
|
|
653
|
+
|
|
654
|
+
# Estimate text dimensions
|
|
655
|
+
text_width = estimate_text_width(full_text, font_size, font_weight) * 1.15
|
|
656
|
+
text_height = font_size * 1.5
|
|
657
|
+
padding = font_size * 0.1
|
|
658
|
+
|
|
659
|
+
# Adjust position based on text-anchor
|
|
660
|
+
if text_anchor == 'middle':
|
|
661
|
+
box_x = x - text_width / 2 - padding
|
|
662
|
+
elif text_anchor == 'end':
|
|
663
|
+
box_x = x - text_width - padding
|
|
664
|
+
else:
|
|
665
|
+
box_x = x - padding
|
|
666
|
+
|
|
667
|
+
box_y = y - font_size * 0.85
|
|
668
|
+
box_w = text_width + padding * 2
|
|
669
|
+
box_h = text_height + padding
|
|
670
|
+
|
|
671
|
+
# Letter spacing
|
|
672
|
+
spc_attr = ''
|
|
673
|
+
letter_spacing = _get_attr(elem, 'letter-spacing', ctx)
|
|
674
|
+
if letter_spacing:
|
|
675
|
+
try:
|
|
676
|
+
spc_val = float(letter_spacing) * 100
|
|
677
|
+
spc_attr = f' spc="{int(spc_val)}"'
|
|
678
|
+
except ValueError:
|
|
679
|
+
pass
|
|
680
|
+
|
|
681
|
+
# Text rotation
|
|
682
|
+
text_rot = 0
|
|
683
|
+
text_transform = elem.get('transform', '')
|
|
684
|
+
if text_transform:
|
|
685
|
+
rot_match = re.search(r'rotate\(\s*([-\d.]+)', text_transform)
|
|
686
|
+
if rot_match:
|
|
687
|
+
text_rot = int(float(rot_match.group(1)) * ANGLE_UNIT)
|
|
688
|
+
|
|
689
|
+
# Alignment
|
|
690
|
+
algn_map = {'start': 'l', 'middle': 'ctr', 'end': 'r'}
|
|
691
|
+
algn = algn_map.get(text_anchor, 'l')
|
|
692
|
+
|
|
693
|
+
# Shadow effect
|
|
694
|
+
effect_xml = ''
|
|
695
|
+
filt_id = get_effective_filter_id(elem, ctx)
|
|
696
|
+
if filt_id and filt_id in ctx.defs:
|
|
697
|
+
effect_xml = build_effect_xml(ctx.defs[filt_id])
|
|
698
|
+
|
|
699
|
+
shape_id = ctx.next_id()
|
|
700
|
+
rot_attr = f' rot="{text_rot}"' if text_rot else ''
|
|
701
|
+
|
|
702
|
+
runs_xml = '\n'.join(_build_run_xml(r, fonts, ctx) for r in runs)
|
|
703
|
+
|
|
704
|
+
return f'''<p:sp>
|
|
705
|
+
<p:nvSpPr>
|
|
706
|
+
<p:cNvPr id="{shape_id}" name="TextBox {shape_id}"/>
|
|
707
|
+
<p:cNvSpPr txBox="1"/><p:nvPr/>
|
|
708
|
+
</p:nvSpPr>
|
|
709
|
+
<p:spPr>
|
|
710
|
+
<a:xfrm{rot_attr}><a:off x="{px_to_emu(box_x)}" y="{px_to_emu(box_y)}"/>
|
|
711
|
+
<a:ext cx="{px_to_emu(box_w)}" cy="{px_to_emu(box_h)}"/></a:xfrm>
|
|
712
|
+
<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>
|
|
713
|
+
<a:noFill/>
|
|
714
|
+
<a:ln><a:noFill/></a:ln>
|
|
715
|
+
{effect_xml}
|
|
716
|
+
</p:spPr>
|
|
717
|
+
<p:txBody>
|
|
718
|
+
<a:bodyPr wrap="none" lIns="0" tIns="0" rIns="0" bIns="0" anchor="t" anchorCtr="0">
|
|
719
|
+
<a:spAutoFit/>
|
|
720
|
+
</a:bodyPr>
|
|
721
|
+
<a:lstStyle/>
|
|
722
|
+
<a:p>
|
|
723
|
+
<a:pPr algn="{algn}"/>
|
|
724
|
+
{runs_xml}
|
|
725
|
+
</a:p>
|
|
726
|
+
</p:txBody>
|
|
727
|
+
</p:sp>'''
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
# ---------------------------------------------------------------------------
|
|
731
|
+
# image
|
|
732
|
+
# ---------------------------------------------------------------------------
|
|
733
|
+
|
|
734
|
+
def convert_image(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
735
|
+
"""Convert SVG <image> to DrawingML picture element."""
|
|
736
|
+
href = elem.get('href') or elem.get(f'{{{XLINK_NS}}}href')
|
|
737
|
+
if not href:
|
|
738
|
+
return ''
|
|
739
|
+
|
|
740
|
+
x = ctx_x(_f(elem.get('x')), ctx)
|
|
741
|
+
y = ctx_y(_f(elem.get('y')), ctx)
|
|
742
|
+
w = ctx_w(_f(elem.get('width')), ctx)
|
|
743
|
+
h = ctx_h(_f(elem.get('height')), ctx)
|
|
744
|
+
|
|
745
|
+
if w <= 0 or h <= 0:
|
|
746
|
+
return ''
|
|
747
|
+
|
|
748
|
+
# Extract image data
|
|
749
|
+
if href.startswith('data:'):
|
|
750
|
+
match = re.match(r'data:image/(\w+);base64,(.+)', href, re.DOTALL)
|
|
751
|
+
if not match:
|
|
752
|
+
return ''
|
|
753
|
+
img_format = match.group(1).lower()
|
|
754
|
+
if img_format == 'jpeg':
|
|
755
|
+
img_format = 'jpg'
|
|
756
|
+
img_data = base64.b64decode(match.group(2))
|
|
757
|
+
else:
|
|
758
|
+
if ctx.svg_dir is None:
|
|
759
|
+
return ''
|
|
760
|
+
img_path = ctx.svg_dir / href
|
|
761
|
+
if not img_path.exists():
|
|
762
|
+
img_path = ctx.svg_dir.parent / href
|
|
763
|
+
if not img_path.exists():
|
|
764
|
+
print(f' Warning: External image not found: {href}')
|
|
765
|
+
return ''
|
|
766
|
+
img_format = img_path.suffix.lstrip('.').lower()
|
|
767
|
+
if img_format == 'jpeg':
|
|
768
|
+
img_format = 'jpg'
|
|
769
|
+
img_data = img_path.read_bytes()
|
|
770
|
+
|
|
771
|
+
img_idx = len(ctx.media_files) + 1
|
|
772
|
+
img_filename = f's{ctx.slide_num}_img{img_idx}.{img_format}'
|
|
773
|
+
ctx.media_files[img_filename] = img_data
|
|
774
|
+
|
|
775
|
+
r_id = ctx.next_rel_id()
|
|
776
|
+
ctx.rel_entries.append({
|
|
777
|
+
'id': r_id,
|
|
778
|
+
'type': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
|
|
779
|
+
'target': f'../media/{img_filename}',
|
|
780
|
+
})
|
|
781
|
+
|
|
782
|
+
rot = 0
|
|
783
|
+
transform = elem.get('transform')
|
|
784
|
+
if transform:
|
|
785
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
786
|
+
if r_match:
|
|
787
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
788
|
+
rot_attr = f' rot="{rot}"' if rot else ''
|
|
789
|
+
|
|
790
|
+
shape_id = ctx.next_id()
|
|
791
|
+
|
|
792
|
+
return f'''<p:pic>
|
|
793
|
+
<p:nvPicPr>
|
|
794
|
+
<p:cNvPr id="{shape_id}" name="Image {shape_id}"/>
|
|
795
|
+
<p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>
|
|
796
|
+
<p:nvPr/>
|
|
797
|
+
</p:nvPicPr>
|
|
798
|
+
<p:blipFill>
|
|
799
|
+
<a:blip r:embed="{r_id}"/>
|
|
800
|
+
<a:stretch><a:fillRect/></a:stretch>
|
|
801
|
+
</p:blipFill>
|
|
802
|
+
<p:spPr>
|
|
803
|
+
<a:xfrm{rot_attr}><a:off x="{px_to_emu(x)}" y="{px_to_emu(y)}"/>
|
|
804
|
+
<a:ext cx="{px_to_emu(w)}" cy="{px_to_emu(h)}"/></a:xfrm>
|
|
805
|
+
<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>
|
|
806
|
+
</p:spPr>
|
|
807
|
+
</p:pic>'''
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
# ---------------------------------------------------------------------------
|
|
811
|
+
# ellipse
|
|
812
|
+
# ---------------------------------------------------------------------------
|
|
813
|
+
|
|
814
|
+
def convert_ellipse(elem: ET.Element, ctx: ConvertContext) -> str:
|
|
815
|
+
"""Convert SVG <ellipse> to DrawingML ellipse shape."""
|
|
816
|
+
cx_ = ctx_x(_f(elem.get('cx')), ctx)
|
|
817
|
+
cy_ = ctx_y(_f(elem.get('cy')), ctx)
|
|
818
|
+
rx = _f(elem.get('rx')) * ctx.scale_x
|
|
819
|
+
ry = _f(elem.get('ry')) * ctx.scale_y
|
|
820
|
+
|
|
821
|
+
if rx <= 0 or ry <= 0:
|
|
822
|
+
return ''
|
|
823
|
+
|
|
824
|
+
x = cx_ - rx
|
|
825
|
+
y = cy_ - ry
|
|
826
|
+
w = rx * 2
|
|
827
|
+
h = ry * 2
|
|
828
|
+
|
|
829
|
+
fill_op = get_fill_opacity(elem, ctx)
|
|
830
|
+
stroke_op = get_stroke_opacity(elem, ctx)
|
|
831
|
+
fill = build_fill_xml(elem, ctx, fill_op)
|
|
832
|
+
stroke = build_stroke_xml(elem, ctx, stroke_op)
|
|
833
|
+
|
|
834
|
+
geom = '<a:prstGeom prst="ellipse"><a:avLst/></a:prstGeom>'
|
|
835
|
+
|
|
836
|
+
rot = 0
|
|
837
|
+
transform = elem.get('transform')
|
|
838
|
+
if transform:
|
|
839
|
+
r_match = re.search(r'rotate\(\s*([-\d.]+)', transform)
|
|
840
|
+
if r_match:
|
|
841
|
+
rot = int(float(r_match.group(1)) * ANGLE_UNIT)
|
|
842
|
+
|
|
843
|
+
shape_id = ctx.next_id()
|
|
844
|
+
return _wrap_shape(
|
|
845
|
+
shape_id, f'Ellipse {shape_id}',
|
|
846
|
+
px_to_emu(x), px_to_emu(y), px_to_emu(w), px_to_emu(h),
|
|
847
|
+
geom, fill, stroke, rot=rot,
|
|
848
|
+
)
|