I cannot get the height and width properties off objects other than Rectangles. Am I missing something here?
const runImages = async (selection) => {
for(let i = 0; i < selection.items.length; i++) {
let {constructor, width, height} = selection.items[i];
console.log(constructor.name, `width: ${width} | height: ${height} `)
}
}
If the selected object is Rectangle then
output //
Rectangle width: 916 | height: 571
However, if the object is Ellipse then the
output //
Ellipse width: undefined | height: undefined
TIA!