lightmill-app

2.0.1 • Public • Published

LightMill App

LightMill App provides basic standard views common in many user experiments:

  • wait(node): Shows a waiting wheel.
  • blockInit(node, blockInfo): Shows a block initialization view, stating if it is a practice block or a measured block, and displaying potential block factor values.
  • end(node)
  • crash(node, message, error, run): Shows an error view.

Each views can be rendered directly by calling the corresponding function.

Additionally, the main export is also a constructor that can be extended to create an application that implements all the above handlers. Provided that the subclass implements the runTrial handler, it can be directly used with lightmill-runner.

Package Sidebar

Install

npm i lightmill-app

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

25 kB

Total Files

6

Last publish

Collaborators

  • quentinroy