我想在带有变换的元素上设置阴影。
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="1000" height="800">
<path d="M 0 0 L 50 0 L 50 50 L 0 50 L 0 0 Z" fill="red" fill-opacity="1" stroke="none" transform="matrix(1,0,0,1,100,0)" style="filter: url('#zr-shadow-0');"></path>
<path d="M 0 0 L 1 0 L 1 1 L 0 1 L 0 0 Z" fill="red" fill-opacity="1" stroke="none" transform="matrix(50,0,0,50,100,100)" style="filter: url('#zr-shadow-1');"></path>
<defs>
<filter id="zr-shadow-0" x="-10" y="-10" width="20" height="20">
<feDropShadow dx="10" dy="10" stdDeviation="5" flood-color="blue"></feDropShadow>
</filter>
<filter id="zr-shadow-1" x="-10" y="-10" width="20" height="20">
<feDropShadow dx="10" dy="10" stdDeviation="250" flood-color="blue"></feDropShadow>
</filter>
</defs>
</svg>
第一条路径没有缩放,它的阴影被正确渲染。但是第二条路径在 x 和 y 方向上都缩放了 50 倍,并且没有像预期的那样显示阴影。
我应该如何设置过滤器参数,以便第二个路径与第一个路径具有相同的阴影?