heavyfishdesign: github.com/dustismo/heavyfishdesign/components Index | Files

package components

import "github.com/dustismo/heavyfishdesign/components"

Index

Package Files

around.go basic_edge.go gear.go repeat_edge.go xintercept.go

type AroundComponent Uses

type AroundComponent struct {
    *dom.BasicComponent
    Repeatable dom.Component // the thing to be repeated
}

func (*AroundComponent) Render Uses

func (rc *AroundComponent) Render(ctx dom.RenderContext) (path.Path, dom.RenderContext, error)

type AroundComponentFactory Uses

type AroundComponentFactory struct{}

func (AroundComponentFactory) ComponentTypes Uses

func (ccf AroundComponentFactory) ComponentTypes() []string

The list of component types this Factory should be used for

func (AroundComponentFactory) CreateComponent Uses

func (ccf AroundComponentFactory) CreateComponent(componentType string, mp *dynmap.DynMap, dc *dom.DocumentContext) (dom.Component, error)

type BasicEdgeComponent Uses

type BasicEdgeComponent struct {
    *dom.BasicComponent
    // contains filtered or unexported fields
}

an edge is a way to connect two parts together.

func (*BasicEdgeComponent) Render Uses

func (rc *BasicEdgeComponent) Render(ctx dom.RenderContext) (path.Path, dom.RenderContext, error)

type BasicEdgeComponentFactory Uses

type BasicEdgeComponentFactory struct{}

func (BasicEdgeComponentFactory) ComponentTypes Uses

func (becf BasicEdgeComponentFactory) ComponentTypes() []string

The list of component types this Factory should be used for

func (BasicEdgeComponentFactory) CreateComponent Uses

func (becf BasicEdgeComponentFactory) CreateComponent(componentType string, mp *dynmap.DynMap, dc *dom.DocumentContext) (dom.Component, error)

type EdgeComponentFactory Uses

type EdgeComponentFactory struct{}

func (EdgeComponentFactory) ComponentTypes Uses

func (ccf EdgeComponentFactory) ComponentTypes() []string

The list of component types this Factory should be used for

func (EdgeComponentFactory) CreateComponent Uses

func (ccf EdgeComponentFactory) CreateComponent(componentType string, mp *dynmap.DynMap, dc *dom.DocumentContext) (dom.Component, error)

type GearComponent Uses

type GearComponent struct {
    *dom.BasicComponent
    // contains filtered or unexported fields
}

involute gear component. ported from javascript http://jsfiddle.net/yodero/Y2Zjd/

func (*GearComponent) Render Uses

func (gc *GearComponent) Render(ctx dom.RenderContext) (path.Path, dom.RenderContext, error)

type GearComponentFactory Uses

type GearComponentFactory struct{}

func (GearComponentFactory) ComponentTypes Uses

func (gcf GearComponentFactory) ComponentTypes() []string

The list of component types this Factory should be used for

func (GearComponentFactory) CreateComponent Uses

func (gcf GearComponentFactory) CreateComponent(componentType string, mp *dynmap.DynMap, dc *dom.DocumentContext) (dom.Component, error)

type RepeatEdgeComponent Uses

type RepeatEdgeComponent struct {
    *dom.BasicComponent
    Repeatable dom.Component // the thing to be repeated
    Left       dom.Component
    Right      dom.Component
}

an edge is a way to connect two parts together. it contains three components: left -> the left most part of the edge.

this should be stretchable and contains a special param
called left_width

repeatable -> the middle section, which should be repeated right -> the right side, similar to Left

Each component should be drawn horizontally with an origin of 0,0

func (*RepeatEdgeComponent) Render Uses

func (rc *RepeatEdgeComponent) Render(ctx dom.RenderContext) (path.Path, dom.RenderContext, error)

type XInterceptComponent Uses

type XInterceptComponent struct {
    *dom.BasicComponent
    Outline    dom.Component // the outline that the repeated thing will be inside
    Repeatable dom.Component // the thing to be repeated
}

func (*XInterceptComponent) Render Uses

func (rc *XInterceptComponent) Render(ctx dom.RenderContext) (path.Path, dom.RenderContext, error)

type XInterceptComponentFactory Uses

type XInterceptComponentFactory struct{}

func (XInterceptComponentFactory) ComponentTypes Uses

func (ccf XInterceptComponentFactory) ComponentTypes() []string

The list of component types this Factory should be used for

func (XInterceptComponentFactory) CreateComponent Uses

func (ccf XInterceptComponentFactory) CreateComponent(componentType string, mp *dynmap.DynMap, dc *dom.DocumentContext) (dom.Component, error)

Package components imports 6 packages (graph) and is imported by 1 packages. Updated 2020-07-19. Refresh now. Tools for package owners.