remove non-scaling stroke

This commit is contained in:
Evert Prants 2025-03-09 12:04:04 +02:00
parent bfdb436390
commit 89b592c6ac

View File

@ -779,8 +779,6 @@ export default (function () {
var pathElement = this.__createPathElement();
this.__applyStyleToElement(pathElement, action);
pathElement.setAttribute("paint-order", "fill stroke markers");
// This is a hack to replicate the behavior of Fabric.
pathElement.setAttribute("vector-effect", "non-scaling-stroke");
pathElement.setAttribute("d", path.__pathString);
if (path2d) {
this.__applyTransformation(pathElement);
@ -792,7 +790,6 @@ export default (function () {
var pathElement = this.__createPathElement();
this.__applyStyleToElement(pathElement, action);
pathElement.setAttribute("paint-order", "fill stroke markers");
pathElement.setAttribute("vector-effect", "non-scaling-stroke");
pathElement.setAttribute("d", subPath.path.__pathString);
if (subPath.transform) {
this.__applyTransformation(pathElement, this.getTransform().multiply(subPath.transform));