Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AroundComponent

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

func (*AroundComponent) Render

type AroundComponentFactory

type AroundComponentFactory struct{}

func (AroundComponentFactory) ComponentTypes

func (ccf AroundComponentFactory) ComponentTypes() []string

    The list of component types this Factory should be used for

    func (AroundComponentFactory) CreateComponent

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

    type BasicEdgeComponent

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

      an edge is a way to connect two parts together.

      func (*BasicEdgeComponent) Render

      type BasicEdgeComponentFactory

      type BasicEdgeComponentFactory struct{}

      func (BasicEdgeComponentFactory) ComponentTypes

      func (becf BasicEdgeComponentFactory) ComponentTypes() []string

        The list of component types this Factory should be used for

        func (BasicEdgeComponentFactory) CreateComponent

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

        type EdgeComponentFactory

        type EdgeComponentFactory struct{}

        func (EdgeComponentFactory) ComponentTypes

        func (ccf EdgeComponentFactory) ComponentTypes() []string

          The list of component types this Factory should be used for

          func (EdgeComponentFactory) CreateComponent

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

          type GearComponent

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

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

            func (*GearComponent) Render

            type GearComponentFactory

            type GearComponentFactory struct{}

            func (GearComponentFactory) ComponentTypes

            func (gcf GearComponentFactory) ComponentTypes() []string

              The list of component types this Factory should be used for

              func (GearComponentFactory) CreateComponent

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

              type RepeatEdgeComponent

              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

                type XInterceptComponent

                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

                type XInterceptComponentFactory

                type XInterceptComponentFactory struct{}

                func (XInterceptComponentFactory) ComponentTypes

                func (ccf XInterceptComponentFactory) ComponentTypes() []string

                  The list of component types this Factory should be used for

                  func (XInterceptComponentFactory) CreateComponent

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