Skip to content

Commit 9a6d53f

Browse files
authored
Merge pull request #17395 from Mugen87/dev37
Examples: Inherit loaders from Loader II.
2 parents 8a2a68b + 857e491 commit 9a6d53f

26 files changed

+91
-250
lines changed

docs/examples/en/loaders/OBJLoader.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -64,9 +65,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6465
</p>
6566

6667
<h2>Properties</h2>
67-
68+
<p>See the base [page:Loader] class for common properties.</p>
6869

6970
<h2>Methods</h2>
71+
<p>See the base [page:Loader] class for common methods.</p>
7072

7173
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7274
<p>
@@ -97,11 +99,6 @@ <h3>[method:OBJLoader setMaterials]( [param:MTLLoader.MaterialCreator materials]
9799
Sets materials loaded by MTLLoader or any other supplier of a [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator].
98100
</p>
99101

100-
<h3>[method:OBJLoader setPath]( [param:String path] )</h3>
101-
<p>
102-
Sets the base path or URL from which to load files. This can be useful to avoid repetition if you are calling [page:OBJLoader.load .load] multiple times on the same directory.
103-
</p>
104-
105102
<h2>Source</h2>
106103

107104
<p>

docs/examples/en/loaders/PCDLoader.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -62,13 +63,15 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6263
</p>
6364

6465
<h2>Properties</h2>
66+
<p>See the base [page:Loader] class for common properties.</p>
6567

6668
<h3>[page:Boolean littleEndian]</h3>
6769
<p>
6870
Default value is true.
6971
</p>
7072

7173
<h2>Methods</h2>
74+
<p>See the base [page:Loader] class for common methods.</p>
7275

7376
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7477
<p>
@@ -93,14 +96,6 @@ <h3>[method:Object3D parse]( [param:Arraybuffer data],[param:String url] )</h3>
9396
The object is converted to [page:Points] with a [page:BufferGeometry] and a [page:PointsMaterial].
9497
</p>
9598

96-
<h3>[method:PCDLoader setPath]( [param:String path] )</h3>
97-
<p>
98-
[page:String path] — Base path.
99-
</p>
100-
<p>
101-
Set the base path for the file.
102-
</p>
103-
10499
<h2>Source</h2>
105100

106101
<p>

docs/examples/en/loaders/PDBLoader.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -64,9 +65,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6465
</p>
6566

6667
<h2>Properties</h2>
67-
68+
<p>See the base [page:Loader] class for common properties.</p>
6869

6970
<h2>Methods</h2>
71+
<p>See the base [page:Loader] class for common methods.</p>
7072

7173
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7274
<p>
@@ -87,14 +89,6 @@ <h3>[method:Object parse]( [param:String text] )</h3>
8789
Parse a <em>pdb</em> text and return a <em>JSON</em> structure.<br />
8890
</p>
8991

90-
<h3>[method:PDBLoader setPath]( [param:String path] )</h3>
91-
<p>
92-
[page:String path] — Base path.
93-
</p>
94-
<p>
95-
Set the base path for the file.
96-
</p>
97-
9892
<h2>Source</h2>
9993

10094
<p>

docs/examples/en/loaders/PRWMLoader.html

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -65,9 +66,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6566
</p>
6667

6768
<h2>Properties</h2>
68-
69+
<p>See the base [page:Loader] class for common properties.</p>
6970

7071
<h2>Methods</h2>
72+
<p>See the base [page:Loader] class for common methods.</p>
7173

7274
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7375
<p>
@@ -94,25 +96,11 @@ <h3>PRWMLoader.isBigEndianPlatform( )</h3>
9496
Return true if the endianness of the platform is Big Endian, false otherwise.
9597
</p>
9698

97-
<h3>[method:PRWMLoader setPath]( [param:String path] )</h3>
98-
<p>
99-
[page:String path] — Base path.
100-
</p>
101-
<p>
102-
Set the base path for the file.
103-
</p>
104-
10599
<h2>Source</h2>
106100

107101
<p>
108102
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/PRWMLoader.js examples/js/loaders/PRWMLoader.js]
109103
</p>
110104

111-
<h2>Additional notes</h2>
112-
113-
<p>
114-
This loader is additionally available on npm as <a href="https://www.npmjs.com/package/three-prwm-loader">three-prwm-loader</a>.
115-
</p>
116-
117105
</body>
118106
</html>

docs/examples/en/loaders/SVGLoader.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -85,9 +86,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
8586
</p>
8687

8788
<h2>Properties</h2>
88-
89+
<p>See the base [page:Loader] class for common properties.</p>
8990

9091
<h2>Methods</h2>
92+
<p>See the base [page:Loader] class for common methods.</p>
9193

9294
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
9395
<p>
@@ -100,14 +102,6 @@ <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Func
100102
Begin loading from url and call onLoad with the response content.
101103
</p>
102104

103-
<h3>[method:SVGLoader setPath]( [param:String path] )</h3>
104-
<p>
105-
[page:String path] — Base path.
106-
</p>
107-
<p>
108-
Set the base path for the file.
109-
</p>
110-
111105
<h2>Source</h2>
112106

113107
<p>

docs/examples/zh/loaders/OBJLoader.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -64,9 +65,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6465
</p>
6566

