summaryrefslogtreecommitdiffstats
path: root/src/store
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-05 15:41:46 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-17 13:06:41 +0200
commited662637c635ed2bf3dafa08f18fc8ff10c9a6c7 (patch)
tree85e4c49185b5c34dedff1c548f0a509c7234d6a3 /src/store
parentd01dc18cda5597b92026bd9c82c32a9a9b05fea0 (diff)
Calculate blur filter only in one location
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/callViewStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/callViewStore.js b/src/store/callViewStore.js
index 77048c877..52eb576ed 100644
--- a/src/store/callViewStore.js
+++ b/src/store/callViewStore.js
@@ -33,8 +33,8 @@ const getters = {
selectedVideoPeerId: (state) => {
return state.selectedVideoPeerId
},
- videoBackgroundBlur: (state) => {
- return state.videoBackgroundBlur
+ getBlurFilter: (state) => (width, height) => {
+ return `filter: blur(${(width * height * state.videoBackgroundBlur) / 1000}px)`
},
}