Skip to content

Commit bc0ac37

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix: adjust ball+stick parameters using aspectRatio and radiusScale
1 parent 565b1a3 commit bc0ac37

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/ProteinViewer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,10 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
24662466
if (style === 'licorice') {
24672467
chainParams.scale = 2.0;
24682468
} else if (style === 'ball+stick') {
2469-
chainParams.scale = 0.3;
2469+
chainParams.aspectRatio = 2.0;
2470+
chainParams.radiusScale = 2.0;
2471+
// Force smaller scale if defaulting to large VDW
2472+
chainParams.scale = 1.0;
24702473
}
24712474

24722475
component.addRepresentation(style, chainParams);

0 commit comments

Comments
 (0)