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
docs(templates): 解除 SVG <filter> 的禁用限制
hugohe35f19024b020c
diff --git a/templates/layouts/academic_defense/design_spec.md b/templates/layouts/academic_defense/design_spec.mdindex bb86edc5..dff916a3 100644--- a/templates/layouts/academic_defense/design_spec.md+++ b/templates/layouts/academic_defense/design_spec.md@@ -189,7 +189,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`diff --git a/templates/layouts/consultant/design_spec.md b/templates/layouts/consultant/design_spec.mdindex 127afe0c..64ba4731 100644--- a/templates/layouts/consultant/design_spec.md+++ b/templates/layouts/consultant/design_spec.md@@ -174,7 +174,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`diff --git a/templates/layouts/consultant_top/design_spec.md b/templates/layouts/consultant_top/design_spec.mdindex b769eec9..1bd2acbf 100644--- a/templates/layouts/consultant_top/design_spec.md+++ b/templates/layouts/consultant_top/design_spec.md@@ -180,7 +180,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`8. 渐变使用 `<defs>` 定义 `<linearGradient>`diff --git a/templates/layouts/general/design_spec.md b/templates/layouts/general/design_spec.mdindex 9c89c1ce..83aa9fa7 100644--- a/templates/layouts/general/design_spec.md+++ b/templates/layouts/general/design_spec.md@@ -177,7 +177,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`8. 渐变使用 `<defs>` 定义 `<linearGradient>`diff --git a/templates/layouts/google_style/design_spec.md b/templates/layouts/google_style/design_spec.mdindex f70679d4..ce372d74 100644--- a/templates/layouts/google_style/design_spec.md+++ b/templates/layouts/google_style/design_spec.md@@ -243,7 +243,7 @@ width: 10px, 分4段, 各180px高由于 `filter` 可能影响 PPT 兼容性,建议:- 使用微妙的边框颜色变化模拟阴影-- 或接受 `filter` 在 PPT 中会被忽略+- 或接受 `filter` 在某些旧版 PPT 中可能会被忽略,但在新版中支持良好---diff --git a/templates/layouts/government_blue/design_spec.md b/templates/layouts/government_blue/design_spec.mdindex b502a7c6..70d8c86a 100644--- a/templates/layouts/government_blue/design_spec.md+++ b/templates/layouts/government_blue/design_spec.md@@ -178,7 +178,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`diff --git a/templates/layouts/government_red/design_spec.md b/templates/layouts/government_red/design_spec.mdindex 79f25514..969caae5 100644--- a/templates/layouts/government_red/design_spec.md+++ b/templates/layouts/government_red/design_spec.md@@ -174,7 +174,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`diff --git a/templates/layouts/pixel_retro/design_spec.md b/templates/layouts/pixel_retro/design_spec.mdindex b7b96ece..4b77a318 100644--- a/templates/layouts/pixel_retro/design_spec.md+++ b/templates/layouts/pixel_retro/design_spec.md@@ -214,7 +214,7 @@<text filter="url(#glowGreen)" fill="#39FF14">发光文字</text>```-> ⚠️ **注意**: `filter` 效果在 PPT 中可能不完全兼容,但不会导致渲染失败。+> ⚠️ **注意**: `filter` 效果在 PPT 中通常会被忽略,但在支持 SVG 的查看器中效果良好。### Emoji 使用@@ -250,7 +250,7 @@- 禁止 `<g opacity="...">`(组透明度),每个子元素单独设置- 图片透明度使用遮罩层替代- 仅使用内联样式,禁止外部 CSS 和 `@font-face`-- `filter` 效果作为增强(警告级别),不影响基础显示+- `filter` 效果作为增强(允许使用),不影响基础显示---diff --git "a/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md" "b/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"index 4be1f37a..c2d27ec3 100644--- "a/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"+++ "b/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"@@ -175,7 +175,7 @@- `foreignObject` (外部对象)- `textPath` (路径文本)- `animate`, `animateTransform`, `set` (动画)-- `<filter>` (滤镜)+- `rgba()` 颜色格式 (必须用 hex + opacity)- `<g opacity="...">` (组透明度,需单独设置)diff --git "a/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md" "b/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"index 82010842..9d17df56 100644--- "a/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"+++ "b/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"@@ -135,7 +135,7 @@1. **渐变**: 使用 `<linearGradient>` 营造金属质感或光影感。2. **网格**: 使用 `<pattern>` 定义精细网格背景,Opacity 控制在 0.05-0.1。3. **透明度**: 严格使用 `fill-opacity` / `stroke-opacity`。-4. **禁区**: 无 `clipPath`, `mask`, `filter`。+4. **禁区**: 无 `clipPath`, `mask`。### 禁用元素 (黑名单)@@ -144,7 +144,7 @@- `foreignObject` (外部对象)- `textPath` (路径文本)- `animate`, `animateTransform`, `set` (动画)-- `<filter>` (滤镜)+- `rgba()` 颜色格式 (必须用 hex + opacity)- `<g opacity="...">` (组透明度,需单独设置)diff --git "a/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md" "b/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"index fdf7fcb0..4688dcf9 100644--- "a/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"+++ "b/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"@@ -136,7 +136,7 @@1. **渐变支持**: 使用 `<linearGradient>` 和 `<radialGradient>` 定义在 `<defs>` 中。2. **阴影模拟**: PPT不支持 SVG滤镜阴影,使用**半透明黑色矩形 (`fill="#000000" fill-opacity="0.1"`)** 错位叠加来模拟卡片阴影。3. **透明度**: 严格使用 `fill-opacity` / `stroke-opacity`。-4. **禁区**: 无 `clipPath`, `mask`, `filter`。+4. **禁区**: 无 `clipPath`, `mask`。---diff --git "a/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md" "b/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"index 52f8bde8..743d17ee 100644--- "a/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"+++ "b/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"@@ -171,7 +171,7 @@2. 背景使用 `<rect>` 元素3. 文本换行使用 `<tspan>`(禁止 `<foreignObject>`)4. 透明度使用 `fill-opacity` / `stroke-opacity`,禁止 `rgba()`-5. 禁止使用:`clipPath`、`mask`、`filter`、`<style>`、`class`、`foreignObject`+5. 禁止使用:`clipPath`、`mask`、`<style>`、`class`、`foreignObject`6. 禁止使用:`textPath`、`animate*`、`script`、`marker`/`marker-end`7. 箭头使用 `<polygon>` 三角形替代 `<marker>`diff --git "a/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md" "b/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"index 4d9e80ef..28a2d8f2 100644--- "a/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"+++ "b/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"@@ -174,7 +174,7 @@- `foreignObject` (外部对象)- `textPath` (路径文本)- `animate`, `animateTransform`, `set` (动画)-- `<filter>` (滤镜)+- `rgba()` 颜色格式 (必须用 hex + opacity)- `<g opacity="...">` (组透明度,需单独设置)