function makeUndoData(options, targetObj) {
  const undoData = {
    object: targetObj,
    options: {},
  };

  forEachOwnProperties(options, (value, key) => {
    undoData.options[key] = targetObj[key];
  });

  return undoData;
}
Make undoData
@param {object} options - shape options
@param {Component} targetObj - shape component
@returns {object} - undo data