mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Make View#projectToView(point) and View#viewToProject(point) show up in the docs.
This commit is contained in:
parent
ba98c91509
commit
8c32dda435
1 changed files with 8 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue