API reference
The momapy public API is organized into the following subpackages.
Core library
- Core — base classes for
Map,Model,Layout,LayoutElement,Node,Arc - Builder — builder pattern for modifying frozen dataclasses
- Drawing — drawing primitives (
Path,Rectangle,Ellipse,Text,Group) - Coloring — colors and named color constants
- Geometry —
Point,Bbox,Vector, path operations - Positioning — layout positioning helpers
- Styling — CSS-like stylesheet parsing and application
- I/O — reader/writer registries and entry points
Rendering
- Core — renderer registry and render functions
- Skia — Skia backend
- SVG-native — native SVG backend
SBGN
- SBGN — base SBGN classes
- PD — Process Description glyphs
- AF — Activity Flow glyphs
- SBGN-ML I/O — SBGN-ML reader/writer
CellDesigner
- CellDesigner — CellDesigner model and layout
- CellDesigner I/O — CellDesigner reader/writer