src/geometry/ext/Geometry.Events.js
function (e) {
        const map = this.getMap();
        const eventParam = {
            'domEvent': e
        };
        const actual = e.touches && e.touches.length > 0 ? e.touches[0] : e.changedTouches  && e.changedTouches.length > 0 ? e.changedTouches[0] : e;
        if (actual) {
            const containerPoint = getEventContainerPoint(actual, map._containerDOM);
            eventParam['coordinate'] = map.containerPointToCoordinate(containerPoint);
            eventParam['containerPoint'] = containerPoint;
            eventParam['viewPoint'] = map.containerPointToViewPoint(containerPoint);
            eventParam['pont2d'] = map._containerPointToPoint(containerPoint);
        }
        return eventParam;
    }
function (e) {
        const map = this.getMap();
        const eventParam = {
            'domEvent': e
        };
        const actual = e.touches && e.touches.length > 0 ? e.touches[0] : e.changedTouches  && e.changedTouches.length > 0 ? e.changedTouches[0] : e;
        if (actual) {
            const containerPoint = getEventContainerPoint(actual, map._containerDOM);
            eventParam['coordinate'] = map.containerPointToCoordinate(containerPoint);
            eventParam['containerPoint'] = containerPoint;
            eventParam['viewPoint'] = map.containerPointToViewPoint(containerPoint);
            eventParam['pont2d'] = map._containerPointToPoint(containerPoint);
        }
        return eventParam;
    }
function ( e ) { const map = this . getMap ( ) ; const eventParam = { 'domEvent' : e } ; const actual = e . touches && e . touches . length > 0 ? e . touches [ 0 ] : e . changedTouches && e . changedTouches . length > 0 ? e . changedTouches [ 0 ] : e ; if ( actual ) { const containerPoint = getEventContainerPoint ( actual , map . _containerDOM ) ; eventParam [ 'coordinate' ] = map . containerPointToCoordinate ( containerPoint ) ; eventParam [ 'containerPoint' ] = containerPoint ; eventParam [ 'viewPoint' ] = map . containerPointToViewPoint ( containerPoint ) ; eventParam [ 'pont2d' ] = map . _containerPointToPoint ( containerPoint ) ; } return eventParam ; }
Generate event parameters
@param  {Event} event - dom event
@return {Object}
@private
Generate event parameters