Skip to content
Snippets Groups Projects
Commit 131fd430 authored by Alexander Rose's avatar Alexander Rose
Browse files

fixes

parent ff5ff16f
No related branches found
No related tags found
No related merge requests found
......@@ -18,16 +18,14 @@ import Box from 'mol-geo/primitive/box'
import Spacefill from 'mol-geo/representation/structure/spacefill'
import CIF from 'mol-io/reader/cif'
import Computation from 'mol-util/computation'
import { Run } from 'mol-task'
// import Computation from 'mol-util/computation'
import { AtomSet, Structure } from 'mol-model/structure'
import { UnitRepresentation } from 'mol-geo/representation/structure';
async function parseCif(data: string|Uint8Array) {
const comp = CIF.parse(data)
const ctx = Computation.observable({
updateRateMs: 250
})
const parsed = await comp(ctx);
const parsed = await Run(comp);
if (parsed.isError) throw parsed;
return parsed
}
......
......@@ -23,6 +23,10 @@ import Quat from './quat';
interface Mat4 extends Array<number> { [d: number]: number, '@type': 'mat4', length: 16 }
function Mat4() {
return Mat4.zero();
}
/**
* Stores a 4x4 matrix in a column major (j * 4 + i indexing) format.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment