fixed prop name
parent
a010f26d67
commit
ac706b9d72
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue