Skip to content

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
  • GeometryPoint, 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

SBML