/** * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author David Sehnal */ import { Structure } from '../../mol-model/structure'; import { StructureUnitTransforms } from '../../mol-model/structure/structure/util/unit-transforms'; import { ParamDefinition as PD } from '../../mol-util/param-definition'; import { Representation, RepresentationProps, RepresentationProvider } from '../representation'; export interface StructureRepresentationState extends Representation.State { unitTransforms: StructureUnitTransforms | null, unitTransformsVersion: number } export const StructureRepresentationStateBuilder: Representation.StateBuilder = { create: () => { return { ...Representation.createState(), unitTransforms: null, unitTransformsVersion: -1 } }, update: (state: StructureRepresentationState, update: Partial) => { Representation.updateState(state, update) if (update.unitTransforms !== undefined) state.unitTransforms = update.unitTransforms } } export interface StructureRepresentation

extends Representation { } export type StructureRepresentationProvider

= RepresentationProvider export function StructureRepresentationProvider

(p: StructureRepresentationProvider): StructureRepresentationProvider { return p; } // export { ComplexRepresentation } from './complex-representation'; export { ComplexVisual } from './complex-visual'; export { UnitsRepresentation } from './units-representation'; export { UnitsVisual } from './units-visual';