tiny.zen.diagram
Defined in tiny.zen.
API (71)
Actions
Public operations.
barbooleanboxedgefieldfigurelabellayernumberparsepointrenderAscii: Parses a JSONL diagram and returns an owned ASCII result.renderAsciiDocument: Renders into active storage; returned bytes borrow it untilreset.renderAsciiOwned: Returns an owned ASCII result from a borrowed diagram document.rowrulestackTransformtext
Types and contracts
Public types and contracts.
AsciiOptions: Requested terminal canvas dimensions.AsciiRenderCapacityAsciiRenderError: ASCII exhaustion, checked-capacity overflow, or an invalid scale.AsciiRenderExhaustion: Rejections produced before ASCII render storage changes.AsciiRenderLimits: Maximum scratch and output regions admitted by ASCII render storage.AsciiRenderPlan: Exact, clamped storage demand for one document and option set.AsciiRenderStatus: Observable capacity, current demand, high-water demand, and rejections.AsciiRenderStorage: One reusable aligned region for ASCII render scratch and output.AsciiRendered: Owns one ASCII result and its bounded backing region.BarBoxChannelMarkChannelMarkKindDataRowDataValueDocumentDocumentCapacityDocumentCapacityErrorDocumentErrorDocumentExhaustionDocumentLimitsDocumentPlanDocumentStatusDocumentStorageEdgeFieldFigure: Borrowed declarative diagram that can create an owned document or ASCII result.FrameLayerMarkPointRowRuleScaleScaleKindScalesStackTextTransformValueXValue
Namespaces
Public namespaces.
Source
Source: lib/zen/src/diagram/root.zig
zig
pub const ascii = @import("ascii/root.zig");pub const bounds = @import("bounds.zig");pub const category = @import("category.zig");pub const document = @import("document/root.zig");pub const domain = @import("domain.zig");pub const dsl = @import("dsl.zig");pub const ego = @import("ego/root.zig");pub const limits = @import("limits.zig");pub const model = @import("model.zig");pub const space = @import("space.zig");pub const spec = @import("spec.zig");pub const stack = @import("stack.zig");pub const Bar = spec.Bar;pub const Box = spec.Box;pub const ChannelMark = spec.ChannelMark;pub const ChannelMarkKind = spec.ChannelMarkKind;pub const DataRow = spec.DataRow;pub const DataValue = spec.DataValue;pub const Document = document.Document;pub const Edge = spec.Edge;pub const Field = spec.Field;pub const Frame = spec.Frame;pub const Mark = spec.Mark;pub const Point = spec.Point;pub const Rule = spec.Rule;pub const Scale = spec.Scale;pub const ScaleKind = spec.ScaleKind;pub const Scales = spec.Scales;pub const Stack = spec.Stack;pub const Text = spec.Text;pub const Transform = spec.Transform;pub const XValue = spec.XValue;pub const AsciiOptions = ascii.Options;pub const AsciiRenderLimits = ascii.RenderLimits;pub const AsciiRenderPlan = ascii.RenderPlan;pub const AsciiRenderCapacity = ascii.RenderCapacity;pub const AsciiRenderStorage = ascii.RenderStorage;pub const AsciiRenderStatus = ascii.RenderStatus;pub const AsciiRenderExhaustion = ascii.RenderExhaustion;pub const AsciiRenderError = ascii.RenderError;pub const AsciiRendered = ascii.Rendered;pub const DocumentLimits = document.Limits;pub const DocumentPlan = document.Plan;pub const DocumentCapacity = document.Capacity;pub const DocumentCapacityError = document.CapacityError;pub const DocumentStorage = document.Storage;pub const DocumentStatus = document.Status;pub const DocumentExhaustion = document.Exhaustion;pub const DocumentError = document.Error;pub const Figure = dsl.Figure;pub const Layer = dsl.Layer;pub const Row = dsl.Row;pub const Value = dsl.Value;pub const bar = dsl.bar;pub const boolean = dsl.boolean;pub const box = dsl.box;pub const edge = dsl.edge;pub const field = dsl.field;pub const figure = dsl.figure;pub const label = dsl.label;pub const layer = dsl.layer;pub const number = dsl.number;pub const point = dsl.point;pub const row = dsl.row;pub const rule = dsl.rule;pub const stackTransform = dsl.stack;pub const text = dsl.text;pub const parse = document.parse;pub const renderAscii = ascii.renderJsonl;pub const renderAsciiOwned = ascii.renderOwned;pub const renderAsciiDocument = ascii.render;Source: lib/zen/src/root.zig:13
zig
/// Declarative diagrams, bounded JSONL documents, and ASCII rendering.pub const diagram = @import("diagram/root.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |