Skip to content

Commit b13b3b6

Browse files
committed
[apps/gamut]
1 parent d392dc3 commit b13b3b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/gamut-mapping/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2>Gamut mapped</h2>
5050
positive: delta > 0,
5151
negative: delta < 0,
5252
zero: delta === 0,
53-
min: minDeltas[c] === delta,
53+
min: minDeltas[c] === abs(delta),
5454
}">{{ delta }}</dd>
5555
</template>
5656
</dl>

apps/gamut-mapping/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ let app = createApp({
103103

104104
methods: {
105105
toPrecision: Color.util.toPrecision,
106+
abs: Math.abs
106107
},
107108

108109
watch: {

0 commit comments

Comments
 (0)