diff options
author | Rasmus Andersson <rasmus@notion.se> | 2019-08-03 20:36:10 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2019-08-03 20:36:10 +0300 |
commit | 164e53bb58909927b83c4b23736f24802c78aeb6 (patch) | |
tree | c4fcdb4795389cfc1c30ad33ad811332f92e0349 /docs/index-var.js | |
parent | 862cd438ed1613cfd2585faf0b70bfe4f176a335 (diff) | |
download | inter-164e53bb58909927b83c4b23736f24802c78aeb6.tar.xz |
Negative slant angle changes to website
Diffstat (limited to 'docs/index-var.js')
-rw-r--r-- | docs/index-var.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/index-var.js b/docs/index-var.js index f85ca4126..19f4aeaa2 100644 --- a/docs/index-var.js +++ b/docs/index-var.js @@ -90,7 +90,12 @@ var ui = { let s = sample.style for (let k in this.state) { let f = this.formatters[k] - s.setProperty(`--var-${k}`, f ? f(this.state[k]) : this.state[k]) + let v = this.state[k] + if (k == "slant") { + // negate slant value (negative values causes positive grades) + v = -v + } + s.setProperty(`--var-${k}`, f ? f(v) : v) } }, } |