/** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author David Sehnal */ import { ParamDefinition as PD } from '../../../mol-util/param-definition'; import { ColorNames } from '../../../mol-util/color/names'; import { Text } from '../../../mol-geo/geometry/text/text'; export const MeasurementRepresentationCommonTextParams = { customText: PD.Text('', { label: 'Text', description: 'Override the label with custom value.' }), textColor: PD.Color(ColorNames.black, { isEssential: true }), textSize: PD.Numeric(0.5, { min: 0.1, max: 5, step: 0.1 }, { isEssential: true }), }; export const LociLabelTextParams = { ...Text.Params, ...MeasurementRepresentationCommonTextParams, borderWidth: PD.Numeric(0.2, { min: 0, max: 0.5, step: 0.01 }) }; export type LociLabelTextParams = typeof LociLabelTextParams