feat(plugin-title): Added name of person to title output
This commit is contained in:
parent
d3eb77b406
commit
e301483988
3 changed files with 18 additions and 1 deletions
|
@ -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)))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue