1.0.0 • Published 6 years ago

d3-map-rotate v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

this is a npm module for rotate a d3 map when you drag your map, the map will rotate to use the module, you shoul do 1. npm install d3-map-rotate 2. in your js file write "var rotate = require("d3-map-rotate")" 3. var obj = { mymap: "a d3 object of your map", projection: "the projection function you use in your map", path4render: "the render function you use to render the map", deg: 0,0 } 4. rotate(obj)