isAllowed(x, y) {
        if (x < 0 || x > this.layout.width || y < 0 || y > this.layout.height) return false;
        if (x > 0 && x < this.layout.width && y > 0 && y < this.layout.height) return false;

        if ((x === 0 && y === 0) || (x === 0 && y === this.layout.height) || (x === this.layout.width && y === 0) || (x === this.layout.width && y === this.layout.height)) return false;

        return true;
    }
@memberof layoutBuffer
Check if position is on the boundaries of subcircuit
if the desired width and heiht is allowed