Jquery Image Lens - Kinetic JS image id

人走茶凉 提交于 2019-12-08 16:44:33

It is not posible to use kineticjs and imageLens as you are trying. Very different techniques.

So you have such ways:

  1. Don't use kineticjs. Work only with DOM images.
  2. Convert kineticjs objects to image http://www.html5canvastutorials.com/kineticjs/html5-canvas-shape-caching-with-kineticjs/ then insert the image to DOM and then use imageLens.

kinetic js objects are not inserted in the DOM. The correct way to access an object using the id is via the stage object.

var th = stage.get('#thumb');
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!