constructor(x, y, scope = globalScope, rows = 15, cols = 20) {
        super(x, y, scope, 'RIGHT', 1);
        /* this is done in this.baseSetup() now
        this.scope['Rectangle'].push(this);
        */
        this.directionFixed = true;
        this.fixedBitWidth = true;
        this.rectangleObject = false;
        this.cols = cols || parseInt(prompt('Enter cols:'), 10);
        this.rows = rows || parseInt(prompt('Enter rows:'), 10);
        this.setSize();
    }
@class
Rectangle
@extends CircuitElement
@param {number} x - x coordinate of element.
@param {number} y - y coordinate of element.
@param {Scope=} scope - Cirucit on which element is drawn
@param {number=} rows - number of rows
@param {number=} cols - number of columns.
@category modules