Skip to content

Commit 80d6264

Browse files
committed
Update to workaround website build issues
1 parent 0c4f6f6 commit 80d6264

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

packages/mlip.js/scripts/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export interface Model {
118118
isLoaded(): boolean;
119119
predictEnergy(system: AtomicSystem): number;
120120
predict(system: AtomicSystem): PredictionResult;
121+
predictWithOptions(system: AtomicSystem, useNcForces: boolean): PredictionResult;
121122
}
122123
123124
export interface ModelStatic {

website/src/components/MolecularDynamics.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export default function MolecularDynamics() {
500500

501501
// Remove existing unit cell
502502
if (unitCellRef.current) {
503-
stageRef.current.removeComponent(unitCellRef.current)
503+
(stageRef.current as any).removeComponent(unitCellRef.current)
504504
unitCellRef.current = null
505505
}
506506

@@ -544,7 +544,7 @@ export default function MolecularDynamics() {
544544
})
545545

546546
// Add the shape to the stage
547-
const shapeComp = stageRef.current.addComponentFromObject(shape)
547+
const shapeComp = (stageRef.current as any).addComponentFromObject(shape)
548548
shapeComp.addRepresentation('buffer', {
549549
linewidth: 4,
550550
opacity: 0.9
@@ -664,14 +664,6 @@ export default function MolecularDynamics() {
664664
workerRef.current?.postMessage({ type: 'stop' })
665665
}
666666

667-
const stepMD = () => {
668-
workerRef.current?.postMessage({ type: 'step' })
669-
}
670-
671-
const resetView = () => {
672-
stageRef.current?.autoView(500)
673-
}
674-
675667
return (
676668
<div className="md-simulation">
677669
{/* Left panel - Structure and parameters */}

0 commit comments

Comments
 (0)