08.08.14, 15:24
What is used to determine the kind of a selected item?
I need to distinguish a path from a group or a text item.
In my tests, constructor.name gives 'Object' and typeof x is 'undefined'.
The error messages give 'object PointText' etc ... but where is this stored?
- ---
After much experimenting I find that
thing.constructor.toString.split(' ')[0]
gives me what I want for some cases ... but it does not seem to give Circle etc.
Any better ideas?