MCPcopy Create free account
hub / github.com/cpmech/plotpy / options_arrow

Method options_arrow

src/canvas.rs:1104–1113  ·  view source on GitHub ↗

Returns options for arrows

(&self)

Source from the content-addressed store, hash-verified

1102
1103 /// Returns options for arrows
1104 fn options_arrow(&self) -> String {
1105 let mut opt = String::new();
1106 if self.arrow_scale > 0.0 {
1107 write!(&mut opt, ",mutation_scale={}", self.arrow_scale).unwrap();
1108 }
1109 if self.arrow_style != "" {
1110 write!(&mut opt, ",arrowstyle='{}'", self.arrow_style).unwrap();
1111 }
1112 opt
1113 }
1114
1115 /// Returns options for text
1116 fn options_text(&self) -> String {

Callers 2

draw_arrowMethod · 0.80
options_arrow_worksFunction · 0.80

Calls

no outgoing calls

Tested by 1

options_arrow_worksFunction · 0.64