Permalink
Browse files

removing old dist files

  • Loading branch information...
1 parent b8ed9f1 commit 70b3945d6beda04c0b6ef1863fac8f2fc4711f98 @jonaphin committed Apr 28, 2012
Showing with 0 additions and 72 deletions.
  1. +0 −68 dist/grouple.js
  2. +0 −4 dist/grouple.min.js
View
@@ -1,68 +0,0 @@
-/*! Grouple - v0.1.0 - 2012-04-28
-* https://github.com/jonaphin/grouple
-* Copyright (c) 2012 Jonathan Lancar; Licensed MIT */
-
-(function($) {
-
- // Collection method.
- $.fn.grouple = function(options) {
- if(options === undefined) {
- options = {};
- }
-
- var self = this;
-
- this.circle = function() {
-
- };
-
- return this.each(function() {
- var canvas_width = $(this).width();
- var canvas_height = $(this).height();
- var center_x = canvas_width / 2;
- var center_y = canvas_height / 2;
- // choose the smaller side as outer radius
- var radius_outer = (center_x < center_y ? center_x : center_y) * 0.9;
- var radius_inner = radius_outer * 0.6;
-
- // stroke
- var line_width = options.stroke_width ? options.stroke_width : 0;
-
- $(this).html('<canvas class="grouple-canvas" width="'+canvas_width+'" height="'+canvas_height+'"></canvas>');
-
- var canvas = $(this).find("canvas")[0];
- var ctx = canvas.getContext("2d");
- ctx.fillStyle="#FF0000";
- ctx.beginPath();
- ctx.arc(center_x, center_y, radius_outer, 0, Math.PI * 2, true);
- ctx.closePath();
- ctx.fill();
- ctx.lineWidth = line_width;
- ctx.strokeStyle = "black";
- ctx.stroke();
-
- ctx.fillStyle="#FFFFFF";
- ctx.beginPath();
- ctx.arc(center_x, center_y, radius_inner, 0, Math.PI * 2, true);
- ctx.closePath();
- ctx.fill();
-
- ctx.save();
- ctx.translate(50,50);
- ctx.scale(0.35,0.75);
-
- ctx.restore();
- });
- };
-
- // Static method.
- $.circle = function() {
- return 'awesome';
- };
-
- // Custom selector.
- $.expr[':'].awesome = function(elem) {
- return elem.textContent.indexOf('awesome') >= 0;
- };
-
-}(jQuery));
View
@@ -1,4 +0,0 @@
-/*! Grouple - v0.1.0 - 2012-04-28
-* https://github.com/jonaphin/grouple
-* Copyright (c) 2012 Jonathan Lancar; Licensed MIT */
-(function(a){a.fn.grouple=function(b){b===undefined&&(b={});var c=this;return this.circle=function(){},this.each(function(){var c=a(this).width(),d=a(this).height(),e=c/2,f=d/2,g=(e<f?e:f)*.9,h=g*.6,i=b.stroke_width?b.stroke_width:0;a(this).html('<canvas class="grouple-canvas" width="'+c+'" height="'+d+'"></canvas>');var j=a(this).find("canvas")[0],k=j.getContext("2d");k.fillStyle="#FF0000",k.beginPath(),k.arc(e,f,g,0,Math.PI*2,!0),k.closePath(),k.fill(),k.lineWidth=i,k.strokeStyle="black",k.stroke(),k.fillStyle="#FFFFFF",k.beginPath(),k.arc(e,f,h,0,Math.PI*2,!0),k.closePath(),k.fill(),k.save(),k.translate(50,50),k.scale(.35,.75),k.restore()})},a.circle=function(){return"awesome"},a.expr[":"].awesome=function(a){return a.textContent.indexOf("awesome")>=0}})(jQuery);

0 comments on commit 70b3945

Please sign in to comment.