Closed Jan-Sandr closed 2 years ago
Well, it just work. In conclusion I am not happy with implementation especially with number shifting. If will be time in future the it must be reworked. Also again many times it was like random ant trial and error implementing so some times I didn't know what I was coding.
Story:
Currently user can only zoom coordinate system. Next feature of this component will be movement inside. Overaly implementation will be pretty similar like in the old version. But with new skill it can be done little bit better. So mostly inspire in old Grafer.
Coordinate System:
News properties at least two: public
AbsoluteShift
and privateCyclicShift
both of them will be type ofSpace
struct. For movement realization will be necessary 3 events about mouse : down, move and up. Then some methods which will calculate shifts and then just complete implementation. It cannot be specified here more detaily because of my different approach about this problem so GOOD LUCK! As last try to create event which will raise whenAbsoluteShift
's value change because when it happened then it is necessary to recalculate function study it here and also hereMain
Use custom event about
AbsoluteShift
's value changes to Invoke function refresh.To do: