mc-react-structure-visualizer 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +2 -12
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -24386,22 +24386,12 @@ const covalentRadii = {
24386
24386
  function mod(X, L) {
24387
24387
  return (X % L + L) % L;
24388
24388
  }
24389
- const overrideBondLengths = {
24390
- // uuid = "aaea1e0f-337c-453f-a23a-acc06ddc93c9"; // BaTiO3 mc3d-46554/pbe
24391
- Ba: 0.92 * covalentRadii.Ba,
24392
- Ti: 0.94 * covalentRadii.Ti,
24393
- // uuid = "a490b0ff-012a-44c8-a48a-f734dc634b3c"; // EuI4La mc3d-34858/pbe
24394
- I: 1.05 * covalentRadii.I,
24395
- Eu: 1.05 * covalentRadii.Eu
24396
- };
24397
24389
  function setCustomBondLengths() {
24398
24390
  function X(L, f) {
24399
- _3DmolExports.setBondLength(L, f - 0.125);
24391
+ _3DmolExports.setBondLength(L, f);
24400
24392
  }
24401
24393
  Object.keys(covalentRadii).forEach((L) => {
24402
24394
  X(L, covalentRadii[L]);
24403
- }), Object.keys(overrideBondLengths).forEach((L) => {
24404
- X(L, overrideBondLengths[L]);
24405
24395
  });
24406
24396
  }
24407
24397
  class Visualizer3dmol extends React.Component {
@@ -24482,7 +24472,7 @@ class Visualizer3dmol extends React.Component {
24482
24472
  let L = {
24483
24473
  sphere: { scale: 0.3, colorscheme: "Jmol" }
24484
24474
  };
24485
- this.props.viewerParams.vdwRadius && (L.sphere.scale = 1), this.props.viewerParams.bonds && (L.stick = { radius: 0.2, colorscheme: "Jmol" }), this.viewer.setStyle(L), this.viewer.addUnitCell(this.model), this.model.assignBonds(), this.viewer.removeAllLabels(), this.props.viewerParams.atomLabels && this.model.atoms.forEach((f) => {
24475
+ this.props.viewerParams.vdwRadius && (L.sphere.scale = 1), this.props.viewerParams.bonds && (L.stick = { radius: 0.15, colorscheme: "Jmol" }), this.viewer.setStyle(L), this.viewer.addUnitCell(this.model), this.model.assignBonds(), this.viewer.removeAllLabels(), this.props.viewerParams.atomLabels && this.model.atoms.forEach((f) => {
24486
24476
  this.viewer.addLabel(
24487
24477
  f.elem,
24488
24478
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mc-react-structure-visualizer",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "author": "Kristjan Eimre <kristjan.eimre@epfl.ch>",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",