瀏覽代碼

Updated FontLoader doc

looeee 8 年之前
父節點
當前提交
466799b957

+ 1 - 3
docs/api/loaders/BufferGeometryLoader.html

@@ -77,9 +77,7 @@
 
 
 		<h3>[method:BufferGeometry parse]( [page:Object json] )</h3>
 		<h3>[method:BufferGeometry parse]( [page:Object json] )</h3>
 		<div>
 		<div>
-		[page:Object json] — The <em>JSON</em> structure to parse.
-		</div>
-		<div>
+		[page:Object json] — The <em>JSON</em> structure to parse.<br /><br />
 		Parse a <em>JSON</em> structure and return a [page:BufferGeometry].
 		Parse a <em>JSON</em> structure and return a [page:BufferGeometry].
 		</div>
 		</div>
 
 

+ 1 - 1
docs/api/loaders/DataTextureLoader.html

@@ -10,7 +10,7 @@
 	<body>
 	<body>
 		<h1>[name]</h1>
 		<h1>[name]</h1>
 
 
-		<div class="desc">This is a synonym for the [page:BinaryTextureLoader BinaryTextureLoader].
+		<div class="desc">This is an alias for the [page:BinaryTextureLoader BinaryTextureLoader].
 			See that page for details.
 			See that page for details.
 		</div>
 		</div>
 
 

+ 17 - 5
docs/api/loaders/FontLoader.html

@@ -12,7 +12,8 @@
 
 
 		<div class="desc">
 		<div class="desc">
 		Class for loading a font in JSON format. Returns a [page:Font Font], which is an
 		Class for loading a font in JSON format. Returns a [page:Font Font], which is an
-		array of [page:Shape Shape]s representing the font.<br /><br />
+		array of [page:Shape Shape]s representing the font.
+		This uses the [page:FileLoader] internally for loading files. <br /><br />
 
 
 		You can convert fonts online using [link:https://gero3.github.io/facetype.js/ facetype.js]
 		You can convert fonts online using [link:https://gero3.github.io/facetype.js/ facetype.js]
 		</div>
 		</div>
@@ -50,12 +51,18 @@
 
 
 		<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>
 
 
 		<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>
@@ -63,10 +70,15 @@
 		[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:Texture texture].<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 when load errors.<br /><br />
+
+		Begin loading from url and pass the loaded [page:Texture texture] to onLoad.
 		</div>
 		</div>
+
+		<h3>[method:Font parse]( [page:Object json] )</h3>
 		<div>
 		<div>
-		Begin loading from url and pass the loaded [page:Texture texture] to onLoad.
+		[page:Object json] — The <em>JSON</em> structure to parse.<br /><br />
+		Parse a <em>JSON</em> structure and return a [page:Font].
 		</div>
 		</div>
 
 
 		<h2>Source</h2>
 		<h2>Source</h2>