jbilcke-hf/clapper

Refactoring: expose the content of the ClapMeta directly into useTimeline

jbilcke-hf opened this issue · 1 comments

Context

Currently a clap file is super simple to understand: all the meta information is in the ClapMeta object

But within Clapper itself, this information is difficult to graph and access:

  • some of the information is split in different location
  • we can't subscribe to changes inside the meta file

This make features such as react width, height, orientation, BPM, FPS etc.. difficult to work with

Solution

  • stop using the ClapMeta inside Clapper.
  • instead, we should store the content of the ClapMeta directly at the root of useTimeline

done