function getPropertyType(el, property) {
  var component;
  var componentName;
  var split;
  var propertyName;
  split = property.split('.');
  // Object3D.
  if (split[0] === 'object3D' && !split[2]) {
    if (split[1] === 'position' || split[1] === 'rotation' || split[1] === 'scale') {
      return 'vec3';
    }
  }
  componentName = split[0];
  propertyName = split[1];
  component = el.components[componentName] || _core_component_js__WEBPACK_IMPORTED_MODULE_1__.components[componentName];

  // Primitives.
  if (!component) {
    return null;
  }

  // Dynamic schema. We only care about vectors anyways.
  if (propertyName && !component.schema[propertyName]) {
    return null;
  }

  // Multi-prop.
  if (propertyName) {
    return component.schema[propertyName].type;
  }

  // Single-prop.
  return component.schema.type;
}
Given property name, check schema to see what type we are animating.
We just care whether the property is a vector.