pub enum Annotation {
Distance {
view: DrawnView,
from: Target,
to: Target,
along: Along,
label: [f64; 2],
},
Radius {
view: DrawnView,
edge: String,
diameter: bool,
label: [f64; 2],
},
Angle {
view: DrawnView,
a: String,
b: String,
label: [f64; 2],
},
Note {
text: String,
leader: Option<Leader>,
label: [f64; 2],
},
CenterMark {
view: DrawnView,
edge: String,
},
}Expand description
A dimension, a note or a centre mark added on the sheet, in one of its
views. label is where its value or text goes: on the paper, in
millimetres, from the point it is placed from — the middle between a
distance’s points, a circle’s centre, an angle’s vertex, a leader’s
target — or, for a note without a leader, from the sheet’s corner.
Variants§
Distance
The distance between two points as view shows them — along the
line between them, or horizontally or vertically on the paper.
Radius
The radius of a circular edge view sees round — or, diameter,
its diameter.
Angle
The angle between two straight edges, as view shows them: the one
of the four between their lines that label is in.
Note
Text, with a leader to a point of a view if it has one.
CenterMark
Two centre lines across a circular edge view sees round.
Implementations§
Source§impl Annotation
impl Annotation
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more