Documentation ¶
Index ¶
- Variables
- func NewBox(w, h, x, y float64, id string, e svg.Editable) *box
- func NewButton(w, h, x, y float64, content string, id string, e svg.Editable) *button
- func NewLabel(w, h, x, y float64, content string, id string, e svg.Editable) *label
- func NewLine(w, h, x, y float64, id string) *line
- func NewTextBox(w, h, x, y float64, content string, id string, e svg.Editable) *textBox
- type AttributeEditor
- type BaseElement
- type Border
- type Clonable
- type CloneBox
- type ControlEditable
- type Dimension
- type LineMovable
- type MockupElement
- type Movable
- type Position
- type Scalable
- type ScaleBox
- func (ele *ScaleBox) EResizeTo(x, y float64)
- func (ele *ScaleBox) Id() string
- func (ele *ScaleBox) MoveTo(x, y float64)
- func (ele *ScaleBox) NEResizeTo(x, y float64)
- func (ele *ScaleBox) NResizeTo(x, y float64)
- func (ele *ScaleBox) NWResizeTo(x, y float64)
- func (ele *ScaleBox) SEesizeTo(x, y float64)
- func (ele *ScaleBox) SResizeTo(x, y float64)
- func (ele *ScaleBox) SWResizeTo(x, y float64)
- func (ele *ScaleBox) SetId(id string)
- func (ele *ScaleBox) Svg() svg.SvgElement
- func (ele *ScaleBox) WResizeTo(x, y float64)
- type ScaleLine
- type Stroke
- type Text
- type Thickness
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WHITE = "white" DARKGREY = "#555" )
View Source
var EditablePrefix = "M_"
Functions ¶
Types ¶
type AttributeEditor ¶
type AttributeEditor struct { }
type BaseElement ¶
func (*BaseElement) GetBase ¶
func (be *BaseElement) GetBase() BaseElement
func (*BaseElement) MoveTo ¶
func (be *BaseElement) MoveTo(x, y float64)
func (*BaseElement) ResizeTo ¶
func (be *BaseElement) ResizeTo(w, h float64)
type CloneBox ¶
type CloneBox struct {
MockupElement
}
func (*CloneBox) Svg ¶
func (ele *CloneBox) Svg() svg.SvgElement
type ControlEditable ¶
type ControlEditable struct { Movable Scalable LineMovable Clonable Border }
func NewControlEditable ¶
func NewControlEditable(x1, y1, x2, y2 float64) *ControlEditable
func (*ControlEditable) BindEvents ¶
func (ed *ControlEditable) BindEvents(m map[string]MockupElement)
type LineMovable ¶
type MockupElement ¶
type ScaleBox ¶
type ScaleBox struct { MockupElement // contains filtered or unexported fields }
func NewScaleBox ¶
func NewScaleBox(mockupElement MockupElement) *ScaleBox
func (*ScaleBox) NEResizeTo ¶
func (*ScaleBox) NWResizeTo ¶
func (*ScaleBox) SWResizeTo ¶
func (*ScaleBox) Svg ¶
func (ele *ScaleBox) Svg() svg.SvgElement
type ScaleLine ¶
type ScaleLine struct {
// contains filtered or unexported fields
}
func NewScaleLine ¶
func NewScaleLine(l MockupElement) *ScaleLine
func (*ScaleLine) Svg ¶
func (ele *ScaleLine) Svg() svg.SvgElement
Click to show internal directories.
Click to hide internal directories.