scheme.forEach(function(a) {
		var idx = indexOf(data, a.name)
		if (idx === -1) {
			var t = createTimeline(a.timeline)
			data.push({ name: a.name, timeline: t })
		}
	})
	data.forEach(function(a) {
		var timeline = createTimeline(a.timeline)
		a.timeline = timeline

		var idx = indexOf(scheme, a.name)
		if (idx !== -1) {
			fit(a.timeline, scheme[idx].timeline)
		}
	})
Example #3
0
let createKeytime = def => Object.assign({ }, def, { data: keytime(def.data) })