我使用transition.transition()模式(https://github.com/mbostock/d3/wiki/Transitions#transition)实现了一个链式转换。
安排第一次转换后的__transition__属性:
{"4":{"tween":{},"time":1410878734661,"delay":0,"duration":1500},"active":0,"count":1}
安排第二次转换后的__transition__属性:
{"4":{"tween":{},"time":1410878734661,"delay":0,"duration":1500},"5":{"tween":{},"time":1410878734661,"delay":1500,"duration":500},"active":0,"count":2}
“4”是否与此链接转换的两个部分相关联?是否为活动:0表示没有正在运行的转换? count属性是否表示计划的转换次数?
提前致谢!
var t0 = text.transition().delay(0).duration(1500) //first transition
var t1 = t0.transition().ease("bounce").duration(500) //second transition