'use strict';

var index = require('../color/index.js');
var filter = require('../complex/filter.js');
var mask = require('../complex/mask.js');
var number = require('./number.js');

/**
 * A map of default value types for common values
 */
const defaultValueTypes = {
    ...number.numberValueTypes,
    // Color props
    color: index.color,
    backgroundColor: index.color,
    outlineColor: index.color,
    fill: index.color,
    stroke: index.color,
    // Border props
    borderColor: index.color,
    borderTopColor: index.color,
    borderRightColor: index.color,
    borderBottomColor: index.color,
    borderLeftColor: index.color,
    filter: filter.filter,
    WebkitFilter: filter.filter,
    mask: mask.mask,
    WebkitMask: mask.mask,
};
/**
 * Gets the default ValueType for the provided value key
 */
const getDefaultValueType = (key) => defaultValueTypes[key];

exports.defaultValueTypes = defaultValueTypes;
exports.getDefaultValueType = getDefaultValueType;
