UNPKG

molstar

Version:

A comprehensive macromolecular library.

23 lines (22 loc) 833 B
/** * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { CustomPropertyDescriptor } from '../../mol-model/custom-property'; import { CustomModelProperty } from '../common/custom-model-property'; import { calcHelixOrientation } from './helix-orientation/helix-orientation'; export const HelixOrientationParams = {}; export const HelixOrientationProvider = CustomModelProperty.createProvider({ label: 'Helix Orientation', descriptor: CustomPropertyDescriptor({ name: 'molstar_helix_orientation' }), type: 'dynamic', defaultParams: {}, getParams: () => ({}), isApplicable: (data) => true, obtain: async (ctx, data) => { return { value: calcHelixOrientation(data) }; } });