function convertToArray(val) {
    if (!(val instanceof Array)) {
        val = [val, val];
    }
    return val;
}
Provide orbit control for 3D objects

@module echarts-gl/util/OrbitControl
@author Yi Shen(http://github.com/pissang)