Skip to content

Commit

Permalink
Cube: use $mpds_visavis_elements_list.prop_names()
Browse files Browse the repository at this point in the history
fix #23
  • Loading branch information
stan-donarise committed May 30, 2024
1 parent 866fd82 commit f63b45f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
16 changes: 3 additions & 13 deletions plot/cube/cube.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,14 @@ $mpds_visavis_plot_cube $mol_view
title \X sort by
Content <= X_order_select $mol_select
value? <=> x_sort?
dictionary <= order_dict *
nump \Periodic number
num \Atomic number
size \Atomic size
rea \Atomic reactivity
rpp \Pseudopotential radii
rion \Ionic radii
rcov \Covalent radii
rmet \Metallic radii
tmelt \Melting temperature
eneg \Electronegativity
dictionary <= sort_dict *
<= Y_order $mol_labeler
title \Y sort by
Content <= Y_order_select $mol_select
value? <=> y_sort?
dictionary <= order_dict
dictionary <= sort_dict
<= Z_order $mol_labeler
title \Z sort by
Content <= Z_order_select $mol_select
value? <=> z_sort?
dictionary <= order_dict
dictionary <= sort_dict
5 changes: 5 additions & 0 deletions plot/cube/cube.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ namespace $.$$ {
return this.value_list().slice(-1)[0]
}

@ $mol_mem
sort_dict() {
return $mpds_visavis_elements_list.prop_names()
}

@ $mol_mem_key
order(order: Prop_name) {
return d3.range(95).sort( (a: any, b: any) =>
Expand Down

0 comments on commit f63b45f

Please sign in to comment.