Is it worth considering exposing the "state" of a projector?
I can see a use case where being able to externally detect the status of a projector might be able better schedule (or abandon) some activities in larger frameworks.
Currently, internally within the projector, there are the scheduled
and renderCompleted
items. I could see something simple like isBusy(): boolean
as a way to externally signalling that the projector is in the process of doing a render. That way, in any macro framework, transitory state changes, which won't ever be represented in the DOM, could be abandoned.
Of course that invariably leads to the desire to have some sort of notification when the projector becomes "unbusy". Of course, just scheduling the next animation frame for any "onunbusy" work should work without putting any burden on Maquette.