Complete phase two benchmarks, plot previews and static export workflow

This commit is contained in:
2026-09-07 02:54:52 +08:00
parent 95095197df
commit 89df10bc4e
59 changed files with 2535 additions and 83 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class FunctionPlotStaticRenderer:
parsed = self.parse(request)
if parsed.plot is None:
raise ValueError("function-plot source has no valid plot")
return self.render_plot(parsed.plot)
return render_svg(parsed.plot, request.theme or 'light')
def render_plot(self, plot: FunctionPlot) -> StaticRenderResult:
return render_svg(plot)