layer.size < object>
Allows you to set or capture the width and height values of a layer.
译:允许您设置或捕捉一个图层的宽度和高度值
layerA = new Layer
print layerA.size
# Output: { width: 100, height: 100 }
layerA.size =
width: 10
height: 10
print layerA.size
# Output: { width: 10, height: 10 }
print layerA.width
# Output: 10