OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-06 5e58c2c56becf049634b5d1a7621a4063c486c3e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * Given element offsets, generate an output similar to getBoundingClientRect
 * @method
 * @memberof Popper.Utils
 * @argument {Object} offsets
 * @returns {Object} ClientRect like output
 */
export default function getClientRect(offsets) {
  return {
    ...offsets,
    right: offsets.left + offsets.width,
    bottom: offsets.top + offsets.height,
  };
}