import '../../../../assert/js/assert.js';
import '../../../../globals.js';
// Copyright 2022-2024, University of Colorado Boulder
/**
 * VBox is a convenience specialization of FlowBox with vertical orientation.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 */
import optionize from '../../../../phet-core/js/optionize.js';
import { FlowBox, scenery, VSeparator } from '../../imports.js';
export default class VBox extends FlowBox {
    constructor(providedOptions) {
        assert && assert(!providedOptions || !providedOptions.orientation, 'VBox sets orientation');
        super(optionize()({
            orientation: 'vertical'
        }, providedOptions));
    }
    onFlowBoxChildInserted(node, index) {
        assert && assert(!(node instanceof VSeparator), 'VSeparator should not be used in an VBox. Use HSeparator instead');
        super.onFlowBoxChildInserted(node, index);
    }
    mutate(options) {
        return super.mutate(options);
    }
}
scenery.register('VBox', VBox);
//# sourceMappingURL=VBox.js.map