瀏覽代碼

tweaked StructureRepresentationInteraction visual

make look less like ball+stick default
Alexander Rose 5 年之前
父節點
當前提交
3ddf5f4bec
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/mol-plugin/behavior/dynamic/selection/structure-representation-interaction.ts

+ 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 } )]
         });
     }