有没有办法获取 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