Add button to toggle layer as mask

This commit is contained in:
Frederic Kettelhoit
2020-03-19 12:12:35 +01:00
committed by Atlas Cove
parent a4236752ab
commit 7a93075312
4 changed files with 11 additions and 2 deletions

View File

@@ -191,6 +191,8 @@ function Tool (client) {
this.style().strokeLinejoin = a[this.i.linejoin % a.length]
} else if (type === 'fill') {
this.style().fill = this.style().fill === 'none' ? this.style().color : 'none'
} else if (type === 'mask') {
this.style().mask = !this.style().mask
} else if (type === 'thickness') {
this.style().thickness = clamp(this.style().thickness + mod, 1, 100)
} else if (type === 'mirror') {