Meteorを介してKineticJSオブジェクトの位置を更新しようとしています。
問題は次のとおりです。
Players.update({name: "Rect"}, {xpos: this.attrs.x})
流星のドキュメントによると、次のようになります。
// Find the document with id "123", and completely replace it.
Users.update({_id: "123"}, {name: "Alice", friends: ["Bob"]});
データが更新されているかどうかを確認しようとしました:
console.log(Players.findOne({name: "Rect"}).xpos);
これがgithubです:
https://github.com/randompast/randomtests/tree/master/meteorCanvasTest