http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedEntryViewer.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedEntryViewer.html b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedEntryViewer.html deleted file mode 100644 index 408c071..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedEntryViewer.html +++ /dev/null @@ -1,158 +0,0 @@ -<div class="feedEntryViewer"> - <table border="0" width="100%" class="feedEntryViewerMenuTable" dojoAttachPoint="feedEntryViewerMenu" style="display: none;"> - <tr width="100%" dojoAttachPoint="entryCheckBoxDisplayOptions"> - <td align="right"> - <span class="feedEntryViewerMenu" dojoAttachPoint="displayOptions" dojoAttachEvent="onclick:_toggleOptions"></span> - </td> - </tr> - <tr class="feedEntryViewerDisplayCheckbox" dojoAttachPoint="entryCheckBoxRow" width="100%" style="display: none;"> - <td dojoAttachPoint="feedEntryCelltitle"> - <input type="checkbox" name="title" value="Title" dojoAttachPoint="feedEntryCheckBoxTitle" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelTitle"></label> - </td> - <td dojoAttachPoint="feedEntryCellauthors"> - <input type="checkbox" name="authors" value="Authors" dojoAttachPoint="feedEntryCheckBoxAuthors" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelAuthors"></label> - </td> - <td dojoAttachPoint="feedEntryCellcontributors"> - <input type="checkbox" name="contributors" value="Contributors" dojoAttachPoint="feedEntryCheckBoxContributors" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelContributors"></label> - </td> - <td dojoAttachPoint="feedEntryCellid"> - <input type="checkbox" name="id" value="Id" dojoAttachPoint="feedEntryCheckBoxId" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelId"></label> - </td> - <td rowspan="2" align="right"> - <span class="feedEntryViewerMenu" dojoAttachPoint="close" dojoAttachEvent="onclick:_toggleOptions"></span> - </td> - </tr> - <tr class="feedEntryViewerDisplayCheckbox" dojoAttachPoint="entryCheckBoxRow2" width="100%" style="display: none;"> - <td dojoAttachPoint="feedEntryCellupdated"> - <input type="checkbox" name="updated" value="Updated" dojoAttachPoint="feedEntryCheckBoxUpdated" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelUpdated"></label> - </td> - <td dojoAttachPoint="feedEntryCellsummary"> - <input type="checkbox" name="summary" value="Summary" dojoAttachPoint="feedEntryCheckBoxSummary" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelSummary"></label> - </td> - <td dojoAttachPoint="feedEntryCellcontent"> - <input type="checkbox" name="content" value="Content" dojoAttachPoint="feedEntryCheckBoxContent" dojoAttachEvent="onclick:_toggleCheckbox"/> - <label for="title" dojoAttachPoint="feedEntryCheckBoxLabelContent"></label> - </td> - </tr> - </table> - - <table class="feedEntryViewerContainer" border="0" width="100%"> - <tr class="feedEntryViewerTitle" dojoAttachPoint="entryTitleRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entryTitleHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entryTitleNode"> - </td> - </tr> - </table> - </td> - </tr> - - <tr class="feedEntryViewerAuthor" dojoAttachPoint="entryAuthorRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entryAuthorHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entryAuthorNode"> - </td> - </tr> - </table> - </td> - </tr> - - <tr class="feedEntryViewerContributor" dojoAttachPoint="entryContributorRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entryContributorHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entryContributorNode" class="feedEntryViewerContributorNames"> - </td> - </tr> - </table> - </td> - </tr> - - <tr class="feedEntryViewerId" dojoAttachPoint="entryIdRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entryIdHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entryIdNode" class="feedEntryViewerIdText"> - </td> - </tr> - </table> - </td> - </tr> - - <tr class="feedEntryViewerUpdated" dojoAttachPoint="entryUpdatedRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entryUpdatedHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entryUpdatedNode" class="feedEntryViewerUpdatedText"> - </td> - </tr> - </table> - </td> - </tr> - - <tr class="feedEntryViewerSummary" dojoAttachPoint="entrySummaryRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entrySummaryHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entrySummaryNode"> - </td> - </tr> - </table> - </td> - </tr> - - <tr class="feedEntryViewerContent" dojoAttachPoint="entryContentRow" style="display: none;"> - <td> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="graphic-tab-lgray"> - <td class="lp2"> - <span class="lp" dojoAttachPoint="entryContentHeader"></span> - </td> - </tr> - <tr> - <td dojoAttachPoint="entryContentNode"> - </td> - </tr> - </table> - </td> - </tr> - </table> -</div>
http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewer.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewer.html b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewer.html deleted file mode 100644 index f3d2108..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewer.html +++ /dev/null @@ -1,6 +0,0 @@ -<div class="feedViewerContainer" dojoAttachPoint="feedViewerContainerNode"> - <table cellspacing="0" cellpadding="0" class="feedViewerTable"> - <tbody dojoAttachPoint="feedViewerTableBody" class="feedViewerTableBody"> - </tbody> - </table> -</div> http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerEntry.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerEntry.html b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerEntry.html deleted file mode 100644 index 201f884..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerEntry.html +++ /dev/null @@ -1,15 +0,0 @@ -<tr class="feedViewerEntry" dojoAttachPoint="entryNode" dojoAttachEvent="onclick:onClick"> - <td class="feedViewerEntryUpdated" dojoAttachPoint="timeNode"> - </td> - <td> - <table border="0" width="100%" dojoAttachPoint="titleRow"> - <tr padding="0" border="0"> - <td class="feedViewerEntryTitle" dojoAttachPoint="titleNode"> - </td> - <td class="feedViewerEntryDelete" align="right"> - <span dojoAttachPoint="deleteButton" dojoAttachEvent="onclick:deleteEntry" class="feedViewerDeleteButton" style="display:none;">[delete]</span> - </td> - <tr> - </table> - </td> -</tr> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerGrouping.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerGrouping.html b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerGrouping.html deleted file mode 100644 index 467e428..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/FeedViewerGrouping.html +++ /dev/null @@ -1,4 +0,0 @@ -<tr dojoAttachPoint="groupingNode" class="feedViewerGrouping"> - <td colspan="2" dojoAttachPoint="titleNode" class="feedViewerGroupingTitle"> - </td> -</tr> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/PeopleEditor.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/PeopleEditor.html b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/PeopleEditor.html deleted file mode 100644 index a034c76..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/PeopleEditor.html +++ /dev/null @@ -1,6 +0,0 @@ -<div class="peopleEditor"> - <table style="width: 100%"> - <tbody dojoAttachPoint="peopleEditorEditors"></tbody> - </table> - <span class="peopleEditorButton" dojoAttachPoint="peopleEditorButton" dojoAttachEvent="onclick:_add"></span> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/EntryHeader.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/EntryHeader.css b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/EntryHeader.css deleted file mode 100644 index 5375fef..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/EntryHeader.css +++ /dev/null @@ -1,27 +0,0 @@ - -.containerNode { - visibility : visible; -} -.graphic-tab-lgray { - margin-bottom: 10px; -} -.newgraphic-tab-lgray { - border-bottom: #d9d9d9 solid 7px; -} -td.lp { - padding: 0px 13px 0px 10px; - font-weight: bold; - background: #d9d9d9; - border-bottom: #d9d9d9 solid 7px; -} -td.lp2 { - background: #FFFFFF; - border-bottom: #d9d9d9 solid 7px; -} -span.lp { - padding: 0px 13px 0px 10px; - font-weight: bold; - background: #d9d9d9; - border-bottom: #d9d9d9 solid 7px; - width: auto; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryEditor.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryEditor.css b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryEditor.css deleted file mode 100644 index f31be85..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryEditor.css +++ /dev/null @@ -1,84 +0,0 @@ -.feedEntryEditor { - color:#000000; - background: #FFFFFF; -} -.feedEntryEditorMenuTable { - background: #C0C0C0; - border:2px solid; - border-top-color: lightgrey; - border-left-color: lightgrey; - border-right-color: darkgray; - border-bottom-color: darkgray; -} -.feedEntryEditorMenu { - cursor: pointer; - color:#0000FF; - text-align: left; - font-size: small; -} -.feedEntryEditorDisplayCheckbox { - font-size: small; - text-align: left; -} -.feedEntryEditorMenu:hover { - text-decoration: underline; -} -.feedEntryEditorTitle { - color:#000000; - background: #FFFFFF; - text-align: left; - #padding-left: 10px; - font-size: 125%; - font-weight: bold; -} -.feedEntryEditorAuthor { - color:#000000; - background: #FFFFFF; -} -.feedEntryEditorAuthorNames { - color:#000000; - background: #FFFFFF; - text-align: left; - #padding-left: 10px; - font-size: 110%; - font-style: italic; - font-weight: normal; -} -.feedEntryEditorSummary { - color:#000000; - background: #FFFFFF; -} -.feedEntryEditorUpdated { - color:#000000; - background: #FFFFFF; -} -.feedEntryEditorUpdatedText { - color:#000000; - background: #FFFFFF; - font-size: 110%; - font-style: italic; - font-weight: normal; -} -.feedEntryEditorId { - color:#000000; - background: #FFFFFF; -} -.feedEntryEditorIdText { - color:#000000; - background: #FFFFFF; - font-style: italic; - font-size: 110%; - font-weight: normal; -} -.feedEntryEditorContent { - color:#000000; - background: #FFFFFF; -} -.feedEntryEditorContributorNames { - color:#000000; - text-align: left; - #padding-left: 10px; - font-size: 125%; - font-style: italic; - font-weight: normal; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryViewer.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryViewer.css b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryViewer.css deleted file mode 100644 index 7ab9cbb..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedEntryViewer.css +++ /dev/null @@ -1,90 +0,0 @@ -.feedEntryViewer { - color:#000000; - background: #FFFFFF; -} -.feedEntryViewerMenuTable { - background: #C0C0C0; - border:2px solid; - border-top-color: lightgrey; - border-left-color: lightgrey; - border-right-color: darkgray; - border-bottom-color: darkgray; - margin: 0; -} -.feedEntryViewerMenu, .peopleEditorButton { - cursor: pointer; - color:#0000FF; - text-align: left; - font-size: small; -} -.feedEntryViewerDisplayCheckbox { - font-size: small; - text-align: left; -} -.feedEntryViewerMenu:hover, .peopleEditorButton:hover { - text-decoration: underline; -} -.feedEntryViewerContainer, .feedEntryViewerContainer table { - border-width: 0; - margin: 0; -} -.feedEntryViewerTitle { - color:#000000; - background: #FFFFFF; - text-align: left; - - font-size: 125%; - font-weight: bold; -} -.feedEntryViewerAuthor { - color:#000000; - background: #FFFFFF; -} -.feedEntryViewerAuthorNames { - color:#000000; - background: #FFFFFF; - text-align: left; - - font-size: 110%; - font-style: italic; - font-weight: normal; -} -.feedEntryViewerSummary { - color:#000000; - background: #FFFFFF; -} -.feedEntryViewerUpdated { - color:#000000; - background: #FFFFFF; -} -.feedEntryViewerUpdatedText { - color:#000000; - background: #FFFFFF; - font-size: 110%; - font-style: italic; - font-weight: normal; -} -.feedEntryViewerId { - color:#000000; - background: #FFFFFF; -} -.feedEntryViewerIdText { - color:#000000; - background: #FFFFFF; - font-style: italic; - font-size: 110%; - font-weight: normal; -} -.feedEntryViewerContent { - color:#000000; - background: #FFFFFF; -} -.feedEntryViewerContributorNames { - color:#000000; - text-align: left; - - font-size: 125%; - font-weight: normal; -} -.feedEntryViewer table { -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewer.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewer.css b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewer.css deleted file mode 100644 index 70d3a57..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewer.css +++ /dev/null @@ -1,14 +0,0 @@ -.feedViewerTable { - font-size: small; - width:100%; - cursor:default; - padding:2px; -} -.feedViewerTable, .feedViewerTable table { - border-width: 0; - margin: 0; -} -.feedViewerTableBody { - overflow-x: auto; - overflow-y: auto; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerEntry.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerEntry.css b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerEntry.css deleted file mode 100644 index 8318b31..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerEntry.css +++ /dev/null @@ -1,60 +0,0 @@ -.feedViewerEntry { - background: #F0F0F0; - padding: 2px; - overflow-x: auto; - overflow-y: auto; - cursor: pointer; -} -.feedViewerEntry:hover { - background: #a6c2e7; - padding: 2px; -} -.feedViewerEntrySelected { - color: #000000; - background: #C0C0C0; - text-align: left; - vertical-align: top; - padding-bottom: 2px; - padding: 2px; -} -.feedViewerEntrySelected:hover { - background: #a6c2e7; - padding: 2px; -} -.feedViewerEntryUpdated { - text-align: left; - vertical-align: top; - color: #909090; - padding-bottom: 2px; - padding: 2px; -} -.feedViewerEntryUpdatedSelected { - text-align: left; - vertical-align: top; - color: #000000; - padding-bottom: 2px; - padding: 2px; -} -.feedViewerEntryTitle { - color:#000000; - text-align: left; - text-decoration:none; - padding-left: 4px; - padding-bottom: 2px; -} -.feedViewerEntryTitle:hover { - color:#000000; - text-align: left; - text-decoration:underline; - padding-left: 4px; - padding-bottom: 2px; -} -.feedViewerDeleteButton { - cursor: pointer; - color:#0000FF; - text-align: left; - font-size: small; -} -.feedViewerDeleteButton:hover { - text-decoration: underline; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerGrouping.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerGrouping.css b/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerGrouping.css deleted file mode 100644 index 326781e..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/atom/widget/templates/css/HtmlFeedViewerGrouping.css +++ /dev/null @@ -1,8 +0,0 @@ -.feedViewerGrouping { -} -.feedViewerGroupingTitle { - font-weight: bold; - color:#606060; - border-bottom:1px solid #909090; - padding-top: 4px; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/FLAudio.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/FLAudio.js b/components/camel-web/src/main/webapp/js/dojox/av/FLAudio.js deleted file mode 100644 index 414e610..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/FLAudio.js +++ /dev/null @@ -1,108 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.FLAudio"]){ -dojo._hasResource["dojox.av.FLAudio"]=true; -dojo.provide("dojox.av.FLAudio"); -dojo.experimental("dojox.av.FLAudio"); -dojo.require("dijit._Widget"); -dojo.require("dojox.embed.Flash"); -dojo.require("dojox.av._Media"); -dojo.require("dojox.timing.doLater"); -dojo.declare("dojox.av.FLAudio",null,{id:"",initialVolume:0.7,initialPan:0,isDebug:false,statusInterval:200,_swfPath:dojo.moduleUrl("dojox.av","resources/audio.swf"),constructor:function(_1){ -dojo.mixin(this,_1||{}); -if(!this.id){ -this.id="flaudio_"+new Date().getTime(); -} -this.domNode=dojo.doc.createElement("div"); -dojo.style(this.domNode,{postion:"relative",width:"1px",height:"1px",top:"1px",left:"1px"}); -dojo.body().appendChild(this.domNode); -this.init(); -},init:function(){ -this._subs=[]; -this.initialVolume=this._normalizeVolume(this.initialVolume); -var _2={path:this._swfPath.uri,width:"1px",height:"1px",minimumVersion:9,expressInstall:true,params:{wmode:"transparent"},vars:{id:this.id,autoPlay:this.autoPlay,initialVolume:this.initialVolume,initialPan:this.initialPan,statusInterval:this.statusInterval,isDebug:this.isDebug}}; -this._sub("mediaError","onError"); -this._sub("filesProgress","onLoadStatus"); -this._sub("filesAllLoaded","onAllLoaded"); -this._sub("mediaPosition","onPlayStatus"); -this._sub("mediaMeta","onID3"); -this._flashObject=new dojox.embed.Flash(_2,this.domNode); -this._flashObject.onError=function(_3){ -console.warn("Flash Error:",_3); -alert(_3); -}; -this._flashObject.onLoad=dojo.hitch(this,function(_4){ -this.flashMedia=_4; -this.isPlaying=this.autoPlay; -this.isStopped=!this.autoPlay; -this.onLoad(this.flashMedia); -}); -},load:function(_5){ -if(dojox.timing.doLater(this.flashMedia,this)){ -return false; -} -if(!_5.url){ -throw new Error("An url is required for loading media"); -return false; -}else{ -_5.url=this._normalizeUrl(_5.url); -} -this.flashMedia.load(_5); -return _5.url; -},doPlay:function(_6){ -this.flashMedia.doPlay(_6); -},pause:function(_7){ -this.flashMedia.pause(_7); -},stop:function(_8){ -this.flashMedia.doStop(_8); -},setVolume:function(_9){ -this.flashMedia.setVolume(_9); -},setPan:function(_a){ -this.flashMedia.setPan(_a); -},getVolume:function(_b){ -return this.flashMedia.getVolume(_b); -},getPan:function(_c){ -return this.flashMedia.getPan(_c); -},onError:function(_d){ -console.warn("SWF ERROR:",_d); -},onLoadStatus:function(_e){ -},onAllLoaded:function(){ -},onPlayStatus:function(_f){ -},onLoad:function(){ -},onID3:function(evt){ -},destroy:function(){ -if(!this.flashMedia){ -this._cons.push(dojo.connect(this,"onLoad",this,"destroy")); -return; -} -dojo.forEach(this._subs,function(s){ -dojo.unsubscribe(s); -}); -dojo.forEach(this._cons,function(c){ -dojo.disconnect(c); -}); -this._flashObject.destroy(); -},_sub:function(_13,_14){ -dojo.subscribe(this.id+"/"+_13,this,_14); -},_normalizeVolume:function(vol){ -if(vol>1){ -while(vol>1){ -vol*=0.1; -} -} -return vol; -},_normalizeUrl:function(_16){ -if(_16&&_16.toLowerCase().indexOf("http")<0){ -var loc=window.location.href.split("/"); -loc.pop(); -loc=loc.join("/")+"/"; -_16=loc+_16; -} -return _16; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/FLVideo.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/FLVideo.js b/components/camel-web/src/main/webapp/js/dojox/av/FLVideo.js deleted file mode 100644 index 54df057..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/FLVideo.js +++ /dev/null @@ -1,96 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.FLVideo"]){ -dojo._hasResource["dojox.av.FLVideo"]=true; -dojo.provide("dojox.av.FLVideo"); -dojo.experimental("dojox.av.FLVideo"); -dojo.require("dijit._Widget"); -dojo.require("dojox.embed.Flash"); -dojo.require("dojox.av._Media"); -dojo.declare("dojox.av.FLVideo",[dijit._Widget,dojox.av._Media],{_swfPath:dojo.moduleUrl("dojox.av","resources/video.swf"),postCreate:function(){ -this._subs=[]; -this._cons=[]; -this.mediaUrl=this._normalizeUrl(this.mediaUrl); -this.initialVolume=this._normalizeVolume(this.initialVolume); -var _1={path:this._swfPath.uri,width:"100%",height:"100%",minimumVersion:9,expressInstall:true,params:{allowFullScreen:true,wmode:"transparent"},vars:{videoUrl:this.mediaUrl,id:this.id,autoPlay:this.autoPlay,volume:this.initialVolume,isDebug:this.isDebug}}; -this._sub("stageClick","onClick"); -this._sub("stageSized","onSwfSized"); -this._sub("mediaStatus","onPlayerStatus"); -this._sub("mediaMeta","onMetaData"); -this._sub("mediaError","onError"); -this._sub("mediaStart","onStart"); -this._sub("mediaEnd","onEnd"); -this._flashObject=new dojox.embed.Flash(_1,this.domNode); -this._flashObject.onError=function(_2){ -console.warn("Flash Error:",_2); -alert(_2); -}; -this._flashObject.onLoad=dojo.hitch(this,function(_3){ -this.flashMedia=_3; -this.isPlaying=this.autoPlay; -this.isStopped=!this.autoPlay; -this.onLoad(this.flashMedia); -this._initStatus(); -this._update(); -}); -},play:function(_4){ -this.isPlaying=true; -this.isStopped=false; -this.flashMedia.doPlay(this._normalizeUrl(_4)); -},pause:function(){ -this.isPlaying=false; -this.isStopped=false; -this.flashMedia.pause(); -},seek:function(_5){ -this.flashMedia.seek(_5); -},volume:function(_6){ -if(_6){ -if(!this.flashMedia){ -this.initialVolume=_6; -} -this.flashMedia.setVolume(this._normalizeVolume(_6)); -} -if(!this.flashMedia||!this.flashMedia.doGetVolume){ -return this.initialVolume; -} -return this.flashMedia.getVolume(); -},_checkBuffer:function(_7,_8){ -if(this.percentDownloaded==100){ -if(this.isBuffering){ -this.onBuffer(false); -this.flashMedia.doPlay(); -} -return; -} -if(!this.isBuffering&&_8<0.1){ -this.onBuffer(true); -this.flashMedia.pause(); -return; -} -var _9=this.percentDownloaded*0.01*this.duration; -if(!this.isBuffering&&_7+this.minBufferTime*0.001>_9){ -this.onBuffer(true); -this.flashMedia.pause(); -}else{ -if(this.isBuffering&&_7+this.bufferTime*0.001<=_9){ -this.onBuffer(false); -this.flashMedia.doPlay(); -} -} -},_update:function(){ -var _a=Math.min(this.getTime()||0,this.duration); -var _b=this.flashMedia.getLoaded(); -this.percentDownloaded=Math.ceil(_b.bytesLoaded/_b.bytesTotal*100); -this.onDownloaded(this.percentDownloaded); -this.onPosition(_a); -if(this.duration){ -this._checkBuffer(_a,_b.buffer); -} -setTimeout(dojo.hitch(this,"_update"),this.updateTime); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/README ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/README b/components/camel-web/src/main/webapp/js/dojox/av/README deleted file mode 100644 index b249a2e..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/README +++ /dev/null @@ -1,65 +0,0 @@ -------------------------------------------------------------------------------- -DojoX Audio/Video -------------------------------------------------------------------------------- -Version 0.1 -Release date: 01/15/2008 -------------------------------------------------------------------------------- -Project state: -experimental -------------------------------------------------------------------------------- -Credits - Tom Trenka (ttrenka AT gmail.com) - Mike Wilcox (AnM8tR AT Yahoo.com) -------------------------------------------------------------------------------- -Project description - -DojoX A/V aims to bring audio and video capabilities to the Open Web, first -by wrapping common media types (Flash and Quicktime) and then by providing -easy to use objects to accomplish basic A/V tasks. As of version 0.1, only -the base is included (Flash and Quicktime embedding mechanisms); in the near -future, usable objects will appear, both in raw programmatic form and also with -Dijit-compatible wrappers. -------------------------------------------------------------------------------- -Dependencies: - -DojoX A/V depends on dojox.embed, and uses Flash movies created in the deft -project using Flex OSS 3. You do not need any of the deft code; compiled -movies are included with dojox.av. If you want to modify the actual movies, -you can look in the deft project (under the package deft.av). -------------------------------------------------------------------------------- -Documentation - -TBD. -------------------------------------------------------------------------------- -Included media: - -Video: -test/video/Grog.flv and test/video/OldMan.flv are both created by Mike Wilcox -and may be freely used and distributed in any way. I only ask for credit if -widely shown. - -Audio: -test/audio/Ola.mp3, test/audio/Hio.mp3, test/audio/FuzzWah.mp3 are from a -sounds effects CD and are not to be redistributed. They will most likely -be swapped out when a better open source option is avaialable. - -------------------------------------------------------------------------------- -Installation instructions - -Grab the following from the Dojo SVN Repository: - -http://svn.dojotoolkit.org/src/dojox/trunk/embed/* -http://svn.dojotoolkit.org/src/dojox/trunk/av/* - -Install into the following directory structure: -/dojox/av/ - -...which should be at the same level as your Dojo checkout. - -------------------------------------------------------------------------------- -Change history - -2008-01-15 Initial checkin, with basic movie embedding code. -2008-06-04 Removed the base code, after moving it into dojox.embed and modifying it. -2008-08-14 Implemented FLVideo for Flash Video -2009-02-08 Implemented FLAudio for Flash Audio http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/_Media.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/_Media.js b/components/camel-web/src/main/webapp/js/dojox/av/_Media.js deleted file mode 100644 index 26cdefa..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/_Media.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av._Media"]){ -dojo._hasResource["dojox.av._Media"]=true; -dojo.provide("dojox.av._Media"); -dojo.declare("dojox.av._Media",null,{mediaUrl:"",initialVolume:1,autoPlay:false,bufferTime:2000,minBufferTime:300,updateTime:100,id:"",isDebug:false,percentDownloaded:0,_flashObject:null,flashMedia:null,_initStatus:function(){ -this.status="ready"; -dojo.connect(this,"onPosition",this,"_figureStatus"); -},getTime:function(){ -return this.flashMedia.getTime(); -},onLoad:function(_1){ -},onDownloaded:function(_2){ -},onClick:function(_3){ -},onSwfSized:function(_4){ -},onMetaData:function(_5,_6){ -this.duration=_5.duration; -},onPosition:function(_7){ -},onStart:function(_8){ -},onPlay:function(_9){ -},onPause:function(_a){ -},onEnd:function(_b){ -},onStop:function(){ -},onBuffer:function(_c){ -this.isBuffering=_c; -},onError:function(_d,_e){ -console.warn("ERROR-"+_d.type.toUpperCase()+":",_d.info.code," - URL:",_e); -},onStatus:function(_f){ -},onPlayerStatus:function(_10){ -},onResize:function(){ -},_figureStatus:function(){ -var pos=this.getTime(); -if(this.status=="stopping"){ -this.status="stopped"; -this.onStop(this._eventFactory()); -}else{ -if(this.status=="ending"&&pos==this._prevPos){ -this.status="ended"; -this.onEnd(this._eventFactory()); -}else{ -if(this.duration&&pos>this.duration-0.5){ -this.status="ending"; -}else{ -if(pos===0){ -if(this.status=="ready"){ -}else{ -this.status="stopped"; -if(this._prevStatus!="stopped"){ -this.onStop(this._eventFactory()); -} -} -}else{ -if(this.status=="ready"){ -this.status="started"; -this.onStart(this._eventFactory()); -this.onPlay(this._eventFactory()); -}else{ -if(this.isBuffering){ -this.status="buffering"; -}else{ -if(this.status=="started"||(this.status=="playing"&&pos!=this._prevPos)){ -this.status="playing"; -}else{ -if(!this.isStopped&&this.status=="playing"&&pos==this._prevPos){ -this.status="paused"; -console.warn("pause",pos,this._prevPos); -if(this.status!=this._prevStatus){ -this.onPause(this._eventFactory()); -} -}else{ -if((this.status=="paused"||this.status=="stopped")&&pos!=this._prevPos){ -this.status="started"; -this.onPlay(this._eventFactory()); -} -} -} -} -} -} -} -} -} -this._prevPos=pos; -this._prevStatus=this.status; -this.onStatus(this.status); -},_eventFactory:function(){ -var evt={status:this.status}; -return evt; -},_sub:function(_13,_14){ -dojo.subscribe(this.id+"/"+_13,this,_14); -},_normalizeVolume:function(vol){ -if(vol>1){ -while(vol>1){ -vol*=0.1; -} -} -return vol; -},_normalizeUrl:function(_16){ -if(_16&&_16.toLowerCase().indexOf("http")<0){ -var loc=window.location.href.split("/"); -loc.pop(); -loc=loc.join("/")+"/"; -_16=loc+_16; -} -return _16; -},destroy:function(){ -if(!this.flashMedia){ -this._cons.push(dojo.connect(this,"onLoad",this,"destroy")); -return; -} -dojo.forEach(this._subs,function(s){ -dojo.unsubscribe(s); -}); -dojo.forEach(this._cons,function(c){ -dojo.disconnect(c); -}); -this._flashObject.destroy(); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/resources/audio.swf ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/resources/audio.swf b/components/camel-web/src/main/webapp/js/dojox/av/resources/audio.swf deleted file mode 100644 index e14d847..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/resources/audio.swf and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/resources/version.mov ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/resources/version.mov b/components/camel-web/src/main/webapp/js/dojox/av/resources/version.mov deleted file mode 100644 index 4f2cb73..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/resources/version.mov and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/resources/video.swf ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/resources/video.swf b/components/camel-web/src/main/webapp/js/dojox/av/resources/video.swf deleted file mode 100644 index 8ce3c8b..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/resources/video.swf and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/PlayButton.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/PlayButton.js b/components/camel-web/src/main/webapp/js/dojox/av/widget/PlayButton.js deleted file mode 100644 index c9419e0..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/PlayButton.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.widget.PlayButton"]){ -dojo._hasResource["dojox.av.widget.PlayButton"]=true; -dojo.provide("dojox.av.widget.PlayButton"); -dojo.require("dijit._Widget"); -dojo.require("dijit._Templated"); -dojo.require("dijit.form.Button"); -dojo.declare("dojox.av.widget.PlayButton",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"PlayPauseToggle Pause\" dojoAttachEvent=\"click:onClick\">\n <div class=\"icon\"></div>\n</div>\n",postCreate:function(){ -this.showPlay(); -},setMedia:function(_1){ -this.media=_1; -dojo.connect(this.media,"onEnd",this,"showPlay"); -dojo.connect(this.media,"onStart",this,"showPause"); -},onClick:function(){ -if(this._mode=="play"){ -this.onPlay(); -}else{ -this.onPause(); -} -},onPlay:function(){ -if(this.media){ -this.media.play(); -} -this.showPause(); -},onPause:function(){ -if(this.media){ -this.media.pause(); -} -this.showPlay(); -},showPlay:function(){ -this._mode="play"; -dojo.removeClass(this.domNode,"Pause"); -dojo.addClass(this.domNode,"Play"); -},showPause:function(){ -this._mode="pause"; -dojo.addClass(this.domNode,"Pause"); -dojo.removeClass(this.domNode,"Play"); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/Player.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/Player.js b/components/camel-web/src/main/webapp/js/dojox/av/widget/Player.js deleted file mode 100644 index da9fbb9..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/Player.js +++ /dev/null @@ -1,79 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.widget.Player"]){ -dojo._hasResource["dojox.av.widget.Player"]=true; -dojo.provide("dojox.av.widget.Player"); -dojo.require("dijit._Widget"); -dojo.require("dijit._Templated"); -dojo.declare("dojox.av.widget.Player",[dijit._Widget,dijit._Templated],{playerWidth:"480px",widgetsInTemplate:true,templateString:"<div class=\"playerContainer\">\n <div class=\"PlayerScreen\" dojoAttachPoint=\"playerScreen\"></div>\n<table class=\"Controls\">\n <tr>\n <td colspan=\"2\" dojoAttachPoint=\"progressContainer\">\n \t\n </td>\n </tr>\n <tr>\n <td class=\"PlayContainer\" dojoAttachPoint=\"playContainer\">\n \t\n </td>\n <td class=\"ControlsRight\">\n <table class=\"StatusContainer\">\n <tr dojoAttachPoint=\"statusContainer\">\n \n </tr>\n \t<tr>\n \t<td colspan=\"3\" class=\"ControlsBottom\" dojoAttachPoint=\"controlsBottom\">\n \t\t\t \n \t\t</td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n</div>\n",_fillContent:function(){ -if(!this.items&&this.srcNodeRef){ -this.items=[]; -var _1=dojo.query("*",this.srcNodeRef); -dojo.forEach(_1,function(n){ -this.items.push(n); -},this); -} -},postCreate:function(){ -dojo.style(this.domNode,"width",this.playerWidth+(dojo.isString(this.playerWidth)?"":"px")); -if(dojo.isString(this.playerWidth)&&this.playerWidth.indexOf("%")){ -dojo.connect(window,"resize",this,"onResize"); -} -this.children=[]; -var _3; -dojo.forEach(this.items,function(n,i){ -n.id=dijit.getUniqueId("player_control"); -switch(dojo.attr(n,"controlType")){ -case "play": -this.playContainer.appendChild(n); -break; -case "volume": -this.controlsBottom.appendChild(n); -break; -case "status": -this.statusContainer.appendChild(n); -break; -case "progress": -case "slider": -this.progressContainer.appendChild(n); -break; -case "video": -this.mediaNode=n; -this.playerScreen.appendChild(n); -break; -default: -} -this.items[i]=n.id; -},this); -},startup:function(){ -this.media=dijit.byId(this.mediaNode.id); -if(!dojo.isAIR){ -dojo.style(this.media.domNode,"width","100%"); -dojo.style(this.media.domNode,"height","100%"); -} -dojo.forEach(this.items,function(id){ -if(id!==this.mediaNode.id){ -var _7=dijit.byId(id); -this.children.push(_7); -if(_7){ - -_7.setMedia(this.media,this); -} -} -},this); -},onResize:function(_8){ -var _9=dojo.marginBox(this.domNode); -if(this.media&&this.media.onResize!==null){ -this.media.onResize(_9); -} -dojo.forEach(this.children,function(_a){ -if(_a.onResize){ -_a.onResize(_9); -} -}); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/ProgressSlider.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/ProgressSlider.js b/components/camel-web/src/main/webapp/js/dojox/av/widget/ProgressSlider.js deleted file mode 100644 index 0f56cc6..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/ProgressSlider.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.widget.ProgressSlider"]){ -dojo._hasResource["dojox.av.widget.ProgressSlider"]=true; -dojo.provide("dojox.av.widget.ProgressSlider"); -dojo.require("dijit._Widget"); -dojo.require("dijit._Templated"); -dojo.declare("dojox.av.widget.ProgressSlider",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"Progress\" dojoAttachEvent=\"mousedown:startDrag\">\n \n <div class=\"ProgressLoaded\" dojoAttachPoint=\"progressLoaded\"></div>\n <div class=\"ProgressPosition\" dojoAttachPoint=\"progressPosition\"></div>\n\t<div class=\"ProgressHandle\" dojoAttachPoint=\"handle\" dojoAttachEvent=\"mouseover:handleOver, mouseout:handleOut\"></div>\n</div>\n",postCreate:function(){ -this.seeking=false; -this.handleWidth=dojo.marginBox(this.handle).w; -var _1=dojo.coords(this.domNode); -this.finalWidth=_1.w; -this.width=_1.w-this.handleWidth; -this.x=_1.x; -dojo.setSelectable(this.domNode,false); -dojo.setSelectable(this.handle,false); -},setMedia:function(_2,_3){ -this.playerWidget=_3; -this.media=_2; -dojo.connect(this.media,"onMetaData",this,function(_4){ -if(_4&&_4.duration){ -this.duration=_4.duration; -} -}); -dojo.connect(this.media,"onEnd",this,function(){ -dojo.disconnect(this.posCon); -this.setHandle(this.duration); -}); -dojo.connect(this.media,"onStart",this,function(){ -this.posCon=dojo.connect(this.media,"onPosition",this,"setHandle"); -}); -dojo.connect(this.media,"onDownloaded",this,function(_5){ -this.setLoadedPosition(_5*0.01); -this.width=this.finalWidth*0.01*_5; -}); -},onDrag:function(_6){ -var x=_6.clientX-this.x; -if(x<0){ -x=0; -} -if(x>this.width-this.handleWidth){ -x=this.width-this.handleWidth; -} -var p=x/this.finalWidth; -this.media.seek(this.duration*p); -dojo.style(this.handle,"marginLeft",x+"px"); -dojo.style(this.progressPosition,"width",x+"px"); -},startDrag:function(){ -dojo.setSelectable(this.playerWidget.domNode,false); -this.seeking=true; -this.cmove=dojo.connect(dojo.doc,"mousemove",this,"onDrag"); -this.cup=dojo.connect(dojo.doc,"mouseup",this,"endDrag"); -},endDrag:function(){ -dojo.setSelectable(this.playerWidget.domNode,true); -this.seeking=false; -if(this.cmove){ -dojo.disconnect(this.cmove); -} -if(this.cup){ -dojo.disconnect(this.cup); -} -this.handleOut(); -},setHandle:function(_9){ -if(!this.seeking){ -var w=this.width-this.handleWidth; -var p=_9/this.duration; -var x=p*w; -dojo.style(this.handle,"marginLeft",x+"px"); -dojo.style(this.progressPosition,"width",x+"px"); -} -},setLoadedPosition:function(_d){ -dojo.style(this.progressLoaded,"width",(this.finalWidth*_d)+"px"); -},handleOver:function(){ -dojo.addClass(this.handle,"over"); -},handleOut:function(){ -if(!this.seeking){ -dojo.removeClass(this.handle,"over"); -} -},onResize:function(_e){ -var _f=dojo.coords(this.domNode); -this.finalWidth=_f.w; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/Status.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/Status.js b/components/camel-web/src/main/webapp/js/dojox/av/widget/Status.js deleted file mode 100644 index a8d6409..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/Status.js +++ /dev/null @@ -1,95 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.widget.Status"]){ -dojo._hasResource["dojox.av.widget.Status"]=true; -dojo.provide("dojox.av.widget.Status"); -dojo.require("dijit._Widget"); -dojo.require("dijit._Templated"); -dojo.declare("dojox.av.widget.Status",[dijit._Widget,dijit._Templated],{templateString:"<table class=\"Status\">\n <tr>\n <td class=\"Time\"><span dojoAttachPoint=\"timeNode\">0.00</span></td>\n <td class=\"Status\"><div dojoAttachPoint=\"titleNode\">Loading...</div></td>\n <td class=\"Duration\"><span dojoAttachPoint=\"durNode\">0.00</span></td>\n </tr>\n</table>\n",postCreate:function(){ -this.titleNode=dojo.query(".Status",this.domNode); -this.durNode=dojo.query(".Duration",this.domNode); -this.timeNode=dojo.query(".Time",this.domNode); - - - -},setMedia:function(_1){ -this.media=_1; -dojo.connect(this.media,"onMetaData",this,function(_2){ -this.duration=_2.duration; -this.durNode.innerHTML=this.toSeconds(this.duration); -}); -dojo.connect(this.media,"onPosition",this,function(_3){ -}); -var _4=["onMetaData","onPosition","onStart","onBuffer","onPlay","onPause","onStop","onEnd","onError","onLoad"]; -dojo.forEach(_4,function(c){ -dojo.connect(this.media,c,this,c); -},this); -},onMetaData:function(_6){ -this.duration=_6.duration; -this.durNode.innerHTML=this.toSeconds(this.duration); -if(this.media.title){ -this.title=this.media.title; -}else{ -var a=this.media.mediaUrl.split("/"); -var b=a[a.length-1].split(".")[0]; -this.title=b; -} -},onBuffer:function(_9){ -this.isBuffering=_9; -console.warn("status onBuffer",this.isBuffering); -if(this.isBuffering){ -this.setStatus("buffering..."); -}else{ -this.setStatus("Playing"); -} -},onPosition:function(_a){ -},onStart:function(){ -this.setStatus("Starting"); -},onPlay:function(){ -this.setStatus("Playing"); -},onPause:function(){ -this.setStatus("Paused"); -},onStop:function(){ -this.setStatus("Stopped"); -},onEnd:function(){ -this.setStatus("Stopped"); -},onError:function(_b){ - -var _c=_b.info.code; -if(_c=="NetStream.Play.StreamNotFound"){ -_c="Stream Not Found"; -} -this.setStatus("ERROR: "+_c,true); -},onLoad:function(){ -this.setStatus("Loading..."); -},setStatus:function(_d,_e){ -if(_e){ -dojo.addClass(this.titleNode,"statusError"); -}else{ -dojo.removeClass(this.titleNode,"statusError"); -if(this.isBuffering){ -_d="buffering..."; -} -} -this.titleNode.innerHTML="<span class=\"statusTitle\">"+this.title+"</span> <span class=\"statusInfo\">"+_d+"</span>"; -},toSeconds:function(_f){ -var ts=_f.toString(); -if(ts.indexOf(".")<0){ -ts+=".00"; -}else{ -if(ts.length-ts.indexOf(".")==2){ -ts+="0"; -}else{ -if(ts.length-ts.indexOf(".")>2){ -ts=ts.substring(0,ts.indexOf(".")+3); -} -} -} -return ts; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/VolumeButton.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/VolumeButton.js b/components/camel-web/src/main/webapp/js/dojox/av/widget/VolumeButton.js deleted file mode 100644 index 1bbd1a5..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/VolumeButton.js +++ /dev/null @@ -1,118 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.av.widget.VolumeButton"]){ -dojo._hasResource["dojox.av.widget.VolumeButton"]=true; -dojo.provide("dojox.av.widget.VolumeButton"); -dojo.require("dijit._Widget"); -dojo.require("dijit._Templated"); -dojo.require("dijit.form.Button"); -dojo.declare("dojox.av.widget.VolumeButton",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"Volume\" dojoAttachEvent=\"mousedown:onShowVolume\">\n\t<div class=\"VolumeSlider\" dojoAttachPoint=\"volumeSlider\">\n \t<div class=\"VolumeSliderBack\" dojoAttachPoint=\"volumeSliderBack\"></div>\n \t<div class=\"VolumeSliderHandle\" dojoAttachPoint=\"handle\" dojoAttachEvent=\"mousedown:startDrag, mouseup:endDrag, mouseover:handleOver, mouseout:handleOut\"></div>\t\n </div>\n <div class=\"icon\"></div>\n</div>\n",postCreate:function(){ -this.handleWidth=dojo.marginBox(this.handle).w; -this.width=dojo.marginBox(this.volumeSlider).w; -this.slotWidth=100; -dojo.setSelectable(this.handle,false); -this.volumeSlider=this.domNode.removeChild(this.volumeSlider); -},setMedia:function(_1){ -this.media=_1; -this.updateIcon(); -},updateIcon:function(_2){ -_2=(_2===undefined)?this.media.volume():_2; -if(_2===0){ -dojo.attr(this.domNode,"class","Volume mute"); -}else{ -if(_2<0.334){ -dojo.attr(this.domNode,"class","Volume low"); -}else{ -if(_2<0.667){ -dojo.attr(this.domNode,"class","Volume med"); -}else{ -dojo.attr(this.domNode,"class","Volume high"); -} -} -} -},onShowVolume:function(_3){ -if(this.showing==undefined){ -dojo.body().appendChild(this.volumeSlider); -this.showing=false; -} -if(!this.showing){ -var _4=2; -var _5=7; -var _6=this.media.volume(); -var _7=this._getVolumeDim(); -var _8=this._getHandleDim(); -this.x=_7.x-this.width; -dojo.style(this.volumeSlider,"display",""); -dojo.style(this.volumeSlider,"top",_7.y+"px"); -dojo.style(this.volumeSlider,"left",(this.x)+"px"); -var x=(this.slotWidth*_6); -dojo.style(this.handle,"top",(_4+(_8.w/2))+"px"); -dojo.style(this.handle,"left",(x+_5+(_8.h/2))+"px"); -this.showing=true; -this.clickOff=dojo.connect(dojo.doc,"onmousedown",this,"onDocClick"); -}else{ -this.onHideVolume(); -} -},onDocClick:function(_a){ -if(!dojo.isDescendant(_a.target,this.domNode)&&!dojo.isDescendant(_a.target,this.volumeSlider)){ -this.onHideVolume(); -} -},onHideVolume:function(){ -this.endDrag(); -dojo.style(this.volumeSlider,"display","none"); -this.showing=false; -},onDrag:function(_b){ -var _c=this.handleWidth/2; -var _d=_c+this.slotWidth; -var x=_b.clientX-this.x; -if(x<_c){ -x=_c; -} -if(x>_d){ -x=_d; -} -dojo.style(this.handle,"left",(x)+"px"); -var p=(x-_c)/(_d-_c); -this.media.volume(p); -this.updateIcon(p); -},startDrag:function(){ -this.isDragging=true; -this.cmove=dojo.connect(dojo.doc,"mousemove",this,"onDrag"); -this.cup=dojo.connect(dojo.doc,"mouseup",this,"endDrag"); -},endDrag:function(){ -this.isDragging=false; -if(this.cmove){ -dojo.disconnect(this.cmove); -} -if(this.cup){ -dojo.disconnect(this.cup); -} -this.handleOut(); -},handleOver:function(){ -dojo.addClass(this.handle,"over"); -},handleOut:function(){ -if(!this.isDragging){ -dojo.removeClass(this.handle,"over"); -} -},_getVolumeDim:function(){ -if(this._domCoords){ -return this._domCoords; -} -this._domCoords=dojo.coords(this.domNode); -return this._domCoords; -},_getHandleDim:function(){ -if(this._handleCoords){ -return this._handleCoords; -} -this._handleCoords=dojo.marginBox(this.handle); -return this._handleCoords; -},onResize:function(_10){ -this.onHideVolume(); -this._domCoords=null; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/PlayButton.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/PlayButton.html b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/PlayButton.html deleted file mode 100644 index cd7c127..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/PlayButton.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="PlayPauseToggle Pause" dojoAttachEvent="click:onClick"> - <div class="icon"></div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.css b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.css deleted file mode 100644 index 1b2de1c..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.css +++ /dev/null @@ -1,192 +0,0 @@ -@import "../../../dojo/resources/dojo.css"; -.playerContainer{ - width:480px; - background:#76C8C4; - text-align:center; -} -.PlayerScreen{ - background:#00FFFF; - width:320px; - height:240px; - margin-left:auto; - margin-right:auto; -} -.Controls{ - height:85px; - background:#333333; - text-align:left; - width:100%; -} -.ControlsRight{ - vertical-align:top; -} -.ControlsBottom{ - vertical-align:bottom; -} -.StatusContainer{ - width:100%; - height:100%; -} -.PlayContainer{ - width:60px; - height:60px; -} -.Progress{ - height:10px; -} -.Time, .Duration, .Status{ - height:16px; - margin-top:0px; - color:#F5FFC8; - width:100%; -} -.Time{ - padding-left:2px; -} -.Duration{ - padding-right:2px; - text-align:right; -} -.StatusContainer{ - padding:0; - border-collapse:collapse; -} -.Status{ - height:20px; - background:#ff0000; - table-layout:fixed; -} -.Status.statusError .statusTitle, .Status.statusError .statusInfo{ - color:#FF0000; -} -.Status .statusTitle{ - font-weight:bold; - color:#A5B3E9; -} -.Status .statusInfo{ - font-weight:normal; - color:#3770D6; -} -.Time, .Duration, .Status{ - font-family:Verdana, Arial, Helvetica, sans-serif; - font-size:9px; - background:#000000; -} -.Time, .Duration{ - width:60px; -} -.Volume{ - width:30px; - height:30px; - float:right; - margin-right:2px; - margin-top:auto; - background-image:url(images/player_sprite.png); - background-repeat:no-repeat; - background-position:-1px -62px; - cursor:pointer; -} -.Volume:hover{ - background-position:-33px -62px; -} -.PlayPauseToggle{ - width:60px; - height:60px; - background-image:url(images/player_sprite.png); - background-repeat:no-repeat; - background-position:-1px -1px; - cursor:pointer; - vertical-align:middle; - line-height:60px; -} -.PlayPauseToggle:hover{ - background-position:-63px -1px; - cursor:pointer; -} -.icon{ - background-image:url(images/dojoPlayerIcons.png); - background-repeat:no-repeat; - width:22px; - height:22px; -} -.PlayPauseToggle .icon{ - position:relative; - top:19px; - left:19px; - background-position:-1px -1px; -} -.PlayPauseToggle.Play .icon{ - background-position:-1px -1px; -} -.PlayPauseToggle.Pause .icon{ - background-position:-24px -1px; -} -.Progress{ - -} -.Progress, .ProgressLoaded, .ProgressPosition, .ProgressHandle{ - height:10px; -} -.ProgressLoaded, .ProgressPosition, .ProgressHandle{ - position:absolute; -} -.ProgressLoaded{ -background:url(images/progressLoadedBk.png) repeat-x; -} -.ProgressHandle{ - background-image:url(images/sliderHandleSprite.png); - background-position:0px 0px; - width:15px; - margin-left:0px; - cursor:pointer; -} -.ProgressHandle.over{ - background-position:-15px 0px; -} -.ProgressPosition{ - background:url(images/progressPositionBk.png) repeat-x; - width:0px; -} -.VolumeSlider{ - position:absolute; -} -.VolumeSliderBack{ - width:128px; - height:30px; - background-image:url(images/player_sprite.png); - background-repeat:no-repeat; - background-position:-1px -95px; -} -.VolumeSliderHandle{ - position:absolute; - width:12px; - height:14px; - background-image:url(images/player_sprite.png); - background-repeat:no-repeat; - background-position:-1px -140px; - cursor:pointer; -} -.VolumeSliderHandle.over{ - background-position:-15px -138px; - cursor:pointer; -} -.Volume .icon{ - background-position:-60px -43px; - width:18px; - height:16px; - position:relative; - top:7px; - left:7px; -} -.Volume.mute .icon{ - background-position:-1px -43px; -} -.Volume.low .icon{ - background-position:-20px -43px; -} -.Volume.med .icon{ - background-position:-40px -43px; -} -.Volume.high .icon{ - background-position:-60px -43px; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.html b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.html deleted file mode 100644 index 588f856..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Player.html +++ /dev/null @@ -1,27 +0,0 @@ -<div class="playerContainer"> - <div class="PlayerScreen" dojoAttachPoint="playerScreen"></div> -<table class="Controls"> - <tr> - <td colspan="2" dojoAttachPoint="progressContainer"> - - </td> - </tr> - <tr> - <td class="PlayContainer" dojoAttachPoint="playContainer"> - - </td> - <td class="ControlsRight"> - <table class="StatusContainer"> - <tr dojoAttachPoint="statusContainer"> - - </tr> - <tr> - <td colspan="3" class="ControlsBottom" dojoAttachPoint="controlsBottom"> - - </td> - </tr> - </table> - </td> - </tr> -</table> -</div> http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/ProgressSlider.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/ProgressSlider.html b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/ProgressSlider.html deleted file mode 100644 index 2691e02..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/ProgressSlider.html +++ /dev/null @@ -1,6 +0,0 @@ -<div class="Progress" dojoAttachEvent="mousedown:startDrag"> - - <div class="ProgressLoaded" dojoAttachPoint="progressLoaded"></div> - <div class="ProgressPosition" dojoAttachPoint="progressPosition"></div> - <div class="ProgressHandle" dojoAttachPoint="handle" dojoAttachEvent="mouseover:handleOver, mouseout:handleOut"></div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Status.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Status.html b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Status.html deleted file mode 100644 index 63e411b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/Status.html +++ /dev/null @@ -1,7 +0,0 @@ -<table class="Status"> - <tr> - <td class="Time"><span dojoAttachPoint="timeNode">0.00</span></td> - <td class="Status"><div dojoAttachPoint="titleNode">Loading...</div></td> - <td class="Duration"><span dojoAttachPoint="durNode">0.00</span></td> - </tr> -</table> http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/VolumeButton.html ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/VolumeButton.html b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/VolumeButton.html deleted file mode 100644 index f5d3eb9..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/VolumeButton.html +++ /dev/null @@ -1,7 +0,0 @@ -<div class="Volume" dojoAttachEvent="mousedown:onShowVolume"> - <div class="VolumeSlider" dojoAttachPoint="volumeSlider"> - <div class="VolumeSliderBack" dojoAttachPoint="volumeSliderBack"></div> - <div class="VolumeSliderHandle" dojoAttachPoint="handle" dojoAttachEvent="mousedown:startDrag, mouseup:endDrag, mouseover:handleOver, mouseout:handleOut"></div> - </div> - <div class="icon"></div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/dojoPlayerIcons.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/dojoPlayerIcons.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/dojoPlayerIcons.png deleted file mode 100644 index ea3aaf9..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/dojoPlayerIcons.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/playerIcons ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/playerIcons b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/playerIcons deleted file mode 100644 index 0a0ff8c..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/playerIcons and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/player_sprite.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/player_sprite.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/player_sprite.png deleted file mode 100644 index 01f721c..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/player_sprite.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressLoadedBk.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressLoadedBk.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressLoadedBk.png deleted file mode 100644 index b3bca11..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressLoadedBk.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressPositionBk.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressPositionBk.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressPositionBk.png deleted file mode 100644 index 9cbae27..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/progressPositionBk.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleNorm.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleNorm.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleNorm.png deleted file mode 100644 index fda2e9f..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleNorm.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleOver.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleOver.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleOver.png deleted file mode 100644 index b3bec9f..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleOver.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleSprite.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleSprite.png b/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleSprite.png deleted file mode 100644 index fe639ff..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/av/widget/resources/images/sliderHandleSprite.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/charting/Chart2D.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/charting/Chart2D.js b/components/camel-web/src/main/webapp/js/dojox/charting/Chart2D.js deleted file mode 100644 index bf0cf7a..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/charting/Chart2D.js +++ /dev/null @@ -1,373 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.charting.Chart2D"]){ -dojo._hasResource["dojox.charting.Chart2D"]=true; -dojo.provide("dojox.charting.Chart2D"); -dojo.require("dojox.gfx"); -dojo.require("dojox.lang.functional"); -dojo.require("dojox.lang.functional.fold"); -dojo.require("dojox.lang.functional.reversed"); -dojo.require("dojox.charting.Theme"); -dojo.require("dojox.charting.Series"); -dojo.require("dojox.charting.axis2d.Default"); -dojo.require("dojox.charting.plot2d.Default"); -dojo.require("dojox.charting.plot2d.Lines"); -dojo.require("dojox.charting.plot2d.Areas"); -dojo.require("dojox.charting.plot2d.Markers"); -dojo.require("dojox.charting.plot2d.MarkersOnly"); -dojo.require("dojox.charting.plot2d.Scatter"); -dojo.require("dojox.charting.plot2d.Stacked"); -dojo.require("dojox.charting.plot2d.StackedLines"); -dojo.require("dojox.charting.plot2d.StackedAreas"); -dojo.require("dojox.charting.plot2d.Columns"); -dojo.require("dojox.charting.plot2d.StackedColumns"); -dojo.require("dojox.charting.plot2d.ClusteredColumns"); -dojo.require("dojox.charting.plot2d.Bars"); -dojo.require("dojox.charting.plot2d.StackedBars"); -dojo.require("dojox.charting.plot2d.ClusteredBars"); -dojo.require("dojox.charting.plot2d.Grid"); -dojo.require("dojox.charting.plot2d.Pie"); -dojo.require("dojox.charting.plot2d.Bubble"); -(function(){ -var df=dojox.lang.functional,dc=dojox.charting,_3=df.lambda("item.clear()"),_4=df.lambda("item.purgeGroup()"),_5=df.lambda("item.destroy()"),_6=df.lambda("item.dirty = false"),_7=df.lambda("item.dirty = true"); -dojo.declare("dojox.charting.Chart2D",null,{constructor:function(_8,_9){ -if(!_9){ -_9={}; -} -this.margins=_9.margins?_9.margins:{l:10,t:10,r:10,b:10}; -this.stroke=_9.stroke; -this.fill=_9.fill; -this.theme=null; -this.axes={}; -this.stack=[]; -this.plots={}; -this.series=[]; -this.runs={}; -this.dirty=true; -this.coords=null; -this.node=dojo.byId(_8); -var _a=dojo.marginBox(_8); -this.surface=dojox.gfx.createSurface(this.node,_a.w,_a.h); -},destroy:function(){ -dojo.forEach(this.series,_5); -dojo.forEach(this.stack,_5); -df.forIn(this.axes,_5); -this.surface.destroy(); -},getCoords:function(){ -if(!this.coords){ -this.coords=dojo.coords(this.node,true); -} -return this.coords; -},setTheme:function(_b){ -this.theme=_b._clone(); -this.dirty=true; -return this; -},addAxis:function(_c,_d){ -var _e; -if(!_d||!("type" in _d)){ -_e=new dc.axis2d.Default(this,_d); -}else{ -_e=typeof _d.type=="string"?new dc.axis2d[_d.type](this,_d):new _d.type(this,_d); -} -_e.name=_c; -_e.dirty=true; -if(_c in this.axes){ -this.axes[_c].destroy(); -} -this.axes[_c]=_e; -this.dirty=true; -return this; -},getAxis:function(_f){ -return this.axes[_f]; -},removeAxis:function(_10){ -if(_10 in this.axes){ -this.axes[_10].destroy(); -delete this.axes[_10]; -this.dirty=true; -} -return this; -},addPlot:function(_11,_12){ -var _13; -if(!_12||!("type" in _12)){ -_13=new dc.plot2d.Default(this,_12); -}else{ -_13=typeof _12.type=="string"?new dc.plot2d[_12.type](this,_12):new _12.type(this,_12); -} -_13.name=_11; -_13.dirty=true; -if(_11 in this.plots){ -this.stack[this.plots[_11]].destroy(); -this.stack[this.plots[_11]]=_13; -}else{ -this.plots[_11]=this.stack.length; -this.stack.push(_13); -} -this.dirty=true; -return this; -},removePlot:function(_14){ -if(_14 in this.plots){ -var _15=this.plots[_14]; -delete this.plots[_14]; -this.stack[_15].destroy(); -this.stack.splice(_15,1); -df.forIn(this.plots,function(idx,_17,_18){ -if(idx>_15){ -_18[_17]=idx-1; -} -}); -this.dirty=true; -} -return this; -},addSeries:function(_19,_1a,_1b){ -var run=new dc.Series(this,_1a,_1b); -if(_19 in this.runs){ -this.series[this.runs[_19]].destroy(); -this.series[this.runs[_19]]=run; -}else{ -this.runs[_19]=this.series.length; -this.series.push(run); -} -run.name=_19; -this.dirty=true; -if(!("ymin" in run)&&"min" in run){ -run.ymin=run.min; -} -if(!("ymax" in run)&&"max" in run){ -run.ymax=run.max; -} -return this; -},removeSeries:function(_1d){ -if(_1d in this.runs){ -var _1e=this.runs[_1d],_1f=this.series[_1e].plot; -delete this.runs[_1d]; -this.series[_1e].destroy(); -this.series.splice(_1e,1); -df.forIn(this.runs,function(idx,_21,_22){ -if(idx>_1e){ -_22[_21]=idx-1; -} -}); -this.dirty=true; -} -return this; -},updateSeries:function(_23,_24){ -if(_23 in this.runs){ -var run=this.series[this.runs[_23]]; -run.data=_24; -run.dirty=true; -this._invalidateDependentPlots(run.plot,false); -this._invalidateDependentPlots(run.plot,true); -} -return this; -},resize:function(_26,_27){ -var box; -switch(arguments.length){ -case 0: -box=dojo.marginBox(this.node); -break; -case 1: -box=_26; -break; -default: -box={w:_26,h:_27}; -break; -} -dojo.marginBox(this.node,box); -this.surface.setDimensions(box.w,box.h); -this.dirty=true; -this.coords=null; -return this.render(); -},getGeometry:function(){ -var ret={}; -df.forIn(this.axes,function(_2a){ -if(_2a.initialized()){ -ret[_2a.name]={name:_2a.name,vertical:_2a.vertical,scaler:_2a.scaler,ticks:_2a.ticks}; -} -}); -return ret; -},setAxisWindow:function(_2b,_2c,_2d){ -var _2e=this.axes[_2b]; -if(_2e){ -_2e.setWindow(_2c,_2d); -} -return this; -},setWindow:function(sx,sy,dx,dy){ -if(!("plotArea" in this)){ -this.calculateGeometry(); -} -df.forIn(this.axes,function(_33){ -var _34,_35,_36=_33.getScaler().bounds,s=_36.span/(_36.upper-_36.lower); -if(_33.vertical){ -_34=sy; -_35=dy/s/_34; -}else{ -_34=sx; -_35=dx/s/_34; -} -_33.setWindow(_34,_35); -}); -return this; -},calculateGeometry:function(){ -if(this.dirty){ -return this.fullGeometry(); -} -dojo.forEach(this.stack,function(_38){ -if(_38.dirty||(_38.hAxis&&this.axes[_38.hAxis].dirty)||(_38.vAxis&&this.axes[_38.vAxis].dirty)){ -_38.calculateAxes(this.plotArea); -} -},this); -return this; -},fullGeometry:function(){ -this._makeDirty(); -dojo.forEach(this.stack,_3); -if(!this.theme){ -this.setTheme(new dojox.charting.Theme(dojox.charting._def)); -} -dojo.forEach(this.series,function(run){ -if(!(run.plot in this.plots)){ -var _3a=new dc.plot2d.Default(this,{}); -_3a.name=run.plot; -this.plots[run.plot]=this.stack.length; -this.stack.push(_3a); -} -this.stack[this.plots[run.plot]].addSeries(run); -},this); -dojo.forEach(this.stack,function(_3b){ -if(_3b.hAxis){ -_3b.setAxis(this.axes[_3b.hAxis]); -} -if(_3b.vAxis){ -_3b.setAxis(this.axes[_3b.vAxis]); -} -},this); -var dim=this.dim=this.surface.getDimensions(); -dim.width=dojox.gfx.normalizedLength(dim.width); -dim.height=dojox.gfx.normalizedLength(dim.height); -df.forIn(this.axes,_3); -dojo.forEach(this.stack,function(_3d){ -_3d.calculateAxes(dim); -}); -var _3e=this.offsets={l:0,r:0,t:0,b:0}; -df.forIn(this.axes,function(_3f){ -df.forIn(_3f.getOffsets(),function(o,i){ -_3e[i]+=o; -}); -}); -df.forIn(this.margins,function(o,i){ -_3e[i]+=o; -}); -this.plotArea={width:dim.width-_3e.l-_3e.r,height:dim.height-_3e.t-_3e.b}; -df.forIn(this.axes,_3); -dojo.forEach(this.stack,function(_44){ -_44.calculateAxes(this.plotArea); -},this); -return this; -},render:function(){ -if(this.theme){ -this.theme.clear(); -} -if(this.dirty){ -return this.fullRender(); -} -this.calculateGeometry(); -df.forEachRev(this.stack,function(_45){ -_45.render(this.dim,this.offsets); -},this); -df.forIn(this.axes,function(_46){ -_46.render(this.dim,this.offsets); -},this); -this._makeClean(); -if(this.surface.render){ -this.surface.render(); -} -return this; -},fullRender:function(){ -this.fullGeometry(); -var _47=this.offsets,dim=this.dim; -var _49=df.foldl(this.stack,"z + plot.getRequiredColors()",0); -this.theme.defineColors({num:_49,cache:false}); -dojo.forEach(this.series,_4); -df.forIn(this.axes,_4); -dojo.forEach(this.stack,_4); -this.surface.clear(); -var t=this.theme,_4b=t.plotarea&&t.plotarea.fill,_4c=t.plotarea&&t.plotarea.stroke; -if(_4b){ -this.surface.createRect({x:_47.l,y:_47.t,width:dim.width-_47.l-_47.r,height:dim.height-_47.t-_47.b}).setFill(_4b); -} -if(_4c){ -this.surface.createRect({x:_47.l,y:_47.t,width:dim.width-_47.l-_47.r-1,height:dim.height-_47.t-_47.b-1}).setStroke(_4c); -} -df.foldr(this.stack,function(z,_4e){ -return _4e.render(dim,_47),0; -},0); -_4b=this.fill?this.fill:(t.chart&&t.chart.fill); -_4c=this.stroke?this.stroke:(t.chart&&t.chart.stroke); -if(_4b=="inherit"){ -var _4f=this.node,_4b=new dojo.Color(dojo.style(_4f,"backgroundColor")); -while(_4b.a==0&&_4f!=document.documentElement){ -_4b=new dojo.Color(dojo.style(_4f,"backgroundColor")); -_4f=_4f.parentNode; -} -} -if(_4b){ -if(_47.l){ -this.surface.createRect({width:_47.l,height:dim.height+1}).setFill(_4b); -} -if(_47.r){ -this.surface.createRect({x:dim.width-_47.r,width:_47.r+1,height:dim.height+1}).setFill(_4b); -} -if(_47.t){ -this.surface.createRect({width:dim.width+1,height:_47.t}).setFill(_4b); -} -if(_47.b){ -this.surface.createRect({y:dim.height-_47.b,width:dim.width+1,height:_47.b+2}).setFill(_4b); -} -} -if(_4c){ -this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_4c); -} -df.forIn(this.axes,function(_50){ -_50.render(dim,_47); -}); -this._makeClean(); -if(this.surface.render){ -this.surface.render(); -} -return this; -},connectToPlot:function(_51,_52,_53){ -return _51 in this.plots?this.stack[this.plots[_51]].connect(_52,_53):null; -},_makeClean:function(){ -dojo.forEach(this.axes,_6); -dojo.forEach(this.stack,_6); -dojo.forEach(this.series,_6); -this.dirty=false; -},_makeDirty:function(){ -dojo.forEach(this.axes,_7); -dojo.forEach(this.stack,_7); -dojo.forEach(this.series,_7); -this.dirty=true; -},_invalidateDependentPlots:function(_54,_55){ -if(_54 in this.plots){ -var _56=this.stack[this.plots[_54]],_57,_58=_55?"vAxis":"hAxis"; -if(_56[_58]){ -_57=this.axes[_56[_58]]; -if(_57.dependOnData()){ -_57.dirty=true; -dojo.forEach(this.stack,function(p){ -if(p[_58]&&p[_58]==_56[_58]){ -p.dirty=true; -} -}); -} -}else{ -_56.dirty=true; -} -} -}}); -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/charting/Chart3D.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/charting/Chart3D.js b/components/camel-web/src/main/webapp/js/dojox/charting/Chart3D.js deleted file mode 100644 index 9452f82..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/charting/Chart3D.js +++ /dev/null @@ -1,73 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.charting.Chart3D"]){ -dojo._hasResource["dojox.charting.Chart3D"]=true; -dojo.provide("dojox.charting.Chart3D"); -dojo.require("dojox.gfx3d"); -(function(){ -var _1={x:0,y:0,z:1},v=dojox.gfx3d.vector,n=dojox.gfx.normalizedLength; -dojo.declare("dojox.charting.Chart3D",null,{constructor:function(_4,_5,_6,_7){ -this.node=dojo.byId(_4); -this.surface=dojox.gfx.createSurface(this.node,n(this.node.style.width),n(this.node.style.height)); -this.view=this.surface.createViewport(); -this.view.setLights(_5.lights,_5.ambient,_5.specular); -this.view.setCameraTransform(_6); -this.theme=_7; -this.walls=[]; -this.plots=[]; -},generate:function(){ -return this._generateWalls()._generatePlots(); -},invalidate:function(){ -this.view.invalidate(); -return this; -},render:function(){ -this.view.render(); -return this; -},addPlot:function(_8){ -return this._add(this.plots,_8); -},removePlot:function(_9){ -return this._remove(this.plots,_9); -},addWall:function(_a){ -return this._add(this.walls,_a); -},removeWall:function(_b){ -return this._remove(this.walls,_b); -},_add:function(_c,_d){ -if(!dojo.some(_c,function(i){ -return i==_d; -})){ -_c.push(_d); -this.view.invalidate(); -} -return this; -},_remove:function(_f,_10){ -var a=dojo.filter(_f,function(i){ -return i!=_10; -}); -return a.length<_f.length?(_f=a,this.invalidate()):this; -},_generateWalls:function(){ -for(var i=0;i<this.walls.length;++i){ -if(v.dotProduct(_1,this.walls[i].normal)>0){ -this.walls[i].generate(this); -} -} -return this; -},_generatePlots:function(){ -var _14=0,m=dojox.gfx3d.matrix,i=0; -for(;i<this.plots.length;++i){ -_14+=this.plots[i].getDepth(); -} -for(--i;i>=0;--i){ -var _17=this.view.createScene(); -_17.setTransform(m.translate(0,0,-_14)); -this.plots[i].generate(this,_17); -_14-=this.plots[i].getDepth(); -} -return this; -}}); -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/charting/Element.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/charting/Element.js b/components/camel-web/src/main/webapp/js/dojox/charting/Element.js deleted file mode 100644 index 70268f3..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/charting/Element.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.charting.Element"]){ -dojo._hasResource["dojox.charting.Element"]=true; -dojo.provide("dojox.charting.Element"); -dojo.declare("dojox.charting.Element",null,{constructor:function(_1){ -this.chart=_1; -this.group=null; -this.htmlElements=[]; -this.dirty=true; -},createGroup:function(_2){ -if(!_2){ -_2=this.chart.surface; -} -if(!this.group){ -this.group=_2.createGroup(); -} -return this; -},purgeGroup:function(){ -this.destroyHtmlElements(); -if(this.group){ -this.group.clear(); -this.group.removeShape(); -this.group=null; -} -this.dirty=true; -return this; -},cleanGroup:function(_3){ -this.destroyHtmlElements(); -if(!_3){ -_3=this.chart.surface; -} -if(this.group){ -this.group.clear(); -}else{ -this.group=_3.createGroup(); -} -this.dirty=true; -return this; -},destroyHtmlElements:function(){ -if(this.htmlElements.length){ -dojo.forEach(this.htmlElements,dojo.destroy); -this.htmlElements=[]; -} -},destroy:function(){ -this.purgeGroup(); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/charting/README ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/charting/README b/components/camel-web/src/main/webapp/js/dojox/charting/README deleted file mode 100644 index 0858f3a..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/charting/README +++ /dev/null @@ -1,31 +0,0 @@ -------------------------------------------------------------------------------- -dojox.charting -------------------------------------------------------------------------------- -Version 0.800 -Release date: 10/31/2007 -------------------------------------------------------------------------------- -Project state: -beta -------------------------------------------------------------------------------- -Credits - Tom Trenka (ttre...@gmail.com) - Eugene Lazutkin (eugene.lazut...@gmail.com) -------------------------------------------------------------------------------- -Project description - -Implementation of simple charting library based on dojox.gfx/dojox.gfx3d. -------------------------------------------------------------------------------- -Dependencies: - -Dojo Core, dojox.gfx, dojox.gfx3d, dojox.lang. -------------------------------------------------------------------------------- -Documentation - -Not ready yet. -------------------------------------------------------------------------------- -Installation instructions - -Grab the following from the Dojo SVN Repository: -http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/ -http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/ -------------------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/charting/Series.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/charting/Series.js b/components/camel-web/src/main/webapp/js/dojox/charting/Series.js deleted file mode 100644 index 19b2038..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/charting/Series.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.charting.Series"]){ -dojo._hasResource["dojox.charting.Series"]=true; -dojo.provide("dojox.charting.Series"); -dojo.require("dojox.charting.Element"); -dojo.declare("dojox.charting.Series",dojox.charting.Element,{constructor:function(_1,_2,_3){ -dojo.mixin(this,_3); -if(typeof this.plot!="string"){ -this.plot="default"; -} -this.data=_2; -this.dirty=true; -this.clear(); -},clear:function(){ -this.dyn={}; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/charting/Theme.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/charting/Theme.js b/components/camel-web/src/main/webapp/js/dojox/charting/Theme.js deleted file mode 100644 index 075a367..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/charting/Theme.js +++ /dev/null @@ -1,82 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.charting.Theme"]){ -dojo._hasResource["dojox.charting.Theme"]=true; -dojo.provide("dojox.charting.Theme"); -dojo.require("dojox.color"); -dojo.require("dojox.color.Palette"); -(function(){ -var _1=dojox.charting; -_1.Theme=function(_2){ -_2=_2||{}; -var _3=_1.Theme._def; -dojo.forEach(["chart","plotarea","axis","series","marker"],function(n){ -this[n]=dojo.delegate(_3[n],_2[n]||{}); -},this); -this.markers=dojo.delegate(_1.Theme.Markers,_2.markers||{}); -this.colors=[]; -this.antiAlias=("antiAlias" in _2)?_2.antiAlias:true; -this.assignColors=("assignColors" in _2)?_2.assignColors:true; -this.assignMarkers=("assignMarkers" in _2)?_2.assignMarkers:true; -_2.colors=_2.colors||_3.colors; -dojo.forEach(_2.colors,function(_5){ -this.colors.push(_5); -},this); -this._current={color:0,marker:0}; -this._markers=[]; -this._buildMarkerArray(); -}; -_1.Theme.Markers={CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"}; -_1.Theme._def={chart:{stroke:null,fill:"white"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},majorTick:{color:"#666",width:1,length:6,position:"center"},minorTick:{color:"#666",width:0.8,length:3,position:"center"},font:"normal normal normal 7pt Tahoma",fontColor:"#333"},series:{outline:{width:0.1,color:"#ccc"},stroke:{width:1.5,color:"#333"},fill:"#ccc",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},marker:{stroke:{width:1},fill:"#333",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},colors:["#54544c","#858e94","#6e767a","#948585","#474747"]}; -dojo.extend(_1.Theme,{defineColors:function(_6){ -var _7=_6||{}; -var c=[],n=_7.num||5; -if(_7.colors){ -var l=_7.colors.length; -for(var i=0;i<n;i++){ -c.push(_7.colors[i%l]); -} -this.colors=c; -}else{ -if(_7.hue){ -var s=_7.saturation||100; -var st=_7.low||30; -var _e=_7.high||90; -var l=(_e+st)/2; -this.colors=dojox.color.Palette.generate(dojox.color.fromHsv(_7.hue,s,l),"monochromatic").colors; -}else{ -if(_7.generator){ -this.colors=dojox.color.Palette.generate(_7.base,_7.generator).colors; -} -} -} -},_buildMarkerArray:function(){ -this._markers=[]; -for(var p in this.markers){ -this._markers.push(this.markers[p]); -} -this._current.marker=0; -},_clone:function(){ -return new _1.Theme({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,antiAlias:this.antiAlias,assignColors:this.assignColors,assignMarkers:this.assigneMarkers,colors:dojo.delegate(this.colors)}); -},addMarker:function(_10,_11){ -this.markers[_10]=_11; -this._buildMarkerArray(); -},setMarkers:function(obj){ -this.markers=obj; -this._buildMarkerArray(); -},next:function(_13){ -if(_13=="marker"){ -return this._markers[this._current.marker++%this._markers.length]; -}else{ -return this.colors[this._current.color++%this.colors.length]; -} -},clear:function(){ -this._current={color:0,marker:0}; -}}); -})(); -}