simvx.graphics.web_editor_export¶
Export the SimVX editor as a standalone HTML file that runs in the browser via Pyodide + WebGPU.
Usage::
from simvx.graphics.web_editor_export import export_editor_web
export_editor_web("editor.html", width=1920, height=1080, title="SimVX Editor")
Or from the command line::
uv run python -m simvx.graphics.web_editor_export \
--output editor.html --width 1920 --height 1080 --title "SimVX Editor"
Module Contents¶
Functions¶
Export the SimVX editor as a standalone HTML file for the browser. |
Data¶
API¶
- simvx.graphics.web_editor_export.__all__¶
[‘export_editor_web’]
- simvx.graphics.web_editor_export.export_editor_web(output: str | pathlib.Path = 'editor.html', *, width: int = 1920, height: int = 1080, title: str = 'SimVX Editor', charset: str | None = None, responsive: bool = True, pyodide_version: str = '0.29.3') pathlib.Path[source]¶
Export the SimVX editor as a standalone HTML file for the browser.
Bundles simvx.core + simvx.graphics (web modules) + simvx.editor as Python sources, with 2D+3D WebGPU renderers, MSDF atlas, and IndexedDB persistence.
Args: output: Output HTML file path. width, height: Engine viewport dimensions. title: Browser page title. charset: Characters to pre-bake in the MSDF atlas. Defaults to extended editor charset. pyodide_version: Pyodide CDN version.
Returns: Path to the generated HTML file.