r3dmol icon indicating copy to clipboard operation
r3dmol copied to clipboard

Methods support

Open swsoyee opened this issue 3 years ago • 2 comments

  • [x] addArrow(spec) → {$3Dmol.GLShape}
  • [x] addAsOneMolecule(data, format) → {$3Dmol.GLModel}
  • [x] addBox(spec) → {$3Dmol.GLShape}
  • [x] addCurve(spec) → {$3Dmol.GLShape}
  • [x] addCustom(spec) → {$3Dmol.GLShape}
  • [x] addCylinder(spec) → {$3Dmol.GLShape}
  • [x] addIsosurface(data, spec) → {$3Dmol.GLShape}
  • [x] addLabel(text, options, sel, noshow) → {$3Dmol.Label}
  • [x] addLine(spec) → {$3Dmol.GLShape}
  • [ ] addMesh(mesh, style) → {Number}
  • [x] addModel(data, format, options) → {$3Dmol.GLModel}
  • [x] addModels(data, format) → {Array.<$3Dmol.GLModel>}
  • [x] addModelsAsFrames(data, format) → {$3Dmol.GLModel}
  • [x] addPropertyLabels(prop, sel, style)
  • [x] addResLabels(sel, style, byframe)
  • [ ] addShape(shapeSpec) → {$3Dmol.GLShape}
  • [x] addSphere(spec) → {$3Dmol.GLShape}
  • [x] addStyle(sel, style)
  • [x] addSurface(type, style, atomsel, allsel, focus, surfacecallback) → {Promise}
  • [x] addUnitCell(model, spec)
  • [x] ~~addVolumetricData(data, format, or) → {$3Dmol.GLShape}~~ deprecated Use addIsosurface instead
  • [ ] addVolumetricRender(data, spec) → {$3Dmol.GLShape}
  • [x] animate(options)
  • [x] center(sel, animationDuration, fixedPath)
  • [x] clear()
  • [ ] createModelFrom(sel, extract) → {$3Dmol.GLModel}
  • [x] enableFog(fog)
  • [ ] exportJSON(includeStyles, modelID) → {string}
  • [ ] exportVRML()
  • [ ] fitSlab(sel)
  • [ ] getFrame()
  • [ ] getInternalState()
  • [ ] getModel(id) → {GLModel}
  • [ ] getNumFrames() → {number}
  • [x] getPerceivedDistance() → {number}
  • [ ] getView() → {Array.}
  • [ ] isAnimated() → {boolean}
  • [ ] linkViewer(otherview)
  • [ ] mapAtomProperties(props,, sel)
  • [x] pdbData(sel) → {string} (Same feature done by using {bio3d} #6 )
  • [x] pngURI() (#27)
  • [x] removeAllLabels()
  • [x] removeAllModels()
  • [x] removeAllShapes()
  • [x] removeAllSurfaces()
  • [x] removeLabel(label)
  • [ ] removeModel(model)
  • [ ] removeShape(shape)
  • [ ] removeSurface(surf)
  • [x] removeUnitCell(model)
  • [x] render()
  • [x] replicateUnitCell(A, B, C, model)
  • [x] resize()
  • [x] rotate(angle, axis, animationDuration, fixedPath)
  • [x] selectedAtoms(sel) → {Array.<Object>}
  • [ ] setAutoEyeSeparation() → {number}
  • [x] setBackgroundColor(hex, a)
  • [ ] setClickable(sel, clickable, callback)
  • [ ] setColorByElement(sel, colors)
  • [ ] setColorByProperty(sel, prop, scheme)
  • [ ] setContainer(element)
  • [x] setDefaultCartoonQuality()
  • [ ] setFrame(framenum) → {Promise}
  • [x] setHeight(h)
  • [ ] setHoverable(sel, hoverable, hover_callback, unhover_callback)
  • [x] setHoverDuration(hoverDuration)
  • [ ] setInternalState()
  • [ ] setLabelStyle(label, stylespec) → {$3Dmol.Label}
  • [ ] setLabelText(label, text) → {$3Dmol.Label}
  • [x] setPerceivedDistance()
  • [x] setProjection()
  • [x] setSlab()
  • [ ] setStateChangeCallback()
  • [x] setStyle(sel, style)
  • [ ] setSurfaceMaterialStyle(surf, style)
  • [x] setView(arg)
  • [ ] setViewChangeCallback()
  • [x] setViewStyle()
  • [x] setWidth(w)
  • [x] setZoomLimits()
  • [x] spin(axis)
  • [ ] stopAnimate()
  • [x] translate(x, y, animationDuration, fixedPath)
  • [x] translateScene(x, y, animationDuration, fixedPath)
  • [x] vibrate(numFrames, amplitude, bothWays, arrowSpec)
  • [x] zoom(factor, animationDuration, fixedPath)
  • [x] zoomTo(sel, animationDuration, fixedPath)

swsoyee avatar Sep 05 '20 01:09 swsoyee

Hi @swsoyee, I want to use mapAtomProperties function to display partial charges as in https://3dmol.csb.pitt.edu/doc/types.html.

Is there away to write .js script to edit structure properties of a r3dmol object? I saw you haven't updated the mapAtomProperties yet.

Thanks.

ndnng avatar Jun 14 '21 22:06 ndnng

@nnguyen19 Thanks for request, I will implement mapAtomProperties as soon as possible. If there is any feature you want to use in {r3dmol}, please make a comment and let me know like this time. 👍🏼

swsoyee avatar Jun 15 '21 00:06 swsoyee