nodehints

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package nodehints defines per-node rendering hints consumed by the SVG generators (pkg/ipmsvg). The hints are produced by upstream layout/zoom tooling; this package is dependency-free so producers and consumers can import it without cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphHints

type GraphHints map[string]NodeHints

GraphHints maps node IDs (string) to their per-node hints for a single graph state.

type NodeHints

type NodeHints struct {
	// Decoration is a visual indicator shown in the top-right corner of the node.
	// Values: "" (none) | "zoom-in" | "zoom-out" | "collapse" | "expand"
	Decoration string `json:"decoration,omitempty"`
}

NodeHints carries optional rendering annotations for a single node. SVG generators consume only the fields they understand; unknown fields are ignored.

Jump to

Keyboard shortcuts

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