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) {
                    // if exceeds limits, reposition
                    this.resetPosition = limitException.resetCoordinates;
                }
                else {
                    this.limitsService.positionChange(positionChangeData);
                    this._currentPosition = position;
                }
            }
function (position) {
                /** @type {?} */
                var positionChangeData = new PositionChangeData(position, this.limitRoles);
                /** @type {?} */
                var limitException = this.limitsService.exceedsLimit(positionChangeData);
                if (limitException.exceeds) {
                    // if exceeds limits, reposition
                    this.resetPosition = limitException.resetCoordinates;
                }
                else {
                    this.limitsService.positionChange(positionChangeData);
                    this._currentPosition = position;
                }
            }
function ( position ) { /** @type {?} */ var positionChangeData = new PositionChangeData ( position , this . limitRoles ) ; /** @type {?} */ var limitException = this . limitsService . exceedsLimit ( positionChangeData ) ; if ( limitException . exceeds ) { // if exceeds limits, reposition this . resetPosition = limitException . resetCoordinates ; } else { this . limitsService . positionChange ( positionChangeData ) ; this . _currentPosition = position ; } }
registers a position change on the limits service, and adjusts position if necessary
@param {?} position - the current position of the point
@return {?}
registers a position change on the limits service and adjusts position if necessary