assert_line_shown() {

        // if the line is already visible, do nothing and return
        let greaterThanMin = this._currentPosition > this.visibleRange.x.min;
        let lessThanMax = this._currentPosition < this.visibleRange.x.max;
        if (greaterThanMin && lessThanMax) return;

        // TODO: correctly check if current position is able to be shown with current zoom
        let graph_range = this.options.stats.x;
        let ableToShow = this._currentPosition > graph_range.min &&
            this._currentPosition < graph_range.max;
        
        // if able, just center camera and return
        if (ableToShow) {
            this.center_camera();
        }
    }
/**
     * @private
     * This make sure that the line is shown if it can be shown. This is done
     * when the playing starts without the line in the visible area of the 
     * screen.
     */
@private
This make sure that the line is shown if it can be shown. This is done
when the playing starts without the line in the visible area of the
screen.
@private This make sure that the line is shown if it can be shown . This is done when the playing starts without the line in the visible area of the screen .
assert_line_shown() {
        let greaterThanMin = this._currentPosition > this.visibleRange.x.min;
        let lessThanMax = this._currentPosition < this.visibleRange.x.max;
        if (greaterThanMin && lessThanMax) return;
        let graph_range = this.options.stats.x;
        let ableToShow = this._currentPosition > graph_range.min &&
            this._currentPosition < graph_range.max;
        if (ableToShow) {
            this.center_camera();
        }
    }
assert_line_shown ( ) { let greaterThanMin = this . _currentPosition > this . visibleRange . x . min ; let lessThanMax = this . _currentPosition < this . visibleRange . x . max ; if ( greaterThanMin && lessThanMax ) return ; let graph_range = this . options . stats . x ; let ableToShow = this . _currentPosition > graph_range . min && this . _currentPosition < graph_range . max ; if ( ableToShow ) { this . center_camera ( ) ; } }
@private
 This make sure that the line is shown if it can be shown.
@private This make sure that the line is shown if it can be shown .
// if the line is already visible, do nothing and return // TODO: correctly check if current position is able to be shown with current zoom // if able, just center camera and return