Linnet · latest
On this page

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() -> str

Return 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() -> str

No description is available for this member.

to_linnest

Method#
to_linnest() -> str

No 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

NameTypeDefaultDescription
outputstr | os.PathLike | pathlib.Path——

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

NameTypeDefaultDescription
directorystr | os.PathLike | pathlib.Path——
formatstr'svg'—

_repr_html_

Method#
_repr_html_() -> str

No 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__() -> str

No description is available for this member.