dist/ngx-document-scanner/bundles/ngx-document-scanner.umd.js
function (position) {
                /** @type {?} */
                var positionChangeData = new PositionChangeData(position, this.limitRoles);
                /** @type {?} */
                var limitException = this.limitsService.exceedsLimit(positionChangeData);
                if (limitException.exceeds) {
                    this.resetPosition = limitException.resetCoordinates;
                    if (limitException.exceeds) {
                        this.adjustPosition(limitException);
                        positionChangeData = new PositionChangeData(this.position, this.limitRoles);
                        this.limitsService.updatePosition(positionChangeData);
                    }
                }
            }
function (position) {
                /** @type {?} */
                var positionChangeData = new PositionChangeData(position, this.limitRoles);
                /** @type {?} */
                var limitException = this.limitsService.exceedsLimit(positionChangeData);
                if (limitException.exceeds) {
                    this.resetPosition = limitException.resetCoordinates;
                    if (limitException.exceeds) {
                        this.adjustPosition(limitException);
                        positionChangeData = new PositionChangeData(this.position, this.limitRoles);
                        this.limitsService.updatePosition(positionChangeData);
                    }
                }
            }
function ( position ) { /** @type {?} */ var positionChangeData = new PositionChangeData ( position , this . limitRoles ) ; /** @type {?} */ var limitException = this . limitsService . exceedsLimit ( positionChangeData ) ; if ( limitException . exceeds ) { this . resetPosition = limitException . resetCoordinates ; if ( limitException . exceeds ) { this . adjustPosition ( limitException ) ; positionChangeData = new PositionChangeData ( this . position , this . limitRoles ) ; this . limitsService . updatePosition ( positionChangeData ) ; } } }
called on movement end, checks if last position exceeded the limits ad adjusts
@param {?} position
@return {?}
called on movement end checks if last position exceeded the limits ad adjusts