1
0
Fork 0

feat(core): Snapping of percentage options

This commit implements the snapping of percentage options as
outlined in this proposal:

https://github.com/freesewing/freesewing/discussions/1331

Please refer to the link above for all details
This commit is contained in:
joostdecock 2021-09-15 20:20:59 +02:00
parent 0da866d923
commit 025cf9b88e
7 changed files with 161 additions and 4 deletions

View file

@ -16,4 +16,11 @@ export default {
utils,
patterns: {},
plugins: {},
/**
* This pctBasedOn() method makes it easy to add the optional
* toAbs() and fromAbs() methods to percentage options config
*
* It was backported from the v3 roadmap into v2.
**/
pctBasedOn: utils.pctBasedOn,
}