mithril-scenario-timeline
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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.

Package Sidebar

Install

npm i mithril-scenario-timeline

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

216 kB

Total Files

27

Last publish

Collaborators

  • erikvullings