layer.originX < number>
Sets the x origin for scale, rotate and skew transformations. The origin is defined as a number, where 0 is the left edge of the layer and 1 the right edge. The default value is 0.5, the center of the layer.
译:设置规模,旋转和倾斜转换的X-起源。原点被定义为1和0之间,其中0是该层的左边缘和1的右边缘。默认值是0.5,该层的中心。
layerA = new Layer
layerA.rotation = 45
layerA.originX = 0
layerA.originX = 1