please help me, how can I find out the width of an object?
var page_body = document.getElementsByTagName("body")[0];
Hello.
Please tell me. )
I placed a square object on the canvas, and converted it into a symbol.
Gave him a name - chief
Now I'm writing code -
page_body.style.overflow = "hidden";
page_body.style.position = "fixed";
var page_canvas = document.getElementsByTagName("canvas")[0];
var _this = this;
console.log("_this.chief.y - "+_this.chief.y);
console.log("_this.chief.x - "+_this.chief.x);
console.log("_this.chief.width - "+_this.chief.width);
console output -
_this.chief.y - 351.05
_this.chief.x - 372.05
_this.chief.width - undefined
please help me, how can I find out the width of an object?
