vendor
vendor
#
copy_library — the browser libraries the standard components ship, copied into a page.
- Each library lives under
capturegraph/ui/_vendor/<library>/as package data beside its LICENSE, its version recorded in_vendor/VERSIONS. - A render copies a whole library folder into the page's
lib/the first time a component asks for one of its files, so the page stays self-contained.
copy_library(library, destination)
#
Copy every file of library under destination, unchanged files left alone.
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If no such library ships with the package. |
Source code in capturegraph-lib/capturegraph/ui/vendor.py
vendored(library)
#
The shipped folder of library ("leaflet", "vega", …).
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If no such library ships with the package. |