index.ts 485 B

12345678910111213141516
  1. /**
  2. * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author Alexander Rose <alexander.rose@weirdbyte.de>
  5. */
  6. import { Task } from 'mol-task'
  7. import { RenderObject } from 'mol-gl/scene';
  8. export interface RepresentationProps {}
  9. export interface Representation<D, P extends RepresentationProps = {}> {
  10. renderObjects: ReadonlyArray<RenderObject>
  11. create: (data: D, props?: P) => Task<void>
  12. update: (props: P) => Task<void>
  13. }