chore(plugin-title): Get name/version from config.data
This commit is contained in:
parent
d9f659b0bc
commit
83a0211bef
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ export const plugin = {
|
||||||
}
|
}
|
||||||
this.points[`_${prefix}_titlePattern`] = so.at
|
this.points[`_${prefix}_titlePattern`] = so.at
|
||||||
.shift(-90 - so.rotation, shift * so.scale)
|
.shift(-90 - so.rotation, shift * so.scale)
|
||||||
.attr('data-text', this.context.config.name)
|
.attr('data-text', this.context.config?.data?.name || 'No Name')
|
||||||
.attr('data-text', 'v' + this.context.config.version)
|
.attr('data-text', 'v' + this.context.config?.data?.version || 'No Version')
|
||||||
.attr('data-text-class', 'fill-note')
|
.attr('data-text-class', 'fill-note')
|
||||||
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
|
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
|
||||||
if (this.context.settings.metadata && this.context.settings.metadata.for) {
|
if (this.context.settings.metadata && this.context.settings.metadata.for) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue