Skip to content

Conversation

@taneliang
Copy link
Member

@taneliang taneliang commented Aug 3, 2020

Stack PR by STACK ATTACK:

Summary

Syncs the state of all 3 horizontal pan and zoom views.

Fixes the known issue from the first PR in this stack.

Test Plan

  • yarn lint
  • yarn flow: no errors in changed code
  • yarn test: no new tests; all existing ones passing
  • yarn start: manual test: panning and zooming on any horizontal pan
    and zoom view also pans and zooms the others.

} from '../canvas/constants'; // TODO: Remove external dependency

type HorizontalPanAndZoomState = {|
type HorizontalPanAndZoomState = $ReadOnly<{|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious, what does $ReadOnly do here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It prevents people from reassigning the values of the object. So you can't do e.g. state.offsetX = 234

@taneliang taneliang force-pushed the sttack-architecto-cumque-vitae branch from 3cf668c to e2b1bfd Compare August 4, 2020 05:10
Base automatically changed from sttack-architecto-cumque-vitae to master August 4, 2020 05:12
Summary
---

Syncs the state of all 3 horizontal pan and zoom views.

Fixes the known issue from the first PR in this stack.

Test Plan
---

* `yarn lint`
* `yarn flow`: no errors in changed code
* `yarn test`: no new tests; all existing ones passing
* `yarn start`: manual test: panning and zooming on any horizontal pan
  and zoom view also pans and zooms the others.
@taneliang taneliang force-pushed the sttack-aut-fugiat-id branch from cd39ef4 to 2372ab8 Compare August 4, 2020 05:12
@vercel
Copy link

vercel bot commented Aug 4, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mlh-fellowship/scheduling-profiler-prototype/b1wyajgv3
✅ Preview: https://scheduling-profiler-prototype-git-sttack-aut-fugiat-id.mlh-fellowship.vercel.app

@taneliang taneliang merged commit 62a6796 into master Aug 4, 2020
@taneliang taneliang deleted the sttack-aut-fugiat-id branch August 4, 2020 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants