I am using the Kinetic.js JavaScript Kinetic.js for an HTML5 canvas. Here is the stage.get() method to get objects from the scene (canvas). I assigned id or class names to each object
if I get the object by id var obj = stage.get('#obj_id') , it works, but if you try to get several objects by the class name var objs = stage.get('.obj_class_name') , it returns an empty object []
How can I get some objects from the scene.
source share