Make View#projectToView(point) and View#viewToProject(point) show up in the docs.

This commit is contained in:
Jonathan Puckey 2014-04-28 18:29:16 +02:00
parent ba98c91509
commit 8c32dda435

View file

@ -488,10 +488,18 @@ var View = Base.extend(Callback, /** @lends View# */{
// TODO: projectToView(rect)
// DOCS: projectToView(point), viewToProject(point)
/**
* @param {Point}
* @return {Point}
*/
projectToView: function(/* point */) {
return this._matrix._transformPoint(Point.read(arguments));
},
/**
* @param {Point}
* @return {Point}
*/
viewToProject: function(/* point */) {
return this._matrix._inverseTransform(Point.read(arguments));
}