Open GabrielCabas opened 3 years ago
My index.html is something like this.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>VHL-Hunter</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<link rel="stylesheet" href="./assets/LiteMol/css/LiteMol-plugin.css" type="text/css" />
<script src="./assets/LiteMol/js/LiteMol-plugin.js"></script>
</head>
<body class="mat-typography">
<app-root></app-root>
</body>
</html>
And I'm using the plugin on a component:
ngOnInit(){
this.plugin = LiteMol.Plugin.create({
target: '#structure',
viewportBackground: 'black',
layoutState: {
isExpanded: false,
hideControls: true
},
});
};
Render(){
this.plugin.loadMolecule({
id: '1lm8.pdb',
url: 'http://localhost:3800/api/getPdb/',
format: 'pdb' // default
});
}
Hi Gabriel, LiteMol development has shifted to the Mol* project. I recommend you try using that.
Hi, I'm really begginer using Litemol. I'm trying to use it on an angular app. I referenced the files in /dist on my index.html, I don't know if there's another way. I have this error: