use event handler to trig plot drawing (avoid heavy garbage calls after plot is removed from session)
This commit is contained in:
parent
8c09e690f5
commit
10eed99257
1 changed files with 4 additions and 1 deletions
|
|
@ -83,8 +83,11 @@ module.exports.create = function(widgetData,container) {
|
|||
})
|
||||
|
||||
$('body').on('sync',function(e,id,w){
|
||||
if (widget.linkedWidgets.indexOf(id)==-1) return
|
||||
widget.trigger('draw',[id,w])
|
||||
|
||||
})
|
||||
widget.on('draw',function(e,id,w){
|
||||
if (widget.linkedWidgets.indexOf(id)==-1) return
|
||||
widget.fetchValues()
|
||||
requestAnimationFrame(widget.draw)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue