makeColumn() {
        if (this.cursor) {
            if (this.cursor.isHorizontalLine()) {
                // move cursor to closest column position
                const column = Math.round(this.cursor.column / (this.layouteer.columnSize + 1)) * (this.layouteer.columnSize + 1);
                this.setCursor(this.index[this.cursor.row][column]);
                // find region boundry
                let regionCell = this.cursor;
                while (regionCell.left && regionCell.isHorizontalLine()) {
                    regionCell = regionCell.left;
                }
                let cell = this.cursor, extend = false;
                do {
                    cell = cell.bottom;
                    regionCell = regionCell.bottom;
                    extend = false;
                    //let cell = this.cursor.bottom;
                    while (cell && !cell.isHorizontalLine()) {
                        if (cell.isVerticalLine()) {
                            extend = true;
                        }
                        cell.setValue('|');
                        cell = cell.bottom;
                        regionCell = regionCell.bottom;
                    }
                    extend = extend && regionCell.isVerticalLine() && !regionCell.isCorner();
                    if (extend) {
                        cell.setValue('|');
                    }
                } while (cell && extend);
                this.__buildLineIndex__();
            }
        }
    }
/**
     * Create new vertical line at closest column position.
     */
Create new vertical line at closest column position.
Create new vertical line at closest column position .
makeColumn() {
        if (this.cursor) {
            if (this.cursor.isHorizontalLine()) {
                const column = Math.round(this.cursor.column / (this.layouteer.columnSize + 1)) * (this.layouteer.columnSize + 1);
                this.setCursor(this.index[this.cursor.row][column]);
                let regionCell = this.cursor;
                while (regionCell.left && regionCell.isHorizontalLine()) {
                    regionCell = regionCell.left;
                }
                let cell = this.cursor, extend = false;
                do {
                    cell = cell.bottom;
                    regionCell = regionCell.bottom;
                    extend = false;
                    while (cell && !cell.isHorizontalLine()) {
                        if (cell.isVerticalLine()) {
                            extend = true;
                        }
                        cell.setValue('|');
                        cell = cell.bottom;
                        regionCell = regionCell.bottom;
                    }
                    extend = extend && regionCell.isVerticalLine() && !regionCell.isCorner();
                    if (extend) {
                        cell.setValue('|');
                    }
                } while (cell && extend);
                this.__buildLineIndex__();
            }
        }
    }
makeColumn ( ) { if ( this . cursor ) { if ( this . cursor . isHorizontalLine ( ) ) { const column = Math . round ( this . cursor . column / ( this . layouteer . columnSize + 1 ) ) * ( this . layouteer . columnSize + 1 ) ; this . setCursor ( this . index [ this . cursor . row ] [ column ] ) ; let regionCell = this . cursor ; while ( regionCell . left && regionCell . isHorizontalLine ( ) ) { regionCell = regionCell . left ; } let cell = this . cursor , extend = false ; do { cell = cell . bottom ; regionCell = regionCell . bottom ; extend = false ; while ( cell && ! cell . isHorizontalLine ( ) ) { if ( cell . isVerticalLine ( ) ) { extend = true ; } cell . setValue ( '|' ) ; cell = cell . bottom ; regionCell = regionCell . bottom ; } extend = extend && regionCell . isVerticalLine ( ) && ! regionCell . isCorner ( ) ; if ( extend ) { cell . setValue ( '|' ) ; } } while ( cell && extend ) ; this . __buildLineIndex__ ( ) ; } } }
Create new vertical line at closest column position.
Create new vertical line at closest column position .
// move cursor to closest column position // find region boundry //let cell = this.cursor.bottom;