有沒有辦法獲得Kinetic.Path對象的寬度和高度?它總是返回零。獲取Kinetic.Path的大小
var path = new Kinetic.Path({
x: 40,
y: 40,
data: "m 148.57143,-1.9235271 200,82.8571401 L 257.14286,300.93361 2.8571414,263.79075 z",
stroke: "green",
draggable: true
});
layer.add(path);
stage.draw();
console.log(path.getWidth()); // returns zero