chore: Fixed plugin tests
This commit is contained in:
parent
aef907bea5
commit
8a5141584c
14 changed files with 122 additions and 114 deletions
|
@ -100,10 +100,15 @@ export const plugin = {
|
|||
if (mins < 10) mins = `0${mins}`
|
||||
this.points[`_${prefix}_exportDate`] = so.at
|
||||
.shift(-90 - so.rotation, shift * so.scale)
|
||||
.attr('data-text', now.toLocaleDateString(
|
||||
this.context.settings.locale || 'en',
|
||||
{ weekday: 'long', year: 'numeric', month: 'short', day: 'numeric'}
|
||||
))
|
||||
.attr(
|
||||
'data-text',
|
||||
now.toLocaleDateString(this.context.settings.locale || 'en', {
|
||||
weekday: 'long',
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric',
|
||||
})
|
||||
)
|
||||
.attr('data-text', `@ ${hours}:${mins}`)
|
||||
.attr('data-text-class', 'text-sm')
|
||||
.attr('data-text-transform', transform(so.at.shift(-90 - so.rotation, shift * so.scale)))
|
||||
|
@ -114,4 +119,3 @@ export const plugin = {
|
|||
// More specifically named exports
|
||||
export const titlePlugin = plugin
|
||||
export const pluginTitle = plugin
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue