Skip to content

A simple interactive UI to generate and select dots based on 3 parameters - Count , Selected , Radius

Notifications You must be signed in to change notification settings

debanjana/angular-circles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A simple interactive UI to generate and select dots with Count , Radius and Selected Value. The UI just consists of a rectangle with dots inside of it. There are three inputs controlling the presentation of the dots:

  • Count – The number of dots to display

  • Selected – The index of a dot that is currently selected

  • Radius – The radius of a dot.

Functionality

  • Adjust number of dots
  • Highlight the ‘selected’ dot
  • Adjust dot size
  • Select a dot
  • Select a selected dot

Demo

The following demonstration provides an overview of the application : Click the image below Alt text Watch the video

Technology

Angular 7 with HTML CSS TS

Running Code

Validation checks

  • Input to be only number
  • Input to be greater than 0
  • When number of dots are lesser than selected value , change the selected value to min number of dots.
  • Changes made only on ENTER key press

Running tests

app.component.spec.ts contains a basic spec.

The file has been commented out as stackblitz does not support test framework.

Alternate approach

Alternate approach would be to use HTML canvas without leveraging the power of Angular.

About

A simple interactive UI to generate and select dots based on 3 parameters - Count , Selected , Radius

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published