Giter Site home page Giter Site logo

andrewjb123 / angular-radial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brandonaaskov/angular-radial

0.0 1.0 0.0 17 KB

Part of the Fullscreen Creator Platform, this is a handy directive for easy radials that relies entirely on the Canvas API and nothing else.

Home Page: https://angular-radial.firebaseapp.com/

JavaScript 55.30% HTML 25.98% CoffeeScript 18.72%

angular-radial's Introduction

angular-radial

This is a simple directive as created as part of the Fullscreen Creator Platform. It's intended to be used with percentages to just show completion status in a less... progressy-bar kind of way. It doesn't rely on any libraries outside of Angular itself. The arc is drawn using the arc() method on the Canvas API.

Installation

bower install https://github.com/brandonaaskov/angular-radial.git

Wherever your bower_components folder lives, you'll see an angular-radial folder in there. If you want to use the compressed build files, check the build directory. If you want to use the source file, all you need is the angular-radial.js file in the src folder.

Usage

Simplest Use

<radial percent-complete="myPercentageValue"></radial>

All the Options

<radial percent-complete="myPercentageValue"
        font-family="'Comic Sans', 'Marker Felt', sans_serif"
        radius="180"
        line-width="75"
        line-cap="round"
        bg-color="e0f1cb"
        color="9ad154"
        font-color="#fff"></radial>

note: please never use comic sans or marker felt in production

Examples/Demos

You can see the examples by going to the demo site (note: you don't need Firebase for this app - they just have a dead-simple deployment process so I used them). If you're developing locally, then running gulp should start up a localhost server for you running on port 3000.

angular-radial's People

Contributors

brandonaaskov avatar andrewjb123 avatar

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.