Passed
Push — master ( d888e7...d5d975 )
by Rafael
01:12
created

control.js ➔ ???   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 32

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
nc 1
dl 0
loc 32
rs 8.8571
cc 1
nop 1
1
import { Direction } from '../direction';
2
3
export class BorderRadius extends Direction {
4
5
	constructor( options ) {
6
		super( options );
7
8
		this.controlOptions = {
9
			'control': {
10
				'title': 'Border Radius',
11
				'name': 'border-radius',
12
				'units': {
13
					'default': 'px',
14
					'enabled': [
15
						'px'
16
					]
17
				},
18
				'sliders': [
19
					{ name: 'top-left', label: 'Top Left', cssProperty: 'border-top-left-radius' },
20
					{ name: 'top-right', label: 'Top Right', cssProperty: 'border-top-right-radius' },
21
					{ name: 'bottom-right', label: 'Bottom Right', cssProperty: 'border-bottom-right-radius' },
22
					{ name: 'bottom-left', label: 'Bottom Left', cssProperty: 'border-bottom-left-radius' }
23
				]
24
			},
25
			'slider': {
26
				'px': {
27
					'min': 0,
28
					'max': 50
29
				},
30
				'em': {
31
					'min': .1,
32
					'max': 5
33
				}
34
			}
35
		};
36
	}
37
38
}
39
40
export { BorderRadius as default };
41