UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

7 lines (6 loc) 267 B
module.exports = (source, target, ev) => { // ev.delta is a Transform on the viewport. // Transforms are locationless. An origin point gives it a location. // Think that the transform will be applied at a point. target.transformBy(ev.delta, ev.deltaOrigin) }