1
0
Fork 0

fix(plugin-annotations): Be consistent with prop names

This commit is contained in:
joostdecock 2023-04-15 10:13:40 +02:00
parent 8b2a49ce67
commit 7c62042be6

View file

@ -5,9 +5,10 @@ export const bannerboxMacros = {
so = { so = {
topLeft: new Point(0, 0), topLeft: new Point(0, 0),
bottomRight: new Point(100, 100), bottomRight: new Point(100, 100),
title: 'No title for this bannerbox', text: '',
margin: 15, margin: 15,
className: 'text-xs fill-note', textClassName: 'text-xs fill-note',
boxClassName: 'stroke-xs stroke-note lashed',
dy: 4, dy: 4,
spaces: 12, spaces: 12,
repeat: 10, repeat: 10,
@ -23,11 +24,12 @@ export const bannerboxMacros = {
.line(new Point(so.topLeft.x, so.bottomRight.y).shift(225, offset)) .line(new Point(so.topLeft.x, so.bottomRight.y).shift(225, offset))
.line(so.topLeft.shift(135, offset)) .line(so.topLeft.shift(135, offset))
.close() .close()
.addClass(so.boxClassName)
macro('banner', { macro('banner', {
path: paths[id], path: paths[id],
text: so.title, text: so.text,
className: 'text-xs fill-note', className: so.textClassName,
repeat: 99, repeat: 99,
dy: 4, dy: 4,
}) })