【问题标题】:kineticJS: get the layer that is on top of other layerskineticJS:获取位于其他层之上的层
【发布时间】:2014-05-21 22:23:18
【问题描述】:

我有一个包含多个重叠图层的舞台。如何获得最上面的图层?我可以在不知道其中任何一个的 Z-index 的情况下使用方法 getAbsoluteZIndex(),因为只要用户需要,它们中的每一个都会使用按钮调用吗?

【问题讨论】:

    标签: kineticjs


    【解决方案1】:
    stage.children[stage.children.length - 1]
    

    【讨论】:

      猜你喜欢
      • 2013-02-06
      • 2012-12-21
      • 2013-06-17
      • 2012-12-20
      • 1970-01-01
      • 2012-12-11
      • 2012-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多