1
0
Fork 0

feat(plugin-title): Added name of person to title output

This commit is contained in:
Joost De Cock 2020-03-08 11:10:38 +01:00
parent d3eb77b406
commit e301483988
3 changed files with 18 additions and 1 deletions

View file

@ -49,6 +49,14 @@ export default {
.attr('data-text', 'v' + this.context.config.version)
.attr('data-text-class', 'title-pattern fill-note')
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
if (this.context.settings.metadata && this.context.settings.metadata.for) {
shift += 8
this.points[`_${prefix}_titleFor`] = so.at
.shift(-90 - so.rotation, shift * so.scale)
.attr('data-text', '( ' + this.context.settings.metadata.for + ' )')
.attr('data-text-class', 'title-pattern')
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
}
}
}
}