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

@ -8039,7 +8039,7 @@
<script src="utils/stringUtils.js?v=1.99.00"></script>
<script src="utils/languageUtils.js?v=1.99.00"></script>
<script src="utils/unitUtils.js?v=1.99.00"></script>
<script src="utils/pathUtils.js?v=1.105.6"></script>
<script src="utils/pathUtils.js?v=1.105.8"></script>
<script defer src="utils/debugUtils.js?v=1.99.00"></script>
<script src="modules/voronoi.js"></script>

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]}`;
});

View file

@ -12,7 +12,7 @@
*
* Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2
*/
const VERSION = "1.105.7";
const VERSION = "1.105.8";
if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function");
{