Skip to content

Commit 0621fca

Browse files
author
d0409
committed
fix
1 parent 99faae1 commit 0621fca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"top": 94,
181181
"width": 82,
182182
"height": 73.4,
183-
"central" : [x, y], // left+(width/2), top+(height/2)
183+
"centre" : [x, y], // left+(width/2), top+(height/2)
184184
"img":"air.png",
185185
"type": "AirConditioner",
186186
"object" : {
@@ -203,7 +203,7 @@
203203
"top": 121,
204204
"width": 82,
205205
"height": 73.4,
206-
"central" : [x, y], // left+(width/2), top+(height/2)
206+
"centre" : [x, y], // left+(width/2), top+(height/2)
207207
"img":"air.png",
208208
"type": "AirConditioner",
209209
"object" : {
@@ -232,7 +232,7 @@
232232
"top": 241,
233233
"width": 46,
234234
"height": 68.4,
235-
"central" : [x, y], // left+(width/2), top+(height/2)
235+
"centre" : [x, y], // left+(width/2), top+(height/2)
236236
"img":"heat.png",
237237
"type": "heat",
238238
"object": {
@@ -264,5 +264,6 @@
264264
top | 已左上角为原点,离上边轴的距离 | 浮点型 |
265265
width | 图片的宽 | 浮点型 |
266266
height | 图片的高 | 浮点型 |
267+
centre | 图片的中心坐标 | 数组 | [x, y]
267268
type | list中的type说明控制对象的类型 | 枚举 | 空调`AirConditioner`<br>地暖`heat`<br> ...这里还需要详细定义一下
268269
object | 控制对象的属性 | 对象 | 不同的type,对象属性不同

0 commit comments

Comments
 (0)