export function computedZIndex(rects) {
  let areas = rects.map(v => {
    let width = v.rect[2];
    let height = v.rect[3];
    v.area = width * height;
    return v;
  });
  return areas.sort((a, b) => b.area - a.area);
}
