Commit af71069
authored
Split constraints into smaller functions (#367)
* Start splitting up large functions
* Abstract out flip x and flp y together
* Update constraint.js
* Fix setting left/top
* Add some docs, start some tests
* Add tests for _calculateOOBAndPinnedTop
* Start _flipYTogether tests
* Update constraint.spec.js
* Add flip X tests1 parent ae11129 commit af71069
5 files changed
Lines changed: 553 additions & 150 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments