Add typescript declarations for y limit formatters
Update documentation and version number
Clean up pixel ratio scaling code