From 89b592c6ac6b67a6275b93eb5f8fd21aa0dc8e6b Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sun, 9 Mar 2025 12:04:04 +0200 Subject: [PATCH] remove non-scaling stroke --- context.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/context.js b/context.js index e9433f0..004c1d1 100644 --- a/context.js +++ b/context.js @@ -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));