function View(options) {
        _classCallCheck(this, View);
    
        this._solver = true ? new c.SimplexSolver() : new kiwi.Solver();
        this._subViews = {};
        //this._spacing = undefined;
        this._parentSubView = new SubView({
          solver: this._solver
        });
        this.setSpacing(options && options.spacing !== undefined ? options.spacing : 8);
        //this.constraints = [];
        if (options) {
          if (options.width !== undefined || options.height !== undefined) {
            this.setSize(options.width, options.height);
          }
          if (options.constraints) {
            this.addConstraints(options.constraints);
          }
        }
      }
@class View
@param {Object} [options] Configuration options.
@param {Number} [options.width] Initial width of the view.
@param {Number} [options.height] Initial height of the view.
@param {Number|Object} [options.spacing] Spacing for the view (default: 8) (see `setSpacing`).
@param {Array} [options.constraints] One or more constraint definitions (see `addConstraints`).