From 27b559a2d8831c34f34f448beab67c449971c8a4 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Fri, 28 Feb 2020 18:08:33 -0800 Subject: [PATCH] tweaked color-theme categories --- .../computed/themes/accessible-surface-area.ts | 2 +- .../computed/themes/interaction-type.ts | 2 +- .../integrative/cross-link-restraint/color.ts | 2 +- .../pdbe/themes/structure-quality-report.ts | 2 +- .../rcsb/themes/assembly-symmetry-cluster.ts | 2 +- src/mol-model-props/rcsb/themes/density-fit.ts | 2 +- src/mol-model-props/rcsb/themes/geometry-quality.ts | 2 +- src/mol-model-props/rcsb/themes/random-coil-index.ts | 2 +- src/mol-theme/color.ts | 10 ++++++---- src/mol-theme/color/carbohydrate-symbol.ts | 4 ++-- src/mol-theme/color/chain-id.ts | 2 +- src/mol-theme/color/element-index.ts | 2 +- src/mol-theme/color/element-symbol.ts | 2 +- src/mol-theme/color/entity-source.ts | 2 +- src/mol-theme/color/hydrophobicity.ts | 2 +- src/mol-theme/color/model-index.ts | 2 +- src/mol-theme/color/molecule-type.ts | 2 +- src/mol-theme/color/occupancy.ts | 2 +- src/mol-theme/color/operator-hkl.ts | 2 +- src/mol-theme/color/operator-name.ts | 2 +- src/mol-theme/color/polymer-id.ts | 4 ++-- src/mol-theme/color/polymer-index.ts | 6 +++--- src/mol-theme/color/residue-name.ts | 2 +- src/mol-theme/color/secondary-structure.ts | 2 +- src/mol-theme/color/sequence-id.ts | 2 +- src/mol-theme/color/shape-group.ts | 2 +- src/mol-theme/color/uncertainty.ts | 2 +- src/mol-theme/color/uniform.ts | 2 +- src/mol-theme/color/unit-index.ts | 6 +++--- 29 files changed, 40 insertions(+), 38 deletions(-) diff --git a/src/mol-model-props/computed/themes/accessible-surface-area.ts b/src/mol-model-props/computed/themes/accessible-surface-area.ts index 2c608b36d..5de7df983 100644 --- a/src/mol-model-props/computed/themes/accessible-surface-area.ts +++ b/src/mol-model-props/computed/themes/accessible-surface-area.ts @@ -66,7 +66,7 @@ export function AccessibleSurfaceAreaColorTheme(ctx: ThemeDataContext, props: PD export const AccessibleSurfaceAreaColorThemeProvider: ColorTheme.Provider<AccessibleSurfaceAreaColorThemeParams> = { label: 'Accessible Surface Area', - category: ColorTheme.Category.Computed, + category: ColorTheme.Category.Residue, factory: AccessibleSurfaceAreaColorTheme, getParams: getAccessibleSurfaceAreaColorThemeParams, defaultValues: PD.getDefaultValues(AccessibleSurfaceAreaColorThemeParams), diff --git a/src/mol-model-props/computed/themes/interaction-type.ts b/src/mol-model-props/computed/themes/interaction-type.ts index f816d2b41..70c88fd04 100644 --- a/src/mol-model-props/computed/themes/interaction-type.ts +++ b/src/mol-model-props/computed/themes/interaction-type.ts @@ -108,7 +108,7 @@ export function InteractionTypeColorTheme(ctx: ThemeDataContext, props: PD.Value export const InteractionTypeColorThemeProvider: ColorTheme.Provider<InteractionTypeColorThemeParams> = { label: 'Interaction Type', - category: ColorTheme.Category.Computed, + category: ColorTheme.Category.Misc, factory: InteractionTypeColorTheme, getParams: getInteractionTypeColorThemeParams, defaultValues: PD.getDefaultValues(InteractionTypeColorThemeParams), diff --git a/src/mol-model-props/integrative/cross-link-restraint/color.ts b/src/mol-model-props/integrative/cross-link-restraint/color.ts index 3ba49d73d..0ff69cd16 100644 --- a/src/mol-model-props/integrative/cross-link-restraint/color.ts +++ b/src/mol-model-props/integrative/cross-link-restraint/color.ts @@ -63,7 +63,7 @@ export function CrossLinkColorTheme(ctx: ThemeDataContext, props: PD.Values<Cros export const CrossLinkColorThemeProvider: ColorTheme.Provider<CrossLinkColorThemeParams> = { label: 'Cross Link', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Misc, factory: CrossLinkColorTheme, getParams: getCrossLinkColorThemeParams, defaultValues: PD.getDefaultValues(CrossLinkColorThemeParams), diff --git a/src/mol-model-props/pdbe/themes/structure-quality-report.ts b/src/mol-model-props/pdbe/themes/structure-quality-report.ts index 237eb3dcd..5f624e0f2 100644 --- a/src/mol-model-props/pdbe/themes/structure-quality-report.ts +++ b/src/mol-model-props/pdbe/themes/structure-quality-report.ts @@ -79,7 +79,7 @@ export function StructureQualityReportColorTheme(ctx: ThemeDataContext, props: P export const StructureQualityReportColorThemeProvider: ColorTheme.Provider<Params> = { label: 'Structure Quality Report', - category: 'PDBe', + category: ColorTheme.Category.Validation, factory: StructureQualityReportColorTheme, getParams: ctx => { const issueTypes = StructureQualityReport.getIssueTypes(ctx.structure); diff --git a/src/mol-model-props/rcsb/themes/assembly-symmetry-cluster.ts b/src/mol-model-props/rcsb/themes/assembly-symmetry-cluster.ts index 292ef5c95..5ef15770e 100644 --- a/src/mol-model-props/rcsb/themes/assembly-symmetry-cluster.ts +++ b/src/mol-model-props/rcsb/themes/assembly-symmetry-cluster.ts @@ -93,7 +93,7 @@ export function AssemblySymmetryClusterColorTheme(ctx: ThemeDataContext, props: export const AssemblySymmetryClusterColorThemeProvider: ColorTheme.Provider<AssemblySymmetryClusterColorThemeParams> = { label: 'Assembly Symmetry Cluster', - category: 'RCSB', + category: ColorTheme.Category.Symmetry, factory: AssemblySymmetryClusterColorTheme, getParams: getAssemblySymmetryClusterColorThemeParams, defaultValues: PD.getDefaultValues(AssemblySymmetryClusterColorThemeParams), diff --git a/src/mol-model-props/rcsb/themes/density-fit.ts b/src/mol-model-props/rcsb/themes/density-fit.ts index f5c726677..0661d73d2 100644 --- a/src/mol-model-props/rcsb/themes/density-fit.ts +++ b/src/mol-model-props/rcsb/themes/density-fit.ts @@ -62,7 +62,7 @@ export function DensityFitColorTheme(ctx: ThemeDataContext, props: {}): ColorThe export const DensityFitColorThemeProvider: ColorTheme.Provider<{}> = { label: 'Density Fit', - category: 'RCSB', + category: ColorTheme.Category.Validation, factory: DensityFitColorTheme, getParams: () => ({}), defaultValues: PD.getDefaultValues({}), diff --git a/src/mol-model-props/rcsb/themes/geometry-quality.ts b/src/mol-model-props/rcsb/themes/geometry-quality.ts index 4ae2c0ca0..834ccefab 100644 --- a/src/mol-model-props/rcsb/themes/geometry-quality.ts +++ b/src/mol-model-props/rcsb/themes/geometry-quality.ts @@ -102,7 +102,7 @@ export function GeometryQualityColorTheme(ctx: ThemeDataContext, props: PD.Value export const GeometryQualityColorThemeProvider: ColorTheme.Provider<GeometricQualityColorThemeParams> = { label: 'Geometry Quality', - category: 'RCSB', + category: ColorTheme.Category.Validation, factory: GeometryQualityColorTheme, getParams: getGeometricQualityColorThemeParams, defaultValues: PD.getDefaultValues(getGeometricQualityColorThemeParams({})), diff --git a/src/mol-model-props/rcsb/themes/random-coil-index.ts b/src/mol-model-props/rcsb/themes/random-coil-index.ts index 51e62a32e..1dedd686f 100644 --- a/src/mol-model-props/rcsb/themes/random-coil-index.ts +++ b/src/mol-model-props/rcsb/themes/random-coil-index.ts @@ -53,7 +53,7 @@ export function RandomCoilIndexColorTheme(ctx: ThemeDataContext, props: {}): Col export const RandomCoilIndexColorThemeProvider: ColorTheme.Provider<{}> = { label: 'Random Coil Index', - category: 'RCSB', + category: ColorTheme.Category.Validation, factory: RandomCoilIndexColorTheme, getParams: () => ({}), defaultValues: PD.getDefaultValues({}), diff --git a/src/mol-theme/color.ts b/src/mol-theme/color.ts index 6efcc7691..6829233f6 100644 --- a/src/mol-theme/color.ts +++ b/src/mol-theme/color.ts @@ -47,10 +47,12 @@ interface ColorTheme<P extends PD.Params> { } namespace ColorTheme { export const enum Category { - Basic = 'Basic', - Advanced = 'Advanced', - Computed = 'Computed', - Misc = 'Miscellaneous' + Atom = 'Atom Property', + Chain = 'Chain Property', + Residue = 'Residue Property', + Symmetry = 'Symmetry', + Validation = 'Validation', + Misc = 'Miscellaneous', } export type Props = { [k: string]: any } diff --git a/src/mol-theme/color/carbohydrate-symbol.ts b/src/mol-theme/color/carbohydrate-symbol.ts index 853e7cf9c..39d417254 100644 --- a/src/mol-theme/color/carbohydrate-symbol.ts +++ b/src/mol-theme/color/carbohydrate-symbol.ts @@ -61,8 +61,8 @@ export function CarbohydrateSymbolColorTheme(ctx: ThemeDataContext, props: PD.Va } export const CarbohydrateSymbolColorThemeProvider: ColorTheme.Provider<CarbohydrateSymbolColorThemeParams> = { - label: 'Carbohydrate Symbol', - category: ColorTheme.Category.Advanced, + label: 'Carbohydrate Symbol', + category: ColorTheme.Category.Residue, factory: CarbohydrateSymbolColorTheme, getParams: getCarbohydrateSymbolColorThemeParams, defaultValues: PD.getDefaultValues(CarbohydrateSymbolColorThemeParams), diff --git a/src/mol-theme/color/chain-id.ts b/src/mol-theme/color/chain-id.ts index d9ae75cb9..46b587c70 100644 --- a/src/mol-theme/color/chain-id.ts +++ b/src/mol-theme/color/chain-id.ts @@ -119,7 +119,7 @@ export function ChainIdColorTheme(ctx: ThemeDataContext, props: PD.Values<ChainI export const ChainIdColorThemeProvider: ColorTheme.Provider<ChainIdColorThemeParams> = { label: 'Chain Id', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Chain, factory: ChainIdColorTheme, getParams: getChainIdColorThemeParams, defaultValues: PD.getDefaultValues(ChainIdColorThemeParams), diff --git a/src/mol-theme/color/element-index.ts b/src/mol-theme/color/element-index.ts index d2e13588b..0e796512a 100644 --- a/src/mol-theme/color/element-index.ts +++ b/src/mol-theme/color/element-index.ts @@ -73,7 +73,7 @@ export function ElementIndexColorTheme(ctx: ThemeDataContext, props: PD.Values<E export const ElementIndexColorThemeProvider: ColorTheme.Provider<ElementIndexColorThemeParams> = { label: 'Element Index', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Atom, factory: ElementIndexColorTheme, getParams: getElementIndexColorThemeParams, defaultValues: PD.getDefaultValues(ElementIndexColorThemeParams), diff --git a/src/mol-theme/color/element-symbol.ts b/src/mol-theme/color/element-symbol.ts index 8c559ff64..3582d1414 100644 --- a/src/mol-theme/color/element-symbol.ts +++ b/src/mol-theme/color/element-symbol.ts @@ -69,7 +69,7 @@ export function ElementSymbolColorTheme(ctx: ThemeDataContext, props: PD.Values< export const ElementSymbolColorThemeProvider: ColorTheme.Provider<ElementSymbolColorThemeParams> = { label: 'Element Symbol', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Atom, factory: ElementSymbolColorTheme, getParams: getElementSymbolColorThemeParams, defaultValues: PD.getDefaultValues(ElementSymbolColorThemeParams), diff --git a/src/mol-theme/color/entity-source.ts b/src/mol-theme/color/entity-source.ts index e8b4e71bc..641839576 100644 --- a/src/mol-theme/color/entity-source.ts +++ b/src/mol-theme/color/entity-source.ts @@ -175,7 +175,7 @@ export function EntitySourceColorTheme(ctx: ThemeDataContext, props: PD.Values<E export const EntitySourceColorThemeProvider: ColorTheme.Provider<EntitySourceColorThemeParams> = { label: 'Entity Source', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Chain, factory: EntitySourceColorTheme, getParams: getEntitySourceColorThemeParams, defaultValues: PD.getDefaultValues(EntitySourceColorThemeParams), diff --git a/src/mol-theme/color/hydrophobicity.ts b/src/mol-theme/color/hydrophobicity.ts index e49e3f25c..6ddea14a6 100644 --- a/src/mol-theme/color/hydrophobicity.ts +++ b/src/mol-theme/color/hydrophobicity.ts @@ -94,7 +94,7 @@ export function HydrophobicityColorTheme(ctx: ThemeDataContext, props: PD.Values export const HydrophobicityColorThemeProvider: ColorTheme.Provider<HydrophobicityColorThemeParams> = { label: 'Hydrophobicity', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Residue, factory: HydrophobicityColorTheme, getParams: getHydrophobicityColorThemeParams, defaultValues: PD.getDefaultValues(HydrophobicityColorThemeParams), diff --git a/src/mol-theme/color/model-index.ts b/src/mol-theme/color/model-index.ts index f7cc54bf7..20df7e572 100644 --- a/src/mol-theme/color/model-index.ts +++ b/src/mol-theme/color/model-index.ts @@ -61,7 +61,7 @@ export function ModelIndexColorTheme(ctx: ThemeDataContext, props: PD.Values<Mod export const ModelIndexColorThemeProvider: ColorTheme.Provider<ModelIndexColorThemeParams> = { label: 'Model Index', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Chain, factory: ModelIndexColorTheme, getParams: getModelIndexColorThemeParams, defaultValues: PD.getDefaultValues(ModelIndexColorThemeParams), diff --git a/src/mol-theme/color/molecule-type.ts b/src/mol-theme/color/molecule-type.ts index 668f8ccfe..1692e6497 100644 --- a/src/mol-theme/color/molecule-type.ts +++ b/src/mol-theme/color/molecule-type.ts @@ -78,7 +78,7 @@ export function MoleculeTypeColorTheme(ctx: ThemeDataContext, props: PD.Values<M export const MoleculeTypeColorThemeProvider: ColorTheme.Provider<MoleculeTypeColorThemeParams> = { label: 'Molecule Type', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Residue, factory: MoleculeTypeColorTheme, getParams: getMoleculeTypeColorThemeParams, defaultValues: PD.getDefaultValues(MoleculeTypeColorThemeParams), diff --git a/src/mol-theme/color/occupancy.ts b/src/mol-theme/color/occupancy.ts index 7cfa1c458..47686503c 100644 --- a/src/mol-theme/color/occupancy.ts +++ b/src/mol-theme/color/occupancy.ts @@ -60,7 +60,7 @@ export function OccupancyColorTheme(ctx: ThemeDataContext, props: PD.Values<Occu export const OccupancyColorThemeProvider: ColorTheme.Provider<OccupancyColorThemeParams> = { label: 'Occupancy', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Atom, factory: OccupancyColorTheme, getParams: getOccupancyColorThemeParams, defaultValues: PD.getDefaultValues(OccupancyColorThemeParams), diff --git a/src/mol-theme/color/operator-hkl.ts b/src/mol-theme/color/operator-hkl.ts index d08c29033..b6adab5f2 100644 --- a/src/mol-theme/color/operator-hkl.ts +++ b/src/mol-theme/color/operator-hkl.ts @@ -119,7 +119,7 @@ export function OperatorHklColorTheme(ctx: ThemeDataContext, props: PD.Values<Op export const OperatorHklColorThemeProvider: ColorTheme.Provider<OperatorHklColorThemeParams> = { label: 'Operator HKL', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Symmetry, factory: OperatorHklColorTheme, getParams: getOperatorHklColorThemeParams, defaultValues: PD.getDefaultValues(OperatorHklColorThemeParams), diff --git a/src/mol-theme/color/operator-name.ts b/src/mol-theme/color/operator-name.ts index 61b4e95c4..3c4b60895 100644 --- a/src/mol-theme/color/operator-name.ts +++ b/src/mol-theme/color/operator-name.ts @@ -85,7 +85,7 @@ export function OperatorNameColorTheme(ctx: ThemeDataContext, props: PD.Values<O export const OperatorNameColorThemeProvider: ColorTheme.Provider<OperatorNameColorThemeParams> = { label: 'Operator Name', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Symmetry, factory: OperatorNameColorTheme, getParams: getOperatorNameColorThemeParams, defaultValues: PD.getDefaultValues(OperatorNameColorThemeParams), diff --git a/src/mol-theme/color/polymer-id.ts b/src/mol-theme/color/polymer-id.ts index 3e796d3d9..686497034 100644 --- a/src/mol-theme/color/polymer-id.ts +++ b/src/mol-theme/color/polymer-id.ts @@ -127,8 +127,8 @@ export function PolymerIdColorTheme(ctx: ThemeDataContext, props: PD.Values<Poly } export const PolymerIdColorThemeProvider: ColorTheme.Provider<PolymerIdColorThemeParams> = { - label: 'Polymer Id', - category: ColorTheme.Category.Basic, + label: 'Polymer Chain Id', + category: ColorTheme.Category.Chain, factory: PolymerIdColorTheme, getParams: getPolymerIdColorThemeParams, defaultValues: PD.getDefaultValues(PolymerIdColorThemeParams), diff --git a/src/mol-theme/color/polymer-index.ts b/src/mol-theme/color/polymer-index.ts index ef37ce818..6d6c86dc9 100644 --- a/src/mol-theme/color/polymer-index.ts +++ b/src/mol-theme/color/polymer-index.ts @@ -16,7 +16,7 @@ import { ColorLists } from '../../mol-util/color/lists'; const DefaultList = 'dark-2' const DefaultColor = Color(0xCCCCCC) -const Description = 'Gives every polymer a unique color based on the position (index) of the polymer in the list of polymers in the structure.' +const Description = 'Gives every polymer chain instance a unique color based on the position (index) of the polymer in the list of polymers in the structure.' export const PolymerIndexColorThemeParams = { ...getPaletteParams({ type: 'set', setList: DefaultList }), @@ -87,8 +87,8 @@ export function PolymerIndexColorTheme(ctx: ThemeDataContext, props: PD.Values<P } export const PolymerIndexColorThemeProvider: ColorTheme.Provider<PolymerIndexColorThemeParams> = { - label: 'Polymer Index', - category: ColorTheme.Category.Advanced, + label: 'Polymer Chain Instance', + category: ColorTheme.Category.Chain, factory: PolymerIndexColorTheme, getParams: getPolymerIndexColorThemeParams, defaultValues: PD.getDefaultValues(PolymerIndexColorThemeParams), diff --git a/src/mol-theme/color/residue-name.ts b/src/mol-theme/color/residue-name.ts index 72259d10f..741601e1c 100644 --- a/src/mol-theme/color/residue-name.ts +++ b/src/mol-theme/color/residue-name.ts @@ -130,7 +130,7 @@ export function ResidueNameColorTheme(ctx: ThemeDataContext, props: PD.Values<Re export const ResidueNameColorThemeProvider: ColorTheme.Provider<ResidueNameColorThemeParams> = { label: 'Residue Name', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Residue, factory: ResidueNameColorTheme, getParams: getResidueNameColorThemeParams, defaultValues: PD.getDefaultValues(ResidueNameColorThemeParams), diff --git a/src/mol-theme/color/secondary-structure.ts b/src/mol-theme/color/secondary-structure.ts index 6afa2dc1b..12eaf2eb8 100644 --- a/src/mol-theme/color/secondary-structure.ts +++ b/src/mol-theme/color/secondary-structure.ts @@ -113,7 +113,7 @@ export function SecondaryStructureColorTheme(ctx: ThemeDataContext, props: PD.Va export const SecondaryStructureColorThemeProvider: ColorTheme.Provider<SecondaryStructureColorThemeParams> = { label: 'Secondary Structure', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Residue, factory: SecondaryStructureColorTheme, getParams: getSecondaryStructureColorThemeParams, defaultValues: PD.getDefaultValues(SecondaryStructureColorThemeParams), diff --git a/src/mol-theme/color/sequence-id.ts b/src/mol-theme/color/sequence-id.ts index 90f5038ec..26881241a 100644 --- a/src/mol-theme/color/sequence-id.ts +++ b/src/mol-theme/color/sequence-id.ts @@ -101,7 +101,7 @@ export function SequenceIdColorTheme(ctx: ThemeDataContext, props: PD.Values<Seq export const SequenceIdColorThemeProvider: ColorTheme.Provider<SequenceIdColorThemeParams> = { label: 'Sequence Id', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Residue, factory: SequenceIdColorTheme, getParams: getSequenceIdColorThemeParams, defaultValues: PD.getDefaultValues(SequenceIdColorThemeParams), diff --git a/src/mol-theme/color/shape-group.ts b/src/mol-theme/color/shape-group.ts index d5b5ba87e..8a8232657 100644 --- a/src/mol-theme/color/shape-group.ts +++ b/src/mol-theme/color/shape-group.ts @@ -37,7 +37,7 @@ export function ShapeGroupColorTheme(ctx: ThemeDataContext, props: PD.Values<Sha export const ShapeGroupColorThemeProvider: ColorTheme.Provider<ShapeGroupColorThemeParams> = { label: 'Shape Group', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Misc, factory: ShapeGroupColorTheme, getParams: getShapeGroupColorThemeParams, defaultValues: PD.getDefaultValues(ShapeGroupColorThemeParams), diff --git a/src/mol-theme/color/uncertainty.ts b/src/mol-theme/color/uncertainty.ts index 7e87f0127..512dbea67 100644 --- a/src/mol-theme/color/uncertainty.ts +++ b/src/mol-theme/color/uncertainty.ts @@ -64,7 +64,7 @@ export function UncertaintyColorTheme(ctx: ThemeDataContext, props: PD.Values<Un export const UncertaintyColorThemeProvider: ColorTheme.Provider<UncertaintyColorThemeParams> = { label: 'Uncertainty/Disorder', - category: ColorTheme.Category.Advanced, + category: ColorTheme.Category.Atom, factory: UncertaintyColorTheme, getParams: getUncertaintyColorThemeParams, defaultValues: PD.getDefaultValues(UncertaintyColorThemeParams), diff --git a/src/mol-theme/color/uniform.ts b/src/mol-theme/color/uniform.ts index e018b914d..2fd017193 100644 --- a/src/mol-theme/color/uniform.ts +++ b/src/mol-theme/color/uniform.ts @@ -37,7 +37,7 @@ export function UniformColorTheme(ctx: ThemeDataContext, props: PD.Values<Unifor export const UniformColorThemeProvider: ColorTheme.Provider<UniformColorThemeParams> = { label: 'Uniform', - category: ColorTheme.Category.Basic, + category: ColorTheme.Category.Misc, factory: UniformColorTheme, getParams: getUniformColorThemeParams, defaultValues: PD.getDefaultValues(UniformColorThemeParams), diff --git a/src/mol-theme/color/unit-index.ts b/src/mol-theme/color/unit-index.ts index bcd5e7314..3cc6cdcf2 100644 --- a/src/mol-theme/color/unit-index.ts +++ b/src/mol-theme/color/unit-index.ts @@ -16,7 +16,7 @@ import { ColorLists } from '../../mol-util/color/lists'; const DefaultList = 'dark-2' const DefaultColor = Color(0xCCCCCC) -const Description = 'Gives every unit (single chain or collection of single elements) a unique color based on the position (index) of the unit in the list of units in the structure.' +const Description = 'Gives every chain instance (single chain or collection of single elements) a unique color based on the position (index) of the chain in the list of chains in the structure.' export const UnitIndexColorThemeParams = { ...getPaletteParams({ type: 'set', setList: DefaultList }), @@ -72,8 +72,8 @@ export function UnitIndexColorTheme(ctx: ThemeDataContext, props: PD.Values<Unit } export const UnitIndexColorThemeProvider: ColorTheme.Provider<UnitIndexColorThemeParams> = { - label: 'Unit Index', - category: ColorTheme.Category.Advanced, + label: 'Chain Instance', + category: ColorTheme.Category.Chain, factory: UnitIndexColorTheme, getParams: getUnitIndexColorThemeParams, defaultValues: PD.getDefaultValues(UnitIndexColorThemeParams), -- GitLab