layer.clip

Sets whether the layer should clip its children. Clipping is disabled by default.
译:集层是否应该夹它的子层。 剪裁默认情况下是启用的。 剪辑层与borderRadius ,您必须启用 force2d 在所有子层需要剪。

layerA = new Layer
    width: 100
    height: 100

layerB = new Layer
    width: 200
    height: 200
    parent: layerA

layerA.clip = true

results matching ""

    No results matching ""