import '../../../chipper/js/initialize-globals.js';
import '../../../assert/js/assert.js';
import '../../../globals.js';
// Copyright 2014-2024, University of Colorado Boulder
/**
 * Restart button.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 */
import { Shape } from '../../../kite/js/imports.js';
import InstanceRegistry from '../../../phet-core/js/documentation/InstanceRegistry.js';
import optionize from '../../../phet-core/js/optionize.js';
import { HBox, Path, Rectangle } from '../../../scenery/js/imports.js';
import RoundPushButton from '../../../sun/js/buttons/RoundPushButton.js';
import sceneryPhet from '../sceneryPhet.js';
// constants
const scale = 0.75;
const vscale = 1.15;
const barWidth = 4 * scale;
const barHeight = 19 * scale * vscale;
const triangleWidth = 15 * scale;
const triangleHeight = 19 * scale * vscale;
export default class RestartButton extends RoundPushButton {
    constructor(providedOptions) {
        const options = optionize()({}, providedOptions);
        const barPath = new Rectangle(0, 0, barWidth, barHeight, { fill: 'black' });
        const trianglePath = new Path(new Shape().moveTo(0, triangleHeight / 2).lineTo(-triangleWidth, 0).lineTo(0, -triangleHeight / 2).close(), {
            fill: 'black'
        });
        const trianglePath2 = new Path(new Shape().moveTo(0, triangleHeight / 2).lineTo(-triangleWidth, 0).lineTo(0, -triangleHeight / 2).close(), {
            fill: 'black'
        });
        options.content = new HBox({ children: [barPath, trianglePath, trianglePath2], spacing: -1 });
        super(options);
        // support for binder documentation, stripped out in builds and only runs when ?binder is specified
        assert && phet?.chipper?.queryParameters?.binder && InstanceRegistry.registerDataURL('scenery-phet', 'RestartButton', this);
    }
}
sceneryPhet.register('RestartButton', RestartButton);
//# sourceMappingURL=RestartButton.js.map