Preparing search index...
The search index is not available
feng3d
feng3d
HttpFS
Class HttpFS
Http可读文件系统
Hierarchy
HttpFS
Implements
IReadFS
Index
Constructors
constructor
Properties
root
Path
type
Methods
get
Absolute
Path
read
Array
Buffer
read
Image
read
Object
read
String
Constructors
constructor
new
HttpFS
(
rootPath
?:
string
)
:
HttpFS
Parameters
rootPath:
string
= ''
Returns
HttpFS
Properties
root
Path
root
Path
:
string
= ''
根路径
type
type
:
FSType
= FSType.http
文件系统类型
Methods
get
Absolute
Path
get
Absolute
Path
(
path
:
string
)
:
string
获取文件绝对路径
Parameters
path:
string
(相对)路径
Returns
string
read
Array
Buffer
read
Array
Buffer
(
path
:
string
)
:
Promise
<
ArrayBuffer
>
读取文件
Parameters
path:
string
路径
Returns
Promise
<
ArrayBuffer
>
read
Image
read
Image
(
path
:
string
)
:
Promise
<
HTMLImageElement
>
加载图片
Parameters
path:
string
图片路径
Returns
Promise
<
HTMLImageElement
>
read
Object
read
Object
(
path
:
string
)
:
Promise
<
any
>
读取文件为Object
Parameters
path:
string
路径
Returns
Promise
<
any
>
read
String
read
String
(
path
:
string
)
:
Promise
<
string
>
读取文件为字符串
Parameters
path:
string
路径
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
feng3d
HttpFS
constructor
root
Path
type
get
Absolute
Path
read
Array
Buffer
read
Image
read
Object
read
String
Generated using
TypeDoc
Http可读文件系统