function makeUndoData(type, prevfilterOption, options) {
  const undoData = {};

  if (type === 'mask') {
    undoData.object = options.mask;
  }

  undoData.options = prevfilterOption;

  return undoData;
}
Make undoData
@param {string} type - Filter type
@param {Object} prevfilterOption - prev Filter options
@param {Object} options - Filter options
@returns {object} - undo data