How to render svg elements with crisp edges while still keeping anti-aliasing?

后端 未结 3 1539
花落未央
花落未央 2020-12-07 15:39

Is there a way to render svg elements with crisp edges while still keeping anti-aliasing?

I\'m creating a browser-based tool that works in modern br

3条回答
  •  执念已碎
    2020-12-07 16:08

    Perhaps you set shape-rendering property for root svg element.
    You should set shape-rendering property for each shape elements, like this.

    
    
        
        
    
    

提交回复
热议问题