Skip to content

AtomNode

Overview

Atoms look like shaded spheres. Origin is at geometric center of bounding rectangle.

@author Chris Malley (PixelZoom, Inc.)

Class AtomNode

import { AtomNode } from 'scenerystack/nitroglycerin';

Constructor

new AtomNode( element : Element, providedOptions? : AtomNodeOptions )

Instance Methods

Type AtomNodeOptions

import type { AtomNodeOptions } from 'scenerystack/nitroglycerin';

ShadedSphereNodeOptions

Source Code

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