When multiple colors overlap on one square draw the one representing the furthest range with the highest priority

This commit is contained in:
Manuel Vögele
2021-03-09 14:47:53 +01:00
parent 862477c698
commit 5a7f5531f2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ export function measure(destination, {gridSpaces=true, snap=false} = {}) {
rulerColor = getColorForDistance.call(this, totalDistance)
else
rulerColor = this.color
for (const [s, cs] of zip(segments, centeredSegments)) {
for (const [s, cs] of zip(segments.reverse(), centeredSegments.reverse())) {
const { ray, label, text, last } = s;
// Draw line segment