paper.view.bounds实际返回的是什么?
它似乎返回一个带有多个属性的rectangle对象:
Rectangle {height: 1200, width: 1920, y: 0, x: 0}
height: 1200
width : 1920
x : 0
y : 0
bottom : (...)
bottomCenter : (...)
bottomLeft : (...)
bottomRight : (...)
center : (...)
centerX : (...)
centerY : (...)
empty : (...)
left : (...)
leftCenter : (...)
point : (...)
right : (...)
rightCenter : (...)
size : (...)
top : (...)
topCenter : (...)
topLeft : (...)
topRight : (...)
__proto__ : Base发布于 2017-10-19 17:51:43
bounds指的是Item的边界框。
可以把它看作是封装Item所需的最小方框。
来自Wikipedia: Minimum Bounding Box
在几何图形中,N维点集(S)的最小或最小边界或封闭框是具有最小度量(面积、体积或更高维度中的超体积)的框,所有点都位于其中。当使用其他类型的度量时,通常相应地将最小框称为,例如,“最小周长边界框”。

https://stackoverflow.com/questions/46789258
复制相似问题