Skip to main content

Module html_export

Module html_export 

Source
Expand description

HTML+CSS export: SceneGraph → standalone HTML page.

Maps FD nodes to HTML elements:

  • Rect/Frame → <div> with absolute positioning
  • Ellipse → <div> with border-radius: 50%
  • Text → <p> with font styles
  • Path → inline <svg> element
  • Group → wrapper <div> containing children

Animations (hover/press triggers) become CSS transitions.

Functions§

export_html
Convert a SceneGraph (or a subset of selected nodes) to a standalone HTML page.