We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e34195d commit c040f13Copy full SHA for c040f13
src/runtime/transition/index.ts
@@ -179,8 +179,9 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
179
easing = cubicInOut
180
}: DrawParams = {}): TransitionConfig {
181
let len = node.getTotalLength();
182
- if (getComputedStyle(node).strokeLinecap !== 'butt') {
183
- len += parseInt(getComputedStyle(node).strokeWidth);
+ const style = getComputedStyle(node);
+ if (style.strokeLinecap !== 'butt') {
184
+ len += parseInt(style.strokeWidth);
185
}
186
187
if (duration === undefined) {
0 commit comments