mithril-scenario-timeline

A scenario timeline component for the Mithril framework.

Usage no npm install needed!

<script type="module">
  import mithrilScenarioTimeline from 'https://cdn.skypack.dev/mithril-scenario-timeline';
</script>

README

mithril-scenario-timeline

A scenario timeline component for the Mithril framework as being used in the DRIVER+ scenario editor. Also see the live example.

screenshot

Release info

v0.2.x

  • Breaking change: you need to import the css e.g. import 'mithril-scenario-timeline/dist/mithril-scenario-timeline.css';
  • Updated to latest dependencies
  • Using microbundle instead of rollup so there are multiple outputs available

v0.1.x

  • Using it in scenario editor
  • Updated timeline bounds when time exceeds beyond the current time
  • Timeline width can be set (using the width property), or it is fixed by the initial container width
  • Timeline can start at a time not equal to the scenario start time, i.e. timelineStart, so you can use a rounded start time
  • Improved scaling for long running scenarios

v0.0.x

  • Initial version
  • FIX: onClick did not return the most recent item
  • Returns an error (and stops rendering) when a circular dependency is encountered. TODO: Need to analyse the error and return a more meaningful result.