pub struct HasGeometryTrait {
pub fills: Vec<Paint>,
pub styles: Option<HashMap<String, String>>,
pub strokes: Option<Vec<Paint>>,
pub stroke_weight: Option<f64>,
pub stroke_align: Option<StrokeAlign>,
pub stroke_join: Option<StrokeJoin>,
pub stroke_dashes: Option<Vec<f64>>,
pub fill_geometry: Option<Vec<Path>>,
pub stroke_geometry: Option<Vec<Path>>,
pub stroke_cap: Option<StrokeCap>,
pub stroke_miter_angle: Option<f64>,
}
Fields§
§fills: Vec<Paint>
An array of fill paints applied to the node.
styles: Option<HashMap<String, String>>
A mapping of a StyleType to style ID (see Style) of styles present on this node. The style ID can be used to look up more information about the style in the top-level styles field.
strokes: Option<Vec<Paint>>
An array of stroke paints applied to the node.
stroke_weight: Option<f64>
The weight of strokes on the node.
stroke_align: Option<StrokeAlign>
Position of stroke relative to vector outline, as a string enum - INSIDE
: stroke drawn inside the shape boundary - OUTSIDE
: stroke drawn outside the shape boundary - CENTER
: stroke drawn centered along the shape boundary
stroke_join: Option<StrokeJoin>
A string enum with value of "MITER", "BEVEL", or "ROUND", describing how corners in vector paths are rendered.
stroke_dashes: Option<Vec<f64>>
An array of floating point numbers describing the pattern of dash length and gap lengths that the vector stroke will use when drawn. For example a value of [1, 2] indicates that the stroke will be drawn with a dash of length 1 followed by a gap of length 2, repeated.
fill_geometry: Option<Vec<Path>>
Only specified if parameter geometry=paths
is used. An array of paths representing the object fill.
stroke_geometry: Option<Vec<Path>>
Only specified if parameter geometry=paths
is used. An array of paths representing the object stroke.
stroke_cap: Option<StrokeCap>
A string enum describing the end caps of vector paths.
stroke_miter_angle: Option<f64>
Only valid if strokeJoin
is "MITER". The corner angle, in degrees, below which strokeJoin
will be set to "BEVEL" to avoid super sharp corners. By default this is 28.96 degrees.
Implementations§
Source§impl HasGeometryTrait
impl HasGeometryTrait
pub fn new(fills: Vec<Paint>) -> HasGeometryTrait
Trait Implementations§
Source§impl Clone for HasGeometryTrait
impl Clone for HasGeometryTrait
Source§fn clone(&self) -> HasGeometryTrait
fn clone(&self) -> HasGeometryTrait
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more