Browse Source

tweaked StructureRepresentationInteraction visual

make look less like ball+stick default
Alexander Rose 5 years ago
parent
commit
3ddf5f4bec

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

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