fix: gap path to not omit the M path sign

This commit is contained in:
Azgaar 2024-09-29 15:09:29 +02:00
parent c04fb2bfca
commit 80da2f0cda
3 changed files with 3 additions and 4 deletions

View file

@ -78,11 +78,10 @@ function getBorderPath(vertices, vertexChain, discontinue) {
}
const operation = discontinued ? "M" : "L";
const command = operation === lastOperation ? "" : operation;
discontinued = false;
lastOperation = operation;
const command = operation === "L" && operation === lastOperation ? "" : operation;
return ` ${command}${vertices.p[vertexId]}`;
});