chore(plugin-measurements): Ported to v3
This commit is contained in:
parent
717a2732d6
commit
bd156862d4
5 changed files with 39 additions and 27 deletions
|
@ -1,10 +1,9 @@
|
|||
import pkg from '../package.json'
|
||||
import { name, version } from '../package.json'
|
||||
|
||||
export default {
|
||||
name: pkg.name,
|
||||
version: pkg.version,
|
||||
export const plugin = {
|
||||
name,
|
||||
version,
|
||||
hooks: {
|
||||
preRender: (svg) => svg.attributes.setIfUnset('freesewing:plugin-measurements', pkg.version),
|
||||
preDraft: function ({ settings }) {
|
||||
if (settings.measurements) {
|
||||
if (
|
||||
|
@ -36,3 +35,8 @@ export default {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
// More specifically named exports
|
||||
export const measurementsPlugin = plugin
|
||||
export const pluginMeasurements = plugin
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue