Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
102497da
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
102497da
编写于
10月 28, 2016
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs/Examples: Renamed XHRLoader to FileLoader.
上级
1a414581
变更
39
显示空白变更内容
内联
并排
Showing
39 changed file
with
46 addition
and
46 deletion
+46
-46
docs/api/loaders/Cache.html
docs/api/loaders/Cache.html
+1
-1
docs/api/loaders/FileLoader.html
docs/api/loaders/FileLoader.html
+0
-0
docs/list.js
docs/list.js
+2
-2
editor/index.html
editor/index.html
+1
-1
editor/js/Menubar.Examples.js
editor/js/Menubar.Examples.js
+1
-1
editor/js/Menubar.File.js
editor/js/Menubar.File.js
+1
-1
editor/js/libs/app/index.html
editor/js/libs/app/index.html
+1
-1
editor/js/libs/tern-threejs/threejs.js
editor/js/libs/tern-threejs/threejs.js
+3
-3
examples/js/loaders/3MFLoader.js
examples/js/loaders/3MFLoader.js
+1
-1
examples/js/loaders/AMFLoader.js
examples/js/loaders/AMFLoader.js
+1
-1
examples/js/loaders/AWDLoader.js
examples/js/loaders/AWDLoader.js
+1
-1
examples/js/loaders/AssimpJSONLoader.js
examples/js/loaders/AssimpJSONLoader.js
+1
-1
examples/js/loaders/BVHLoader.js
examples/js/loaders/BVHLoader.js
+1
-1
examples/js/loaders/BabylonLoader.js
examples/js/loaders/BabylonLoader.js
+1
-1
examples/js/loaders/BinaryLoader.js
examples/js/loaders/BinaryLoader.js
+2
-2
examples/js/loaders/ColladaLoader2.js
examples/js/loaders/ColladaLoader2.js
+1
-1
examples/js/loaders/FBXLoader.js
examples/js/loaders/FBXLoader.js
+2
-2
examples/js/loaders/GLTFLoader.js
examples/js/loaders/GLTFLoader.js
+3
-3
examples/js/loaders/HDRCubeTextureLoader.js
examples/js/loaders/HDRCubeTextureLoader.js
+1
-1
examples/js/loaders/KMZLoader.js
examples/js/loaders/KMZLoader.js
+1
-1
examples/js/loaders/MD2Loader.js
examples/js/loaders/MD2Loader.js
+1
-1
examples/js/loaders/MMDLoader.js
examples/js/loaders/MMDLoader.js
+2
-2
examples/js/loaders/MTLLoader.js
examples/js/loaders/MTLLoader.js
+1
-1
examples/js/loaders/NRRDLoader.js
examples/js/loaders/NRRDLoader.js
+1
-1
examples/js/loaders/OBJLoader.js
examples/js/loaders/OBJLoader.js
+1
-1
examples/js/loaders/PCDLoader.js
examples/js/loaders/PCDLoader.js
+1
-1
examples/js/loaders/PDBLoader.js
examples/js/loaders/PDBLoader.js
+1
-1
examples/js/loaders/PLYLoader.js
examples/js/loaders/PLYLoader.js
+1
-1
examples/js/loaders/PlayCanvasLoader.js
examples/js/loaders/PlayCanvasLoader.js
+1
-1
examples/js/loaders/STLLoader.js
examples/js/loaders/STLLoader.js
+1
-1
examples/js/loaders/SVGLoader.js
examples/js/loaders/SVGLoader.js
+1
-1
examples/js/loaders/TGALoader.js
examples/js/loaders/TGALoader.js
+1
-1
examples/js/loaders/TTFLoader.js
examples/js/loaders/TTFLoader.js
+1
-1
examples/js/loaders/UTF8Loader.js
examples/js/loaders/UTF8Loader.js
+1
-1
examples/js/loaders/VRMLLoader.js
examples/js/loaders/VRMLLoader.js
+1
-1
examples/js/loaders/VTKLoader.js
examples/js/loaders/VTKLoader.js
+1
-1
examples/js/loaders/deprecated/SceneLoader.js
examples/js/loaders/deprecated/SceneLoader.js
+1
-1
examples/webgl_loader_msgpack.html
examples/webgl_loader_msgpack.html
+1
-1
examples/webgl_morphtargets_human.html
examples/webgl_morphtargets_human.html
+1
-1
未找到文件。
docs/api/loaders/Cache.html
浏览文件 @
102497da
...
...
@@ -10,7 +10,7 @@
<body>
<h1>
[name]
</h1>
<div
class=
"desc"
>
A simple caching classe, used internaly by [page:
XHR
Loader].
</div>
<div
class=
"desc"
>
A simple caching classe, used internaly by [page:
File
Loader].
</div>
<h2>
Constructor
</h2>
...
...
docs/api/loaders/
XHR
Loader.html
→
docs/api/loaders/
File
Loader.html
浏览文件 @
102497da
文件已移动
docs/list.js
浏览文件 @
102497da
...
...
@@ -96,6 +96,7 @@ var list = {
[
"
BufferGeometryLoader
"
,
"
api/loaders/BufferGeometryLoader
"
],
[
"
Cache
"
,
"
api/loaders/Cache
"
],
[
"
ColladaLoader
"
,
"
api/loaders/ColladaLoader
"
],
[
"
FileLoader
"
,
"
api/loaders/FileLoader
"
],
[
"
GLTFLoader
"
,
"
api/loaders/GLTFLoader
"
],
[
"
ImageLoader
"
,
"
api/loaders/ImageLoader
"
],
[
"
JSONLoader
"
,
"
api/loaders/JSONLoader
"
],
...
...
@@ -108,8 +109,7 @@ var list = {
[
"
PDBLoader
"
,
"
api/loaders/PDBLoader
"
],
[
"
SVGLoader
"
,
"
api/loaders/SVGLoader
"
],
[
"
TextureLoader
"
,
"
api/loaders/TextureLoader
"
],
[
"
TGALoader
"
,
"
api/loaders/TGALoader
"
],
[
"
XHRLoader
"
,
"
api/loaders/XHRLoader
"
]
[
"
TGALoader
"
,
"
api/loaders/TGALoader
"
]
],
"
Materials
"
:
[
...
...
editor/index.html
浏览文件 @
102497da
...
...
@@ -365,7 +365,7 @@
if
(
confirm
(
'
Any unsaved data will be lost. Are you sure?
'
)
)
{
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
loader
.
crossOrigin
=
''
;
loader
.
load
(
file
,
function
(
text
)
{
...
...
editor/js/Menubar.Examples.js
浏览文件 @
102497da
...
...
@@ -25,7 +25,7 @@ Menubar.Examples = function ( editor ) {
{
title
:
'
Pong
'
,
file
:
'
pong.app.json
'
}
];
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
for
(
var
i
=
0
;
i
<
items
.
length
;
i
++
)
{
...
...
editor/js/Menubar.File.js
浏览文件 @
102497da
...
...
@@ -233,7 +233,7 @@ Menubar.File = function ( editor ) {
}
);
var
loader
=
new
THREE
.
XHR
Loader
(
manager
);
var
loader
=
new
THREE
.
File
Loader
(
manager
);
loader
.
load
(
'
js/libs/app/index.html
'
,
function
(
content
)
{
var
includes
=
[];
...
...
editor/js/libs/app/index.html
浏览文件 @
102497da
...
...
@@ -33,7 +33,7 @@
<!-- includes -->
<script>
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
loader
.
load
(
'
app.json
'
,
function
(
text
)
{
var
json
=
JSON
.
parse
(
text
);
...
...
editor/js/libs/tern-threejs/threejs.js
浏览文件 @
102497da
...
...
@@ -2207,7 +2207,7 @@
"
!doc
"
:
"
Remove all values from the cache.
"
}
},
"
!doc
"
:
"
A simple caching classe, used internaly by [page:
XHR
Loader].
"
,
"
!doc
"
:
"
A simple caching classe, used internaly by [page:
File
Loader].
"
,
"
!type
"
:
"
fn()
"
},
"
ColladaLoader
"
:
{
...
...
@@ -2513,8 +2513,8 @@
"
!doc
"
:
"
Class for loading a [page:Texture texture].
"
,
"
!type
"
:
"
fn(manager: +THREE.LoadingManager)
"
},
"
XHR
Loader
"
:
{
"
!url
"
:
"
http://threejs.org/docs/#Reference/loaders/
XHR
Loader
"
,
"
File
Loader
"
:
{
"
!url
"
:
"
http://threejs.org/docs/#Reference/loaders/
File
Loader
"
,
"
prototype
"
:
{
"
cache
"
:
{
"
!type
"
:
"
+THREE.Cache
"
,
...
...
examples/js/loaders/3MFLoader.js
浏览文件 @
102497da
...
...
@@ -12,7 +12,7 @@ THREE.ThreeMFLoader.prototype = {
load
:
function
(
url
,
onLoad
,
onProgress
,
onError
)
{
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/AMFLoader.js
浏览文件 @
102497da
...
...
@@ -33,7 +33,7 @@ THREE.AMFLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/AWDLoader.js
浏览文件 @
102497da
...
...
@@ -109,7 +109,7 @@
this
.
_url
=
url
;
this
.
_baseDir
=
url
.
substr
(
0
,
url
.
lastIndexOf
(
'
/
'
)
+
1
);
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/AssimpJSONLoader.js
浏览文件 @
102497da
...
...
@@ -27,7 +27,7 @@ THREE.AssimpJSONLoader.prototype = {
this
.
texturePath
=
this
.
texturePath
&&
(
typeof
this
.
texturePath
===
"
string
"
)
?
this
.
texturePath
:
this
.
extractUrlBase
(
url
);
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
var
json
=
JSON
.
parse
(
text
),
scene
,
metadata
;
...
...
examples/js/loaders/BVHLoader.js
浏览文件 @
102497da
...
...
@@ -24,7 +24,7 @@ THREE.BVHLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
buffer
)
{
...
...
examples/js/loaders/BabylonLoader.js
浏览文件 @
102497da
...
...
@@ -16,7 +16,7 @@ THREE.BabylonLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
JSON
.
parse
(
text
)
)
);
...
...
examples/js/loaders/BinaryLoader.js
浏览文件 @
102497da
...
...
@@ -37,14 +37,14 @@ THREE.BinaryLoader.prototype = {
var
scope
=
this
;
var
jsonloader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
jsonloader
=
new
THREE
.
File
Loader
(
this
.
manager
);
jsonloader
.
load
(
url
,
function
(
data
)
{
var
json
=
JSON
.
parse
(
data
);
var
bufferUrl
=
binaryPath
+
json
.
buffers
;
var
bufferLoader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
bufferLoader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
bufferLoader
.
setResponseType
(
'
arraybuffer
'
);
bufferLoader
.
load
(
bufferUrl
,
function
(
bufData
)
{
...
...
examples/js/loaders/ColladaLoader2.js
浏览文件 @
102497da
...
...
@@ -24,7 +24,7 @@ THREE.ColladaLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
text
,
getBaseUrl
(
url
)
)
);
...
...
examples/js/loaders/FBXLoader.js
浏览文件 @
102497da
...
...
@@ -33,7 +33,7 @@
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
// loader.setCrossOrigin( this.crossOrigin );
loader
.
load
(
url
,
function
(
text
)
{
...
...
@@ -528,7 +528,7 @@
THREE
.
FBXLoader
.
prototype
.
loadFile
=
function
(
url
,
onLoad
,
onProgress
,
onError
,
responseType
)
{
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
responseType
);
...
...
examples/js/loaders/GLTFLoader.js
浏览文件 @
102497da
...
...
@@ -24,7 +24,7 @@ THREE.GLTFLoader.prototype = {
var
path
=
this
.
path
&&
(
typeof
this
.
path
===
"
string
"
)
?
this
.
path
:
THREE
.
Loader
.
prototype
.
extractUrlBase
(
url
);
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
scope
.
parse
(
JSON
.
parse
(
text
),
onLoad
,
path
);
...
...
@@ -822,7 +822,7 @@ GLTFParser.prototype.loadShaders = function() {
return
new
Promise
(
function
(
resolve
)
{
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
loader
.
responseType
=
'
text
'
;
loader
.
load
(
resolveURL
(
shader
.
uri
,
this
.
options
.
path
),
function
(
shaderText
)
{
...
...
@@ -844,7 +844,7 @@ GLTFParser.prototype.loadBuffers = function() {
return
new
Promise
(
function
(
resolve
)
{
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
loader
.
responseType
=
'
arraybuffer
'
;
loader
.
load
(
resolveURL
(
buffer
.
uri
,
this
.
options
.
path
),
function
(
buffer
)
{
...
...
examples/js/loaders/HDRCubeTextureLoader.js
浏览文件 @
102497da
...
...
@@ -27,7 +27,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function(type, urls, onLoad, onProgr
var
loaded
=
0
;
function
loadHDRData
(
i
,
onLoad
,
onProgress
,
onError
)
{
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
urls
[
i
],
function
(
buffer
)
{
...
...
examples/js/loaders/KMZLoader.js
浏览文件 @
102497da
...
...
@@ -16,7 +16,7 @@ THREE.KMZLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/MD2Loader.js
浏览文件 @
102497da
...
...
@@ -16,7 +16,7 @@ THREE.MD2Loader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
buffer
)
{
...
...
examples/js/loaders/MMDLoader.js
浏览文件 @
102497da
...
...
@@ -310,7 +310,7 @@ THREE.MMDLoader.prototype.extractExtension = function ( url ) {
THREE
.
MMDLoader
.
prototype
.
loadFile
=
function
(
url
,
onLoad
,
onProgress
,
onError
,
responseType
)
{
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
responseType
);
...
...
@@ -344,7 +344,7 @@ THREE.MMDLoader.prototype.loadFileAsShiftJISText = function ( url, onLoad, onPro
* TODO: some browsers seem not support overrideMimeType
* so some workarounds for them may be necessary.
* Note: to set property of request after calling request.send(null)
* (it's called in THREE.
XHR
Loader.load()) could be a bad manner.
* (it's called in THREE.
File
Loader.load()) could be a bad manner.
*/
request
.
overrideMimeType
(
'
text/plain; charset=shift_jis
'
);
...
...
examples/js/loaders/MTLLoader.js
浏览文件 @
102497da
...
...
@@ -29,7 +29,7 @@ Object.assign( THREE.MTLLoader.prototype, THREE.EventDispatcher.prototype, {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setPath
(
this
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/NRRDLoader.js
浏览文件 @
102497da
...
...
@@ -11,7 +11,7 @@ Object.assign( THREE.NRRDLoader.prototype, THREE.EventDispatcher.prototype, {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
data
)
{
...
...
examples/js/loaders/OBJLoader.js
浏览文件 @
102497da
...
...
@@ -43,7 +43,7 @@ THREE.OBJLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setPath
(
this
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/PCDLoader.js
浏览文件 @
102497da
...
...
@@ -21,7 +21,7 @@ Object.assign( THREE.PCDLoader.prototype, THREE.EventDispatcher.prototype, {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
data
)
{
...
...
examples/js/loaders/PDBLoader.js
浏览文件 @
102497da
...
...
@@ -16,7 +16,7 @@ THREE.PDBLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
var
json
=
scope
.
parsePDB
(
text
);
...
...
examples/js/loaders/PLYLoader.js
浏览文件 @
102497da
...
...
@@ -43,7 +43,7 @@ THREE.PLYLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/PlayCanvasLoader.js
浏览文件 @
102497da
...
...
@@ -16,7 +16,7 @@ THREE.PlayCanvasLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
JSON
.
parse
(
text
)
)
);
...
...
examples/js/loaders/STLLoader.js
浏览文件 @
102497da
...
...
@@ -41,7 +41,7 @@ THREE.STLLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/SVGLoader.js
浏览文件 @
102497da
...
...
@@ -19,7 +19,7 @@ THREE.SVGLoader.prototype = {
var
parser
=
new
DOMParser
();
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
svgString
)
{
var
doc
=
parser
.
parseFromString
(
svgString
,
'
image/svg+xml
'
);
// application/xml
...
...
examples/js/loaders/TGALoader.js
浏览文件 @
102497da
...
...
@@ -16,7 +16,7 @@ THREE.TGALoader.prototype.load = function ( url, onLoad, onProgress, onError ) {
var
texture
=
new
THREE
.
Texture
();
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
buffer
)
{
...
...
examples/js/loaders/TTFLoader.js
浏览文件 @
102497da
...
...
@@ -19,7 +19,7 @@ THREE.TTFLoader.prototype.load = function ( url, onLoad, onProgress, onError ) {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
buffer
)
{
...
...
examples/js/loaders/UTF8Loader.js
浏览文件 @
102497da
...
...
@@ -727,7 +727,7 @@ THREE.UTF8Loader.prototype.downloadModelJson = function ( jsonUrl, callback, opt
function
getHttpRequest
(
url
,
onload
,
opt_onprogress
)
{
var
req
=
new
THREE
.
XHR
Loader
();
var
req
=
new
THREE
.
File
Loader
();
req
.
load
(
url
,
onload
,
opt_onprogress
);
}
...
...
examples/js/loaders/VRMLLoader.js
浏览文件 @
102497da
...
...
@@ -30,7 +30,7 @@ THREE.VRMLLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
this
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
this
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
text
)
);
...
...
examples/js/loaders/VTKLoader.js
浏览文件 @
102497da
...
...
@@ -15,7 +15,7 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
url
,
function
(
text
)
{
...
...
examples/js/loaders/deprecated/SceneLoader.js
浏览文件 @
102497da
...
...
@@ -28,7 +28,7 @@ THREE.SceneLoader.prototype = {
var
scope
=
this
;
var
loader
=
new
THREE
.
XHR
Loader
(
scope
.
manager
);
var
loader
=
new
THREE
.
File
Loader
(
scope
.
manager
);
loader
.
load
(
url
,
function
(
text
)
{
scope
.
parse
(
JSON
.
parse
(
text
),
onLoad
,
url
);
...
...
examples/webgl_loader_msgpack.html
浏览文件 @
102497da
...
...
@@ -96,7 +96,7 @@ https://github.com/creationix/msgpack-js-browser
function
loadMSGPack
()
{
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
load
(
'
scenes/robo_pigeon.pack
'
,
function
(
data
)
{
...
...
examples/webgl_morphtargets_human.html
浏览文件 @
102497da
...
...
@@ -118,7 +118,7 @@
};
var
loader
=
new
THREE
.
XHR
Loader
();
var
loader
=
new
THREE
.
File
Loader
();
loader
.
load
(
'
models/skinned/UCS_config.json
'
,
function
(
text
)
{
var
config
=
JSON
.
parse
(
text
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录