Skip to main content

Module shape

Module shape 

Source
Expand description

Logical shapes and styled geometry.

Structs§

Arc
An open circular arc; fill closes its chord, stroke keeps open ends.
Arrow
A single-outline arrow, with independent shaft and head geometry.
Circle
A circular contour, using bounded cubic arc approximation.
Ellipse
An axis-aligned elliptical contour.
FunctionGraph
A deterministically sampled function/parametric curve with finite output. Callbacks must be pure; their panics propagate like other user callbacks.
Line
An open line segment with f64 endpoints.
Polygon
A closed bounded polygon; self-intersections use the fill rule.
Polyline
An open bounded sequence of line segments.
RegularPolygon
A regular polygon with its first vertex above the center.
Ring
A annulus or closed annular sector with opposite-winding inner contour.
RoundedRect
A rectangle with uniformly rounded, clamped corner radii.
Spline
A cardinal Catmull-Rom interpolating spline with clamped endpoint neighbors.
Star
A closed star alternating outer and inner radii.
Styled
geometry with optional fill/stroke paint and an explicit fill rule.

Enums§

ArrowHead
arrow-head geometry; Vee is an open strokable head.

Traits§

Shape
Logical geometry independent of paint and node placement.