board

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Id       string
	Label    string
	Tags     map[string]string
	Position utils.Vector
}

func (*Block) Render

func (b *Block) Render(matrix *graphics.Matrix) error

type Board

type Board struct {
	// contains filtered or unexported fields
}

func MakeBoard

func MakeBoard() *Board

func (*Board) AddBlock

func (b *Board) AddBlock(block *Block) error

func (*Board) AddConnector

func (b *Board) AddConnector(
	from string,
	to string,
	tags map[string]string,
) error

func (*Board) Cells

func (b *Board) Cells() ([][]graphics.CellStack, error)

func (*Board) Render

func (b *Board) Render() (string, error)

func (*Board) Size

func (b *Board) Size() utils.Vector

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

func (*Connector) Render

func (c *Connector) Render(matrix *graphics.Matrix) error

Render This function is far less clear if factored out.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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