magus v0.4.3 is out. See what's new
¶ View generated markdown
2 min read

figure

Architecture figures drawn from graph records: boxes and groups over Dir records, coverage by scope, edges derived from imports and declared calls.

Naming convention: import the module under its bare name (import "figure"), reach members with a backslash, and call methods in camelCase: figure\someMethod.

Methods

without

without is dirs less drop, in the order dirs holds them.

Signature: figure\without(dirs, drop) -> [magus\Dir]

Parameter Type Optional Description
dirs any
drop any

Returns: any

external

external is an actor the figure draws but no directory holds. look defaults to

Signature: figure\external(name, [sub], [tag], [link], [look]) -> Actor

Parameter Type Optional Description
name any
sub any yes
tag any yes
link any yes
look any yes

Returns: any

of

of starts an empty figure. direction defaults to Direction.across.

Signature: figure\of(id, [title], [eyebrow], [desc], [direction]) -> mut Figure

Parameter Type Optional Description
id any
title any yes
eyebrow any yes
desc any yes
direction any yes

Returns: any

draw

draw lays f out and paints it with theme. anchorHref is a URL template: {path} takes a

Signature: figure\draw(f, theme, [anchorHref]) -> str

Parameter Type Optional Description
f any
theme any
anchorHref any yes

Returns: any

nodeFact

nodeFact is the line a figure's stamp records for n. A box anchoring a symbol records the

Signature: figure\nodeFact(n) -> str

Parameter Type Optional Description
n any

Returns: any

generatedreference/buzz/figuremodulestdlibmagusfile
Last updated (29d8b3de)
Earlier changes on this page (2)

Full history ↗ · Blame source ↗

Glossary

Magusfile

The magusfile.buzz that declares a project's targets (as export funs) and binds its spells. Magusfile in full.

Op

A single tool-native command a target composes (long form: operation); the middle of the work hierarchy (Spell to Op to Target). Op in full.

Module

A magus stdlib namespace a magusfile imports for host capabilities: filesystem, exec, vcs, and more. Module in full.

Buzz

The language magusfiles are written in (the .buzz engine). Buzz in full.

Conventions

This page uses none of the site's convention markers. The full set is on the conventions page.