layer.copy()

This will copy a layer and all its children. The layers will have all the same properties as their copied counterparts (same position and looks). The event listeners will not be copied.
译:这将复制层和所有其子层。层将拥有所有的同行相同的地位,并期待复制相同的属性。事件侦听器将不会被复制。

layerA = new Layer
layerB = new Layer
    parent: layerA

layerC = layerA.copy()

results matching ""

    No results matching ""