dmz
d3-multiaxis-zoom
npm i d3-multiaxis-zoom
dmz

d3-multiaxis-zoom

d3 plugin to zoom along multiple axes independently

by Matthew Conlen

1.0.4 (see all)License:MITTypeScript:Not Found
npm i d3-multiaxis-zoom
Readme

d3-multiaxis-zoom

d3 plugin to zoom along multiple axes independently

zooming example

zooming behaves normally until modifier keys are applied.

  • meta + zoom zooms only along the Y axis (⌘ on osx)
  • alt + zoom zooms only along the X axis

Usage

Script Tag:


<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="../path/to/d3-multiaxis-zoom.js"></script>
<script type="text/javascript">
    
    // Apply to plugin
    d3_multiaxis_zoom(d3);

    // now all d3.behavior.zoom instances will be modified with this plugin

</script>

Browserify:

var d3 = require('d3');
require('d3-multiaxis-zoom')(d3); // apply the plugin

License

MIT

Downloads/wk

13

GitHub Stars

15

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
1.0.4
latest
8yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate