Lines Matching full:coordinates
425 // Returns true if |coordinates| point to a valid drop location. The
426 // coordinates are relative to the drag container and the object should
428 canDropOn: function(coordinates) {
435 if (coordinates.x >= right || coordinates.x < 0 ||
436 coordinates.y >= bottom || coordinates.y < 0)
439 var position = this.getIndexAt_(coordinates);
448 setDragPlaceholder: function(coordinates) {
449 var position = this.getIndexAt_(coordinates);
461 getIndexAt_: function(coordinates) {
467 var row = Math.floor(coordinates.y / h);
468 var col = Math.floor(coordinates.x / w);