layer.pixelAlign()
Round the x and y values of this layer to whole numbers. Allows you to snap layers on the pixel. This is useful when dynamically centering layers.
译:园这一层的x和y值的整数。允许您在像素上单元图层。这是有用的动态定心层。
layerA = new Layer
x: 100.18293
y: 10.12873
layerA.pixelAlign()
print layerA.x, layerA.y
# Output: 100, 10