Formatter instead of debug
This commit is contained in:
@ -2277,15 +2277,19 @@ fn get_layout(
|
|||||||
Default::default(),
|
Default::default(),
|
||||||
),
|
),
|
||||||
| BasicValue::DisplayNode { value } =>
|
| BasicValue::DisplayNode { value } =>
|
||||||
text.append(&format!("{value:?}"), 0., TextFormat {
|
text.append(&format!("{}", Formatter::from(translator, &value)),
|
||||||
..Default::default()
|
0., TextFormat {
|
||||||
}),
|
..Default::default()
|
||||||
|
}),
|
||||||
| BasicValue::DisplayEdge { value } =>
|
| BasicValue::DisplayEdge { value } =>
|
||||||
text.append(&format!("{value:?}"), 0., Default::default()),
|
text.append(&format!("{}", Formatter::from(translator, &value)),
|
||||||
|
0., Default::default()),
|
||||||
| BasicValue::ColorNode { value } =>
|
| BasicValue::ColorNode { value } =>
|
||||||
text.append(&format!("{value:?}"), 0., Default::default()),
|
text.append(&format!("{}", Formatter::from(translator, &value)),
|
||||||
|
0., Default::default()),
|
||||||
| BasicValue::ColorEdge { value } =>
|
| BasicValue::ColorEdge { value } =>
|
||||||
text.append(&format!("{value:?}"), 0., Default::default()),
|
text.append(&format!("{}", Formatter::from(translator, &value)),
|
||||||
|
0., Default::default()),
|
||||||
| BasicValue::Environment { value } => text.append(
|
| BasicValue::Environment { value } => text.append(
|
||||||
&format!("{}", Formatter::from(translator, &value)),
|
&format!("{}", Formatter::from(translator, &value)),
|
||||||
0.,
|
0.,
|
||||||
|
|||||||
Reference in New Issue
Block a user