1
0
Fork 0

Change the title macro to use design short name.

This commit is contained in:
Benjamin F 2022-09-01 09:41:54 -07:00
parent 89b0f3f4c1
commit 308268ead6

View file

@ -76,9 +76,11 @@ export const plugin = {
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, 13 * so.scale)))
shift += 8
}
let name = this.context.config?.data?.name || 'No Name'
name = name.replace('@freesewing/', '')
this.points[`_${prefix}_titlePattern`] = so.at
.shift(-90 - so.rotation, shift * so.scale)
.attr('data-text', this.context.config?.data?.name || 'No Name')
.attr('data-text', 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)))