|
|
|
@ -179,8 +179,9 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
|
|
|
|
easing = cubicInOut
|
|
|
|
easing = cubicInOut
|
|
|
|
}: DrawParams = {}): TransitionConfig {
|
|
|
|
}: DrawParams = {}): TransitionConfig {
|
|
|
|
let len = node.getTotalLength();
|
|
|
|
let len = node.getTotalLength();
|
|
|
|
if (getComputedStyle(node).strokeLinecap !== 'butt') {
|
|
|
|
const style = getComputedStyle(node);
|
|
|
|
len += parseInt(getComputedStyle(node).strokeWidth);
|
|
|
|
if (style.strokeLinecap !== 'butt') {
|
|
|
|
|
|
|
|
len += parseInt(style.strokeWidth);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (duration === undefined) {
|
|
|
|
if (duration === undefined) {
|
|
|
|
|