import '../../../chipper/js/browser/initialize-globals.js';
import '../../../assert/js/assert.js';
import '../../../globals.js';
import InstanceRegistry from '../../../phet-core/js/documentation/InstanceRegistry.js';
import optionize from '../../../phet-core/js/optionize.js';
import { Circle, Rectangle } from '../../../scenery/js/imports.js';
import BooleanRoundToggleButton from '../../../sun/js/buttons/BooleanRoundToggleButton.js';
import PhetColorScheme from '../PhetColorScheme.js';
import sceneryPhet from '../sceneryPhet.js';
export default class RecordStopButton extends BooleanRoundToggleButton {
    constructor(recordingProperty, providedOptions) {
        const options = optionize()({
            // RecordStopButtonOptions
            radius: 30,
            recordIconColor: PhetColorScheme.RED_COLORBLIND,
            stopIconColor: PhetColorScheme.RED_COLORBLIND,
            // BooleanRoundToggleButtonOptions
            xMargin: 16.5,
            yMargin: 16.5
        }, providedOptions);
        const squareLength = 0.75 * options.radius;
        const stopIcon = new Rectangle(0, 0, 0.75 * options.radius, 0.75 * options.radius, {
            fill: options.stopIconColor
        });
        const recordIcon = new Circle(0.6 * squareLength, {
            fill: options.recordIconColor,
            center: stopIcon.center
        });
        super(recordingProperty, stopIcon, recordIcon, options);
        // support for binder documentation, stripped out in builds and only runs when ?binder is specified
        assert && window.phet?.chipper?.queryParameters?.binder && InstanceRegistry.registerDataURL('scenery-phet', 'RecordStopButton', this);
    }
}
sceneryPhet.register('RecordStopButton', RecordStopButton);
//# sourceMappingURL=RecordStopButton.js.map