Browse Source

tweaked ball&stick default size

Alexander Rose 5 years ago
parent
commit
0b9ecb76b9

+ 2 - 2
src/mol-plugin/behavior/dynamic/selection/structure-representation-interaction.ts

@@ -48,7 +48,7 @@ export class StructureRepresentationInteractionBehavior extends PluginBehavior.W
     private createResVisualParams(s: Structure) {
         return StructureRepresentation3DHelpers.createParams(this.plugin, s, {
             repr: BuiltInStructureRepresentations['ball-and-stick'],
-            size: [BuiltInSizeThemes.uniform, () => ({ value: 0.85 } )]
+            size: BuiltInSizeThemes.physical
         });
     }
 
@@ -56,7 +56,7 @@ export class StructureRepresentationInteractionBehavior extends PluginBehavior.W
         return StructureRepresentation3DHelpers.createParams(this.plugin, s, {
             repr: BuiltInStructureRepresentations['ball-and-stick'],
             color: [BuiltInColorThemes['element-symbol'], () => ({ saturation: -3, lightness: 0.6 })],
-            size: [BuiltInSizeThemes.uniform, () => ({ value: 0.33 } )]
+            size: [BuiltInSizeThemes.uniform, () => ({ value: 0.66 } )]
         });
     }
 

+ 1 - 1
src/mol-repr/structure/representation/ball-and-stick.ts

@@ -29,7 +29,7 @@ export const BallAndStickParams = {
     ...IntraUnitLinkParams,
     ...InterUnitLinkParams,
     unitKinds: PD.MultiSelect<UnitKind>(['atomic'], UnitKindOptions),
-    sizeFactor: PD.Numeric(0.2, { min: 0.01, max: 10, step: 0.01 }),
+    sizeFactor: PD.Numeric(0.15, { min: 0.01, max: 10, step: 0.01 }),
     sizeAspectRatio: PD.Numeric(2/3, { min: 0.01, max: 3, step: 0.01 }),
     visuals: PD.MultiSelect<BallAndStickVisualName>(['element-sphere', 'intra-link', 'inter-link'], BallAndStickVisualOptions),
 }