This question already has answers here:
How to make stroke width immune to the current transformation matrix
                                
                                    (2个答案)
                                
                        
                                2年前关闭。
            
                    
是否可以将斜矩阵应用于svg,而不会压扁和挤压线宽。因此,线条仍然沿矩阵行进,但是它们自身是否不会拉伸和挤压,从而影响线条宽度?

像下面...
第一张图片的法线矩阵为(1,0,0,1,0,0)

然后,第二个矩阵的矩阵为(1,1,0,1,0,0)-歪斜矩阵,但是您看到的线宽也会全部歪斜。

不知道我追求的目标是否可能,但是如果可以的话,它会很酷!

javascript - svg偏斜矩阵/变换而无需挤压线-LMLPHP

javascript - svg偏斜矩阵/变换而无需挤压线-LMLPHP

更新

在这里找到答案:

How to make stroke width immune to the current transformation matrix

vector-effect:non-scaling-stroke;


如果有人发现它有用,我将在这里保留!

谢谢

最佳答案

更新

在这里找到答案:

How to make stroke width immune to the current transformation matrix

vector-effect:non-scaling-stroke;

09-30 15:57
查看更多