Timothy Farrell e2de2282c3 Pass the code through prettier.
I don't love every part of it, but it's good enough for now.
2017-04-13 16:55:07 -05:00
..
2017-04-13 16:55:07 -05:00
2017-01-27 22:41:05 -06:00
2017-01-27 22:41:05 -06:00
2017-01-27 22:41:05 -06:00

Projector

A DOM-abstraction communicator. Projector consumes patches to update the DOM in frames and provides sanitized event objects to subscribers.

Usage

Instantiation

const projector = Projector(rootElement):

projector.subscribe(evt => {
    console.log(`Received ${evt.type} event from:`, projector.getElement(evt.target));
);

projector.queuePatch(/* array of patches */);