mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Format the scope opacity changes
Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
8379a0ffd3
commit
1dcc025832
5 files changed
+24
-7
No files matched your search
+4
-1
@@ -549,7 +549,10 @@ export function getScopeMaskFeather() {
|
||||
* @returns {void}
|
||||
*/
|
||||
export function setScopeMaskOpacity(ratio) {
|
||||
_maskOpacity = Math.max(0, Math.min(1, Number.isFinite(Number(ratio)) ? Number(ratio) : 1));
|
||||
_maskOpacity = Math.max(
|
||||
0,
|
||||
Math.min(1, Number.isFinite(Number(ratio)) ? Number(ratio) : 1),
|
||||
);
|
||||
if (_canvas) _canvas.style.opacity = String(_maskOpacity);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user