DiagramRender
symbolica.community.graph Class
DiagramRender()An immutable native SVG rendering with file exports and notebook display. Geometry and typeset labels are captured when the result is created.
Member details
diagrams
Property · read-only#diagrams: list[DiagramRender] Configured child snapshots for a rendered collection, in display order.
to_svg
Method#to_svg() -> strReturn the one-page SVG. Use to_svg_pages for multipage documents.
to_svg_pages
Method#to_svg_pages() -> list[str] No description is available for this member.
to_html
Method#to_html() -> strNo description is available for this member.
to_linnest
Method#to_linnest() -> strNo description is available for this member.
save
Method#save(output: str | os.PathLike | pathlib.Path) -> pathlib.Path Export SVG, HTML, Typst, PDF, or PNG, selected by the filename suffix.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
output | str | os. | — | — |
save_pages
Method#save_pages(directory: str | os.PathLike | pathlib.Path, *, format: str = 'svg') -> list[pathlib.Path] Export every SVG or PNG page to a directory and return the written paths.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
directory | str | os. | — | — |
format | str | 'svg' | — |
_repr_html_
Method#_repr_html_() -> strNo description is available for this member.
_repr_svg_
Method#_repr_svg_() -> Optional[str] No description is available for this member.
_mime_
Method#_mime_() -> tuple[str, str] No description is available for this member.
__repr__
Method#__repr__() -> strNo description is available for this member.
View generated signature source: docs/api/python/linnet-graph.pyi:327