Support toString()
in more classes. During debugging it is frequently the case to check the values of an object in the console.
Use Case:
Yusuke is writing a plugin to add 3d transforms to the selected items. He edits code, saves it, reloads his plugin and then runs it. He opens the console and checks the values. For each bounds object he writes four lines of code. He ponders if some day he would only have to write one line.
log("x:" + bounds.x)
log("y:" + bounds.y)
log("width:" + bounds.width)
log("height:" + bounds.height)
Example:
log("Local center point:" + item.localCenterPoint); // outputs [object Object]
Expected (desired) outcome:
log("Local center point:" + item.localCenterPoint); // outputs {x: 10, y: 10}
Suggested candidates:
item.globalBounds
item.globalDrawBounds
item.localCenterPoint
item.boundsInParent
item.topLeftInParent