Skip to content

Element

Overview

Object for actual element properties (symbol, radius, etc.)

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class Element

import { Element } from 'scenerystack/nitroglycerin';

Constructor

new Element( symbol : string, covalentRadius : number, vanDerWaalsRadius : number, electronegativity : number | null, atomicWeight : number, color : Color | string )

Instance Methods

isSameElement( element : Element ) : boolean

isHydrogen() : boolean

isCarbon() : boolean

isOxygen() : boolean

toString() : string

Instance Properties

symbol : string

(readonly)

See constructor params for documentation.

covalentRadius : number

(readonly)

vanDerWaalsRadius : number

(readonly)

electronegativity : number | null

(readonly)

atomicWeight : number

(readonly)

color : Color | string

(readonly)

Static Methods

getElementBySymbol( symbol : string ) : Element

Static Properties

Ar : Element

(readonly)

static Element instances

B : Element

(readonly)

Be : Element

(readonly)

Br : Element

(readonly)

C : Element

(readonly)

Cl : Element

(readonly)

F : Element

(readonly)

H : Element

(readonly)

I : Element

(readonly)

N : Element

(readonly)

Ne : Element

(readonly)

O : Element

(readonly)

P : Element

(readonly)

S : Element

(readonly)

Si : Element

(readonly)

Sn : Element

(readonly)

Xe : Element

(readonly)

elements

(readonly)

Source Code

See the source for Element.ts in the nitroglycerin repository.