schema

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name        string                     `json:"name,omitempty"`
	Version     string                     `json:"version,omitempty"`
	Description string                     `json:"description,omitempty"`
	Authors     []Author                   `json:"authors,omitempty"`
	WebScene    *WebScene                  `json:"webScene,omitempty"`
	Producers   map[string]Producer        `json:"producers"`
	Nodes       map[string]AppNodeInstance `json:"nodes"`
	Metadata    map[string]any             `json:"metadata,omitempty"`
}

type AppNodeInstance added in v0.21.3

type AppNodeInstance struct {
	Type          string                   `json:"type"`
	AssignedInput map[string]PortReference `json:"assignedInput"`
	Data          json.RawMessage          `json:"data,omitempty"`
}

type Author added in v0.21.3

type Author struct {
	Name        string          `json:"name"`
	ContactInfo []AuthorContact `json:"contactInfo,omitempty"`
}

type AuthorContact added in v0.21.3

type AuthorContact struct {
	Medium string `json:"medium"`
	Value  string `json:"value"`
}

type GraphInstance added in v0.21.3

type GraphInstance struct {
	Producers map[string]Producer     `json:"producers"`
	Nodes     map[string]NodeInstance `json:"nodes"`
	Types     []NodeType              `json:"types"`
	Notes     map[string]any          `json:"notes"`
}

type NodeInput

type NodeInput struct {
	Type    string `json:"type"`
	IsArray bool   `json:"isArray"`
}

type NodeInstance

type NodeInstance struct {
	Type          string                            `json:"type"`
	Name          string                            `json:"name"`
	AssignedInput map[string]PortReference          `json:"assignedInput"`
	Output        map[string]NodeInstanceOutputPort `json:"output"`

	Parameter Parameter `json:"parameter,omitempty"`

	Metadata map[string]any `json:"metadata,omitempty"`
}

type NodeInstanceOutputPort added in v0.23.0

type NodeInstanceOutputPort struct {
	Version int `json:"version"`
}

type NodeOutput

type NodeOutput struct {
	Type string `json:"type"`
}

type NodeType

type NodeType struct {
	DisplayName string                `json:"displayName"`
	Info        string                `json:"info"`
	Type        string                `json:"type"`
	Path        string                `json:"path"`
	Outputs     map[string]NodeOutput `json:"outputs,omitempty"`
	Inputs      map[string]NodeInput  `json:"inputs,omitempty"`
	Parameter   Parameter             `json:"parameter,omitempty"`
}

type Parameter

type Parameter interface {
	ValueType() string
	DisplayName() string
}

type ParameterBase

type ParameterBase struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

func (ParameterBase) DisplayName

func (gps ParameterBase) DisplayName() string

func (ParameterBase) ValueType

func (gps ParameterBase) ValueType() string

type PortReference added in v0.23.0

type PortReference struct {
	NodeId   string `json:"id"`
	PortName string `json:"port"`
}

type Producer

type Producer struct {
	NodeID string `json:"nodeID"`
	Port   string `json:"port"` // Name of node out port
}

type WebScene added in v0.21.3

type WebScene struct {
	RenderWireframe bool              `json:"renderWireframe"`
	AntiAlias       bool              `json:"antiAlias"`
	XrEnabled       bool              `json:"xrEnabled"`
	Fog             WebSceneFog       `json:"fog"`
	Background      coloring.WebColor `json:"background"`
	Lighting        coloring.WebColor `json:"lighting"`
	Ground          coloring.WebColor `json:"ground"`
}

type WebSceneFog added in v0.21.3

type WebSceneFog struct {
	Color coloring.WebColor `json:"color"`
	Near  float32           `json:"near"`
	Far   float32           `json:"far"`
}

Jump to

Keyboard shortcuts

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