Skip to content
Snippets Groups Projects
Commit 171cda89 authored by Alexander Rose's avatar Alexander Rose
Browse files

cleanup

parent c9518d43
No related branches found
No related tags found
No related merge requests found
...@@ -188,11 +188,7 @@ namespace Representation { ...@@ -188,11 +188,7 @@ namespace Representation {
} }
return renderObjects return renderObjects
}, },
get props() { get props() { return currentProps },
const props = {}
reprList.forEach(r => Object.assign(props, r.props))
return props as P
},
get params() { return currentParams }, get params() { return currentParams },
createOrUpdate: (props: Partial<P> = {}, data?: D) => { createOrUpdate: (props: Partial<P> = {}, data?: D) => {
if (data && data !== currentData) { if (data && data !== currentData) {
......
...@@ -29,8 +29,6 @@ import { TableLegend } from 'mol-util/color/tables'; ...@@ -29,8 +29,6 @@ import { TableLegend } from 'mol-util/color/tables';
export type LocationColor = (location: Location, isSecondary: boolean) => Color export type LocationColor = (location: Location, isSecondary: boolean) => Color
export type ColorThemeProps = { [k: string]: any }
export { ColorTheme } export { ColorTheme }
interface ColorTheme<P extends PD.Params> { interface ColorTheme<P extends PD.Params> {
readonly factory: ColorTheme.Factory<P> readonly factory: ColorTheme.Factory<P>
...@@ -75,4 +73,5 @@ export const BuiltInColorThemes = { ...@@ -75,4 +73,5 @@ export const BuiltInColorThemes = {
'shape-group': ShapeGroupColorThemeProvider, 'shape-group': ShapeGroupColorThemeProvider,
'unit-index': UnitIndexColorThemeProvider, 'unit-index': UnitIndexColorThemeProvider,
'uniform': UniformColorThemeProvider, 'uniform': UniformColorThemeProvider,
} }
\ No newline at end of file export type BuiltInColorThemeName = keyof typeof BuiltInColorThemes
\ No newline at end of file
...@@ -43,4 +43,5 @@ export const BuiltInSizeThemes = { ...@@ -43,4 +43,5 @@ export const BuiltInSizeThemes = {
'physical': PhysicalSizeThemeProvider, 'physical': PhysicalSizeThemeProvider,
'shape-group': ShapeGroupSizeThemeProvider, 'shape-group': ShapeGroupSizeThemeProvider,
'uniform': UniformSizeThemeProvider 'uniform': UniformSizeThemeProvider
} }
\ No newline at end of file export type BuiltInSizeThemeName = keyof typeof BuiltInSizeThemes
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment