d2near

package
v0.0.0-...-e815181 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

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

This section is empty.

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.

func WithoutConstantNears

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

WithoutConstantNears plucks out the graph objects which have "near" set to a constant value This is to be called before layout engines so they don't take part in regular positioning

Types

This section is empty.

Jump to

Keyboard shortcuts

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