gwtd3 / gwt-d3

A GWT wrapper library around the d3.js library
Other
131 stars 53 forks source link

Added Accessor Functions to Zoom #64

Closed augbog closed 11 years ago

augbog commented 11 years ago

In the current d3js, methods of Zoom allow you not specify a parameter and it would return as specified. An example is scaleExtent where you can specify a range but if you do not specify anything, it would return the current scale. I have added these functions. I also made changes to some of the parameters that I felt would be more ideal.

If someone could review my code, that would be most appreciated.

anthonime commented 11 years ago

thank you for your work !

anthonime commented 11 years ago

there were an error on the scale() function parameter: it was a LinearScale ; I replaced by a double. I also replace mention of LinearScale by QuantitativeScale which is more generic and allow other kind of scales to be used