| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | import { Direction } from '../direction'; |
||
| 4 | constructor( options ) { |
||
| 5 | super( options ); |
||
| 6 | |||
| 7 | this.controlOptions = { |
||
| 8 | control: { |
||
| 9 | title: 'Margin', |
||
| 10 | name: 'margin', |
||
| 11 | units: { |
||
| 12 | default: 'px', |
||
| 13 | enabled: [ 'px' ] |
||
| 14 | }, |
||
| 15 | sliders: [ |
||
| 16 | { name: 'top', label: 'Top', cssProperty: 'margin-top' }, |
||
| 17 | { name: 'right', label: 'Right', cssProperty: 'margin-right' }, |
||
| 18 | { name: 'bottom', label: 'Bottom', cssProperty: 'margin-bottom' }, |
||
| 19 | { name: 'left', label: 'Left', cssProperty: 'margin-left' } |
||
| 20 | ] |
||
| 21 | }, |
||
| 22 | slider: { |
||
| 23 | px: { |
||
| 24 | min: -100, |
||
| 25 | max: 100 |
||
| 26 | }, |
||
| 27 | '%': { |
||
| 28 | min: -100, |
||
| 29 | max: 100 |
||
| 30 | } |
||
| 31 | } |
||
| 32 | }; |
||
| 33 | } |
||
| 34 | } |
||
| 37 |