Пример #1
0
		.on('start', (d) => {

			// if we don't have a gameDateTime (which means this is called at the
			// beginning), then we should, at the start of every transition,
			// set the slider to this datum's time
			if (!gameDateTime) {

				const time = d.gameDateTime.getTime()
				const index = uniqueDates.indexOf(time)
				const text = dateline(d.gameDateTime).getAPDate()

				setSlider({ container: sliderContainer, value: index + 1 })
				setSliderTooltip({ container: sliderContainer, text, index })

			}

		})
Пример #2
0
			.map(d => dateline(d).getAPDate())
Пример #3
0
 arrivalString() {
   return Dateline(this.arrivalTime()).getAPTime();
 }