vibe-sketcherDocumentation

vibesketcher.document.pages

Store or clear the physical page setup of a document’s figures (#163).

The setup lives in style.page. It is additive: a document without one is exported cropped to its drawing, as before. Where the drawing falls on the pages is vibesketcher.render.pages.page_layout().

Functions

page_errors(error)

A refused page setup in one line, each problem named by its field.

page_summary(setup)

A short description of a page setup, for edit summaries and the CLI.

with_page(document, setup)

document with setup as its page setup; None clears it.

vibesketcher.document.pages.with_page(document, setup)[source]

document with setup as its page setup; None clears it.

Parameters:
Return type:

Document

vibesketcher.document.pages.page_summary(setup)[source]

A short description of a page setup, for edit summaries and the CLI.

Parameters:

setup (PageSetup | None)

Return type:

str

vibesketcher.document.pages.page_errors(error)[source]

A refused page setup in one line, each problem named by its field.

Parameters:

error (ValidationError)

Return type:

str