/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * Adapted from LiteMol * Copyright (c) 2016 - now David Sehnal, licensed under Apache 2.0, See LICENSE file for more info. * * @author Alexander Rose */ import * as React from 'react' import { View } from '../view'; import { Controller } from '../../controller/controller'; import { ModelEntity } from 'mol-view/state/entity'; import { StructureProps, ModelToStructure as ModelToStructureTransform } from 'mol-view/state/transform' import { StateContext } from 'mol-view/state/context'; export class ModelToStructure extends View, StructureProps, { transform: ModelToStructureTransform, entity: ModelEntity, ctx: StateContext }> { state = { assembly: '' } create(state?: Partial) { const { transform, entity, ctx } = this.props console.log('create structure', transform, entity) const newState = { ...this.state, ...state } this.setState(newState) transform.apply(ctx, entity, newState) } render() { const { transform, entity } = this.props const assemblyOptions = entity.value[0].symmetry.assemblies.map((value, idx) => { return }) return
Details
; } }