From: Dan Vanderkam Date: Mon, 4 Apr 2011 03:17:34 +0000 (-0400) Subject: remove flashcanvas X-Git-Tag: v1.0.0~536^2~2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1a5411b9d3002a7b3fd1a509b7e96a4821494265;p=dygraphs.git remove flashcanvas --- diff --git a/README b/README index b604cba..0fc135d 100644 --- a/README +++ b/README @@ -50,13 +50,11 @@ dygraphs uses: - rgbcolor.js (Public Domain) - strftime.js (BSD License) - excanvas.js (Apache License) - - FlashCanvas (MIT License) - YUI compressor (BSD License) rgbcolor: http://www.phpied.com/rgb-color-parser-in-javascript/ strftime: http://tech.bluesmoon.info/2008/04/strftime-in-javascript.html excanvas: http://code.google.com/p/explorercanvas/ yui compressor: http://developer.yahoo.com/yui/compressor/ -flashcanvas: http://flashcanvas.net/ dygraphs is available under the MIT license, included in LICENSE.txt. diff --git a/flashcanvas.js b/flashcanvas.js deleted file mode 100755 index dc0eee0..0000000 --- a/flashcanvas.js +++ /dev/null @@ -1,28 +0,0 @@ -/* - * FlashCanvas - * - * Copyright (c) 2009 Tim Cameron Ryan - * Copyright (c) 2009-2011 FlashCanvas Project - * Released under the MIT/X License - */ -window.ActiveXObject&&!window.CanvasRenderingContext2D&&function(h,j){function D(a){this.code=a;this.message=T[a]}function U(a){this.width=a}function E(a){this.id=a.C++}function t(a){this.G=a;this.id=a.C++}function u(a,b){this.canvas=a;this.B=b;this.d=a.uniqueID;this.D();this.C=0;this.t="";var c=this;setInterval(function(){n[c.d]===0&&c.e()},30)}function A(){if(j.readyState==="complete"){j.detachEvent(F,A);for(var a=j.getElementsByTagName(r),b=0,c=a.length;b=8?a.src:a.getAttribute("src",4)}function v(a){return(""+a).replace(/&/g,"&").replace(/0)return eval(this.B.CallFunction(''+a.join("�")+""))},I:function(a,b){this.e();this.D();if(a>0)this.B.width=a;if(b>0)this.B.height=b;this.a.push(e.resize,a,b)}};t.prototype={addColorStop:function(a,b){if(isNaN(a)||a<0||a>1)i(1);this.G.a.push(e.addColorStop,this.id,a,b)}};D.prototype=Error();var T={1:"INDEX_SIZE_ERR",9:"NOT_SUPPORTED_ERR",11:"INVALID_STATE_ERR", -12:"SYNTAX_ERR",17:"TYPE_MISMATCH_ERR",18:"SECURITY_ERR"},B={initElement:function(a){if(a.getContext)return a;var b=a.uniqueID,c="external"+b;x[b]=false;n[b]=1;Q(a);a.innerHTML=''; -s[b]=a;var d=a.firstChild;y[b]=a.lastChild;var f=j.body.contains;if(f(a))d.movie=w;else var g=setInterval(function(){if(f(a)){clearInterval(g);d.movie=w}},0);if(j.compatMode==="BackCompat"||!h.XMLHttpRequest)y[b].style.overflow="hidden";var o=new u(a,d);a.getContext=function(l){return l==="2d"?o:k};a.toDataURL=function(l,z){(""+l).replace(/[A-Z]+/g,W)==="image/jpeg"?o.a.push(e.toDataURL,l,typeof z==="number"?z:""):o.a.push(e.toDataURL,l);return o.e()};d.attachEvent(K,G);return a},saveImage:function(a){a.firstChild.saveImage()}, -setOptions:function(){},trigger:function(a,b){s[a].fireEvent("on"+b)},unlock:function(a,b){n[a]&&--n[a];if(b){var c=s[a],d=c.firstChild,f,g;Q(c);f=c.width;g=c.height;c.style.width=f+"px";c.style.height=g+"px";if(f>0)d.width=f;if(g>0)d.height=g;d.resize(f,g);c.attachEvent(L,H);x[a]=true}}};j.createElement(r);j.createStyleSheet().cssText=r+"{display:inline-block;overflow:hidden;width:300px;height:150px}";j.readyState==="complete"?A():j.attachEvent(F,A);h.attachEvent(J,I);if(w.indexOf(location.protocol+ -"//"+location.host+"/")===0){var S=new ActiveXObject("Microsoft.XMLHTTP");S.open("GET",w,false);S.send(k)}h[M]=u;h[N]=t;h[O]=E;h[C]=B;h[P]={init:function(){},init_:function(){},initElement:B.initElement};keep=u.measureText}(window,document); diff --git a/flashcanvas.swf b/flashcanvas.swf deleted file mode 100755 index 66ff213..0000000 Binary files a/flashcanvas.swf and /dev/null differ diff --git a/push-to-web.sh b/push-to-web.sh index c41fd42..7aca0f4 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -13,7 +13,7 @@ site=$1 # Copy everything to the site. scp tests/*.html tests/*.js tests/*.png $site/tests/ \ && \ -scp dygraph*.js gadget.xml excanvas.js flashcanvas.* thumbnail.png screenshot.png docs/* $site/ +scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ # Revert changes to dygraph-combined.js and docs/options.html git checkout dygraph-combined.js