import '../../globals.js';
// Copyright 2013-2024, University of Colorado Boulder
/**
 * Scenery node that represents a simple, non-interactive clock.  It is
 * intended for use in situations where an icon representing time is needed.
 *
 * @author John Blanco
 */
import optionize from '../../phet-core/js/optionize.js';
import { Circle, Line, Node } from '../../scenery/js/imports.js';
import sceneryPhet from './sceneryPhet.js';
export default class SimpleClockIcon extends Node {
    constructor(radius, providedOptions) {
        super();
        const options = optionize()({
            // SelfOptions
            fill: 'white',
            stroke: 'black',
            lineWidth: 2
        }, providedOptions);
        this.addChild(new Circle(radius, options));
        this.addChild(new Circle(radius * 0.15, { fill: options.stroke }));
        const lineOptionsForClockHands = {
            stroke: options.stroke,
            lineWidth: options.lineWidth,
            lineCap: 'round',
            lineJoin: 'round'
        };
        // Hands at 4 o'clock
        this.addChild(new Line(0, 0, 0, -radius * 0.75, lineOptionsForClockHands));
        this.addChild(new Line(0, 0, radius * 0.45, radius * 0.3, lineOptionsForClockHands));
        this.centerX = radius;
        this.centerY = radius;
        this.mutate(options);
    }
}
sceneryPhet.register('SimpleClockIcon', SimpleClockIcon);
//# sourceMappingURL=SimpleClockIcon.js.map