2022-09-09 12:13:52 -05:00
|
|
|
import { name, version } from '../data.mjs'
|
2021-10-17 09:13:41 +02:00
|
|
|
|
2022-08-28 14:07:58 +02:00
|
|
|
export const plugin = {
|
|
|
|
name,
|
|
|
|
version,
|
2021-10-17 09:13:41 +02:00
|
|
|
hooks: {
|
|
|
|
preRender: function (svg) {
|
2022-09-15 07:53:35 +02:00
|
|
|
for (const key in svg.attributes.list) {
|
2022-01-19 16:23:40 +01:00
|
|
|
if (key.toLowerCase().slice(0, 10) === 'freesewing') delete svg.attributes.list[key]
|
2021-10-17 09:13:41 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2022-08-28 14:07:58 +02:00
|
|
|
|
|
|
|
// More specifically named exports
|
|
|
|
export const versionfreeSvgPlugin = plugin
|
|
|
|
export const pluginVersionfreeSvg = plugin
|