I am developing a photo collage just like this one [1]: http://www.fotor.com/features/collage.html but i am making it using javascript and html the issue right now i am facing is that i want to resize the rectangle dynamically. Dynamically i mean if i resize any of the rectangle the others will get resize as well so can any one help or suggest me any solution ? or any lib of js ? or if anyone have done can share it ?
if (newSide != UNKNOWN) {
if (ndiv.resize(newSide, deltaX, deltaY)); { //
this.resizeNeighbours(newSide, ndiv, deltaX, deltaY);
calls.push({
d: ndiv,
n: newSide,
dx: deltaX,
dy: deltaY
});
}
} //end if new side unknown
} //end
for
for (i = 0; i < calls.length; i++) {
c = calls[i];
this.autoSizeDivs(c.n, c.d, c.dx, c.dy, dep + 1);
}
} catch (e) {
console.log(e);
}
return true;
}