library
library
#
Library — a browser library shipped as package data, copied whole into a page.
- A library lives under
<package>/_vendor/<name>/beside its LICENSE, its version recorded in theVERSIONSmanifest in_vendor/;files()is that folder. copy_towrites the folder into a page under a relative path, unchanged files left alone;Render.libdoes so once per render, the first time a component asks for one of its files, so the page stays self-contained.
Library
dataclass
#
A browser library shipped as package data under <package>/_vendor/<name>/.
Any package ships its own: a viewer outside capturegraph_ui names the
package its JavaScript lives in.
Source code in capturegraph-ui/capturegraph_ui/core/library.py
copy_to(page, relative)
#
Write the library into page under relative, unchanged files left alone.
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |
ValueError
|
If |
Source code in capturegraph-ui/capturegraph_ui/core/library.py
files()
#
The shipped folder.
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If |