Browse Source

tweaked elementInstances granularity label

Alexander Rose 5 năm trước cách đây
mục cha
commit
5895df0499
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/mol-model/loci.ts

+ 3 - 2
src/mol-model/loci.ts

@@ -255,11 +255,12 @@ namespace Loci {
     };
     export type Granularity = keyof typeof Granularity
     export const GranularityOptions = ParamDefinition.objectToOptions(Granularity, k => {
-        if (k.indexOf('Instances') > 0) return [stringToWords(k), 'With Symmetry'];
         switch (k) {
             case 'element': return'Atom/Coarse Element';
+            case 'elementInstances': return ['Atom/Coarse Element Instances', 'With Symmetry'];
             case 'structure': return'Structure/Shape';
-            default: return stringToWords(k);
+            default: return k.indexOf('Instances')
+                ? [stringToWords(k), 'With Symmetry'] : stringToWords(k);
         }
     });