if (typeof props.ratio === 'function') {
                return props.ratio(key, size, varSet);
            } else if (typeof props.ratio === 'object') {
                return props.ratio[key];
            } else {