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,359 @@
|
|
|
1
|
+
"""Fill, stroke, and shadow XML builders for DrawingML conversion."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import math
|
|
6
|
+
from xml.etree import ElementTree as ET
|
|
7
|
+
|
|
8
|
+
from .drawingml_context import ConvertContext
|
|
9
|
+
from .drawingml_utils import (
|
|
10
|
+
SVG_NS, ANGLE_UNIT, DASH_PRESETS,
|
|
11
|
+
px_to_emu, _f, _get_attr,
|
|
12
|
+
parse_hex_color, parse_stop_style, resolve_url_id,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def build_solid_fill(color: str, opacity: float | None = None) -> str:
|
|
17
|
+
"""Build <a:solidFill> XML."""
|
|
18
|
+
alpha = ''
|
|
19
|
+
if opacity is not None and opacity < 1.0:
|
|
20
|
+
alpha = f'<a:alpha val="{int(opacity * 100000)}"/>'
|
|
21
|
+
return f'<a:solidFill><a:srgbClr val="{color}">{alpha}</a:srgbClr></a:solidFill>'
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def build_gradient_fill(
|
|
25
|
+
grad_elem: ET.Element,
|
|
26
|
+
opacity: float | None = None,
|
|
27
|
+
) -> str:
|
|
28
|
+
"""Build <a:gradFill> from SVG linearGradient or radialGradient element."""
|
|
29
|
+
tag = grad_elem.tag.replace(f'{{{SVG_NS}}}', '')
|
|
30
|
+
|
|
31
|
+
stops_xml = []
|
|
32
|
+
for child in grad_elem:
|
|
33
|
+
child_tag = child.tag.replace(f'{{{SVG_NS}}}', '')
|
|
34
|
+
if child_tag != 'stop':
|
|
35
|
+
continue
|
|
36
|
+
|
|
37
|
+
offset_str = child.get('offset', '0').strip().rstrip('%')
|
|
38
|
+
try:
|
|
39
|
+
offset = float(offset_str)
|
|
40
|
+
if offset > 1.0:
|
|
41
|
+
offset = offset / 100.0
|
|
42
|
+
except ValueError:
|
|
43
|
+
offset = 0.0
|
|
44
|
+
pos = int(offset * 100000)
|
|
45
|
+
|
|
46
|
+
# Parse color from style attribute or direct attributes
|
|
47
|
+
style = child.get('style', '')
|
|
48
|
+
color, stop_opacity = parse_stop_style(style)
|
|
49
|
+
if not color:
|
|
50
|
+
color = parse_hex_color(child.get('stop-color', '#000000'))
|
|
51
|
+
if color is None:
|
|
52
|
+
color = '000000'
|
|
53
|
+
|
|
54
|
+
direct_stop_op = child.get('stop-opacity')
|
|
55
|
+
if direct_stop_op is not None:
|
|
56
|
+
try:
|
|
57
|
+
stop_opacity = float(direct_stop_op)
|
|
58
|
+
except ValueError:
|
|
59
|
+
pass
|
|
60
|
+
|
|
61
|
+
alpha_xml = ''
|
|
62
|
+
effective_opacity = stop_opacity
|
|
63
|
+
if opacity is not None:
|
|
64
|
+
effective_opacity *= opacity
|
|
65
|
+
if effective_opacity < 1.0:
|
|
66
|
+
alpha_xml = f'<a:alpha val="{int(effective_opacity * 100000)}"/>'
|
|
67
|
+
|
|
68
|
+
stops_xml.append(
|
|
69
|
+
f'<a:gs pos="{pos}"><a:srgbClr val="{color}">{alpha_xml}</a:srgbClr></a:gs>'
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
if not stops_xml:
|
|
73
|
+
return ''
|
|
74
|
+
|
|
75
|
+
gs_list = '\n'.join(stops_xml)
|
|
76
|
+
|
|
77
|
+
if tag == 'linearGradient':
|
|
78
|
+
def parse_grad_coord(val_str: str, default: float = 0.0) -> float:
|
|
79
|
+
val_str = val_str.strip()
|
|
80
|
+
if val_str.endswith('%'):
|
|
81
|
+
return float(val_str.rstrip('%')) / 100.0
|
|
82
|
+
v = float(val_str)
|
|
83
|
+
return v / 100.0 if v > 1.0 else v
|
|
84
|
+
|
|
85
|
+
x1 = parse_grad_coord(grad_elem.get('x1', '0'))
|
|
86
|
+
y1 = parse_grad_coord(grad_elem.get('y1', '0'))
|
|
87
|
+
x2 = parse_grad_coord(grad_elem.get('x2', '1'))
|
|
88
|
+
y2 = parse_grad_coord(grad_elem.get('y2', '1'))
|
|
89
|
+
|
|
90
|
+
angle_rad = math.atan2(y2 - y1, x2 - x1)
|
|
91
|
+
angle_deg = math.degrees(angle_rad)
|
|
92
|
+
dml_angle = int((angle_deg % 360) * ANGLE_UNIT)
|
|
93
|
+
|
|
94
|
+
return f'''<a:gradFill>
|
|
95
|
+
<a:gsLst>{gs_list}</a:gsLst>
|
|
96
|
+
<a:lin ang="{dml_angle}" scaled="1"/>
|
|
97
|
+
</a:gradFill>'''
|
|
98
|
+
|
|
99
|
+
elif tag == 'radialGradient':
|
|
100
|
+
return f'''<a:gradFill>
|
|
101
|
+
<a:gsLst>{gs_list}</a:gsLst>
|
|
102
|
+
<a:path path="circle">
|
|
103
|
+
<a:fillToRect l="50000" t="50000" r="50000" b="50000"/>
|
|
104
|
+
</a:path>
|
|
105
|
+
</a:gradFill>'''
|
|
106
|
+
|
|
107
|
+
return ''
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def build_fill_xml(
|
|
111
|
+
elem: ET.Element,
|
|
112
|
+
ctx: ConvertContext,
|
|
113
|
+
opacity: float | None = None,
|
|
114
|
+
) -> str:
|
|
115
|
+
"""Build fill XML for a shape element, with inherited style support."""
|
|
116
|
+
fill = _get_attr(elem, 'fill', ctx)
|
|
117
|
+
if fill is None:
|
|
118
|
+
fill = '#000000' # SVG default fill is black
|
|
119
|
+
|
|
120
|
+
if fill == 'none':
|
|
121
|
+
return '<a:noFill/>'
|
|
122
|
+
|
|
123
|
+
grad_id = resolve_url_id(fill)
|
|
124
|
+
if grad_id and grad_id in ctx.defs:
|
|
125
|
+
return build_gradient_fill(ctx.defs[grad_id], opacity)
|
|
126
|
+
|
|
127
|
+
color = parse_hex_color(fill)
|
|
128
|
+
if color:
|
|
129
|
+
return build_solid_fill(color, opacity)
|
|
130
|
+
|
|
131
|
+
return '<a:noFill/>'
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def build_stroke_xml(
|
|
135
|
+
elem: ET.Element,
|
|
136
|
+
ctx: ConvertContext,
|
|
137
|
+
opacity: float | None = None,
|
|
138
|
+
) -> str:
|
|
139
|
+
"""Build <a:ln> XML for stroke, with inherited style support."""
|
|
140
|
+
stroke = _get_attr(elem, 'stroke', ctx)
|
|
141
|
+
if not stroke or stroke == 'none':
|
|
142
|
+
return '<a:ln><a:noFill/></a:ln>'
|
|
143
|
+
|
|
144
|
+
width = _f(_get_attr(elem, 'stroke-width', ctx), 1.0)
|
|
145
|
+
width_emu = px_to_emu(width)
|
|
146
|
+
|
|
147
|
+
# Dash pattern
|
|
148
|
+
dash_xml = ''
|
|
149
|
+
dasharray = _get_attr(elem, 'stroke-dasharray', ctx)
|
|
150
|
+
if dasharray and dasharray != 'none':
|
|
151
|
+
preset = DASH_PRESETS.get(dasharray.strip())
|
|
152
|
+
if preset:
|
|
153
|
+
dash_xml = f'<a:prstDash val="{preset}"/>'
|
|
154
|
+
else:
|
|
155
|
+
dash_xml = '<a:prstDash val="dash"/>'
|
|
156
|
+
|
|
157
|
+
# Line cap
|
|
158
|
+
cap_map = {'round': 'rnd', 'square': 'sq', 'butt': 'flat'}
|
|
159
|
+
cap_attr = ''
|
|
160
|
+
linecap = _get_attr(elem, 'stroke-linecap', ctx)
|
|
161
|
+
if linecap and linecap in cap_map:
|
|
162
|
+
cap_attr = f' cap="{cap_map[linecap]}"'
|
|
163
|
+
|
|
164
|
+
# Line join
|
|
165
|
+
join_xml = ''
|
|
166
|
+
linejoin = _get_attr(elem, 'stroke-linejoin', ctx)
|
|
167
|
+
if linejoin == 'round':
|
|
168
|
+
join_xml = '<a:round/>'
|
|
169
|
+
elif linejoin == 'bevel':
|
|
170
|
+
join_xml = '<a:bevel/>'
|
|
171
|
+
elif linejoin == 'miter':
|
|
172
|
+
join_xml = '<a:miter lim="800000"/>'
|
|
173
|
+
|
|
174
|
+
# Gradient stroke
|
|
175
|
+
grad_id = resolve_url_id(stroke)
|
|
176
|
+
if grad_id and grad_id in ctx.defs:
|
|
177
|
+
grad_fill = build_gradient_fill(ctx.defs[grad_id], opacity)
|
|
178
|
+
return f'<a:ln w="{width_emu}"{cap_attr}>{grad_fill}{dash_xml}{join_xml}</a:ln>'
|
|
179
|
+
|
|
180
|
+
# Solid color stroke
|
|
181
|
+
color = parse_hex_color(stroke)
|
|
182
|
+
if not color:
|
|
183
|
+
return '<a:ln><a:noFill/></a:ln>'
|
|
184
|
+
|
|
185
|
+
alpha_xml = ''
|
|
186
|
+
if opacity is not None and opacity < 1.0:
|
|
187
|
+
alpha_xml = f'<a:alpha val="{int(opacity * 100000)}"/>'
|
|
188
|
+
|
|
189
|
+
return f'''<a:ln w="{width_emu}"{cap_attr}>
|
|
190
|
+
<a:solidFill><a:srgbClr val="{color}">{alpha_xml}</a:srgbClr></a:solidFill>{dash_xml}{join_xml}
|
|
191
|
+
</a:ln>'''
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def _parse_filter_params(
|
|
195
|
+
filter_elem: ET.Element,
|
|
196
|
+
) -> dict[str, float | str]:
|
|
197
|
+
"""Extract common parameters from an SVG filter element.
|
|
198
|
+
|
|
199
|
+
Returns:
|
|
200
|
+
Dict with keys: std_dev, dx, dy, opacity, color, has_offset.
|
|
201
|
+
"""
|
|
202
|
+
std_dev = 4.0
|
|
203
|
+
dx = 0.0
|
|
204
|
+
dy = 0.0
|
|
205
|
+
opacity = 0.3
|
|
206
|
+
color = '000000'
|
|
207
|
+
has_offset = False
|
|
208
|
+
|
|
209
|
+
for child in filter_elem.iter():
|
|
210
|
+
tag = child.tag.replace(f'{{{SVG_NS}}}', '')
|
|
211
|
+
if tag == 'feGaussianBlur':
|
|
212
|
+
std_dev = _f(child.get('stdDeviation'), 4.0)
|
|
213
|
+
elif tag == 'feOffset':
|
|
214
|
+
dx = _f(child.get('dx'), 0.0)
|
|
215
|
+
dy = _f(child.get('dy'), 0.0)
|
|
216
|
+
if abs(dx) > 0.01 or abs(dy) > 0.01:
|
|
217
|
+
has_offset = True
|
|
218
|
+
elif tag == 'feFlood':
|
|
219
|
+
opacity = _f(child.get('flood-opacity'), 0.3)
|
|
220
|
+
raw_color = child.get('flood-color', '').strip().lstrip('#')
|
|
221
|
+
if len(raw_color) == 6 and all(c in '0123456789abcdefABCDEF' for c in raw_color):
|
|
222
|
+
color = raw_color.upper()
|
|
223
|
+
elif tag == 'feFuncA':
|
|
224
|
+
if child.get('type') == 'linear':
|
|
225
|
+
opacity = _f(child.get('slope'), 0.3)
|
|
226
|
+
|
|
227
|
+
return {
|
|
228
|
+
'std_dev': std_dev, 'dx': dx, 'dy': dy,
|
|
229
|
+
'opacity': opacity, 'color': color, 'has_offset': has_offset,
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def build_shadow_xml(filter_elem: ET.Element) -> str:
|
|
234
|
+
"""Build <a:effectLst> with <a:outerShdw> from SVG filter element."""
|
|
235
|
+
if filter_elem is None:
|
|
236
|
+
return ''
|
|
237
|
+
|
|
238
|
+
p = _parse_filter_params(filter_elem)
|
|
239
|
+
std_dev = p['std_dev']
|
|
240
|
+
dx = p['dx']
|
|
241
|
+
dy = p['dy']
|
|
242
|
+
# For shadow, default dy to 4 if no offset was found
|
|
243
|
+
if not p['has_offset']:
|
|
244
|
+
dy = 4.0
|
|
245
|
+
|
|
246
|
+
blur_rad = px_to_emu(std_dev * 2)
|
|
247
|
+
dist = px_to_emu(math.sqrt(dx * dx + dy * dy))
|
|
248
|
+
dir_angle = int(((90 + math.degrees(math.atan2(dy, max(dx, 0.001)))) % 360) * ANGLE_UNIT)
|
|
249
|
+
alpha_val = int(p['opacity'] * 100000)
|
|
250
|
+
|
|
251
|
+
return f'''<a:effectLst>
|
|
252
|
+
<a:outerShdw blurRad="{blur_rad}" dist="{dist}" dir="{dir_angle}" algn="tl" rotWithShape="0">
|
|
253
|
+
<a:srgbClr val="{p['color']}"><a:alpha val="{alpha_val}"/></a:srgbClr>
|
|
254
|
+
</a:outerShdw>
|
|
255
|
+
</a:effectLst>'''
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def build_glow_xml(filter_elem: ET.Element) -> str:
|
|
259
|
+
"""Build <a:effectLst> with <a:glow> from SVG filter element.
|
|
260
|
+
|
|
261
|
+
Used for filters that have feGaussianBlur without meaningful feOffset,
|
|
262
|
+
typically title glow or highlight effects.
|
|
263
|
+
"""
|
|
264
|
+
if filter_elem is None:
|
|
265
|
+
return ''
|
|
266
|
+
|
|
267
|
+
p = _parse_filter_params(filter_elem)
|
|
268
|
+
rad = px_to_emu(p['std_dev'] * 2)
|
|
269
|
+
alpha_val = int(p['opacity'] * 100000)
|
|
270
|
+
|
|
271
|
+
return f'''<a:effectLst>
|
|
272
|
+
<a:glow rad="{rad}">
|
|
273
|
+
<a:srgbClr val="{p['color']}"><a:alpha val="{alpha_val}"/></a:srgbClr>
|
|
274
|
+
</a:glow>
|
|
275
|
+
</a:effectLst>'''
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def build_effect_xml(filter_elem: ET.Element) -> str:
|
|
279
|
+
"""Build effect XML by classifying the SVG filter as shadow or glow.
|
|
280
|
+
|
|
281
|
+
Classification rules:
|
|
282
|
+
- feOffset with non-zero dx/dy → outer shadow
|
|
283
|
+
- No feOffset or zero offset → glow effect
|
|
284
|
+
"""
|
|
285
|
+
if filter_elem is None:
|
|
286
|
+
return ''
|
|
287
|
+
|
|
288
|
+
p = _parse_filter_params(filter_elem)
|
|
289
|
+
if p['has_offset']:
|
|
290
|
+
return build_shadow_xml(filter_elem)
|
|
291
|
+
return build_glow_xml(filter_elem)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def get_element_opacity(elem: ET.Element) -> float | None:
|
|
295
|
+
"""Get opacity value from element. Returns None if 1.0 or not set."""
|
|
296
|
+
op = elem.get('opacity')
|
|
297
|
+
if op is None:
|
|
298
|
+
return None
|
|
299
|
+
try:
|
|
300
|
+
val = float(op)
|
|
301
|
+
return val if val < 1.0 else None
|
|
302
|
+
except ValueError:
|
|
303
|
+
return None
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
def get_fill_opacity(
|
|
307
|
+
elem: ET.Element,
|
|
308
|
+
ctx: ConvertContext | None = None,
|
|
309
|
+
) -> float | None:
|
|
310
|
+
"""Get effective fill opacity combining 'opacity' and 'fill-opacity'.
|
|
311
|
+
|
|
312
|
+
Returns:
|
|
313
|
+
Combined opacity value, or None if fully opaque.
|
|
314
|
+
"""
|
|
315
|
+
base = 1.0
|
|
316
|
+
|
|
317
|
+
op = _get_attr(elem, 'opacity', ctx) if ctx else elem.get('opacity')
|
|
318
|
+
if op:
|
|
319
|
+
try:
|
|
320
|
+
base = float(op)
|
|
321
|
+
except ValueError:
|
|
322
|
+
pass
|
|
323
|
+
|
|
324
|
+
fill_op = _get_attr(elem, 'fill-opacity', ctx) if ctx else elem.get('fill-opacity')
|
|
325
|
+
if fill_op:
|
|
326
|
+
try:
|
|
327
|
+
base *= float(fill_op)
|
|
328
|
+
except ValueError:
|
|
329
|
+
pass
|
|
330
|
+
|
|
331
|
+
return base if base < 1.0 else None
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
def get_stroke_opacity(
|
|
335
|
+
elem: ET.Element,
|
|
336
|
+
ctx: ConvertContext | None = None,
|
|
337
|
+
) -> float | None:
|
|
338
|
+
"""Get effective stroke opacity combining 'opacity' and 'stroke-opacity'.
|
|
339
|
+
|
|
340
|
+
Returns:
|
|
341
|
+
Combined opacity value, or None if fully opaque.
|
|
342
|
+
"""
|
|
343
|
+
base = 1.0
|
|
344
|
+
|
|
345
|
+
op = _get_attr(elem, 'opacity', ctx) if ctx else elem.get('opacity')
|
|
346
|
+
if op:
|
|
347
|
+
try:
|
|
348
|
+
base = float(op)
|
|
349
|
+
except ValueError:
|
|
350
|
+
pass
|
|
351
|
+
|
|
352
|
+
stroke_op = _get_attr(elem, 'stroke-opacity', ctx) if ctx else elem.get('stroke-opacity')
|
|
353
|
+
if stroke_op:
|
|
354
|
+
try:
|
|
355
|
+
base *= float(stroke_op)
|
|
356
|
+
except ValueError:
|
|
357
|
+
pass
|
|
358
|
+
|
|
359
|
+
return base if base < 1.0 else None
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"""Coordinate helpers, color parsing, and font utilities for DrawingML conversion."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
from xml.etree import ElementTree as ET
|
|
7
|
+
|
|
8
|
+
from .drawingml_context import ConvertContext
|
|
9
|
+
|
|
10
|
+
# ---------------------------------------------------------------------------
|
|
11
|
+
# Constants
|
|
12
|
+
# ---------------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
SVG_NS = 'http://www.w3.org/2000/svg'
|
|
15
|
+
XLINK_NS = 'http://www.w3.org/1999/xlink'
|
|
16
|
+
|
|
17
|
+
EMU_PER_PX = 9525 # 1 SVG px = 9525 EMU (96 DPI)
|
|
18
|
+
FONT_PX_TO_HUNDREDTHS_PT = 75 # 1px = 0.75pt -> 75 hundredths-of-a-point
|
|
19
|
+
ANGLE_UNIT = 60000 # DrawingML angle: 60000ths of a degree
|
|
20
|
+
|
|
21
|
+
# SVG attributes inheritable from parent <g>
|
|
22
|
+
INHERITABLE_ATTRS = [
|
|
23
|
+
'fill', 'stroke', 'stroke-width', 'stroke-dasharray', 'stroke-linecap',
|
|
24
|
+
'stroke-linejoin', 'opacity', 'fill-opacity', 'stroke-opacity',
|
|
25
|
+
'font-family', 'font-size', 'font-weight', 'font-style',
|
|
26
|
+
'text-anchor', 'letter-spacing', 'text-decoration',
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
# Known East Asian fonts
|
|
30
|
+
EA_FONTS = {
|
|
31
|
+
'PingFang SC', 'PingFang TC', 'PingFang HK',
|
|
32
|
+
'Microsoft YaHei', 'Microsoft JhengHei',
|
|
33
|
+
'SimSun', 'SimHei', 'FangSong', 'KaiTi', 'STKaiti',
|
|
34
|
+
'STHeiti', 'STSong', 'STFangsong', 'STXihei', 'STZhongsong',
|
|
35
|
+
'Hiragino Sans', 'Hiragino Sans GB', 'Hiragino Mincho ProN',
|
|
36
|
+
'Noto Sans SC', 'Noto Sans TC', 'Noto Serif SC', 'Noto Serif TC',
|
|
37
|
+
'Source Han Sans SC', 'Source Han Sans TC',
|
|
38
|
+
'Source Han Serif SC', 'Source Han Serif TC',
|
|
39
|
+
'WenQuanYi Micro Hei', 'WenQuanYi Zen Hei',
|
|
40
|
+
'YouYuan', 'LiSu', 'HuaWenKaiTi',
|
|
41
|
+
'Songti SC', 'Songti TC',
|
|
42
|
+
}
|
|
43
|
+
SYSTEM_FONTS = {'system-ui', '-apple-system', 'BlinkMacSystemFont'}
|
|
44
|
+
|
|
45
|
+
# macOS/Linux-only fonts -> Windows equivalents
|
|
46
|
+
FONT_FALLBACK_WIN = {
|
|
47
|
+
'PingFang SC': 'Microsoft YaHei',
|
|
48
|
+
'PingFang TC': 'Microsoft JhengHei',
|
|
49
|
+
'PingFang HK': 'Microsoft JhengHei',
|
|
50
|
+
'Hiragino Sans': 'Microsoft YaHei',
|
|
51
|
+
'Hiragino Sans GB': 'Microsoft YaHei',
|
|
52
|
+
'Hiragino Mincho ProN': 'SimSun',
|
|
53
|
+
'STHeiti': 'SimHei',
|
|
54
|
+
'STSong': 'SimSun',
|
|
55
|
+
'STKaiti': 'KaiTi',
|
|
56
|
+
'STFangsong': 'FangSong',
|
|
57
|
+
'STXihei': 'Microsoft YaHei',
|
|
58
|
+
'STZhongsong': 'SimSun',
|
|
59
|
+
'Songti SC': 'SimSun',
|
|
60
|
+
'Songti TC': 'SimSun',
|
|
61
|
+
'Noto Sans SC': 'Microsoft YaHei',
|
|
62
|
+
'Noto Sans TC': 'Microsoft JhengHei',
|
|
63
|
+
'Noto Serif SC': 'SimSun',
|
|
64
|
+
'Noto Serif TC': 'SimSun',
|
|
65
|
+
'Source Han Sans SC': 'Microsoft YaHei',
|
|
66
|
+
'Source Han Sans TC': 'Microsoft JhengHei',
|
|
67
|
+
'Source Han Serif SC': 'SimSun',
|
|
68
|
+
'Source Han Serif TC': 'SimSun',
|
|
69
|
+
'WenQuanYi Micro Hei': 'Microsoft YaHei',
|
|
70
|
+
'WenQuanYi Zen Hei': 'Microsoft YaHei',
|
|
71
|
+
# Latin fonts (macOS / Linux / Web -> Windows)
|
|
72
|
+
'SF Pro': 'Segoe UI',
|
|
73
|
+
'SF Pro Display': 'Segoe UI',
|
|
74
|
+
'SF Pro Text': 'Segoe UI',
|
|
75
|
+
'SF Mono': 'Consolas',
|
|
76
|
+
'Menlo': 'Consolas',
|
|
77
|
+
'Monaco': 'Consolas',
|
|
78
|
+
'Helvetica Neue': 'Arial',
|
|
79
|
+
'Helvetica': 'Arial',
|
|
80
|
+
'Roboto': 'Segoe UI',
|
|
81
|
+
'Ubuntu': 'Segoe UI',
|
|
82
|
+
'Liberation Sans': 'Arial',
|
|
83
|
+
'Liberation Serif': 'Times New Roman',
|
|
84
|
+
'Liberation Mono': 'Consolas',
|
|
85
|
+
'DejaVu Sans': 'Segoe UI',
|
|
86
|
+
'DejaVu Serif': 'Times New Roman',
|
|
87
|
+
'DejaVu Sans Mono': 'Consolas',
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
GENERIC_FONT_MAP = {
|
|
91
|
+
'monospace': 'Consolas',
|
|
92
|
+
'sans-serif': 'Segoe UI',
|
|
93
|
+
'serif': 'Times New Roman',
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
# When the latin font is serif and no EA font is specified,
|
|
97
|
+
# prefer SimSun (serif CJK) over Microsoft YaHei (sans-serif CJK).
|
|
98
|
+
_SERIF_LATIN = {
|
|
99
|
+
'Times New Roman', 'Georgia', 'Garamond', 'Palatino', 'Palatino Linotype',
|
|
100
|
+
'Book Antiqua', 'Cambria', 'SimSun', 'Liberation Serif', 'DejaVu Serif',
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
# SVG stroke-dasharray -> DrawingML prstDash
|
|
104
|
+
DASH_PRESETS = {
|
|
105
|
+
'4,4': 'dash', '4 4': 'dash',
|
|
106
|
+
'6,3': 'dash', '6 3': 'dash',
|
|
107
|
+
'2,2': 'sysDot', '2 2': 'sysDot',
|
|
108
|
+
'8,4': 'lgDash', '8 4': 'lgDash',
|
|
109
|
+
'8,4,2,4': 'lgDashDot', '8 4 2 4': 'lgDashDot',
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# ---------------------------------------------------------------------------
|
|
114
|
+
# Coordinate helpers
|
|
115
|
+
# ---------------------------------------------------------------------------
|
|
116
|
+
|
|
117
|
+
def px_to_emu(px: float) -> int:
|
|
118
|
+
"""Convert SVG pixels to EMU."""
|
|
119
|
+
return round(px * EMU_PER_PX)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def _f(val: str | None, default: float = 0.0) -> float:
|
|
123
|
+
"""Parse a float attribute value, returning default if missing."""
|
|
124
|
+
if val is None:
|
|
125
|
+
return default
|
|
126
|
+
try:
|
|
127
|
+
return float(val)
|
|
128
|
+
except (ValueError, TypeError):
|
|
129
|
+
return default
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def _extract_inheritable_styles(elem: ET.Element) -> dict[str, str]:
|
|
133
|
+
"""Extract all SVG-inheritable presentation attributes from an element."""
|
|
134
|
+
styles: dict[str, str] = {}
|
|
135
|
+
for attr in INHERITABLE_ATTRS:
|
|
136
|
+
val = elem.get(attr)
|
|
137
|
+
if val is not None:
|
|
138
|
+
styles[attr] = val
|
|
139
|
+
return styles
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def _get_attr(elem: ET.Element, attr: str, ctx: ConvertContext) -> str | None:
|
|
143
|
+
"""Get effective attribute: element's own value first, then inherited."""
|
|
144
|
+
val = elem.get(attr)
|
|
145
|
+
if val is not None:
|
|
146
|
+
return val
|
|
147
|
+
return ctx.inherited_styles.get(attr)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def ctx_x(val: float, ctx: ConvertContext) -> float:
|
|
151
|
+
"""Apply context scale + translate to an X coordinate."""
|
|
152
|
+
return val * ctx.scale_x + ctx.translate_x
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def ctx_y(val: float, ctx: ConvertContext) -> float:
|
|
156
|
+
"""Apply context scale + translate to a Y coordinate."""
|
|
157
|
+
return val * ctx.scale_y + ctx.translate_y
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def ctx_w(val: float, ctx: ConvertContext) -> float:
|
|
161
|
+
"""Apply context scale to a width value."""
|
|
162
|
+
return val * ctx.scale_x
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def ctx_h(val: float, ctx: ConvertContext) -> float:
|
|
166
|
+
"""Apply context scale to a height value."""
|
|
167
|
+
return val * ctx.scale_y
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
# ---------------------------------------------------------------------------
|
|
171
|
+
# Color / style parsing
|
|
172
|
+
# ---------------------------------------------------------------------------
|
|
173
|
+
|
|
174
|
+
def parse_hex_color(color_str: str) -> str | None:
|
|
175
|
+
"""Parse '#RRGGBB' or '#RGB' to 'RRGGBB'. Returns None on failure."""
|
|
176
|
+
if not color_str:
|
|
177
|
+
return None
|
|
178
|
+
color_str = color_str.strip()
|
|
179
|
+
if color_str.startswith('#'):
|
|
180
|
+
color_str = color_str[1:]
|
|
181
|
+
if len(color_str) == 3:
|
|
182
|
+
color_str = ''.join(c * 2 for c in color_str)
|
|
183
|
+
if len(color_str) == 6 and all(c in '0123456789abcdefABCDEF' for c in color_str):
|
|
184
|
+
return color_str.upper()
|
|
185
|
+
return None
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def parse_stop_style(style_str: str) -> tuple[str | None, float]:
|
|
189
|
+
"""Parse a gradient stop's style attribute.
|
|
190
|
+
|
|
191
|
+
Args:
|
|
192
|
+
style_str: Style string like 'stop-color:#XXX;stop-opacity:N'.
|
|
193
|
+
|
|
194
|
+
Returns:
|
|
195
|
+
(color, opacity) tuple.
|
|
196
|
+
"""
|
|
197
|
+
color = None
|
|
198
|
+
opacity = 1.0
|
|
199
|
+
if not style_str:
|
|
200
|
+
return color, opacity
|
|
201
|
+
|
|
202
|
+
for part in style_str.split(';'):
|
|
203
|
+
part = part.strip()
|
|
204
|
+
if part.startswith('stop-color:'):
|
|
205
|
+
color = parse_hex_color(part.split(':', 1)[1].strip())
|
|
206
|
+
elif part.startswith('stop-opacity:'):
|
|
207
|
+
try:
|
|
208
|
+
opacity = float(part.split(':', 1)[1].strip())
|
|
209
|
+
except ValueError:
|
|
210
|
+
pass
|
|
211
|
+
|
|
212
|
+
return color, opacity
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
def resolve_url_id(url_str: str) -> str | None:
|
|
216
|
+
"""Extract ID from 'url(#someId)' reference."""
|
|
217
|
+
if not url_str:
|
|
218
|
+
return None
|
|
219
|
+
m = re.match(r'url\(#([^)]+)\)', url_str.strip())
|
|
220
|
+
return m.group(1) if m else None
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def get_effective_filter_id(elem: ET.Element, ctx: ConvertContext) -> str | None:
|
|
224
|
+
"""Get the effective filter ID for an element, including inherited context."""
|
|
225
|
+
filt = elem.get('filter')
|
|
226
|
+
if filt:
|
|
227
|
+
return resolve_url_id(filt)
|
|
228
|
+
return ctx.filter_id
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
# ---------------------------------------------------------------------------
|
|
232
|
+
# Font parsing
|
|
233
|
+
# ---------------------------------------------------------------------------
|
|
234
|
+
|
|
235
|
+
def parse_font_family(font_family_str: str) -> dict[str, str]:
|
|
236
|
+
"""Parse CSS font-family into latin/ea typeface names.
|
|
237
|
+
|
|
238
|
+
Prioritizes Windows-available fonts since PPTX is primarily opened on
|
|
239
|
+
Windows. macOS/Linux-only fonts are mapped via FONT_FALLBACK_WIN.
|
|
240
|
+
"""
|
|
241
|
+
if not font_family_str:
|
|
242
|
+
return {'latin': 'Segoe UI', 'ea': 'Microsoft YaHei'}
|
|
243
|
+
|
|
244
|
+
fonts = [f.strip().strip("'\"") for f in font_family_str.split(',')]
|
|
245
|
+
latin_font = None
|
|
246
|
+
ea_font = None
|
|
247
|
+
|
|
248
|
+
for font in fonts:
|
|
249
|
+
if font in SYSTEM_FONTS:
|
|
250
|
+
continue
|
|
251
|
+
if font in GENERIC_FONT_MAP:
|
|
252
|
+
resolved = GENERIC_FONT_MAP[font]
|
|
253
|
+
latin_font = latin_font or resolved
|
|
254
|
+
continue
|
|
255
|
+
|
|
256
|
+
win_font = FONT_FALLBACK_WIN.get(font, font)
|
|
257
|
+
if font in EA_FONTS:
|
|
258
|
+
ea_font = ea_font or win_font
|
|
259
|
+
else:
|
|
260
|
+
latin_font = latin_font or win_font
|
|
261
|
+
|
|
262
|
+
# PPT renders CJK text via latin typeface when ea doesn't match
|
|
263
|
+
if not latin_font and ea_font:
|
|
264
|
+
latin_font = ea_font
|
|
265
|
+
|
|
266
|
+
final_latin = latin_font or 'Segoe UI'
|
|
267
|
+
|
|
268
|
+
# EA must always be a CJK-capable font
|
|
269
|
+
if not ea_font:
|
|
270
|
+
ea_font = 'SimSun' if final_latin in _SERIF_LATIN else 'Microsoft YaHei'
|
|
271
|
+
|
|
272
|
+
return {'latin': final_latin, 'ea': ea_font}
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def is_cjk_char(ch: str) -> bool:
|
|
276
|
+
"""Check if a character is CJK (Chinese/Japanese/Korean)."""
|
|
277
|
+
cp = ord(ch)
|
|
278
|
+
return (0x4E00 <= cp <= 0x9FFF or 0x3400 <= cp <= 0x4DBF or
|
|
279
|
+
0x2E80 <= cp <= 0x2EFF or 0x3000 <= cp <= 0x303F or
|
|
280
|
+
0xFF00 <= cp <= 0xFFEF or 0xF900 <= cp <= 0xFAFF or
|
|
281
|
+
0x20000 <= cp <= 0x2A6DF)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
def estimate_text_width(text: str, font_size: float, font_weight: str = '400') -> float:
|
|
285
|
+
"""Estimate text width in SVG pixels."""
|
|
286
|
+
width = 0.0
|
|
287
|
+
for ch in text:
|
|
288
|
+
if is_cjk_char(ch):
|
|
289
|
+
width += font_size
|
|
290
|
+
elif ch == ' ':
|
|
291
|
+
width += font_size * 0.3
|
|
292
|
+
elif ch in 'mMwWOQ':
|
|
293
|
+
width += font_size * 0.75
|
|
294
|
+
elif ch in 'iIlj1!|':
|
|
295
|
+
width += font_size * 0.3
|
|
296
|
+
else:
|
|
297
|
+
width += font_size * 0.55
|
|
298
|
+
|
|
299
|
+
if font_weight in ('bold', '600', '700', '800', '900'):
|
|
300
|
+
width *= 1.05
|
|
301
|
+
|
|
302
|
+
return width
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def _xml_escape(text: str) -> str:
|
|
306
|
+
"""Escape XML special characters."""
|
|
307
|
+
return (text.replace('&', '&')
|
|
308
|
+
.replace('<', '<')
|
|
309
|
+
.replace('>', '>')
|
|
310
|
+
.replace('"', '"'))
|