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.
我有一个现有的 html5 画布白板。我怎样才能让 Kinetic 使用我现有的画布来添加它的一些功能?
谢谢!
你可以像这样创建一个新层:
var whiteboardLayer = new Kinetic.Layer();
并像这样访问生成的画布元素:
var canvas = whiteboardLayer.getCanvas().getElement();