fix(bannerbox): Removed hardcoded values in call to banner
This commit is contained in:
parent
b77490204d
commit
0c55a868eb
2 changed files with 21 additions and 7 deletions
|
@ -11,11 +11,10 @@ export const bannerboxMacros = {
|
|||
boxClassName: 'stroke-xs stroke-note lashed',
|
||||
dy: 4,
|
||||
spaces: 12,
|
||||
repeat: 10,
|
||||
repeat: 99,
|
||||
...so,
|
||||
}
|
||||
const offset = Math.sqrt(2 * Math.pow(so.margin, 2))
|
||||
|
||||
const id = getId()
|
||||
paths[id] = new Path()
|
||||
.move(so.topLeft.shift(135, offset))
|
||||
|
@ -30,8 +29,9 @@ export const bannerboxMacros = {
|
|||
path: paths[id],
|
||||
text: so.text,
|
||||
className: so.textClassName,
|
||||
repeat: 99,
|
||||
dy: 4,
|
||||
repeat: so.repeat,
|
||||
spaces: so.spaces,
|
||||
dy: so.dy,
|
||||
})
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue