2023-04-20 19:14:10 +00:00
|
|
|
const defs = [
|
|
|
|
{
|
|
|
|
name: 'notch',
|
|
|
|
def: `
|
2023-02-20 22:58:05 +00:00
|
|
|
<g id="notch">
|
|
|
|
<circle cy="0" cx="0" r="1.4" class="fill-note" />
|
|
|
|
<circle cy="0" cx="0" r="2.8" class="note" />
|
2023-04-20 19:14:10 +00:00
|
|
|
</g>`,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'bnotch',
|
|
|
|
def: `
|
2023-02-20 22:58:05 +00:00
|
|
|
<g id="bnotch">
|
|
|
|
<path d="M -1.1 -1.1 L 1.1 1.1 M 1.1 -1.1 L -1.1 1.1" class="note" />
|
|
|
|
<circle cy="0" cx="0" r="2.8" class="note" />
|
2023-04-20 19:14:10 +00:00
|
|
|
</g>`,
|
|
|
|
},
|
|
|
|
]
|
2023-02-20 22:58:05 +00:00
|
|
|
|
2023-03-11 19:01:40 +01:00
|
|
|
// Export hooks
|
|
|
|
export const notchesHooks = {
|
|
|
|
preRender: [
|
|
|
|
function (svg) {
|
2023-04-20 19:14:10 +00:00
|
|
|
for (const def of defs) {
|
|
|
|
svg.defs.setIfUnset(def.name, def.def)
|
|
|
|
}
|
2023-02-20 22:58:05 +00:00
|
|
|
},
|
2023-03-11 19:01:40 +01:00
|
|
|
],
|
2023-02-20 22:58:05 +00:00
|
|
|
}
|