diff --git a/measure.go b/measure.go index bd8afc33..f1a25fef 100644 --- a/measure.go +++ b/measure.go @@ -45,8 +45,8 @@ func newMeasure(v specsp) *measure { size: size, text: text, color: color.RGBA{R: r, G: g, B: b, A: 0xff}, - x: v["center_x"].(float64), - y: v["center_y"].(float64), + x: v["x"].(float64), + y: v["y"].(float64), svgLineStyle: fmt.Sprintf("stroke-width:%d;stroke:rgb(%d, %d, %d);", measureLineWidth, r, g, b), svgRotate: fmt.Sprintf("rotate(%.1f %d %d)", heading, svgSize>>1, svgSize>>1), svgSize: svgSize, diff --git a/test/Measure/res/index.json b/test/Measure/res/index.json index b779b754..7c1c059a 100644 --- a/test/Measure/res/index.json +++ b/test/Measure/res/index.json @@ -18,32 +18,32 @@ }, { "type": "measure", - "center_x": 0, - "center_y": 0, + "x": 0, + "y": 0, "heading": 0, "size": 150, "color": 15629590 }, { "type": "measure", - "center_x": -100, - "center_y": 0, + "x": -100, + "y": 0, "heading": 60, "size": 200, "color": 0 }, { "type": "measure", - "center_x": -100, - "center_y": 100, + "x": -100, + "y": 100, "heading": -30, "size": 100, "color": 65535 }, { "type": "measure", - "center_x": 0, - "center_y": 100, + "x": 0, + "y": 100, "heading": 90, "size": 10, "scale": 10,