File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1849,7 +1849,8 @@ Bounded = function(I) {
18491849 I || ( I = { } ) ;
18501850 return {
18511851 /***
1852- The bind method adds a function as an event listener.
1852+ The bounds method returns infomation about the location
1853+ of the object and its dimensions with optional offsets
18531854
18541855 @name bounds
18551856 @methodOf Bounded#
@@ -1865,6 +1866,13 @@ Bounded = function(I) {
18651866 height : I . height
18661867 } ;
18671868 } ,
1869+ /***
1870+ The centeredBounds method returns infomation about the center
1871+ of the object along with the midpoint of the width and height
1872+
1873+ @name centeredBounds
1874+ @methodOf Bounded#
1875+ */
18681876 centeredBounds : function ( ) {
18691877 return {
18701878 x : I . x + I . width / 2 ,
@@ -1873,6 +1881,13 @@ Bounded = function(I) {
18731881 yw : I . height / 2
18741882 } ;
18751883 } ,
1884+ /***
1885+ The center method returns the {@link Point} that is
1886+ the center of the object
1887+
1888+ @name center
1889+ @methodOf Bounded#
1890+ */
18761891 center : function ( ) {
18771892 return Point ( I . x + I . width / 2 , I . y + I . height / 2 ) ;
18781893 }
You can’t perform that action at this time.
0 commit comments