Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 Konva Group 并向其中添加了几个对象。当我调用hide()该组然后layer.draw()刷新画布时,该对象仍在显示。我究竟做错了什么?
hide()
layer.draw()
(康瓦 1.4.0)
有一个未记录的要求,对于组中的子对象,您必须将可见属性设置为子对象inherit以尊重父对象的可见性字段。
inherit
var g = new Konva.Group(); var c = new Konva.Circle({ radius : 5, visible : 'inherit' }); g.add(c);