@eriese recommendations
This commit is contained in:
parent
9536476512
commit
8887a97dd2
13 changed files with 65 additions and 120 deletions
|
@ -1,4 +1,5 @@
|
|||
const defs = [
|
||||
// Export defs
|
||||
export const buttonsDefs = [
|
||||
{
|
||||
name: 'button',
|
||||
def: `
|
||||
|
@ -84,14 +85,3 @@ const defs = [
|
|||
</g>`,
|
||||
},
|
||||
]
|
||||
|
||||
// Export hooks
|
||||
export const buttonsHooks = {
|
||||
preRender: [
|
||||
function (svg) {
|
||||
for (const def of defs) {
|
||||
svg.defs.setIfUnset(def.name, def.def)
|
||||
}
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue