Expand description
§Rendable Trait Module
This module defines the Rendable trait, which provides a unified interface for types that can be rendered as SVG elements with configurable view parameters.
Types implementing Rendable can be composed into SVG documents, have their viewports adjusted, and be rendered to SVG output. The trait supports both required and optional methods, allowing for flexible and extensible rendering logic.
§Features
- Abstracts rendering logic for SVG-compatible types
- Supports view parameter configuration and adjustment
- Enables composition of complex SVG documents from multiple renderable components
- Provides optional methods for fine-grained control over view box position and size
Traits§
- Rendable
- A trait for types that can be rendered as SVG elements with configurable view parameters.