Code Monkey home page Code Monkey logo

tinytap-home-assignment-'s Introduction

TinyTap Home assignment

Please complete the following exercise as soon as you can:

Trace and cut a polygon out of an image

You can find a live demo of the assignment here: https://gleaming-starburst-4852c5.netlify.app/

Getting started

  1. Clone this repository
  2. Install the dependencies: npm install
  3. Run the app: npm start
  4. Open the app in your browser: http://localhost:5173

Goal: The user will be able to trace an area from an image and drag it around.

Features:

  • Load an image and present it
  • User should be able to load multiple images
  • Display images in thumbnails (4/3 ratio), and select and image to create a puzzle Ask the user to trace a shape ("Please draw a path to create a puzzle piece")
  • Trace a path freely by pressing the mouse and moving it. once mouse is up, close the shape
  • The new cut shape should be draggable
  • paint the hole (where shape was cut from) in gray shape will have an x icon attached on it's border
  • tapping on the x button will delete the shape and fill the hole back. before removing the piece, display a dialog to verify the delete action (“Are you sure you want to delete this piece”), with “delete” or “cancel” options. (entry animation is a bonus)
  • Swapping images should not clear the piece

Guidelines

  • Pay attention to the experience, if you have ideas on how to make it awesome, please show us.
  • We're leaving you without graphics, you can find icons online, try and choose designs that work together.
  • Using React + Canvas
  • You may use the internal react component state
  • Think about you reusable hooks and components
  • Mind code quality, structure and performance
  • Keep it as simple as possible. Support Chrome only
  • Use Webpack for frontend toolchain (create-react-app is ok)
  • brownie points for use of styled-components

tinytap-home-assignment-'s People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.