From 7c62042be68c22aad5b6de7f759caaac2d2f3612 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sat, 15 Apr 2023 10:13:40 +0200 Subject: [PATCH] fix(plugin-annotations): Be consistent with prop names --- plugins/plugin-annotations/src/bannerbox.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/plugin-annotations/src/bannerbox.mjs b/plugins/plugin-annotations/src/bannerbox.mjs index b1c530586c9..6b068847cef 100644 --- a/plugins/plugin-annotations/src/bannerbox.mjs +++ b/plugins/plugin-annotations/src/bannerbox.mjs @@ -5,9 +5,10 @@ export const bannerboxMacros = { so = { topLeft: new Point(0, 0), bottomRight: new Point(100, 100), - title: 'No title for this bannerbox', + text: '', margin: 15, - className: 'text-xs fill-note', + textClassName: 'text-xs fill-note', + boxClassName: 'stroke-xs stroke-note lashed', dy: 4, spaces: 12, repeat: 10, @@ -23,11 +24,12 @@ export const bannerboxMacros = { .line(new Point(so.topLeft.x, so.bottomRight.y).shift(225, offset)) .line(so.topLeft.shift(135, offset)) .close() + .addClass(so.boxClassName) macro('banner', { path: paths[id], - text: so.title, - className: 'text-xs fill-note', + text: so.text, + className: so.textClassName, repeat: 99, dy: 4, })