123456789101112131415161718192021 |
- /**
- * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
- *
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
- */
- import { Task } from 'mol-task'
- import { RenderObject } from 'mol-gl/render-object'
- import { PickingId } from '../util/picking';
- import { Loci } from 'mol-model/loci';
- import { FlagAction } from '../util/flag-data';
- export interface RepresentationProps {}
- export interface Representation<D, P extends RepresentationProps = {}> {
- renderObjects: ReadonlyArray<RenderObject>
- create: (data: D, props?: P) => Task<void>
- update: (props: P) => Task<void>
- getLoci: (pickingId: PickingId) => Loci | null
- applyFlags: (loci: Loci, action: FlagAction) => void
- }
|