Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(drawing): Create staged drawing #640

Merged
merged 7 commits into from
Dec 7, 2020

Conversation

ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Nov 21, 2020

TODO:

  • Unit tests
  • Cross browser testing

create drawing

@ConradJChan ConradJChan requested a review from a team as a code owner November 21, 2020 00:11
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingPath.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingPathGroup.tsx Outdated Show resolved Hide resolved
src/region/RegionCreator.tsx Outdated Show resolved Hide resolved
src/store/creator/types.ts Outdated Show resolved Hide resolved
src/drawing/DrawingPathGroup.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
renderStep(renderPath);
}

return () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make a reusable hook that handles the management of the RAF callback/handle?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do in a separate PR

src/components/PointerCapture/PointerCapture.tsx Outdated Show resolved Hide resolved
src/components/PointerCapture/PointerCapture.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingPath.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingPath.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Show resolved Hide resolved
@ConradJChan ConradJChan force-pushed the create-drawing-component branch from 6beb0b9 to b0cb1e3 Compare December 1, 2020 07:12
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/components/PointerCapture/PointerCapture.tsx Outdated Show resolved Hide resolved
src/components/PointerCapture/PointerCapture.tsx Outdated Show resolved Hide resolved
src/drawing/DecoratedDrawingPath.tsx Show resolved Hide resolved
src/drawing/DecoratedDrawingPath.tsx Outdated Show resolved Hide resolved
src/drawing/drawingUtil.ts Outdated Show resolved Hide resolved
src/store/creator/reducer.ts Outdated Show resolved Hide resolved
src/store/creator/types.ts Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
@ConradJChan ConradJChan force-pushed the create-drawing-component branch from b0cb1e3 to dfeabba Compare December 3, 2020 07:34
Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

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

Looks good to me. Nice job.

src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingCreator.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingPath.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingTarget.tsx Outdated Show resolved Hide resolved
src/store/drawing/actions.ts Show resolved Hide resolved
src/store/drawing/types.ts Outdated Show resolved Hide resolved
src/drawing/__tests__/DrawingCreator-test.tsx Outdated Show resolved Hide resolved
src/drawing/__tests__/DrawingPathGroup-test.tsx Outdated Show resolved Hide resolved
src/region/__tests__/RegionCreator-test.tsx Outdated Show resolved Hide resolved
src/store/drawing/__mocks__/drawingState.ts Outdated Show resolved Hide resolved
src/store/drawing/__tests__/actions-test.ts Outdated Show resolved Hide resolved
@ConradJChan ConradJChan merged commit 40be2ee into box:master Dec 7, 2020
@ConradJChan ConradJChan deleted the create-drawing-component branch December 7, 2020 19:06
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.

5 participants