Move nodeClass callback so that it has awareness of label font-size and presence.