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