1
0
Fork 0

chore(plugin-title): Get name/version from config.data

This commit is contained in:
Joost De Cock 2022-08-31 18:51:10 +02:00
parent d9f659b0bc
commit 83a0211bef

View file

@ -78,8 +78,8 @@ export const plugin = {
}
this.points[`_${prefix}_titlePattern`] = so.at
.shift(-90 - so.rotation, shift * so.scale)
.attr('data-text', this.context.config.name)
.attr('data-text', 'v' + this.context.config.version)
.attr('data-text', this.context.config?.data?.name || 'No Name')
.attr('data-text', 'v' + this.context.config?.data?.version || 'No Version')
.attr('data-text-class', '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) {