function getCustomAttributesSize(customAttributes) {
  return Object.keys(customAttributes).reduce(
    (prev, curr) => prev + (customAttributes[curr].size || 1),
    0,
  );
}
@param {import('./VectorStyleRenderer.js').AttributeDefinitions} customAttributes Custom attributes
@return {number} Cumulated size of all attributes