1
0
Fork 0

Add timestamp to title.

This commit is contained in:
Benjamin F 2022-08-03 11:30:45 -07:00
parent 3e7dddca82
commit 5d9dc1fb88
3 changed files with 10 additions and 2 deletions

View file

@ -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)))
},
},
}