Skip to main content

Module designs

Module designs 

Source
Expand description

The design store: every design asked for kept resolved in memory and resolved again only when a save touched what it read, its problems and its PNG. The canvas page that shows a design is page::canvas; the watch stream that keeps it current is the binary’s, in http::watch_stream.

Structs§

Designs
The designs of one folder, from a Store: every design asked for, kept resolved in memory.
Store
The design store: every folder’s designs it holds, one renderer — its fonts load once — and one tile cache of TILES_CAP for them all. A local devpage holds one folder; a devpage server one per version it serves, each under that version’s own mount, for as long as its routers hold it.

Enums§

Next
What a watch stream sends next for a design, after the version it sent.

Constants§

TILES_CAP
What the store’s tiles may hold together: 64 MB of pixels.

Functions§

address
A design’s address as the engine names files: from the top of the served folder, without a leading slash.
guarded
What f gives, or — should the engine ever panic on a design — a problem saying so, so that no design file can take the server or its watcher down.