better fader & meter design
This commit is contained in:
parent
372c0dffca
commit
7687a2db23
8 changed files with 2322 additions and 2231 deletions
|
|
@ -16,7 +16,7 @@ module.exports.options = {
|
|||
top:'auto',
|
||||
width:'auto',
|
||||
height:'auto',
|
||||
align:'center',
|
||||
alignRight:false,
|
||||
horizontal:false,
|
||||
noPip:false,
|
||||
compact:false,
|
||||
|
|
@ -65,9 +65,8 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
if (widgetData.horizontal) {
|
||||
container.addClass('horizontal')
|
||||
delete widgetData.align
|
||||
} else {
|
||||
container.addClass('align-'+widgetData.align)
|
||||
if (widgetData.alignRight) container.addClass('align-right')
|
||||
}
|
||||
|
||||
if (widgetData.compact) container.addClass('compact')
|
||||
|
|
@ -128,8 +127,6 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
var piptext = `<span>${Math.abs(pipTexts[i])>=1000?pipTexts[i]/1000+'k':pipTexts[i]}</span>`
|
||||
|
||||
if (dimension=='height') piptext = piptext+ piptext
|
||||
|
||||
var add = `
|
||||
<div class="pip val" style="${pos}:${i}%">${piptext}</div>
|
||||
`
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ module.exports.create = function(widgetData,container) {
|
|||
axe = dimension=='height'?'X':'Y'
|
||||
|
||||
|
||||
if (widgetData.horizontal) level.addClass('horizontal')
|
||||
if (widgetData.horizontal) widget.addClass('horizontal')
|
||||
|
||||
|
||||
var rangeKeys = [],
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue