I am trying to implement a transform bounding box in Paper.js, but it is not working properly yet.
Here is my code. As you can see, the path and the selection box do not seem to rotate around the same pivot, and both path get desynchronized after a while. Any idea why this happens?
I though about having both paths in a group, and transforming the group instead, but I had no time to try this yet.
What is the best way to implement this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…