diff --git a/src/mol-repr/representation.ts b/src/mol-repr/representation.ts index b26d4e412ca0a925abf8754eda9edbc223832a10..8a33749569e89fec698941b186b908411f341edb 100644 --- a/src/mol-repr/representation.ts +++ b/src/mol-repr/representation.ts @@ -40,6 +40,8 @@ export interface RepresentationProvider<D, P extends PD.Params> { readonly factory: RepresentationFactory<D, P> readonly getParams: RepresentationParamsGetter<D, P> readonly defaultValues: PD.Values<P> + readonly defaultColorTheme: string + readonly defaultSizeTheme: string } export type AnyRepresentationProvider = RepresentationProvider<any, {}> diff --git a/src/mol-repr/structure/representation/ball-and-stick.ts b/src/mol-repr/structure/representation/ball-and-stick.ts index 3fcb185079b9099965a8eb1138bbde590781552f..be1559e103775e99f44074a6cce91dfa045f9d39 100644 --- a/src/mol-repr/structure/representation/ball-and-stick.ts +++ b/src/mol-repr/structure/representation/ball-and-stick.ts @@ -48,5 +48,7 @@ export const BallAndStickRepresentationProvider: StructureRepresentationProvider description: 'Displays atoms as spheres and bonds as cylinders.', factory: BallAndStickRepresentation, getParams: getBallAndStickParams, - defaultValues: PD.getDefaultValues(BallAndStickParams) + defaultValues: PD.getDefaultValues(BallAndStickParams), + defaultColorTheme: 'element-symbol', + defaultSizeTheme: 'uniform' } \ No newline at end of file diff --git a/src/mol-repr/structure/representation/carbohydrate.ts b/src/mol-repr/structure/representation/carbohydrate.ts index 2aa06816317593e32be5cbe96affc16facf12c47..a71144a064cea93fddf73db62966e0d252821844 100644 --- a/src/mol-repr/structure/representation/carbohydrate.ts +++ b/src/mol-repr/structure/representation/carbohydrate.ts @@ -43,5 +43,7 @@ export const CarbohydrateRepresentationProvider: StructureRepresentationProvider description: 'Displays carbohydrate symbols (3D SNFG).', factory: CarbohydrateRepresentation, getParams: getCarbohydrateParams, - defaultValues: PD.getDefaultValues(CarbohydrateParams) + defaultValues: PD.getDefaultValues(CarbohydrateParams), + defaultColorTheme: 'carbohydrate-symbol', + defaultSizeTheme: 'uniform' } \ No newline at end of file diff --git a/src/mol-repr/structure/representation/cartoon.ts b/src/mol-repr/structure/representation/cartoon.ts index f6fbff786bb2110467c35605d73cee718c764c58..ff3859fc652322b95270b3676eab2d5c716c5380 100644 --- a/src/mol-repr/structure/representation/cartoon.ts +++ b/src/mol-repr/structure/representation/cartoon.ts @@ -47,5 +47,7 @@ export const CartoonRepresentationProvider: StructureRepresentationProvider<Cart description: 'Displays a ribbon smoothly following the trace atoms of polymers.', factory: CartoonRepresentation, getParams: getCartoonParams, - defaultValues: PD.getDefaultValues(CartoonParams) + defaultValues: PD.getDefaultValues(CartoonParams), + defaultColorTheme: 'polymer-id', + defaultSizeTheme: 'uniform' } \ No newline at end of file diff --git a/src/mol-repr/structure/representation/molecular-surface.ts b/src/mol-repr/structure/representation/molecular-surface.ts index 4181217d34234849783d03a6351ad2a59a01de0a..6f35710d5eab50d6b2c8d5b8bc7e2e34d9c420a4 100644 --- a/src/mol-repr/structure/representation/molecular-surface.ts +++ b/src/mol-repr/structure/representation/molecular-surface.ts @@ -43,5 +43,7 @@ export const MolecularSurfaceRepresentationProvider: StructureRepresentationProv description: 'Displays a gaussian molecular surface.', factory: MolecularSurfaceRepresentation, getParams: getMolecularSurfaceParams, - defaultValues: PD.getDefaultValues(MolecularSurfaceParams) + defaultValues: PD.getDefaultValues(MolecularSurfaceParams), + defaultColorTheme: 'polymer-id', + defaultSizeTheme: 'uniform' } \ No newline at end of file diff --git a/src/mol-repr/volume/direct-volume.ts b/src/mol-repr/volume/direct-volume.ts index 306f7cf466fea35a9d919e6d95dff8e1d0c64e0f..3a701a0121942fe27addcb9f77abc6c2e355ed83 100644 --- a/src/mol-repr/volume/direct-volume.ts +++ b/src/mol-repr/volume/direct-volume.ts @@ -192,5 +192,7 @@ export const DirectVolumeRepresentationProvider: VolumeRepresentationProvider<Di description: 'Direct volume rendering of volumetric data.', factory: DirectVolumeRepresentation, getParams: getDirectVolumeParams, - defaultValues: PD.getDefaultValues(DirectVolumeParams) + defaultValues: PD.getDefaultValues(DirectVolumeParams), + defaultColorTheme: 'uniform', + defaultSizeTheme: 'uniform' } \ No newline at end of file diff --git a/src/mol-repr/volume/isosurface-mesh.ts b/src/mol-repr/volume/isosurface-mesh.ts index 135f5d291cfc5c74363a434b255c83d4d2dc86eb..89017927ca2156ee1c7148861b01e20b38398daf 100644 --- a/src/mol-repr/volume/isosurface-mesh.ts +++ b/src/mol-repr/volume/isosurface-mesh.ts @@ -77,5 +77,7 @@ export const IsosurfaceRepresentationProvider: VolumeRepresentationProvider<Isos description: 'Displays an isosurface of volumetric data.', factory: IsosurfaceRepresentation, getParams: getIsosurfaceParams, - defaultValues: PD.getDefaultValues(IsosurfaceParams) + defaultValues: PD.getDefaultValues(IsosurfaceParams), + defaultColorTheme: 'uniform', + defaultSizeTheme: 'uniform' } \ No newline at end of file