Sha256: 8da98e14665ed05801892ff9ee86708f5d16f5c776b96ea5d10612e4437d4a1c
Contents?: true
Size: 1.25 KB
Versions: 16
Compression:
Stored size: 1.25 KB
Contents
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.7.0-rc3 */ !function(){"use strict";function r(r,e,t){function a(r){return r.attr("aria-valuemin",0),r.attr("aria-valuemax",100),r.attr("role","progressbar"),i}function i(r,a,i){t(a);var s,c,o,m,v=a[0],u=v.querySelectorAll(".md-fill, .md-mask.md-full"),f=v.querySelectorAll(".md-fill.md-fix"),g=i.mdDiameter||48,S=g/48;v.style[e.CSS.TRANSFORM]="scale("+S.toString()+")",i.$observe("value",function(r){for(c=l(r),o=n[c],m=d[c],a.attr("aria-valuenow",c),s=0;s<u.length;s++)u[s].style[e.CSS.TRANSFORM]=o;for(s=0;s<f.length;s++)f[s].style[e.CSS.TRANSFORM]=m})}function l(r){return r>100?100:0>r?0:Math.ceil(r||0)}for(var n=new Array(101),d=new Array(101),s=0;101>s;s++){var c=s/100,o=Math.floor(180*c);n[s]="rotate("+o.toString()+"deg)",d[s]="rotate("+(2*o).toString()+"deg)"}return{restrict:"E",template:'<div class="md-spinner-wrapper"><div class="md-inner"><div class="md-gap"></div><div class="md-left"><div class="md-half-circle"></div></div><div class="md-right"><div class="md-half-circle"></div></div></div></div>',compile:a}}angular.module("material.components.progressCircular",["material.core"]).directive("mdProgressCircular",r),r.$inject=["$$rAF","$mdConstant","$mdTheming"]}();
Version data entries
16 entries across 16 versions & 1 rubygems