We are all about annotating/marking up engineering/construction/architecture documents, collaboratively, in real-time, across multiple devices.
We think this test, which is based on an actual issue we have had to deal with, should give us an idea of how you solve problems as well as give you an idea regarding the sort of challenges you will face working with us.
If someone draws a rectangle in our windows app (or any other app of ours), we must acurately display that rectangle in the same place and in the same way on every one of our other apps, this is an extremely important aspect about what we do.
We have provided you with a couple important things:
- Some sample api data
- An Annotation component to render the api data
- What the annotations should look like
When you start up the react app you will notice that the annotations are sort of stretched and not looking like the provided picture. This is because we are applying the transformation matrix to the shapes as a whole after the fact (transform attribute on the path element) instead of individually to the data that represents the shape before it is rendered on the screen.
We would like you to make the annotations render correctly (they should look like this)
NOTE: You can use/import any files already present in the
./srcdirectory as you please, just remember you can only add/modify files in the./src/Annotationdirectory
- Fork the repo to your own github account
- Make the annotations look like the provided image
- Only modify/add files in the
./src/Annotationdirectory - Dont add/use any additional libraries (No d3, three.js, paper, etc), you shouldnt need them.
- Send us a link to your fork when you are ready for us to review
NOTE: we use
yarnas our package manager (info here), there are correspondingnpmcommands (info here) if that is what you prefer.
// Install Deps
$ yarn
// Start Dev Environment
$ yarn start
// Run Tests
$ yarn test
NOTE: the test runner will any files that that end in
*.test.jsthat are found in the./srcdirectory. Some example tests can be found in the./src/__lib__directory. We are using Jest for our tests at Drawboard and in this test.
- Many thanks to this site for providing the code to get Webpack loaders handle the CSS.

