layout

package
v0.0.0-...-95b9c9f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEdgeListRequest

func SendEdgeListRequest(ctx context.Context, serviceURL string, edges []Edge) ([][]float32, error)

Types

type Edge

type Edge [2]int

type EdgeListRequest

type EdgeListRequest struct {
	Edges      []Edge  `json:"edges"`
	Ka         float32 `json:"ka"`
	Kg         float32 `json:"kg"`
	Kr         float32 `json:"kr"`
	NbNodes    int     `json:"nb_nodes"`
	Iterations int     `json:"iterations"`
	ChunkSize  int     `json:"chunk_size"`
}

type ResponsePoints

type ResponsePoints struct {
	Points [][]float32 `json:"points"`
}

type ThreadViewLayout

type ThreadViewLayout struct {
	Post         search.Post `json:"post"`
	AuthorHandle string      `json:"author_handle"`
	Depth        int         `json:"depth"`
	X            float32     `json:"x"`
	Y            float32     `json:"y"`
}

func SendEdgeListRequestTS

func SendEdgeListRequestTS(ctx context.Context, serviceURL string, postViews []search.PostView) ([]ThreadViewLayout, error)

Jump to

Keyboard shortcuts

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