react-rnd
react-rnd copied to clipboard
How to get current position and size?
Is there a API can get the rnd's current size and position. I just find originalPosition, resizingPosition, getDraggablePosition, but I want the position offset relative to parent component when resizing or drag end.
let el = (this.rnd.getParent() as HTMLElement).parentElement;
let p = this.rnd.getDraggablePosition();
let size = this.rnd.resizable.size;