Add timestamp to title.
This commit is contained in:
parent
3e7dddca82
commit
5d9dc1fb88
3 changed files with 10 additions and 2 deletions
|
@ -92,6 +92,14 @@ export default {
|
|||
.attr('data-text-class', 'fill-current font-bold')
|
||||
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
|
||||
}
|
||||
shift += 8
|
||||
const dateformat = require('dateformat')
|
||||
const now = new Date()
|
||||
this.points[`_${prefix}_exportDate`] = so.at
|
||||
.shift(-90 - so.rotation, shift * so.scale)
|
||||
.attr('data-text', dateformat(now, 'yyyymmdd"T"HHMMo'))
|
||||
.attr('data-text-class', 'fill-note')
|
||||
.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