2019-08-03 15:03:33 +02:00
|
|
|
import { version, name } from '../package.json'
|
2018-12-09 14:55:37 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: name,
|
|
|
|
version: version,
|
|
|
|
hooks: {
|
2021-01-31 09:22:15 +01:00
|
|
|
preRender: function (svg, attributes) {
|
2019-08-03 15:03:33 +02:00
|
|
|
if (svg.attributes.get('freesewing:plugin-svgattr') === false) {
|
|
|
|
for (let key of Object.keys(attributes)) svg.attributes.add(key, attributes[key])
|
|
|
|
svg.attributes.add('freesewing:plugin-svgattr', version)
|
2018-12-09 14:55:37 +01:00
|
|
|
}
|
2021-04-24 10:16:31 +02:00
|
|
|
},
|
|
|
|
},
|
2019-08-03 15:03:33 +02:00
|
|
|
}
|