HydroSysPotsdam / Forester

Interactive and web-based visualization of decision trees.
GNU General Public License v3.0
4 stars 0 forks source link

Legend update always checks all elements #26

Closed david-strahl closed 1 year ago

david-strahl commented 1 year ago

The Legend update function always checks all DOM elements for the colorcoded tag. To color just one element is thus very expensive.

Introduce a function colorize that just colors the element that is passed.

david-strahl commented 1 year ago

Done! Legend.colorize(selector) now allows passing arbitrary CSS selection strings or individual elements.