g6

package
v0.0.0-...-bd4d0b6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Combo

type Combo struct {
	Id        string `json:"id"`
	Label     string `json:"label"`
	Collapsed bool   `json:"collapsed,omitempty"`
	ParentId  string `json:"parentId,omitempty"`
}

type Data

type Data struct {
	Nodes  []*Node  `json:"nodes"`
	Edges  []*Edge  `json:"edges"`
	Combos []*Combo `json:"combos"`
}

Data https://g6.antv.antgroup.com/api/graph-func/data

func EmptyG6Data

func EmptyG6Data() *Data

func (*Data) FillWithOrange

func (g *Data) FillWithOrange(label string)

func (*Data) FillWithRed

func (g *Data) FillWithRed(label string)

func (*Data) FillWithYellow

func (g *Data) FillWithYellow(label string)

func (*Data) RenderHtml

func (g *Data) RenderHtml(filename string) error

type Edge

type Edge struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

type Node

type Node struct {
	Id      string     `json:"id"`
	Label   string     `json:"label,omitempty"`
	ComboId string     `json:"comboId,omitempty"`
	Style   *NodeStyle `json:"style"`
}

type NodeStyle

type NodeStyle struct {
	Fill string `json:"fill,omitempty"`
}

NodeStyle https://g6.antv.antgroup.com/api/shape-properties

Jump to

Keyboard shortcuts

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