Crate cotati

Source
Expand description

cotati is a general-purpose vector drawing interface that does not restrict binding to a back-end renderer.

Modules§

combinator

Structs§

Length
A length is a distance measurement, given as a number along with a unit.
Point
A 2d coordinate point.
Rgba
A color structure repesents as RGBA, the storage value is normalized.

Enums§

Angle
Angles are specified in one of two ways depending upon whether they are used in CSS property syntax or SVG presentation attribute syntax:
Error
Error variant used by cotati.
PreserveAspectRatio
In some cases, typically when using the ‘viewBox’ attribute, i t is desirable that the graphics stretch to fit non-uniformly to take up the entire viewport. In other cases, it is desirable that uniform scaling be used for the purposes of preserving the aspect ratio of the graphics.
Recognized
Recognized color keyword names, compliant with svg 1.1.
Transform
A memory represents of svg element’s transform attribute.
Unit
The unit identifier.

Traits§

Draw
A draw element must implement this trait.
Renderer
A rendering target must implement this trait.

Type Aliases§

Result
Result type used by this cotati.