Prechádzať zdrojové kódy

mol-plugin: remove passRepresentation from Highlight command

David Sehnal 5 rokov pred
rodič
commit
baa80d08dd

+ 1 - 1
src/mol-plugin-ui/state/tree.tsx

@@ -193,7 +193,7 @@ class StateTreeNodeLabel extends PluginUIComponent<
 
     highlight = (e: React.MouseEvent<HTMLElement>) => {
         e.preventDefault();
-        PluginCommands.State.Highlight.dispatch(this.plugin, { state: this.props.cell.parent, ref: this.ref, passRepresentation: true });
+        PluginCommands.State.Highlight.dispatch(this.plugin, { state: this.props.cell.parent, ref: this.ref });
         e.currentTarget.blur();
     }
 

+ 1 - 1
src/mol-plugin/command.ts

@@ -26,7 +26,7 @@ export const PluginCommands = {
 
         ToggleExpanded: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
         ToggleVisibility: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
-        Highlight: PluginCommand<{ state: State, ref: StateTransform.Ref, passRepresentation?: boolean }>(),
+        Highlight: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
         ClearHighlight: PluginCommand<{ state: State, ref: StateTransform.Ref }>(),
 
         Snapshots: {