diff --git a/build/DAT.GUI.js b/build/DAT.GUI.js index 75ee07f..d1578b6 100644 --- a/build/DAT.GUI.js +++ b/build/DAT.GUI.js @@ -1,3 +1,15 @@ +/** + * dat.gui Javascript Controller Library + * http://dataarts.github.com/dat.gui + * + * Copyright 2011 Data Arts Team, Google Creative Lab + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ var DAT = DAT || {}; DAT.GUI = function(parameters) { diff --git a/build/DAT.GUI.min.js b/build/DAT.GUI.min.js index 09b95bc..91630c7 100644 --- a/build/DAT.GUI.min.js +++ b/build/DAT.GUI.min.js @@ -1,3 +1,15 @@ +/** + * dat.gui Javascript Controller Library + * http://dataarts.github.com/dat.gui + * + * Copyright 2011 Data Arts Team, Google Creative Lab + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ var DAT=DAT||{}; DAT.GUI=function(a){a==void 0&&(a={});var b=!1;a.height==void 0?a.height=300:b=!0;var d=[],c=[],i=!0,f,h,j=this,g=!0,e=280,q=!1,k,p,n=0,r;this.domElement=document.createElement("div");this.domElement.setAttribute("class","guidat");this.domElement.style.width=e+"px";var l=a.height,m=document.createElement("div");m.setAttribute("class","guidat-controllers");m.style.height=l+"px";m.addEventListener("DOMMouseScroll",function(a){var b=this.scrollTop;a.wheelDelta?b+=a.wheelDelta:a.detail&&(b+=a.detail); a.preventDefault&&a.preventDefault();a.returnValue=!1;m.scrollTop=b},!1);var o=document.createElement("a");o.setAttribute("class","guidat-toggle");o.setAttribute("href","#");o.innerHTML=g?"Close Controls":"Open Controls";var t=!1,C=0,x=0,u=!1,v,y,w,z,D=function(a){y=v;z=w;v=a.pageY;w=a.pageX;a=v-y;if(!g)if(a>0)g=!0,l=k=1,o.innerHTML=p||"Close Controls";else return;var b=z-w;if(a>0&&l>h){var d=DAT.GUI.map(l,h,h+100,1,0);a*=d}t=!0;C+=a;k+=a;l+=a;m.style.height=k+"px";x+=b;e+=b;e=DAT.GUI.constrain(e, diff --git a/index.html b/index.html index d22e01f..23b6022 100644 --- a/index.html +++ b/index.html @@ -136,12 +136,12 @@