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.
在尝试设置动态层的宽度和高度后,我注意到它们似乎没有可确定的效果。例如,我可以在其包含层的宽度之外添加一个形状,它仍然会在舞台上绘制。
似乎一个层扩展为包括添加到它的任何内容。这个对吗?
动力学层的宽度和高度有什么意义?这些参数是否以任何方式使用?
你是对的。
Kinetic.Layers 始终填充舞台,无论图层宽度/高度设置如何。
图层宽度/高度属性存在是因为它们继承自 Kinetic.Container,但设置图层宽度/高度没有效果。