stage object the component belongs to
Component type
Add a new representation to the component
the name of the representation
the object on which the representation should be based
the created representation wrapped into a representation element object
Add an anotation object
the 3d position
the HTML content
the added annotation object
Add a measurement given as a pair, triple, quad of atom indices
Add a new trajectory component to the structure
Automatically center and zoom the component
Iterator over each annotation and executing the callback
function to execute
Iterator over each representation and executing the callback
function to execute
the component's bounding box
the component's center position
Initialize selection
selection string
Rebuild all representations
Rebuild all trajectories
Remove all annotations from the component
Remove all measurements, optionally limit to distance, angle or dihedral
Removes all representation components
Remove the give annotation from the component
the annotation to remove
Remove a measurement given as a pair, triple, quad of atom indices
Removes a representation component
the representation element
Set the default assembly
assembly name
Set position transform
the coordinates
this object
Set rotation transform
the rotation
this object
Set scale transform
the scale
this object
Set selection of {@link StructureComponent#structureView}
selection string
this object
Set general transform. Is applied before and in addition to the position, rotation and scale transformations
the matrix
this object
Set the visibility of the component, including added representations
visibility flag
this object
Generated using TypeDoc
Component wrapping a Structure object
// get a structure component by loading a structure file into the stage stage.loadFile( "rcsb://4opj" ).then( function( structureComponent ){ structureComponent.addRepresentation( "cartoon" ); structureComponent.autoView(); } );