fixed prop name
parent
a010f26d67
commit
ac706b9d72
|
@ -17,10 +17,10 @@ type AltoString struct {
|
|||
HEIGHT int `xml:"HEIGHT,attr"`
|
||||
WC float64 `xml:"WC,attr"`
|
||||
CONTENT string `xml:"CONTENT,attr"`
|
||||
RHPOS int `xml:"RHPOS,attr"`
|
||||
RVPOS int `xml:"RVPOS,attr"`
|
||||
RWIDTH int `xml:"RWIDTH,attr"`
|
||||
RHEIGHT int `xml:"RHEIGHT,attr"`
|
||||
AHPOS int `xml:"AHPOS,attr"`
|
||||
AVPOS int `xml:"AVPOS,attr"`
|
||||
AWIDTH int `xml:"AWIDTH,attr"`
|
||||
AHEIGHT int `xml:"AHEIGHT,attr"`
|
||||
}
|
||||
|
||||
func (a *AltoString) AbsCoords(q *Opts) {
|
||||
|
@ -29,10 +29,10 @@ func (a *AltoString) AbsCoords(q *Opts) {
|
|||
nw := int(float64(a.WIDTH) / 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)
|
||||
a.RHPOS = nx
|
||||
a.RVPOS = ny
|
||||
a.RWIDTH = nw
|
||||
a.RHEIGHT = nh
|
||||
a.AHPOS = nx
|
||||
a.AVPOS = ny
|
||||
a.AWIDTH = nw
|
||||
a.AHEIGHT = nh
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue