Skip to content
Snippets Groups Projects
Commit 06780bf3 authored by David Sehnal's avatar David Sehnal
Browse files

move column to "mol-base"

parent 44f02c2a
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 16 deletions
/**
* Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
interface Conformation {
}
export default Conformation
......@@ -7,12 +7,6 @@
// TODO: define property accessor intefaces, graphs, spatial lookups and what have you.
interface Model {
// Incremented when data changes
dataVersion: number,
// Incremented when the underlying conformation changes
conformationVersion: number,
}
export default Model
File moved
/**
* Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
// TODO: implement interfaces for mmCIF source data format
\ No newline at end of file
/**
* Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
// TODO: define basic hierarchy, sec. structure. etc.
\ No newline at end of file
/**
* Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
// TODO: map parts of mmCIF schema to create interfaces
\ No newline at end of file
File moved
......@@ -7,6 +7,7 @@
import { Vec3, Mat4 } from '../mol-base/math/linear-algebra'
import AtomSet from './atom-set'
import Model from './model'
import Conformation from './conformation'
export interface Operator extends Readonly<{
name: string,
......@@ -29,6 +30,8 @@ export interface Unit extends Readonly<{
// Provides access to the underlying data.
model: Model,
conformation: Conformation,
// Determines the operation applied to this unit.
// The transform and and inverse are baked into the "getPosition" function
operator: Operator
......
......@@ -7,7 +7,7 @@
import FixedColumn from '../common/text/column/fixed'
import TokenColumn from '../common/text/column/token'
import { ColumnType, typedArrayWindow } from '../common/column'
import { ColumnType, typedArrayWindow } from '../../../mol-base/collections/column'
const lines = [
'1.123 abc',
......
......@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import * as Column from '../../common/column'
import * as Column from '../../../../mol-base/collections/column'
import * as Data from '../data-model'
import { EncodedColumn } from './encoding'
import decode from './decoder'
......
......@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import * as Column from '../common/column'
import * as Column from '../../../mol-base/collections/column'
export interface File {
readonly name?: string,
......
......@@ -5,7 +5,7 @@
*/
import * as Data from './data-model'
import * as Column from '../common/column'
import * as Column from '../../../mol-base/collections/column'
import StringPool from '../../utils/short-string-pool'
/**
......
......@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import * as Column from '../../common/column'
import * as Column from '../../../../mol-base/collections/column'
import * as TokenColumn from '../../common/text/column/token'
import { Tokens } from '../../common/text/tokenizer'
import * as Data from '../data-model'
......
......@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { Column, ColumnType, createAndFillArray } from '../../column'
import { Column, ColumnType, createAndFillArray } from '../../../../../mol-base/collections/column'
import { trimStr, Tokens } from '../tokenizer'
import { parseIntSkipLeadingWhitespace, parseFloatSkipLeadingWhitespace } from '../number-parser'
import StringPool from '../../../../utils/short-string-pool'
......
......@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { Column, ColumnType, createAndFillArray } from '../../column'
import { Column, ColumnType, createAndFillArray } from '../../../../../mol-base/collections/column'
import { Tokens } from '../tokenizer'
import { parseInt as fastParseInt, parseFloat as fastParseFloat } from '../number-parser'
import StringPool from '../../../../utils/short-string-pool'
......
......@@ -7,7 +7,7 @@
import Tokenizer from '../common/text/tokenizer'
import FixedColumn from '../common/text/column/fixed'
import { ColumnType, UndefinedColumn } from '../common/column'
import { ColumnType, UndefinedColumn } from '../../../mol-base/collections/column'
import * as Schema from './schema'
import Result from '../result'
import Computation from '../../../mol-base/computation'
......
......@@ -5,7 +5,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { Column } from '../common/column'
import { Column } from '../../../mol-base/collections/column'
export interface Header {
title: string,
......
......@@ -4,7 +4,7 @@
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { Column } from '../common/column'
import { Column } from '../../../mol-base/collections/column'
// Full format http://chemyang.ccnu.edu.cn/ccb/server/AIMMS/mol2.pdf
// there are many records but for now ignore (pass over) all but the following
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment