add field color

This commit is contained in:
Pete Matsyburka
2024-11-10 12:48:53 +02:00
parent ca7ab5aab7
commit 76f1f140ac
8 changed files with 30 additions and 3 deletions
+4
View File
@@ -408,6 +408,10 @@ export default {
style.lineHeight = `clamp(6pt, 2.0vw, ${parseInt(this.field.preferences.font_size) + 3}pt)`
}
if (this.field.preferences?.color) {
style.color = this.field.preferences.color
}
return style
}
},
@@ -226,6 +226,10 @@ export default {
if (this.$refs.canvas) {
this.pad = new SignaturePad(this.$refs.canvas)
if (this.field.preferences?.color) {
this.pad.penColor = this.field.preferences.color
}
this.pad.addEventListener('beginStroke', () => {
this.isInitialsStarted = true
@@ -423,6 +423,10 @@ export default {
if (this.$refs.canvas) {
this.pad = new SignaturePad(this.$refs.canvas)
if (this.field.preferences?.color) {
this.pad.penColor = this.field.preferences.color
}
this.pad.addEventListener('endStroke', () => {
this.isSignatureStarted = true