model.ts 784 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author David Sehnal <david.sehnal@gmail.com>
  5. */
  6. import * as Formats from './model/formats'
  7. import HierarchyProperties from './model/properties/hierarchy'
  8. import ConformationProperties from './model/properties/conformation'
  9. /**
  10. * Interface to the "source data" of the molecule.
  11. *
  12. * "Atoms" are integers in the range [0, atomCount).
  13. */
  14. interface Model extends Readonly<{
  15. id: string,
  16. model_num: number,
  17. sourceData: Formats.RawData,
  18. hierarchy: HierarchyProperties,
  19. conformation: ConformationProperties,
  20. // used for diffing.
  21. version: {
  22. data: number,
  23. conformation: number
  24. },
  25. atomCount: number
  26. }> { }
  27. export default Model