| import { TreeNodeType } from "@/UI/Navigation/TreeView/TreeInterfaces"; |
| import { ISelAndStyle } from "./SelAndStyleInterfaces"; |
| import { colorDefinitionNameToScheme } from "./Colors/ColorSchemeDefinitions"; |
|
|
| export const unbondedAtomsStyle: ISelAndStyle = { |
| selection: { |
| bonds: 0, |
| }, |
| sphere: { |
| radius: 0.5, |
| }, |
| }; |
|
|
| const _sphereStyle: ISelAndStyle = { |
| |
| |
| |
| selection: {}, |
| sphere: {}, |
| }; |
|
|
| const _stickStyle: ISelAndStyle = { |
| |
| |
| |
| selection: {}, |
| stick: { colorscheme: "default" }, |
| }; |
|
|
| export const defaultProteinStyle: ISelAndStyle[] = [ |
| { |
| |
| |
| |
| selection: {}, |
|
|
| |
| |
| cartoon: colorDefinitionNameToScheme("Spectrum", ""), |
| }, |
| ]; |
|
|
| export const defaultNucleicStyle: ISelAndStyle[] = [_stickStyle]; |
|
|
| export const defaultLigandsStyle: ISelAndStyle[] = [_stickStyle]; |
|
|
| export const defaultMetalsStyle: ISelAndStyle[] = [_sphereStyle]; |
|
|
| export const defaultLipidStyle: ISelAndStyle[] = [_stickStyle]; |
|
|
| export const defaultIonsStyle: ISelAndStyle[] = [_sphereStyle]; |
|
|
| export const defaultSolventStyle: ISelAndStyle[] = [_stickStyle]; |
|
|
| |
|
|
| |
| const regionStyle: ISelAndStyle[] = []; |
|
|
| |
| |
| export const defaultStyles: { [key in TreeNodeType]: ISelAndStyle[] } = { |
| [TreeNodeType.Protein]: defaultProteinStyle, |
| [TreeNodeType.Nucleic]: defaultNucleicStyle, |
| [TreeNodeType.Compound]: defaultLigandsStyle, |
| [TreeNodeType.Metal]: defaultMetalsStyle, |
| [TreeNodeType.Lipid]: defaultLipidStyle, |
| [TreeNodeType.Ions]: defaultIonsStyle, |
| [TreeNodeType.Solvent]: defaultSolventStyle, |
| [TreeNodeType.Region]: regionStyle, |
| [TreeNodeType.Other]: [], |
| }; |
|
|