import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
import { roundToNearest } from '../media-single';
export var getRelativeGuideSnaps = function getRelativeGuideSnaps(relativeGuides, aspectRatio) {
  var snapsWidthFromMatchingHeight = Object.keys(relativeGuides.height || {}).map(function (heightKey) {
    var height = Number.parseInt(heightKey);
    return roundToNearest(height * aspectRatio);
  });
  var snapsWidthFromMatchingWidth = Object.keys(relativeGuides.width || {}).map(function (widthKey) {
    return Number.parseInt(widthKey);
  });
  return [].concat(_toConsumableArray(snapsWidthFromMatchingWidth), _toConsumableArray(snapsWidthFromMatchingHeight));
};