constructor(
        x,
        y,
        scope = globalScope,
        dir = "RIGHT",
        bitWidth = 1,
        state = "0"
    ) {
        // state = state || prompt('Enter value');
        super(x, y, scope, dir, state.length);
        /* this is done in this.baseSetup() now
            this.scope['ConstantVal'].push(this);
        */
        this.state = state;
        this.setDimensions(10 * this.state.length, 10);
        this.bitWidth = bitWidth || this.state.length;
        this.directionFixed = true;
        this.orientationFixed = false;
        this.rectangleObject = false;

        this.output1 = new Node(this.bitWidth * 10, 0, 1, this);
        this.wasClicked = false;
        this.label = "";
    }
@class
ConstantVal
@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 {string=} dir - direction of element
@param {number=} bitWidth - bit width per node.
@param {string=} state - The state of element
@category modules