RenderFigure

RenderFigure compiles a figure written in a drawing language and returns it as an SVG image. The editor calls it to preview a figure while an author types, and statements call it when saved, to keep the image next to the source it was drawn from. A figure that does not compile is not an error: the call succeeds with no image and says what is wrong in diagnostics.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
string

Typst source of the figure. The page is sized to fit the drawing, and the figure must fit on one page.

Response

Language
Credentials
OAuth2
Required Scopes
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json