如何使用 createjs 或easeljs 获取图形对象宽度或文本宽度。
Graphics Obj :
var myShape = new createjs.Shape();
myShape .graphics.beginStroke("#FFFFFF");
myShape .graphics.setStrokeStyle(5);
myShape .graphics.beginFill("#C1272D").drawRect(0, 0, gameStage.canvas.width - 10, 40);
stage.addChild(myShape);
Text Field :
var textF = new createjs.Text("Time Left.. Do it Fast", "20px Arial", "#FFFFFF");
stage.addChild(textF);
如何检索 textF 和 myShape 的尺寸(宽度和高度)?