d2near

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var HorizontalCenterNears = set{
	"center-left":  {},
	"center-right": {},
}
View Source
var NonCenterNears = set{
	"top-left":     {},
	"top-right":    {},
	"bottom-left":  {},
	"bottom-right": {},
}
View Source
var VerticalCenterNears = set{
	"top-center":    {},
	"bottom-center": {},
}

Functions

func Layout

func Layout(ctx context.Context, g *d2graph.Graph, constantNearGraphs []*d2graph.Graph) error

Layout finds the shapes which are assigned constant near keywords and places them.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL