2023-05-08 18:43:07 +00:00
|
|
|
package icons
|
|
|
|
|
|
|
|
// Code generated by vugu via vugugen. Please regenerate instead of editing or add additional code in a separate file. DO NOT EDIT.
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
import "reflect"
|
|
|
|
import "github.com/vugu/vjson"
|
|
|
|
import "github.com/vugu/vugu"
|
|
|
|
import js "github.com/vugu/vugu/js"
|
|
|
|
|
2023-05-15 06:58:12 +00:00
|
|
|
import (
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
|
|
|
|
)
|
|
|
|
|
2023-05-10 10:45:04 +00:00
|
|
|
type LStart struct {
|
2023-05-08 18:43:07 +00:00
|
|
|
AttrMap vugu.AttrMap
|
|
|
|
}
|
|
|
|
|
2023-05-10 10:45:04 +00:00
|
|
|
func (c *LStart) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
2023-05-08 18:43:07 +00:00
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
var vgiterkey interface{}
|
|
|
|
_ = vgiterkey
|
|
|
|
var vgn *vugu.VGNode
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
|
|
|
|
vgout.Out = append(vgout.Out, vgn) // root for output
|
2023-05-15 06:58:12 +00:00
|
|
|
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
|
2023-05-08 18:43:07 +00:00
|
|
|
{
|
|
|
|
vgparent := vgn
|
|
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
2023-05-18 11:55:48 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "path", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-icon-stroke"}, vugu.VGAttribute{Namespace: "", Key: "d", Val: "M4.7 2.75l7.76 4.34c0.5,0.28 0.78,0.78 0.77,1.36 -0.02,0.57 -0.33,1.06 -0.85,1.31l-7.76 3.72c-0.48,0.23 -1,0.2 -1.45,-0.08 -0.45,-0.28 -0.7,-0.74 -0.7,-1.27l0 -8.06c0,-0.55 0.27,-1.02 0.74,-1.29 0.47,-0.28 1.01,-0.28 1.49,-0.01z"}, vugu.VGAttribute{Namespace: "", Key: "stroke-width", Val: "1"}, vugu.VGAttribute{Namespace: "", Key: "stroke-linejoin", Val: "round"}, vugu.VGAttribute{Namespace: "", Key: "stroke-linecap", Val: "round"}, vugu.VGAttribute{Namespace: "", Key: "fill", Val: "none"}}}
|
2023-05-08 18:43:07 +00:00
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
2023-05-15 06:58:12 +00:00
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
{
|
2023-05-18 11:55:48 +00:00
|
|
|
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\theight: 1em;\n\t}\n\n\t.d3c-icon-stroke {\n\t\tstroke: var(--d3c-color-text);\n\t}\n\n\t.d3c-icon-fill {\n\t\tfill: var(--d3c-color-text);\n\t}\n\n\t.d3c-icon-use-color .d3c-icon-stroke {\n\t\tstroke: var(--d3c-color-background);\n\t}\n\n\t.d3c-icon-use-color .d3c-icon-fill {\n\t\tfill: var(--d3c-color-background);\n\t}\n", Attr: []vugu.VGAttribute(nil)})
|
2023-05-15 06:58:12 +00:00
|
|
|
}
|
|
|
|
vgout.AppendCSS(vgn)
|
2023-05-08 18:43:07 +00:00
|
|
|
return vgout
|
|
|
|
}
|
|
|
|
|
|
|
|
// 'fix' unused imports
|
|
|
|
var _ fmt.Stringer
|
|
|
|
var _ reflect.Type
|
|
|
|
var _ vjson.RawMessage
|
|
|
|
var _ js.Value
|