diff --git a/grid-n-view.js b/grid-n-view.js index 050ff20..2b3b9f0 100644 --- a/grid-n-view.js +++ b/grid-n-view.js @@ -175,6 +175,7 @@ function(evt, id){ // - scroll into view the dragged element // - bound it by screen // XXX need to check if element already set as movable... +// XXX does it make sence to abstract out the bounds checking code??? // XXX docs... HTMLElement.prototype.moveable = function(options={}){ @@ -353,36 +354,6 @@ function(options={}){ document.addEventListener('mouseup', handleMoveEnd) } -// cmpRects(, ) -// -> 'contained' -// -> 'contains' -// -> 'intersect' -// -> 'appart' -// XXX should these pe separate checks -- speed??? -var cmpRects = function(rect, container){ - // XXX -} -var Containment = function(elem, parent){ - return Object.assign( - this instanceof Containment ? - obj - : { __proto__: Containment.prototype }, - { - elem, - parent, - }) } -Containment.prototype = { - // update rectangle data... - update: function(){ - // XXX - return self }, - check: function(){ - // XXX - }, -} - - - //---------------------------------------------------------------------