package d2isometric
Import Path
github.com/pancsta/d2/d2renderers/d2isometric (on go.dev)
Dependency Relation
imports 17 packages, and imported by one package
Involved Source Files
hierarchy.go
layout.go
Package d2isometric builds 3D scenes from compiled D2 diagrams for native image
rendering. It composes new geometry without modifying the supplied diagram.
sequence.go
Package-Level Type Names (total 8)
HeaderDepth float64
ID string
Kind string
Label string
Level records authored container depth; presentation lowers supporting plates.
NodeIDs []string
ParentID string
Position Vec3
Size Vec3
SourceID string
FontColor string
FontExplicit bool
ID string
Icon string
Label string
Link string
Metadata EdgeMetadata
Opacity float64
Points []Vec3
SequenceRole string
Source string
SourceArrow d2target.Arrowhead
SourceLabel *d2target.Text
Stroke string
StrokeDash float64
StrokeExplicit bool
StrokeWidth int
Target string
TargetArrow d2target.Arrowhead
TargetLabel *d2target.Text
Tooltip string
BoardID string
Container bool
Fill string
FillExplicit bool
FontColor string
FontExplicit bool
ID string
Icon string
Label string
Link string
Metadata NodeMetadata
Opacity float64
ParentID string
Position Vec3
SequenceRole string
Size Vec3
Stroke string
StrokeDash float64
StrokeExplicit bool
StrokeWidth int
Tooltip string
Type string
ThemeID *int64
ThemeOverrides *d2target.ThemeOverrides
func BuildScene(diagram *d2target.Diagram, opts *RenderOpts) (*Scene, error)
Background string
Boards []Board
Description string
Edges []Edge
FontFamily *d2fonts.FontFamily
HasSequence bool
Legend *d2target.Legend
MonoFontFamily *d2fonts.FontFamily
Nodes []Node
PixelScale float64
Root d2target.Shape
ThemeID int64
ThemeOverrides *d2target.ThemeOverrides
Warnings []string
func BuildScene(diagram *d2target.Diagram, opts *RenderOpts) (*Scene, error)
Package-Level Functions (only one)
BuildScene maps a single D2 board. IDs, text, endpoint direction, and original
shape/edge metadata are retained, including connections to container boards.
The returned scene owns its data and is independent of the input diagram.
Package-Level Constants (total 5)
const MaxEdges = 5000 const MaxIDBytes = 8192 const MaxIDDepth = 128 const MaxNodes = 2000
SceneScale maps compiled layout pixels to world-space units.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |