Skip to content

Commit

Permalink
Handle tag attrs as <mpds-cifplayer-player externals={"skip_panel":tr…
Browse files Browse the repository at this point in the history
…ue}></mpds-cifplayer-player>
  • Loading branch information
blokhin committed Mar 28, 2024
1 parent 0364066 commit a2eacb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion player/player.view.tree
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$mpds_cifplayer_player $mol_view
data? null
externals? null
atom_radius_scale 0.6
zoom_scale_step 0.3
vibrate? null
Expand Down Expand Up @@ -45,7 +46,7 @@ $mpds_cifplayer_player $mol_view
click? <=> toogle_all_symmetry? null
<= Sym_list $mol_scroll
sub /
<= Sym_checks $mol_list
<= Sym_checks $mol_list
sub <= sym_checks /
<= Sym_check*0 $mol_check_box
title <= sym_name* \
Expand Down
3 changes: 3 additions & 0 deletions player/player.view.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ namespace $.$$ {

@ $mol_mem
left_panel(): readonly any[] {

if (this.externals()?.skip_panel) return []

try {
this.structure_3d_data()
} catch (error) {
Expand Down

0 comments on commit a2eacb9

Please sign in to comment.