| javascript Programming Glossary: maxxHow to determine size of Raphael object after scaling & rotating it? http://stackoverflow.com/questions/13046811/how-to-determine-size-of-raphael-object-after-scaling-rotating-it  getWidth var posX this.attr x 0 posY this.attr y 0 maxX posX this.attr width 0 maxY posY this.attr height 0 m this.matrix.. this.attr height 0 m this.matrix x  m.x posX posY  m.x maxX posY  m.x maxX maxY  m.x posX maxY  return Math.max.apply Math.. 0 m this.matrix x  m.x posX posY  m.x maxX posY  m.x maxX maxY  m.x posX maxY  return Math.max.apply Math x Math.min.apply.. 
 Kineticjs dragBoundFunc for a rect in a rect http://stackoverflow.com/questions/15854001/kineticjs-dragboundfunc-for-a-rect-in-a-rect  do var height orangeRect.getHeight var minX white.getX var maxX white.getX white.getWidth orangeRect.getWidth var minY white.getY.. function pos var X pos.x var Y pos.y if X minX X minX if X maxX X maxX if Y minY Y minY if Y maxY Y maxY return x X y Y  Here.. pos var X pos.x var Y pos.y if X minX X minX if X maxX X maxX if Y minY Y minY if Y maxY Y maxY return x X y Y  Here ™s code.. 
 Google Maps v3 - limit viewable area and zoom level http://stackoverflow.com/questions/3818016/google-maps-v3-limit-viewable-area-and-zoom-level  back within the bounds var c map.getCenter x c.lng y c.lat maxX strictBounds.getNorthEast .lng maxY strictBounds.getNorthEast.. minY strictBounds.getSouthWest .lat if x minX x minX if x maxX x maxX if y minY y minY if y maxY y maxY map.setCenter new google.maps.LatLng.. .lat if x minX x minX if x maxX x maxX if y minY y minY if y maxY y maxY map.setCenter new google.maps.LatLng.. 
 |