This commit marks applying prettier to the whole of git history up to this point and prettier is used to enforce format via pre-commit hook. The command used was: `git filter-branch -f --tree-filter 'prettier --no-config --single-quote --tab-width=1 --print-width=100 --use-tabs --trailing-comma=none --prose-wrap=always --write "{.,{packages,bin}/**}/*.{js,json,md}" || echo "Error formatting, possibly invalid JS"' -- --all`
Projector
A DOM-abstraction communicator. Projector consumes patches to update the DOM in frames and provides sanitized event objects to subscribers. This doesn't work yet. Please go look at the gallery. 😀
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 */);