Skip to content

CanvasElementOptionsBuilder🔗

Constructor🔗

func NewCanvasElementOptionsBuilder() *CanvasElementOptionsBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *CanvasElementOptionsBuilder) Build() (CanvasElementOptions, error)

Background🔗

func (builder *CanvasElementOptionsBuilder) Background(background cog.Builder[canvas.BackgroundConfig]) *CanvasElementOptionsBuilder

Border🔗

func (builder *CanvasElementOptionsBuilder) Border(border cog.Builder[canvas.LineConfig]) *CanvasElementOptionsBuilder

Config🔗

TODO: figure out how to define this (element config(s))

func (builder *CanvasElementOptionsBuilder) Config(config any) *CanvasElementOptionsBuilder

Connections🔗

func (builder *CanvasElementOptionsBuilder) Connections(connections []cog.Builder[canvas.CanvasConnection]) *CanvasElementOptionsBuilder

Constraint🔗

func (builder *CanvasElementOptionsBuilder) Constraint(constraint cog.Builder[canvas.Constraint]) *CanvasElementOptionsBuilder

Name🔗

func (builder *CanvasElementOptionsBuilder) Name(name string) *CanvasElementOptionsBuilder

Placement🔗

func (builder *CanvasElementOptionsBuilder) Placement(placement cog.Builder[canvas.Placement]) *CanvasElementOptionsBuilder

Type🔗

func (builder *CanvasElementOptionsBuilder) Type(typeArg string) *CanvasElementOptionsBuilder

See also🔗