function getFillTypeFromObject(shapeObj) {
  const { fill = {} } = shapeObj;
  if (fill.source) {
    return SHAPE_FILL_TYPE.FILTER;
  }

  return SHAPE_FILL_TYPE.COLOR;
}
Get fill type of shape type object
@param {fabric.Object} shapeObj - fabric object
@returns {string} 'transparent' or 'color' or 'filter'