1.0.1 • Published 4 years ago

aframe-glmol-component v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

aframe-glmol-component

Version License npm.io

A port of GLMol based on https://github.com/biochem-fan/GLmol

For A-Frame.

API

PropertyDescriptionDefault Value
widthWidth20
heightWeight20
depthDepth1
colorColor#AAA
molIdmoleculeID from PDB or CID serverpdb:2POR
colorColor by: chainbow, chain, ss, b, polaritychainbow
mainchainMain chain as: thickRibbon, ribbon, strand, cylinderHelix, chain, tube, bonds, nonethickRibbon
baseNucleic acid bases as: nuclStick, nuclLine, nuclPolygonnuclLine
lineSide chains as linesfalse
doNotSmoothenDon't smooth beta-sheets in ribbonstrue
nbNon-bonded atoms as: nb_sphere, nb_cross, nonenone
hetatmModeSmall molecules as: stick, ballAndStick, ballAndStick2, sphere, icosahedron, line, nonesphere
cellUnit cellfalse
biomtBiological assemblyfalse
packingCrystal packingfalse
symopHetatmsShow HETATMS in symmetry matesfalse

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-glmol-component/dist/aframe-glmol-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity glmol></a-entity>
  </a-scene>
</body>