Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
KinecticJSで要素のスケーリングされた高さ/幅を取得しようとしていますが、getHeight()/ getWidth()は元の高さと幅のみを返し、スケーリングされたものは返しません。足りない機能はありますか?
よろしくお願いします、マット
解決しました:
//Get scale... var scale = target.getScale().x; var height = target.getHeight(); var width = target.getWidth(); //Get scaled height by multiplying the scale by the width/height var scaleWidth = scale*width; var scaleHeight = scale*height;