Jan-Sandr / Grafer

2 stars 1 forks source link

[App] Implement movement in coordinate system #150

Closed Jan-Sandr closed 2 years ago

Jan-Sandr commented 2 years ago

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 private CyclicShift both of them will be type of Space 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 when AbsoluteShift's value change because when it happened then it is necessary to recalculate function study it here and also here

Main

Use custom event about AbsoluteShift's value changes to Invoke function refresh.

To do:

Jan-Sandr commented 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.