all files / util/ copyPoints.js

100% Statements 5/5
100% Branches 0/0
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14                 
export default function (points) {
  const page = cornerstoneMath.point.copy(points.page);
  const image = cornerstoneMath.point.copy(points.image);
  const client = cornerstoneMath.point.copy(points.client);
  const canvas = cornerstoneMath.point.copy(points.canvas);
 
  return {
    page,
    image,
    client,
    canvas
  };
}