Example #1
0
 getTileRect: function(col, row) {
     return _rect.set(
         this.colToX(col),
         this.rowToY(row),
         TILE_SIZE,
         TILE_SIZE
     );
 },
Example #2
0
 this.listenTo(thermometerView, 'drag-end', function() {
     rect.set(
         thermometerView.displayObject.x, 
         thermometerView.displayObject.y - thermometerView.displayObject.height,
         thermometerView.displayObject.width, 
         thermometerView.displayObject.height
     );
     if (thermometerClips.overlaps(rect)) {
         this.thermometerLayer.removeChild(thermometerView.displayObject);
         var point = thermometerClips.addThermometerNear(thermometerView, thermometerView.displayObject.position);
         thermometerView.setCenterPosition(point.x, point.y);
     }
 });