1
0
Fork 0

[plugins] fix: Provide name in export. Fixes #280

This commit is contained in:
joostdecock 2025-04-24 08:47:55 +02:00
parent f9d68bd2e1
commit 5d71d6f87a
17 changed files with 34 additions and 17 deletions

View file

@ -1,7 +1,8 @@
import about from '../about.json' with { type: 'json' }
export const plugin = {
...about,
name: about.id,
version: about.version,
hooks: {
preRender: function (svg, attributes = {}) {
for (const key of Object.keys(attributes)) svg.attributes.set(key, attributes[key])