layout

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyToCanvasSpec added in v0.28.0

ApplyToCanvasSpec rearranges node positions in place using the server layout engine.

func HasCanvasFlags

func HasCanvasFlags(ctx core.CommandContext) bool

func HasFlags

func HasFlags(ctx core.CommandContext) bool

func ParseAutoLayout

func ParseAutoLayout(value string, scopeValue string, nodeIDs []string) (*openapi_client.CanvasesCanvasAutoLayout, error)

func ResolveUpdateAutoLayout added in v0.28.0

func ResolveUpdateAutoLayout(
	hasFlags bool,
	fileAutoLayout *openapi_client.CanvasesCanvasAutoLayout,
	value string,
	scopeValue string,
	nodeIDs []string,
) (*openapi_client.CanvasesCanvasAutoLayout, error)

ResolveUpdateAutoLayout picks the auto-layout settings for canvas update. Flags take precedence; otherwise a file-level autoLayout field is used. When neither is set, horizontal full-canvas layout is applied (same as create).

Types

This section is empty.

Jump to

Keyboard shortcuts

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