/
export.go
executable file
·56 lines (51 loc) · 1.7 KB
/
export.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// export by github.com/goplus/igop/cmd/qexp
package api
import (
q "github.com/zrcoder/ndor/api"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "api",
Path: "github.com/zrcoder/ndor/api",
Deps: map[string]string{
"github.com/fogleman/gg": "gg",
"github.com/zrcoder/ndor/internal": "internal",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]reflect.Type{},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{},
Funcs: map[string]reflect.Value{
"Arc": reflect.ValueOf(q.Arc),
"Bezier": reflect.ValueOf(q.Bezier),
"Circle": reflect.ValueOf(q.Circle),
"Clear": reflect.ValueOf(q.Clear),
"Clip": reflect.ValueOf(q.Clip),
"Color": reflect.ValueOf(q.Color),
"Context": reflect.ValueOf(q.Context),
"Dash": reflect.ValueOf(q.Dash),
"Earc": reflect.ValueOf(q.Earc),
"Ellipse": reflect.ValueOf(q.Ellipse),
"Fill": reflect.ValueOf(q.Fill),
"From": reflect.ValueOf(q.From),
"Linew": reflect.ValueOf(q.Linew),
"Polygon": reflect.ValueOf(q.Polygon),
"Pop": reflect.ValueOf(q.Pop),
"Push": reflect.ValueOf(q.Push),
"Rectangle": reflect.ValueOf(q.Rectangle),
"Rotate": reflect.ValueOf(q.Rotate),
"Scale": reflect.ValueOf(q.Scale),
"Stroke": reflect.ValueOf(q.Stroke),
"Text": reflect.ValueOf(q.Text),
"To": reflect.ValueOf(q.To),
"Translate": reflect.ValueOf(q.Translate),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{
"Preserve": {"untyped string", constant.MakeString(string(q.Preserve))},
},
})
}