fixed prop name

nats
Paulo Simão 2021-11-04 17:21:52 -03:00
parent a010f26d67
commit ac706b9d72
1 changed files with 8 additions and 8 deletions

View File

@ -17,10 +17,10 @@ type AltoString struct {
HEIGHT int `xml:"HEIGHT,attr"` HEIGHT int `xml:"HEIGHT,attr"`
WC float64 `xml:"WC,attr"` WC float64 `xml:"WC,attr"`
CONTENT string `xml:"CONTENT,attr"` CONTENT string `xml:"CONTENT,attr"`
RHPOS int `xml:"RHPOS,attr"` AHPOS int `xml:"AHPOS,attr"`
RVPOS int `xml:"RVPOS,attr"` AVPOS int `xml:"AVPOS,attr"`
RWIDTH int `xml:"RWIDTH,attr"` AWIDTH int `xml:"AWIDTH,attr"`
RHEIGHT int `xml:"RHEIGHT,attr"` AHEIGHT int `xml:"AHEIGHT,attr"`
} }
func (a *AltoString) AbsCoords(q *Opts) { func (a *AltoString) AbsCoords(q *Opts) {
@ -29,10 +29,10 @@ func (a *AltoString) AbsCoords(q *Opts) {
nw := int(float64(a.WIDTH) / q.Proportion) nw := int(float64(a.WIDTH) / q.Proportion)
nh := int(float64(a.HEIGHT) / q.Proportion) nh := int(float64(a.HEIGHT) / q.Proportion)
log.Printf("Mapping: x: %v=>%v; y:%v=>%v; w:%v=>%v; h:%v=>%v;(Prop: %v,qx: %v, qy: %v)", a.HPOS, nx, a.VPOS, ny, a.WIDTH, nw, a.HEIGHT, nh, q.Proportion, q.X, q.Y) log.Printf("Mapping: x: %v=>%v; y:%v=>%v; w:%v=>%v; h:%v=>%v;(Prop: %v,qx: %v, qy: %v)", a.HPOS, nx, a.VPOS, ny, a.WIDTH, nw, a.HEIGHT, nh, q.Proportion, q.X, q.Y)
a.RHPOS = nx a.AHPOS = nx
a.RVPOS = ny a.AVPOS = ny
a.RWIDTH = nw a.AWIDTH = nw
a.RHEIGHT = nh a.AHEIGHT = nh
return return
} }