newBitWidth(bitWidth) {
        if (bitWidth === undefined || bitWidth < 1 || bitWidth > 32) return;
        if (this.bitWidth === bitWidth) return;

        this.bitWidth = bitWidth;
        const obj = new PriorityEncoder(
            this.x,
            this.y,
            this.scope,
            this.direction,
            this.bitWidth
        );
        this.inputSize = 1 << bitWidth;

        this.cleanDelete();
        simulationArea.lastSelected = obj;
        return obj;
    }
@memberof PriorityEncoder
function to change bitwidth of the element
@param {number} bitWidth - new bitwidth