import '../../../globals.js';
// Copyright 2013-2022, University of Colorado Boulder
/**
 * H2S Molecule
 *
 * @author Chris Malley (PixelZoom, Inc.)
 */
import merge from '../../../phet-core/js/merge.js';
import Element from '../Element.js';
import nitroglycerin from '../nitroglycerin.js';
import AtomNode from './AtomNode.js';
import MoleculeNode from './MoleculeNode.js';
export default class H2SNode extends MoleculeNode {
    constructor(providedOptions) {
        const atomNodeOptions = providedOptions?.atomNodeOptions;
        // atoms
        const bigNode = new AtomNode(Element.S, atomNodeOptions);
        const smallLeftNode = new AtomNode(Element.H, merge({
            centerX: bigNode.left,
            centerY: bigNode.bottom - (0.25 * bigNode.height)
        }, atomNodeOptions));
        const smallRightNode = new AtomNode(Element.H, merge({
            centerX: bigNode.right,
            centerY: smallLeftNode.centerY
        }, atomNodeOptions));
        const atomNodes = [bigNode, smallLeftNode, smallRightNode];
        super(atomNodes, providedOptions);
    }
}
nitroglycerin.register('H2SNode', H2SNode);
//# sourceMappingURL=H2SNode.js.map