소스 검색

minor tweaks and comments

Hakim El Hattab 11 년 전
부모
커밋
2de43199ef
2개의 변경된 파일14개의 추가작업 그리고 4개의 파일을 삭제
  1. 13 3
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 13 - 3
js/reveal.js

@@ -2825,6 +2825,16 @@ var Reveal = (function(){
 	// --------------------------------------------------------------------//
 
 
+	/**
+	 * Constructor for the playback component, which displays
+	 * play/pause/progress controls.
+	 *
+	 * @param {HTMLElement} container The component will append
+	 * itself to this
+	 * @param {Function} progressCheck A method which will be
+	 * called frequently to get the current progress on a range
+	 * of 0-1
+	 */
 	function Playback( container, progressCheck ) {
 
 		this.size = 50;
@@ -2883,6 +2893,8 @@ var Reveal = (function(){
 			x = this.size / 2,
 			y = this.size / 2;
 
+		var iconSize = 14;
+
 		var startAngle = - Math.PI / 2;
 		var endAngle = startAngle + ( progress * ( Math.PI * 2 ) );
 
@@ -2902,15 +2914,13 @@ var Reveal = (function(){
 		this.context.strokeStyle = '#666';
 		this.context.stroke();
 
-		// Draw progress along arc edge
+		// Draw progress on top of track
 		this.context.beginPath();
 		this.context.arc( x, y, radius, startAngle, endAngle, false );
 		this.context.lineWidth = this.thickness;
 		this.context.strokeStyle = '#fff';
 		this.context.stroke();
 
-		var iconSize = 14;
-
 		this.context.translate( x - ( iconSize / 2 ), y - ( iconSize / 2 ) );
 
 		// Draw play/pause icons

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
js/reveal.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.