Sebastian Bittrich 1 年間 前
コミット
964f045e56

+ 2 - 2
src/mol-model-formats/structure/mmcif.ts

@@ -119,8 +119,8 @@ namespace CCDFormat {
         frame: CifFrame
     }
     export enum CoordinateType {
-        Ideal = 'Ideal',
-        Model = 'Model'
+        Ideal = 'ideal',
+        Model = 'model'
     }
     export function is(x?: ModelFormat): x is CCDFormat {
         return x?.kind === 'CCD';

+ 2 - 1
src/mol-plugin-state/builder/structure/representation-preset.ts

@@ -25,6 +25,7 @@ import { StructConn } from '../../../mol-model-formats/structure/property/bonds/
 import { StructureRepresentationRegistry } from '../../../mol-repr/structure/registry';
 import { assertUnreachable } from '../../../mol-util/type-helpers';
 import { CCDFormat } from '../../../mol-model-formats/structure/mmcif';
+import { capitalize } from '../../../mol-util/string';
 
 export interface StructureRepresentationPresetProvider<P = any, S extends _Result = _Result> extends PresetProvider<PluginStateObject.Molecule.Structure, P, S> { }
 export function StructureRepresentationPresetProvider<P, S extends _Result>(repr: StructureRepresentationPresetProvider<P, S>) { return repr; }
@@ -450,7 +451,7 @@ const chemicalComponent = StructureRepresentationPresetProvider({
 
         const { coordinateType, isHidden } = params;
         const components = {
-            [coordinateType]: await presetStaticComponent(plugin, structureCell, 'all', { label: coordinateType, tags: [coordinateType] })
+            [coordinateType]: await presetStaticComponent(plugin, structureCell, 'all', { label: capitalize(coordinateType), tags: [coordinateType] })
         };
 
         const structure = structureCell.obj!.data;