浏览代码

Updated AnimationLoader doc

looeee 8 年之前
父节点
当前提交
3e088b7f63
共有 2 个文件被更改,包括 24 次插入5 次删除
  1. 19 5
      docs/api/loaders/AnimationLoader.html
  2. 5 0
      docs/api/loaders/FileLoader.html

+ 19 - 5
docs/api/loaders/AnimationLoader.html

@@ -41,10 +41,16 @@
 
 
 		<h3>[name]( [page:LoadingManager manager] )</h3>
 		<h3>[name]( [page:LoadingManager manager] )</h3>
 		<div>
 		<div>
-		[page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].
+		[page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br /><br />
+
+		Creates a new [name].
 		</div>
 		</div>
+
+		<h2>Properties</h2>
+
+		<h3>[property:LoadingManager manager]</h3>
 		<div>
 		<div>
-		Creates a new [name].
+			The [page:LoadingManager loadingManager]  the loader is using. Default is [page:DefaultLoadingManager].
 		</div>
 		</div>
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>
@@ -52,12 +58,20 @@
 		<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
 		<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
 		<div>
 		<div>
 		[page:String url] — required<br />
 		[page:String url] — required<br />
-		[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Texture texture].<br />
+		[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Animation animation].<br />
 		[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
 		[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
-		[page:Function onError] — Will be called when load errors.<br />
+		[page:Function onError] — Will be called if load errors.<br /><br />
+
+		Begin loading from url and pass the loaded animation to onLoad.
 		</div>
 		</div>
+
+		<h3>[method:null parse]( [page:JSON json], [page:Function onLoad] )</h3>
 		<div>
 		<div>
-		Begin loading from url and pass the loaded animation to onLoad.
+		[page:JSON json] — required<br />
+		[page:Function onLoad] — Will be called when pasring completes. <br /><br />
+
+		Parse the JSON object and pass the result to onLoad. Individual clips in the object will
+		be parsed with [page:AnimationClip.parse].
 		</div>
 		</div>
 
 
 		<h2>Source</h2>
 		<h2>Source</h2>

+ 5 - 0
docs/api/loaders/FileLoader.html

@@ -68,6 +68,11 @@ loader.load(
 			This is a global property and only needs to be set once to be used by all loaders that use FileLoader internally.
 			This is a global property and only needs to be set once to be used by all loaders that use FileLoader internally.
 		</div>
 		</div>
 
 
+		<h3>[property:LoadingManager manager]</h3>
+		<div>
+			The [page:LoadingManager loadingManager]  the loader is using. Default is [page:DefaultLoadingManager].
+		</div>
+
 		<h3>[property:String mimeType]</h3>
 		<h3>[property:String mimeType]</h3>
 		<div>
 		<div>
 			The expected [link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types mimeType].
 			The expected [link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types mimeType].