6667
<h2>Properties</h2>
67-
68+
<p>See the base [page:Loader] class for common properties.</p>
6869

6970
<h2>Methods</h2>
71+
<p>See the base [page:Loader] class for common methods.</p>
7072

7173
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7274
<p>
@@ -97,11 +99,6 @@ <h3>[method:OBJLoader setMaterials]( [param:MTLLoader.MaterialCreator materials]
9799
Sets materials loaded by MTLLoader or any other supplier of a [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator].
98100
</p>
99101

100-
<h3>[method:OBJLoader setPath]( [param:String path] )</h3>
101-
<p>
102-
Sets the base path or URL from which to load files. This can be useful to avoid repetition if you are calling [page:OBJLoader.load .load] multiple times on the same directory.
103-
</p>
104-
105102
<h2>Source</h2>
106103

107104
<p>

docs/examples/zh/loaders/PCDLoader.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -62,13 +63,15 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6263
</p>
6364

6465
<h2>Properties</h2>
66+
<p>See the base [page:Loader] class for common properties.</p>
6567

6668
<h3>[page:Boolean littleEndian]</h3>
6769
<p>
6870
Default value is true.
6971
</p>
7072

7173
<h2>Methods</h2>
74+
<p>See the base [page:Loader] class for common methods.</p>
7275

7376
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7477
<p>
@@ -93,14 +96,6 @@ <h3>[method:Object3D parse]( [param:Arraybuffer data],[param:String url] )</h3>
9396
The object is converted to [page:Points] with a [page:BufferGeometry] and a [page:PointsMaterial].
9497
</p>
9598

96-
<h3>[method:PCDLoader setPath]( [param:String path] )</h3>
97-
<p>
98-
[page:String path] — Base path.
99-
</p>
100-
<p>
101-
Set the base path for the file.
102-
</p>
103-
10499
<h2>Source</h2>
105100

106101
<p>

docs/examples/zh/loaders/PDBLoader.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -64,9 +65,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6465
</p>
6566

6667
<h2>Properties</h2>
67-
68+
<p>See the base [page:Loader] class for common properties.</p>
6869

6970
<h2>Methods</h2>
71+
<p>See the base [page:Loader] class for common methods.</p>
7072

7173
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7274
<p>
@@ -87,14 +89,6 @@ <h3>[method:Object parse]( [param:String text] )</h3>
8789
Parse a <em>pdb</em> text and return a <em>JSON</em> structure.<br />
8890
</p>
8991

90-
<h3>[method:PDBLoader setPath]( [param:String path] )</h3>
91-
<p>
92-
[page:String path] — Base path.
93-
</p>
94-
<p>
95-
Set the base path for the file.
96-
</p>
97-
9892
<h2>Source</h2>
9993

10094
<p>

docs/examples/zh/loaders/PRWMLoader.html

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -65,9 +66,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
6566
</p>
6667

6768
<h2>Properties</h2>
68-
69+
<p>See the base [page:Loader] class for common properties.</p>
6970

7071
<h2>Methods</h2>
72+
<p>See the base [page:Loader] class for common methods.</p>
7173

7274
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
7375
<p>
@@ -94,25 +96,11 @@ <h3>PRWMLoader.isBigEndianPlatform( )</h3>
9496
Return true if the endianness of the platform is Big Endian, false otherwise.
9597
</p>
9698

97-
<h3>[method:PRWMLoader setPath]( [param:String path] )</h3>
98-
<p>
99-
[page:String path] — Base path.
100-
</p>
101-
<p>
102-
Set the base path for the file.
103-
</p>
104-
10599
<h2>Source</h2>
106100

107101
<p>
108102
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/PRWMLoader.js examples/js/loaders/PRWMLoader.js]
109103
</p>
110104

111-
<h2>Additional notes</h2>
112-
113-
<p>
114-
This loader is additionally available on npm as <a href="https://www.npmjs.com/package/three-prwm-loader">three-prwm-loader</a>.
115-
</p>
116-
117105
</body>
118106
</html>

docs/examples/zh/loaders/SVGLoader.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link type="text/css" rel="stylesheet" href="page.css" />
99
</head>
1010
<body>
11+
[page:Loader] &rarr;
1112

1213
<h1>[name]</h1>
1314

@@ -85,9 +86,10 @@ <h3>[name]( [param:LoadingManager manager] )</h3>
8586
</p>
8687

8788
<h2>Properties</h2>
88-
89+
<p>See the base [page:Loader] class for common properties.</p>
8990

9091
<h2>Methods</h2>
92+
<p>See the base [page:Loader] class for common methods.</p>
9193

9294
<h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Function onProgress], [param:Function onError] )</h3>
9395
<p>
@@ -100,14 +102,6 @@ <h3>[method:null load]( [param:String url], [param:Function onLoad], [param:Func
100102
Begin loading from url and call onLoad with the response content.
101103
</p>
102104

103-
<h3>[method:SVGLoader setPath]( [param:String path] )</h3>
104-
<p>
105-
[page:String path] — Base path.
106-
</p>
107-
<p>
108-
Set the base path for the file.
109-
</p>
110-
111105
<h2>Source</h2>
112106

113107
<p>

0 commit comments

Comments
 (0)