visualizer curve proprerty renamed to widgetId, explicit ftw
This commit is contained in:
parent
05759245fc
commit
28e6f177a2
2 changed files with 6 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ module.exports.options = {
|
|||
|
||||
separator2:'plot',
|
||||
|
||||
curve:'',
|
||||
widgetId:'',
|
||||
duration:1,
|
||||
range: {min:0,max:1},
|
||||
logScale: false,
|
||||
|
|
@ -70,7 +70,7 @@ module.exports.create = function(widgetData,container) {
|
|||
})
|
||||
|
||||
$('body').on('sync',function(e,id,w){
|
||||
if (widgetData.curve!=id || !document.contains(widget[0])) return
|
||||
if (widgetData.widgetId!=id || !document.contains(widget[0])) return
|
||||
widget.startLoop()
|
||||
})
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
|
||||
widget.fetchValue = function(){
|
||||
var id = widgetData.curve
|
||||
var id = widgetData.widgetId
|
||||
|
||||
if (typeof id == 'string' && WIDGETS[id]) {
|
||||
widget.data.push(WIDGETS[id][WIDGETS[id].length-1].getValue())
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
"height": 122,
|
||||
"css": "",
|
||||
"id": "visualizer_(fader_1)",
|
||||
"curve": "fader_1",
|
||||
"widgetId": "fader_1",
|
||||
"duration": 1,
|
||||
"range": {
|
||||
"min": 0,
|
||||
|
|
@ -309,7 +309,7 @@
|
|||
"width": "auto",
|
||||
"height": "auto",
|
||||
"css": "",
|
||||
"curve": "",
|
||||
"widgetId": "",
|
||||
"duration": 1,
|
||||
"range": {
|
||||
"min": 0,
|
||||
|
|
@ -367,4 +367,4 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue