Skip to main content

Module import

Module import 

Source
Expand description

What the “Import…” dialog brings in: a PNG or SVG, as a plain image in the current view. The name’s extension picks the branch.

No diagram comes in through here. A container’s projection is not a self-contained document — its assets live beside it — so no file says the whole of one, and bringing another diagram in as a block is a placement flow of its own rather than a file door.

Constants§

UNTITLED
What a document with neither provenance nor a file to be named by is called. A native session is born into a container it takes its name from, so this is the browser’s document — and the fallback for a container that could not be created.

Functions§

file_stem
A file name without its extension — what a document is called when the file it arrived in is all there is to call it.
interpret
Interpret a picked file (name for its extension, bytes for its content). Returns None for an unreadable/unsupported file.