d3 / d3-zoom

Pan and zoom SVG, HTML or Canvas using mouse or touch input.
https://d3js.org/d3-zoom
ISC License
507 stars 143 forks source link

Using as standalone #139

Closed dzza closed 5 years ago

dzza commented 6 years ago

Most operations seem to be done on selections. Currently attempting to integrate this into non-d3 codebase.

Any chance something like this is feasible or in the pipeline:

d3.zoom("#myElement").on("zoom", zoomed)

Thanks in advance and for the awesome library btw!

mbostock commented 5 years ago

I’ve no plans to implement a version of this library without a dependency on d3-selection, sorry.