philogb / jit

The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web
http://thejit.org
Other
1.51k stars 297 forks source link

spacetree removeSubtree animate fails with Native labels #134

Closed jquense closed 6 years ago

jquense commented 12 years ago

in the removeNode() method the 'fade:seq' animation will fail on Native labels while trying to call the clearLabels() method that doesn't exist.

very frustrating....

viz.fx.animate($.merge(options, { modes: ['node-property:alpha'], onComplete: function() { that.removeNode(n, { type: 'nothing' }); viz.labels.clearLabels(); viz.reposition(); viz.fx.animate($.merge(options, { modes: ['linear'] })); } }));