cleanup and notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-20 23:25:15 +03:00
parent 751df786e5
commit e1881b85c6

View File

@ -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(<rect>, <rect>)
// -> '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
},
}
//---------------------------------------------------------------------