1
0
Fork 0

chore: Linter

This commit is contained in:
Joost De Cock 2021-01-31 09:22:15 +01:00
parent adb9e93024
commit 1a46c8e724
227 changed files with 660 additions and 936 deletions

View file

@ -6,7 +6,7 @@ export default {
name: name,
version: version,
hooks: {
preRender: function(svg) {
preRender: function (svg) {
svg.attributes.set('freesewing:plugin-scalebox', version)
}
},

View file

@ -1,4 +1,4 @@
export default function(so) {
export default function (so) {
// Passing `false` will remove the miniscale
if (so === false) {
for (let id of [

View file

@ -1,4 +1,4 @@
export default function(so) {
export default function (so) {
// Passing `false` will remove the scalebox
if (so === false) {
for (let id of [
@ -94,8 +94,7 @@ export default function(so) {
if (typeof so.text === 'string') {
this.points.__scaleboxText.attr('data-text', so.text)
} else {
this.points.__scaleboxText
.attr('data-text', 'supportFreesewingBecomeAPatron')
this.points.__scaleboxText.attr('data-text', 'supportFreesewingBecomeAPatron')
this.points.__scaleboxLink = this.points.__scaleboxLink
.attr('data-text', 'freesewing.org/patrons/join')
.attr('data-text-class', 'text-xs fill-note')