makeRow() {
        if (this.cursor) {
            if (this.cursor.isVerticalLine()) {
                // find region boundry
                let regionCell = this.cursor;
                while (regionCell.top && regionCell.isVerticalLine()) {
                    regionCell = regionCell.top;
                }
                // draw horizontal line
                let cell = this.cursor, extend = false;
                do {
                    cell = cell.right;
                    regionCell = regionCell.right;
                    extend = false;
                    while (cell && !cell.isVerticalLine()) {
                        if (cell.getValue() == '-') {
                            extend = true;
                        }
                        cell.setValue('-');
                        cell = cell.right;
                        regionCell = regionCell.right;
                    }
                    // check if not out of region boundaries
                    extend = extend && regionCell.isHorizontalLine() && !regionCell.isCorner();
                    if (extend) {
                        cell.setValue('-');
                    }
                } while (cell && extend);
                this.__buildLineIndex__();
            }
        }
    }
/**
     * Create new horizontal line at current cursor position.
     */
Create new horizontal line at current cursor position.
Create new horizontal line at current cursor position .
makeRow() {
        if (this.cursor) {
            if (this.cursor.isVerticalLine()) {
                let regionCell = this.cursor;
                while (regionCell.top && regionCell.isVerticalLine()) {
                    regionCell = regionCell.top;
                }
                let cell = this.cursor, extend = false;
                do {
                    cell = cell.right;
                    regionCell = regionCell.right;
                    extend = false;
                    while (cell && !cell.isVerticalLine()) {
                        if (cell.getValue() == '-') {
                            extend = true;
                        }
                        cell.setValue('-');
                        cell = cell.right;
                        regionCell = regionCell.right;
                    }
                    extend = extend && regionCell.isHorizontalLine() && !regionCell.isCorner();
                    if (extend) {
                        cell.setValue('-');
                    }
                } while (cell && extend);
                this.__buildLineIndex__();
            }
        }
    }
makeRow ( ) { if ( this . cursor ) { if ( this . cursor . isVerticalLine ( ) ) { let regionCell = this . cursor ; while ( regionCell . top && regionCell . isVerticalLine ( ) ) { regionCell = regionCell . top ; } let cell = this . cursor , extend = false ; do { cell = cell . right ; regionCell = regionCell . right ; extend = false ; while ( cell && ! cell . isVerticalLine ( ) ) { if ( cell . getValue ( ) == '-' ) { extend = true ; } cell . setValue ( '-' ) ; cell = cell . right ; regionCell = regionCell . right ; } extend = extend && regionCell . isHorizontalLine ( ) && ! regionCell . isCorner ( ) ; if ( extend ) { cell . setValue ( '-' ) ; } } while ( cell && extend ) ; this . __buildLineIndex__ ( ) ; } } }
Create new horizontal line at current cursor position.
Create new horizontal line at current cursor position .
// find region boundry // draw horizontal line // check if not out of region boundaries