AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
fix(svg-to-pptx): require explicit filter alpha slope
hugohe36ef18f692459
diff --git a/skills/ppt-master/references/shared-standards.md b/skills/ppt-master/references/shared-standards.mdindex 426aa27f..68aad83f 100644--- a/skills/ppt-master/references/shared-standards.md+++ b/skills/ppt-master/references/shared-standards.md@@ -758,7 +758,7 @@ Filters are native-effect metadata, not a general pixel-filter surface.| Definition/reference | Direct `<defs><filter id="...">` child with unique id; direct `filter="url(#id)"` attribute, never inline style || Public targets | `<rect>`, `<circle>`, `<path>`, `<text>` || Required primitive | `feDropShadow` or `feGaussianBlur` |-| Required geometry | Explicit `stdDeviation` on either effect primitive; explicit `dx` and `dy` on `feDropShadow` |+| Required parameters | Explicit `stdDeviation` on either effect primitive; explicit `dx` and `dy` on `feDropShadow`; explicit `slope` on linear `feFuncA` || Accepted helpers | `feOffset`, `feFlood`, `feComposite`, `feMerge`, `feMergeNode`, `feComponentTransfer`, linear `feFuncA` || Numeric values | Finite unitless values; non-negative `stdDeviation`; finite `dx` / `dy`; `feFuncA slope` within `0..1`; mapped glow `rad = stdDeviation × 9525`, shadow `blurRad = stdDeviation × 2 × 9525`, and shadow `dist = hypot(dx,dy) × 9525` must round into DrawingML `0..27273042316900` || Classification | Meaningful non-zero offset → one outer shadow; zero/no offset → one glow |diff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.pyindex 1ba6b52b..c5f8ef75 100644--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py@@ -2001,7 +2001,7 @@ def parse_project_filter_params(color = parsed_colorcolor_alpha = parsed_alphaelif tag == 'feFuncA' and child.get('type') == 'linear':- slope = max(0.0, _f(child.get('slope'), 0.3))+ slope = required_number(child, 'slope')transfer_opacity = (slopeif transfer_opacity is None@@ -2159,7 +2159,7 @@ def project_filter_errors(root: ET.Element) -> list[str]:('dy', False, False),)elif primitive_tag == 'feFuncA':- numeric_attrs = (('slope', True, False),)+ numeric_attrs = (('slope', True, True),)if primitive_tag == 'feDropShadow':numeric_attrs += (('dx', False, True),diff --git a/skills/ppt-master/scripts/test_svg_quality_checker.py b/skills/ppt-master/scripts/test_svg_quality_checker.pyindex e7c39ca6..527ef500 100644--- a/skills/ppt-master/scripts/test_svg_quality_checker.py+++ b/skills/ppt-master/scripts/test_svg_quality_checker.py@@ -2544,6 +2544,25 @@ class SVGQualityCheckerCompatibilityTests(unittest.TestCase):'invalid project filter',)+ def test_filter_alpha_transfer_slope_must_be_explicit(self):+ self._assert_checker_and_exporter_reject(+ '''<svg xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 1280 720">+ <defs>+ <filter id="effect">+ <feGaussianBlur stdDeviation="6"/>+ <feComponentTransfer>+ <feFuncA type="linear"/>+ </feComponentTransfer>+ </filter>+ </defs>+ <rect x="80" y="80" width="300" height="180"+ fill="#FFFFFF" filter="url(#effect)"/>+</svg>''',+ '<feFuncA> requires explicit slope',+ 'invalid project filter',+ )+def test_filter_coordinates_block_drawingml_overflow(self):cases = ((