diff --git a/src/mol-repr/representation.ts b/src/mol-repr/representation.ts index ef534488d887eace73375402f9c1dacddfc631fd..4718fc6662f38afc276bd10aecfaaf80c696a2c7 100644 --- a/src/mol-repr/representation.ts +++ b/src/mol-repr/representation.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info. + * Copyright (c) 2018-2023 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ @@ -135,6 +135,12 @@ export class RepresentationRegistry<D, S extends Representation.State> { getApplicableTypes(data: D) { return getTypes(this.getApplicableList(data)); } + + clear() { + this._list.length = 0; + this._map.clear(); + this._name.clear(); + } } // diff --git a/src/mol-repr/structure/registry.ts b/src/mol-repr/structure/registry.ts index 8b5c5a5b5a451894a79339e952ccd3b82ca66945..348b19b5a534eadb0ead6cf2571a909ac8cdaafe 100644 --- a/src/mol-repr/structure/registry.ts +++ b/src/mol-repr/structure/registry.ts @@ -41,7 +41,7 @@ export namespace StructureRepresentationRegistry { 'carbohydrate': CarbohydrateRepresentationProvider, 'ellipsoid': EllipsoidRepresentationProvider, 'gaussian-surface': GaussianSurfaceRepresentationProvider, - 'gaussian-volume': GaussianVolumeRepresentationProvider, // TODO disabled for now, needs more work + 'gaussian-volume': GaussianVolumeRepresentationProvider, 'label': LabelRepresentationProvider, 'line': LineRepresentationProvider, 'molecular-surface': MolecularSurfaceRepresentationProvider, diff --git a/src/mol-theme/theme.ts b/src/mol-theme/theme.ts index 1ba9a7e3f07c8b37c69963aa047a387bc0099be6..84aac3d8f3a94f8897313ec885c0c9f462140412 100644 --- a/src/mol-theme/theme.ts +++ b/src/mol-theme/theme.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info. + * Copyright (c) 2018-2023 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ @@ -156,4 +156,10 @@ export class ThemeRegistry<T extends ColorTheme<any, any> | SizeTheme<any>> { getApplicableTypes(ctx: ThemeDataContext) { return getTypes(this.getApplicableList(ctx)); } + + clear() { + this._list.length = 0; + this._map.clear(); + this._name.clear(); + } } \ No newline at end of file