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 {
}
return renderObjects
},
get props() {
const props = {}
reprList.forEach(r => Object.assign(props, r.props))
return props as P
},
get props() { return currentProps },
get params() { return currentParams },
createOrUpdate: (props: Partial<P> = {}, data?: D) => {
if (data && data !== currentData) {
......
......@@ -29,8 +29,6 @@ import { TableLegend } from 'mol-util/color/tables';
export type LocationColor = (location: Location, isSecondary: boolean) => Color
export type ColorThemeProps = { [k: string]: any }
export { ColorTheme }
interface ColorTheme<P extends PD.Params> {
readonly factory: ColorTheme.Factory<P>
......@@ -75,4 +73,5 @@ export const BuiltInColorThemes = {
'shape-group': ShapeGroupColorThemeProvider,
'unit-index': UnitIndexColorThemeProvider,
'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 = {
'physical': PhysicalSizeThemeProvider,
'shape-group': ShapeGroupSizeThemeProvider,
'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.
Finish editing this message first!
Please register or to comment