8000 GitHub - dominictobias/shape-test · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Shape Test

Setup

npm install

Run

npm start

Once a tile is added you can drag and resize it.

Development notes

  • It seems that this task is best suited to: drawing, dragging, resizing, snapping and collision detection. I've done this sort of thing in react-image-crop and I think it'd take days to refine! So I settled on leveraging react-grid-layout for the task.

As a byproduct there isn't too much surface area to unit test. I prefer to test non-trivial pieces of code rather than testing every UI method, most of which are simple render routines or events which call an action.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0