Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
ci
|
|
|
release/releasetool
command
|
|
|
tala-performance
command
Command tala-performance measures TALA callbacks on an external D2 corpus and fingerprints complete layout outputs.
|
Command tala-performance measures TALA callbacks on an external D2 corpus and fingerprints complete layout outputs. |
|
cmd
|
|
|
d2plugin-dagre
command
|
|
|
TODO: Remove boxes and cleanup like d2ir
|
TODO: Remove boxes and cleanup like d2ir |
|
Package d2compiler implements a parser, compiler and autoformatter for the Terrastruct d2 diagramming language.
|
Package d2compiler implements a parser, compiler and autoformatter for the Terrastruct d2 diagramming language. |
|
Package d2ir implements a tree data structure to keep track of the resolved value of D2 keys.
|
Package d2ir implements a tree data structure to keep track of the resolved value of D2 keys. |
|
d2elklayout
Package d2elklayout adapts D2 graphs to the native Go port of ELK.
|
Package d2elklayout adapts D2 graphs to the native Go port of ELK. |
|
d2layoutfeatures
Package d2layoutfeatures contains legacy string names for layout plugin capabilities.
|
Package d2layoutfeatures contains legacy string names for layout plugin capabilities. |
|
d2near
d2near applies near keywords when they're constants Intended to be run as the last stage of layout after the diagram has already undergone layout
|
d2near applies near keywords when they're constants Intended to be run as the last stage of layout after the diagram has already undergone layout |
|
d2talalayout
Package d2talalayout adapts D2 graphs to TALA's layout and edge-routing engine.
|
Package d2talalayout adapts D2 graphs to TALA's layout and edge-routing engine. |
|
d2talalayout/internal/engine
Package engine composes TALA's layout stages into one deterministic layout.
|
Package engine composes TALA's layout stages into one deterministic layout. |
|
d2talalayout/internal/graphbounds
Package graphbounds computes work-accounted bounds for mutable TALA nodes.
|
Package graphbounds computes work-accounted bounds for mutable TALA nodes. |
|
d2talalayout/internal/graphjson
Package graphjson serializes and reconstructs TALA layout graphs.
|
Package graphjson serializes and reconstructs TALA layout graphs. |
|
d2talalayout/internal/grouping
Package grouping discovers and manages layout groups that temporarily move as a single vessel.
|
Package grouping discovers and manages layout groups that temporarily move as a single vessel. |
|
d2talalayout/internal/hierarchy
Package hierarchy discovers DAG-like subgraphs, ranks their nodes, and places them in layers.
|
Package hierarchy discovers DAG-like subgraphs, ranks their nodes, and places them in layers. |
|
d2talalayout/internal/invariant
Package invariant classifies violations of TALA's internal layout invariants.
|
Package invariant classifies violations of TALA's internal layout invariants. |
|
d2talalayout/internal/labelgeom
Package labelgeom contains renderer-compatible label geometry that is shared by the mutable graph bounds and label-placement domains.
|
Package labelgeom contains renderer-compatible label geometry that is shared by the mutable graph bounds and label-placement domains. |
|
d2talalayout/internal/labeling
Package labeling places node, icon, edge, and arrowhead labels on a routed layout graph.
|
Package labeling places node, icon, edge, and arrowhead labels on a routed layout graph. |
|
d2talalayout/internal/layoutgraph
Package layoutgraph defines the mutable state used by TALA's layout algorithms.
|
Package layoutgraph defines the mutable state used by TALA's layout algorithms. |
|
d2talalayout/internal/limits
Package limits provides the engine's topology ceilings and reusable work accounting primitives.
|
Package limits provides the engine's topology ceilings and reusable work accounting primitives. |
|
d2talalayout/internal/loops
Package loops computes deterministic self-edge routes and the node extents those routes reserve during placement.
|
Package loops computes deterministic self-edge routes and the node extents those routes reserve during placement. |
|
d2talalayout/internal/nodeshape
Package nodeshape defines the shape-specific port and label-placement policy used by TALA nodes.
|
Package nodeshape defines the shape-specific port and label-placement policy used by TALA nodes. |
|
d2talalayout/internal/packing
Package packing arranges and compacts disconnected graph components without changing their internal layout or routed edge geometry.
|
Package packing arranges and compacts disconnected graph components without changing their internal layout or routed edge geometry. |
|
d2talalayout/internal/placement
Package placement positions nodes and refines their geometry before routing.
|
Package placement positions nodes and refines their geometry before routing. |
|
d2talalayout/internal/placementcost
Package placementcost evaluates candidate node geometry for placement and refinement algorithms.
|
Package placementcost evaluates candidate node geometry for placement and refinement algorithms. |
|
d2talalayout/internal/proximity
Package proximity discovers layout relationships between nearby nodes.
|
Package proximity discovers layout relationships between nearby nodes. |
|
d2talalayout/internal/quality
Package quality evaluates completed TALA layouts.
|
Package quality evaluates completed TALA layouts. |
|
d2talalayout/internal/routing
Package routing builds orthogonal visibility graphs, searches them for edge routes, and applies the routing post-processing stages.
|
Package routing builds orthogonal visibility graphs, searches them for edge routes, and applies the routing post-processing stages. |
|
d2talalayout/internal/trees
Package trees owns TALA's tree discovery, preprocessing, orientation, and placement algorithms.
|
Package trees owns TALA's tree discovery, preprocessing, orientation, and placement algorithms. |
|
d2talalayout/internal/typedpool
Package typedpool provides a type-safe wrapper around sync.Pool.
|
Package typedpool provides a type-safe wrapper around sync.Pool. |
|
Completion implements lsp autocomplete features Currently handles: - Complete dot and inside maps for reserved keyword holders (style, labels, etc) - Complete discrete values for keywords like shape - Complete suggestions for formats for keywords like opacity
|
Completion implements lsp autocomplete features Currently handles: - Complete dot and inside maps for reserved keyword holders (style, labels, etc) - Complete discrete values for keywords like shape - Complete suggestions for formats for keywords like opacity |
|
Package d2plugin enables the d2 CLI to run functions bundled with the d2 binary or via external plugin binaries.
|
Package d2plugin enables the d2 CLI to run functions bundled with the d2 binary or via external plugin binaries. |
|
d2renderers
|
|
|
d2ascii
Set DEBUG_ASCII=1 environment variable to enable verbose ASCII rendering debug logs.
|
Set DEBUG_ASCII=1 environment variable to enable verbose ASCII rendering debug logs. |
|
d2fonts
TODO write a script to do this as part of CI Currently using an online converter: https://dopiaza.org/tools/datauri/index.php
|
TODO write a script to do this as part of CI Currently using an online converter: https://dopiaza.org/tools/datauri/index.php |
|
d2raster
Package d2raster renders the supported d2scene subset with a pure-Go raster kernel.
|
Package d2raster renders the supported d2scene subset with a pure-Go raster kernel. |
|
d2raster/internal/scanline
Package scanline rasterizes D2's closed vector paths with non-zero winding.
|
Package scanline rasterizes D2's closed vector paths with non-zero winding. |
|
d2scene
Package d2scene defines the renderer-neutral scene representation used by D2's raster export pipeline.
|
Package d2scene defines the renderer-neutral scene representation used by D2's raster export pipeline. |
|
d2scenebuild
Package d2scenebuild converts D2's typed export model into the immutable scene consumed by d2raster.
|
Package d2scenebuild converts D2's typed export model into the immutable scene consumed by d2raster. |
|
d2svg
d2svg implements an SVG renderer for d2 diagrams.
|
d2svg implements an SVG renderer for d2 diagrams. |
|
d2svgimport
Package d2svgimport imports the bounded, network-free SVG subset used by D2 assets and MathJax into d2scene.
|
Package d2svgimport imports the bounded, network-free SVG subset used by D2 assets and MathJax into d2scene. |
|
internal/fontface
Package fontface owns the renderer-internal OpenType parsing, shaping, and color-glyph pipeline shared by scene construction and native raster output.
|
Package fontface owns the renderer-internal OpenType parsing, shaping, and color-glyph pipeline shared by scene construction and native raster output. |
|
internal/fontfallback
Package fontfallback contains the renderer-internal handoff used to retain trusted fallback assets across multiple scene builds without widening D2's public font resolver interface.
|
Package fontfallback contains the renderer-internal handoff used to retain trusted fallback assets across multiple scene builds without widening D2's public font resolver interface. |
|
internal/patternassets
Package patternassets owns the canonical built-in texture definitions shared by D2's SVG and scene renderers.
|
Package patternassets owns the canonical built-in texture definitions shared by D2's SVG and scene renderers. |
|
d2themes defines themes to make d2 diagrams pretty Color codes: darkest (N1) -> lightest (N7)
|
d2themes defines themes to make d2 diagrams pretty Color codes: darkest (N1) -> lightest (N7) |
|
docs
|
|
|
examples/lib/1-d2lib
command
|
|
|
examples/lib/2-d2oracle
command
|
|
|
examples/lib/3-lowlevel
command
|
|
|
e2etests
|
|
|
report
command
|
|
|
internal
|
|
|
rasterimage
Package rasterimage decodes a deterministic still image from supported raster formats.
|
Package rasterimage decodes a deterministic still image from supported raster formats. |
|
testlog
Package testlog adapts testing-style loggers to slog.
|
Package testlog adapts testing-style loggers to slog. |
|
testutil/imagediff
Package imagediff compares rendered images and produces deterministic visual diagnostics suitable for test failures.
|
Package imagediff compares rendered images and produces deterministic visual diagnostics suitable for test failures. |
|
lib
|
|
|
compression
d2 uses compression for compressing large static assets when its built into WASM for d2.js
|
d2 uses compression for compressing large static assets when its built into WASM for d2.js |
|
imageasset
Package imageasset resolves bounded local, HTTP, and data-URI image resources without depending on a renderer or scene representation.
|
Package imageasset resolves bounded local, HTTP, and data-URI image resources without depending on a renderer or scene representation. |
|
log
Copied from https://pkg.go.dev/log/slog#Handler
|
Copied from https://pkg.go.dev/log/slog#Handler |
|
memfs
memfs implements an in-memory fs.FS implementation This is useful in for running d2 in javascript environments where native file calls are not available
|
memfs implements an in-memory fs.FS implementation This is useful in for running d2 in javascript environments where native file calls are not available |
|
pptx
pptx is a package to create slide presentations in pptx (Microsoft Power Point) format.
|
pptx is a package to create slide presentations in pptx (Microsoft Power Point) format. |
|
simplelog
Package simplelog contains a very simple interface for logging strings at either Debug, Info, or Error levels
|
Package simplelog contains a very simple interface for logging strings at either Debug, Info, or Error levels |
|
xgif
Package xgif quantizes, normalizes, and encodes rendered animation frames as GIF.
|
Package xgif quantizes, normalizes, and encodes rendered animation frames as GIF. |
Click to show internal directories.
Click to hide internal directories.