RadialMenu
RadialMenu
Kind: global class
- RadialMenu
- new RadialMenu(items, [padding], [outerRadius], [innerRadius], [focusWidth], [backdropInnerRadius], [backdropOuterRadius], [backgroundColor], [classList])
- .selected :
List.<RadialMenuElement>
- .elements :
Array.<RadialMenuElement>
- .firstElementOffset :
number
- .padding :
number
- .outerRadius :
number
- .innerRadius :
number
- .backdropInnerRadius :
number
- .backdropOuterRadius :
number
- .focusOuterRadius :
number
- .focusInnerRadius :
number
- .width :
number
- .height :
number
- .init(items)
- .setElementSelection(el, flag)
- .selectByAngle(angle)
new RadialMenu(items, [padding], [outerRadius], [innerRadius], [focusWidth], [backdropInnerRadius], [backdropOuterRadius], [backgroundColor], [classList])
Param | Type | Default | Description |
---|---|---|---|
items | Array.<RadialMenuElementDefinition> | ||
[padding] | number | 0 | |
[outerRadius] | number | 150 | |
[innerRadius] | number | 50 | |
[focusWidth] | number | ||
[backdropInnerRadius] | number | ||
[backdropOuterRadius] | number | ||
[backgroundColor] | string | CSSColor string | |
[classList] | Array.<string> |
radialMenu.selected : List.<RadialMenuElement>
Kind: instance property of RadialMenu
radialMenu.elements : Array.<RadialMenuElement>
Kind: instance property of RadialMenu
radialMenu.firstElementOffset : number
Kind: instance property of RadialMenu
radialMenu.padding : number
Kind: instance property of RadialMenu
radialMenu.outerRadius : number
Kind: instance property of RadialMenu
radialMenu.innerRadius : number
Kind: instance property of RadialMenu
radialMenu.backdropInnerRadius : number
Kind: instance property of RadialMenu
radialMenu.backdropOuterRadius : number
Kind: instance property of RadialMenu
radialMenu.focusOuterRadius : number
Kind: instance property of RadialMenu
radialMenu.focusInnerRadius : number
Kind: instance property of RadialMenu
radialMenu.width : number
Kind: instance property of RadialMenu
radialMenu.height : number
Kind: instance property of RadialMenu
radialMenu.init(items)
Kind: instance method of RadialMenu
Param | Type |
---|---|
items | Array.<RadialMenuElementDefinition> |
radialMenu.setElementSelection(el, flag)
Kind: instance method of RadialMenu
Param | Type |
---|---|
el | RadialMenuElement |
flag | boolean |
radialMenu.selectByAngle(angle)
Kind: instance method of RadialMenu
Param | Type |
---|---|
angle | number |