function graphic_applyTransform(target, transform, invert) {
  if (transform && !isArrayLike(transform)) {
    transform = core_Transformable.getLocalTransform(transform);
  }

  if (invert) {
    transform = matrix_invert([], transform);
  }

  return applyTransform([], target, transform);
}
Apply transform to an vertex.
@param target [x, y]
@param transform Can be:
     + Transform matrix: like [1, 0, 0, 1, 0, 0]
     + {position, rotation, scale}, the same as `zrender/Transformable`.
@param invert Whether use invert matrix.
@return [x, y]