From 80da2f0cda35c6af125adde95ba574b4aebf9f3a Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 29 Sep 2024 15:09:29 +0200 Subject: [PATCH] fix: gap path to not omit the M path sign --- index.html | 2 +- utils/pathUtils.js | 3 +-- versioning.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 1d9727ba..e2be2515 100644 --- a/index.html +++ b/index.html @@ -8039,7 +8039,7 @@ - + diff --git a/utils/pathUtils.js b/utils/pathUtils.js index 4f023595..a81720a4 100644 --- a/utils/pathUtils.js +++ b/utils/pathUtils.js @@ -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]}`; }); diff --git a/versioning.js b/versioning.js index 5a416d6d..3b86e7d1 100644 --- a/versioning.js +++ b/versioning.js @@ -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"); {