Closed nacl42 closed 6 days ago
SettingsStyle
has with_labels_always_method
which you can use to set labels_always
property. It works the same as setters for other Settings...
structs.
You can check the usage of the with_labels_always_method
in the interactive
example source code.
@nacl42 please comment if this is solved?
Closing it as everything seems to work...
Refers to: egui_graphs version: 0.21.1
I tried to implement my own NodeShape, using the given DefaultNodeShape as starting point.
The following line will not work in a new NodeShape object outside of the crate:
I suggest to change the visibility of labels_always from
pub(crate)
topub
or alternatively add a getter method such asfn labels_always(&self) -> bool
to SettingsStyle.Everything else worked for my own custom NodeShape.