..
2017-02-02 22:19:53 -06:00
2017-02-02 22:19:53 -06: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 */);