|
@@ -37,23 +37,24 @@ func exportXLSX(mList []Matrix) (res []byte, err error) {
|
|
////////////////
|
|
////////////////
|
|
|
|
|
|
// setup global styles
|
|
// setup global styles
|
|
- //var sID int
|
|
|
|
|
|
+ var sID int
|
|
xStyles := make(map[string]int)
|
|
xStyles := make(map[string]int)
|
|
for name, style := range matrix.Styles {
|
|
for name, style := range matrix.Styles {
|
|
log.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", name, style)
|
|
log.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", name, style)
|
|
|
|
+ var styleRes JSONMap
|
|
|
|
+ if styleRes, err = style.Result(matrix.Styles, name); err != nil {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ //fmt.Println("!!!!!!!!!!!!!!", name, string(styleRes.JSON()))
|
|
/*
|
|
/*
|
|
- var styleRes JSONMap
|
|
|
|
- if styleRes, err = style.Result(matrix.Styles, name); err != nil {
|
|
|
|
|
|
+ if sID, err = f.NewStyle(string(styleRes.JSON())); err != nil {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- //fmt.Println("!!!!!!!!!!!!!!", name, string(styleRes.JSON()))
|
|
|
|
-
|
|
|
|
- if sID, err = f.NewStyle(string(styleRes.JSON())); err != nil {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- xStyles[name] = sID
|
|
|
|
*/
|
|
*/
|
|
|
|
+ if sID, err = f.NewStyle(styleRes.ToStyle()); err != nil {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ xStyles[name] = sID
|
|
}
|
|
}
|
|
////////////////
|
|
////////////////
|
|
|
|
|