Module page 1 of 2
lib
API documentation for `lib` in the `axodendron` package.
Module metadata
- Path
- lib.typ
- Public items
- 27
- Role
- entrypoint
Public symbols - page 1 24
function analyze Compute summary metrics, section decomposition, tortuosity, root pathfunction cetz-annotate Overlay CeTZ leader labels on a completed render result. The CeTZ module isfunction cetz-label Construct a CeTZ leader label. `offset` and every `via` entry are relativefunction color-bar Construct a scalar color bar using the same named palette as the renderer.function diagnostics Return all validation diagnostics retained by a cell.function export-swc Export deterministic SWC with topological row order and sequential IDs.function from-text Parse and validate SWC source already held in memory.function label Construct a Typst-native node label annotation. `offset.x` and `offset.y`function legend Construct a compact categorical legend.function load Load and validate SWC input. Typst 0.15.0 and later may pass `path(...)`function marker Construct a node-anchored marker. If `body` is omitted, a circle is drawn.function metadata Return retained SWC header comments and recognized descriptive fields.function node-anchor Return one projected node from a render result. Coordinates `x` and `y`function path Extract the unique undirected path between two nodes in one component.function prune Remove nodes of the listed SWC kinds and their descendant subtrees.function render Render a radius-aware morphology as one WASM-generated SVG, then add labelsfunction reroot Reverse the parent chain so `node` becomes the root of its component.function resample Equal-arc-length resampling within topology- and type-bounded sections.function scale-bar Construct a physical scale bar. `value` is in the morphology's units.function select-kinds Select nodes of the listed SWC kinds without inventing bridging edges.function select-nodes Select exactly the listed nodes as an induced forest over original edges.function sholl-2d Exact 2D circle/segment Sholl intersections after physical orthographic projection.function sholl Exact 3D Sholl intersections. Radii and center use `cell.units`.function simplify Topology-preserving 3D Ramer–Douglas–Peucker simplification.