We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d54ca2 commit 8e0239eCopy full SHA for 8e0239e
crates/notation_bevy/src/chord/chord_interval.rs
@@ -32,7 +32,11 @@ impl ChordNoteExtra for ChordIntervalExtra {
32
* PI
33
/ 180.0;
34
let angle = PI * 2.0 * self.index as f32 / self.total as f32 + angle_offset;
35
- let factor = theme.sizes.chord.diagram_interval_offset_factor;
+ let factor = if self.total == 1 {
36
+ 0.0
37
+ } else {
38
+ theme.sizes.chord.diagram_interval_offset_factor
39
+ };
40
Vec2::new(
41
self.diagram_radius * factor * angle.cos(),
42
self.diagram_radius * factor * angle.sin(),
0 commit comments