layer.props < object>

Gets or sets all properties for this layer.
译:获取或设置该图层的所有属性。

layerA = new Layer

# Get current layer properties 
print layerA.props
# Output: { x: 100, y: 100, ...} 

# Set properties 
layerA.props =
    rotation: 90
    opacity: 0.5

results matching ""

    No results matching ""