Git Product home page Git Product logo

canvas-gallery's Introduction

canvas-gallery

canvas-gallery

Features

  • Ability to create/clear annotation tags on currently selected image
  • Tags need to be draggable aka re-positionable by clicking and dragging the mouse on the tag box
    • partially done
    • suppose to re-render annotation indenpently rather than re-render image again, which cause the flash
  • Switch between images with next/back/delete image feature
  • All content should be stored in the browser side storage and initialized on load/refresh of the page
  • App should allow multiple images uploads and multiple associated tags per image
  • Annotations should show correctly even when screen resolution changes e.g. landscape/ portrait.
  • Handle cases where screen resolution is too small to function by displaying a message to the user.
    • Not implemented
    • Implementation can be done by checking the window size on initial load and resize event to show/hide a global overlay

Notes

  • Done by a bit rush (really heavy features delivery this week, squeezed 2 nights on this task)
  • A lot of improvement to be done including extracting renderer and pure calculation functions
  • Basic mechanism is leveraging on setter and getter, re-render related DOM on change
  • Only vanilla JS used

To Run

  • Recommended: start local http service to browser the index.html (e.g. Live Server Plugin)
  • Open index.html in Chrome

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.