mc-react-phonon-visualizer 0.5.0 → 0.5.2
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.
- package/dist/main.js +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -56163,7 +56163,7 @@ const defaultGuiConfig = {
|
|
|
56163
56163
|
guiConfig: defaultGuiConfig,
|
|
56164
56164
|
viewerConfig: { backgroundColor: "#0000FF" }
|
|
56165
56165
|
});
|
|
56166
|
-
Gt.avr.modelStyle = 1, Gt.avr.atomScale = Ee, a.current = Gt;
|
|
56166
|
+
Gt.avr.modelStyle = 1, Gt.avr.atomScale = Ee, a.current = Gt, window.weas = Gt;
|
|
56167
56167
|
}
|
|
56168
56168
|
const We = a.current;
|
|
56169
56169
|
let it, rt;
|
|
@@ -56173,7 +56173,7 @@ const defaultGuiConfig = {
|
|
|
56173
56173
|
positions: i.atom_pos_car,
|
|
56174
56174
|
cell: i.lattice
|
|
56175
56175
|
});
|
|
56176
|
-
We.clear(), We.avr.fromPhononMode({
|
|
56176
|
+
We.clear(), We.clear(We.tjs.scene.children.at(-1).uuid), We.avr.fromPhononMode({
|
|
56177
56177
|
atoms: Mt,
|
|
56178
56178
|
eigenvectors: i.vectors[Ue][je],
|
|
56179
56179
|
amplitude: U * 5,
|
|
@@ -56185,7 +56185,7 @@ const defaultGuiConfig = {
|
|
|
56185
56185
|
[-0.05, 1.05],
|
|
56186
56186
|
[-0.05, 1.05],
|
|
56187
56187
|
[-0.05, 1.05]
|
|
56188
|
-
],
|
|
56188
|
+
], t ? We.avr.play() : We.avr.pause(), We.avr.frameDuration = 15 / le, We.avr.modelStyle = 1, me.current ? (We.avr.tjs.updateCameraAndControls({ direction: P }), me.current = !1) : it && rt && (We.avr.tjs.camera.position.copy(it), We.avr.tjs.controls.target.copy(rt), We.avr.tjs.controls.update()), We.avr.cellManager._showCell = I, We.avr.VFManager.show = ne, We.avr.atomScale = Ee;
|
|
56189
56189
|
for (let Gt = 0; Gt < We.avr._atomScales.length; Gt++)
|
|
56190
56190
|
We.avr._atomScales[Gt] = Ee;
|
|
56191
56191
|
We.avr.drawModels(), We.render();
|