Change view.rotate params: rotation delta and optional anchor.

Same as view.zoom, the anchor is not supported yet.
Compute resolution ratio, update jsdoc.