@realsee/five 5.0.0-alpha.69 → 5.0.0-alpha.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/{images/icons.png → icons.png} +0 -0
- package/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/{images/widgets.png → widgets.png} +0 -0
- package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +22 -522
- package/docs/classes/five.BVH.html +10 -488
- package/docs/classes/five.BVHNode.html +8 -468
- package/docs/classes/five.BVHVector3.html +1 -525
- package/docs/classes/five.Camera.html +11 -323
- package/docs/classes/five.Five.html +269 -2938
- package/docs/classes/five.InternalWebGLRenderer.html +1 -212
- package/docs/classes/five.Model.html +76 -1011
- package/docs/classes/five.NetworkSubscribe.html +50 -564
- package/docs/classes/five.PBMContainer.html +17 -428
- package/docs/classes/five.PBMGroup.html +19 -430
- package/docs/classes/five.PBMMaterial.html +15 -387
- package/docs/classes/five.PBMMesh.html +7 -254
- package/docs/classes/five.Scene.html +3 -263
- package/docs/classes/five.Subscribe.html +55 -599
- package/docs/classes/five.Work.html +1 -348
- package/docs/classes/gltf_loader.GLTFLoader.html +16 -411
- package/docs/classes/gltf_loader.GLTFObject.html +7 -287
- package/docs/classes/line.Line.html +1 -384
- package/docs/classes/line.LineGeometry.html +1 -530
- package/docs/classes/line.LineMaterial.html +1 -306
- package/docs/classes/line.LineSegmentsGeometry.html +1 -477
- package/docs/classes/line.THREE_Line2.html +1 -280
- package/docs/classes/line.THREE_LineSegments2.html +1 -282
- package/docs/classes/react.Store.html +28 -621
- package/docs/classes/server.BVH.html +10 -587
- package/docs/classes/server.BVHNode.html +8 -567
- package/docs/classes/server.BVHVector3.html +1 -624
- package/docs/classes/server.Model.html +62 -840
- package/docs/classes/server.PBMGroup.html +9 -384
- package/docs/classes/server.PBMMesh.html +7 -353
- package/docs/classes/sticker.Sticker.html +31 -470
- package/docs/index.html +166 -458
- package/docs/interfaces/five.AddableObject.html +1 -234
- package/docs/interfaces/five.AnimationFrame.html +1 -243
- package/docs/interfaces/five.BVHIntersect.html +1 -204
- package/docs/interfaces/five.CameraPose.html +1 -232
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -438
- package/docs/interfaces/five.EventCallback.html +370 -2644
- package/docs/interfaces/five.FiveInitArgs.html +93 -723
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +15 -295
- package/docs/interfaces/five.ImageOptions.html +16 -277
- package/docs/interfaces/five.ImageURLOptions.html +1 -260
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -188
- package/docs/interfaces/five.Intersection.html +7 -227
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -366
- package/docs/interfaces/five.ModelEventCallback.html +22 -367
- package/docs/interfaces/five.MovePanoOptions.html +39 -456
- package/docs/interfaces/five.PBMPanoPicture.html +7 -219
- package/docs/interfaces/five.PBMParameters.html +15 -322
- package/docs/interfaces/five.PanoCircleMeshInterface.html +5 -426
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -452
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -365
- package/docs/interfaces/five.Pose.html +35 -270
- package/docs/interfaces/five.Scissor.html +14 -252
- package/docs/interfaces/five.State.html +16 -297
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -180
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -171
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -198
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -213
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -210
- package/docs/interfaces/five.TextureOptions.html +18 -296
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -226
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +27 -439
- package/docs/interfaces/five.WorkCubeImage.html +1 -251
- package/docs/interfaces/five.WorkImage.html +3 -306
- package/docs/interfaces/five.WorkInitial.html +13 -273
- package/docs/interfaces/five.WorkModel.html +3 -239
- package/docs/interfaces/five.WorkObserver.html +3 -323
- package/docs/interfaces/five.WorkTile.html +1 -274
- package/docs/interfaces/five.WorkVideo.html +3 -211
- package/docs/interfaces/gltf_loader.GLTF.html +7 -304
- package/docs/interfaces/react.FiveActionReactCallbacks.html +61 -585
- package/docs/interfaces/react.FiveInjectionTypes.html +154 -1645
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -286
- package/docs/interfaces/server.BVHIntersect.html +1 -303
- package/docs/interfaces/server.Intersection.html +7 -326
- package/docs/interfaces/server.ModelEventCallback.html +18 -427
- package/docs/interfaces/sticker.IntersectionLike.html +8 -223
- package/docs/modules/five.SubscribeMixinType.html +1 -143
- package/docs/modules/five.html +442 -3048
- package/docs/modules/gltf_loader.html +1 -155
- package/docs/modules/line.html +1 -210
- package/docs/modules/react.html +130 -1607
- package/docs/modules/server.html +18 -560
- package/docs/modules/sticker.html +1 -151
- package/docs/modules.html +1 -136
- package/five/index.d.ts +0 -15
- package/five/index.js +5 -5
- package/gltf-loader/index.js +2 -2
- package/line/index.js +2 -2
- package/package.json +1 -1
- package/react/index.js +2 -2
- package/server/index.js +3 -3
- package/sticker/index.js +2 -2
- package/umd/five.js +1 -1
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/interfaces/five.PBMPanoVideo.html +0 -238
|
@@ -1,304 +1,7 @@
|
|
|
1
|
-
<!
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
<script async src="../assets/js/search.js" id="search-script"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.69</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="tsd-page-title">
|
|
50
|
-
<div class="container">
|
|
51
|
-
<ul class="tsd-breadcrumb">
|
|
52
|
-
<li>
|
|
53
|
-
<a href="../modules.html">如视 Five SDK - v5.0.0-alpha.69</a>
|
|
54
|
-
</li>
|
|
55
|
-
<li>
|
|
56
|
-
<a href="../modules/gltf_loader.html">gltf-loader</a>
|
|
57
|
-
</li>
|
|
58
|
-
<li>
|
|
59
|
-
<a href="gltf_loader.GLTF.html">GLTF</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Interface GLTF</h1>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</header>
|
|
66
|
-
<div class="container container-main">
|
|
67
|
-
<div class="row">
|
|
68
|
-
<div class="col-8 col-content">
|
|
69
|
-
<section class="tsd-panel tsd-comment">
|
|
70
|
-
<div class="tsd-comment tsd-typography">
|
|
71
|
-
<div class="lead">
|
|
72
|
-
<p>GLTFLoader 返回数据</p>
|
|
73
|
-
</div>
|
|
74
|
-
<dl class="tsd-comment-tags">
|
|
75
|
-
<dt>description</dt>
|
|
76
|
-
<dd><p>一般情况下,gltf.scene 为模型对象,直接通过 <code>five.scene.add(gltf.scene)</code> 即可添加到场景
|
|
77
|
-
Five 的模型单位 1 为 1米,载入的模型单位标准不一,请自行 scale。
|
|
78
|
-
如果涉及模型内置动画,GLTF 已经帮你封装了,通过 <code>gltf.animations</code> 可以获取动画帧。gltf.scene.mixer 为对应的 动画混合器。
|
|
79
|
-
通过 <code>gltf.scene.mixer.clipAction(gltf.animations[0]).play()</code> 即可播放动画。</p>
|
|
80
|
-
</dd>
|
|
81
|
-
</dl>
|
|
82
|
-
</div>
|
|
83
|
-
</section>
|
|
84
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
85
|
-
<h3>Hierarchy</h3>
|
|
86
|
-
<ul class="tsd-hierarchy">
|
|
87
|
-
<li>
|
|
88
|
-
<span class="target">GLTF</span>
|
|
89
|
-
</li>
|
|
90
|
-
</ul>
|
|
91
|
-
</section>
|
|
92
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
93
|
-
<h2>Index</h2>
|
|
94
|
-
<section class="tsd-panel tsd-index-panel">
|
|
95
|
-
<div class="tsd-index-content">
|
|
96
|
-
<section class="tsd-index-section ">
|
|
97
|
-
<h3>Properties</h3>
|
|
98
|
-
<ul class="tsd-index-list">
|
|
99
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#animations" class="tsd-kind-icon">animations</a></li>
|
|
100
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#asset" class="tsd-kind-icon">asset</a></li>
|
|
101
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#cameras" class="tsd-kind-icon">cameras</a></li>
|
|
102
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#parser" class="tsd-kind-icon">parser</a></li>
|
|
103
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#scene" class="tsd-kind-icon">scene</a></li>
|
|
104
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#scenes" class="tsd-kind-icon">scenes</a></li>
|
|
105
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#userData" class="tsd-kind-icon">user<wbr>Data</a></li>
|
|
106
|
-
</ul>
|
|
107
|
-
</section>
|
|
108
|
-
</div>
|
|
109
|
-
</section>
|
|
110
|
-
</section>
|
|
111
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
112
|
-
<h2>Properties</h2>
|
|
113
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
114
|
-
<a name="animations" class="tsd-anchor"></a>
|
|
115
|
-
<h3>animations</h3>
|
|
116
|
-
<div class="tsd-signature tsd-kind-icon">animations<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AnimationClip</span><span class="tsd-signature-symbol">[]</span></div>
|
|
117
|
-
<aside class="tsd-sources">
|
|
118
|
-
<ul>
|
|
119
|
-
<li>Defined in lib/gltf-loader/index.ts:20</li>
|
|
120
|
-
</ul>
|
|
121
|
-
</aside>
|
|
122
|
-
</section>
|
|
123
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
124
|
-
<a name="asset" class="tsd-anchor"></a>
|
|
125
|
-
<h3>asset</h3>
|
|
126
|
-
<div class="tsd-signature tsd-kind-icon">asset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>copyright<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>extensions<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>extras<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>generator<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>minVersion<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>version<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div>
|
|
127
|
-
<aside class="tsd-sources">
|
|
128
|
-
<ul>
|
|
129
|
-
<li>Defined in lib/gltf-loader/index.ts:24</li>
|
|
130
|
-
</ul>
|
|
131
|
-
</aside>
|
|
132
|
-
<div class="tsd-type-declaration">
|
|
133
|
-
<h4>Type declaration</h4>
|
|
134
|
-
<ul class="tsd-parameters">
|
|
135
|
-
<li class="tsd-parameter">
|
|
136
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> copyright<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
|
137
|
-
</li>
|
|
138
|
-
<li class="tsd-parameter">
|
|
139
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> extensions<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span></h5>
|
|
140
|
-
</li>
|
|
141
|
-
<li class="tsd-parameter">
|
|
142
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> extras<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span></h5>
|
|
143
|
-
</li>
|
|
144
|
-
<li class="tsd-parameter">
|
|
145
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> generator<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
|
146
|
-
</li>
|
|
147
|
-
<li class="tsd-parameter">
|
|
148
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> min<wbr>Version<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
|
149
|
-
</li>
|
|
150
|
-
<li class="tsd-parameter">
|
|
151
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> version<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
|
152
|
-
</li>
|
|
153
|
-
</ul>
|
|
154
|
-
</div>
|
|
155
|
-
</section>
|
|
156
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
157
|
-
<a name="cameras" class="tsd-anchor"></a>
|
|
158
|
-
<h3>cameras</h3>
|
|
159
|
-
<div class="tsd-signature tsd-kind-icon">cameras<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Camera</span><span class="tsd-signature-symbol">[]</span></div>
|
|
160
|
-
<aside class="tsd-sources">
|
|
161
|
-
<ul>
|
|
162
|
-
<li>Defined in lib/gltf-loader/index.ts:23</li>
|
|
163
|
-
</ul>
|
|
164
|
-
</aside>
|
|
165
|
-
</section>
|
|
166
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
167
|
-
<a name="parser" class="tsd-anchor"></a>
|
|
168
|
-
<h3>parser</h3>
|
|
169
|
-
<div class="tsd-signature tsd-kind-icon">parser<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">GLTFParser</span></div>
|
|
170
|
-
<aside class="tsd-sources">
|
|
171
|
-
<ul>
|
|
172
|
-
<li>Defined in lib/gltf-loader/index.ts:32</li>
|
|
173
|
-
</ul>
|
|
174
|
-
</aside>
|
|
175
|
-
</section>
|
|
176
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
177
|
-
<a name="scene" class="tsd-anchor"></a>
|
|
178
|
-
<h3>scene</h3>
|
|
179
|
-
<div class="tsd-signature tsd-kind-icon">scene<span class="tsd-signature-symbol">:</span> <a href="../classes/gltf_loader.GLTFObject.html" class="tsd-signature-type" data-tsd-kind="Class">GLTFObject</a></div>
|
|
180
|
-
<aside class="tsd-sources">
|
|
181
|
-
<ul>
|
|
182
|
-
<li>Defined in lib/gltf-loader/index.ts:21</li>
|
|
183
|
-
</ul>
|
|
184
|
-
</aside>
|
|
185
|
-
</section>
|
|
186
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
187
|
-
<a name="scenes" class="tsd-anchor"></a>
|
|
188
|
-
<h3>scenes</h3>
|
|
189
|
-
<div class="tsd-signature tsd-kind-icon">scenes<span class="tsd-signature-symbol">:</span> <a href="../classes/gltf_loader.GLTFObject.html" class="tsd-signature-type" data-tsd-kind="Class">GLTFObject</a><span class="tsd-signature-symbol">[]</span></div>
|
|
190
|
-
<aside class="tsd-sources">
|
|
191
|
-
<ul>
|
|
192
|
-
<li>Defined in lib/gltf-loader/index.ts:22</li>
|
|
193
|
-
</ul>
|
|
194
|
-
</aside>
|
|
195
|
-
</section>
|
|
196
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
197
|
-
<a name="userData" class="tsd-anchor"></a>
|
|
198
|
-
<h3>user<wbr>Data</h3>
|
|
199
|
-
<div class="tsd-signature tsd-kind-icon">user<wbr>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
200
|
-
<aside class="tsd-sources">
|
|
201
|
-
<ul>
|
|
202
|
-
<li>Defined in lib/gltf-loader/index.ts:33</li>
|
|
203
|
-
</ul>
|
|
204
|
-
</aside>
|
|
205
|
-
</section>
|
|
206
|
-
</section>
|
|
207
|
-
</div>
|
|
208
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
209
|
-
<nav class="tsd-navigation primary">
|
|
210
|
-
<ul>
|
|
211
|
-
<li class=" ">
|
|
212
|
-
<a href="../modules.html">Modules</a>
|
|
213
|
-
</li>
|
|
214
|
-
<li class=" tsd-kind-module">
|
|
215
|
-
<a href="../modules/five.html">five</a>
|
|
216
|
-
</li>
|
|
217
|
-
<li class="current tsd-kind-module">
|
|
218
|
-
<a href="../modules/gltf_loader.html">gltf-<wbr>loader</a>
|
|
219
|
-
</li>
|
|
220
|
-
<li class=" tsd-kind-module">
|
|
221
|
-
<a href="../modules/line.html">line</a>
|
|
222
|
-
</li>
|
|
223
|
-
<li class=" tsd-kind-module">
|
|
224
|
-
<a href="../modules/react.html">react</a>
|
|
225
|
-
</li>
|
|
226
|
-
<li class=" tsd-kind-module">
|
|
227
|
-
<a href="../modules/server.html">server</a>
|
|
228
|
-
</li>
|
|
229
|
-
<li class=" tsd-kind-module">
|
|
230
|
-
<a href="../modules/sticker.html">sticker</a>
|
|
231
|
-
</li>
|
|
232
|
-
</ul>
|
|
233
|
-
</nav>
|
|
234
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
235
|
-
<ul class="before-current">
|
|
236
|
-
<li class=" tsd-kind-class tsd-parent-kind-module">
|
|
237
|
-
<a href="../classes/gltf_loader.GLTFLoader.html" class="tsd-kind-icon">GLTFLoader</a>
|
|
238
|
-
</li>
|
|
239
|
-
<li class=" tsd-kind-class tsd-parent-kind-module">
|
|
240
|
-
<a href="../classes/gltf_loader.GLTFObject.html" class="tsd-kind-icon">GLTFObject</a>
|
|
241
|
-
</li>
|
|
242
|
-
</ul>
|
|
243
|
-
<ul class="current">
|
|
244
|
-
<li class="current tsd-kind-interface tsd-parent-kind-module">
|
|
245
|
-
<a href="gltf_loader.GLTF.html" class="tsd-kind-icon">GLTF</a>
|
|
246
|
-
<ul>
|
|
247
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
248
|
-
<a href="gltf_loader.GLTF.html#animations" class="tsd-kind-icon">animations</a>
|
|
249
|
-
</li>
|
|
250
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
251
|
-
<a href="gltf_loader.GLTF.html#asset" class="tsd-kind-icon">asset</a>
|
|
252
|
-
</li>
|
|
253
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
254
|
-
<a href="gltf_loader.GLTF.html#cameras" class="tsd-kind-icon">cameras</a>
|
|
255
|
-
</li>
|
|
256
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
257
|
-
<a href="gltf_loader.GLTF.html#parser" class="tsd-kind-icon">parser</a>
|
|
258
|
-
</li>
|
|
259
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
260
|
-
<a href="gltf_loader.GLTF.html#scene" class="tsd-kind-icon">scene</a>
|
|
261
|
-
</li>
|
|
262
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
263
|
-
<a href="gltf_loader.GLTF.html#scenes" class="tsd-kind-icon">scenes</a>
|
|
264
|
-
</li>
|
|
265
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
266
|
-
<a href="gltf_loader.GLTF.html#userData" class="tsd-kind-icon">user<wbr>Data</a>
|
|
267
|
-
</li>
|
|
268
|
-
</ul>
|
|
269
|
-
</li>
|
|
270
|
-
</ul>
|
|
271
|
-
<ul class="after-current">
|
|
272
|
-
</ul>
|
|
273
|
-
</nav>
|
|
274
|
-
</div>
|
|
275
|
-
</div>
|
|
276
|
-
</div>
|
|
277
|
-
<footer>
|
|
278
|
-
<div class="container">
|
|
279
|
-
<h2>Legend</h2>
|
|
280
|
-
<div class="tsd-legend-group">
|
|
281
|
-
<ul class="tsd-legend">
|
|
282
|
-
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
|
|
283
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
284
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
285
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
286
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
287
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
288
|
-
</ul>
|
|
289
|
-
<ul class="tsd-legend">
|
|
290
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
291
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
292
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
293
|
-
</ul>
|
|
294
|
-
<ul class="tsd-legend">
|
|
295
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
296
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
297
|
-
</ul>
|
|
298
|
-
</div>
|
|
299
|
-
</div>
|
|
300
|
-
</footer>
|
|
301
|
-
<div class="overlay"></div>
|
|
302
|
-
<script src="../assets/js/main.js"></script>
|
|
303
|
-
</body>
|
|
304
|
-
</html>
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>GLTF | 如视 Five SDK - v5.0.0-alpha.73</title><meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.73"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.73</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">如视 Five SDK - v5.0.0-alpha.73</a></li><li><a href="../modules/gltf_loader.html">gltf-loader</a></li><li><a href="gltf_loader.GLTF.html">GLTF</a></li></ul><h1>Interface GLTF</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>GLTFLoader 返回数据</p>
|
|
3
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>一般情况下,gltf.scene 为模型对象,直接通过 <code>five.scene.add(gltf.scene)</code> 即可添加到场景
|
|
4
|
+
Five 的模型单位 1 为 1米,载入的模型单位标准不一,请自行 scale。
|
|
5
|
+
如果涉及模型内置动画,GLTF 已经帮你封装了,通过 <code>gltf.animations</code> 可以获取动画帧。gltf.scene.mixer 为对应的 动画混合器。
|
|
6
|
+
通过 <code>gltf.scene.mixer.clipAction(gltf.animations[0]).play()</code> 即可播放动画。</p>
|
|
7
|
+
</dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">GLTF</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#animations" class="tsd-kind-icon">animations</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#asset" class="tsd-kind-icon">asset</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#cameras" class="tsd-kind-icon">cameras</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#parser" class="tsd-kind-icon">parser</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#scene" class="tsd-kind-icon">scene</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#scenes" class="tsd-kind-icon">scenes</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#userData" class="tsd-kind-icon">user<wbr/>Data</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="animations" class="tsd-anchor"></a><h3>animations</h3><div class="tsd-signature tsd-kind-icon">animations<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AnimationClip</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:20</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="asset" class="tsd-anchor"></a><h3>asset</h3><div class="tsd-signature tsd-kind-icon">asset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>copyright<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>extensions<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>extras<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>generator<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>minVersion<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>version<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:24</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> copyright<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> extensions<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> extras<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> generator<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> min<wbr/>Version<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> version<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="cameras" class="tsd-anchor"></a><h3>cameras</h3><div class="tsd-signature tsd-kind-icon">cameras<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Camera</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:23</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="parser" class="tsd-anchor"></a><h3>parser</h3><div class="tsd-signature tsd-kind-icon">parser<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">GLTFParser</span></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:32</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="scene" class="tsd-anchor"></a><h3>scene</h3><div class="tsd-signature tsd-kind-icon">scene<span class="tsd-signature-symbol">:</span> <a href="../classes/gltf_loader.GLTFObject.html" class="tsd-signature-type" data-tsd-kind="Class">GLTFObject</a></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:21</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="scenes" class="tsd-anchor"></a><h3>scenes</h3><div class="tsd-signature tsd-kind-icon">scenes<span class="tsd-signature-symbol">:</span> <a href="../classes/gltf_loader.GLTFObject.html" class="tsd-signature-type" data-tsd-kind="Class">GLTFObject</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:22</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="userData" class="tsd-anchor"></a><h3>user<wbr/>Data</h3><div class="tsd-signature tsd-kind-icon">user<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources"><ul><li>Defined in lib/gltf-loader/index.ts:33</li></ul></aside></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="../modules/five.html">five</a></li><li class="current tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="../modules/server.html">server</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="gltf_loader.GLTF.html" class="tsd-kind-icon">GLTF</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#animations" class="tsd-kind-icon">animations</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#asset" class="tsd-kind-icon">asset</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#cameras" class="tsd-kind-icon">cameras</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#parser" class="tsd-kind-icon">parser</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#scene" class="tsd-kind-icon">scene</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#scenes" class="tsd-kind-icon">scenes</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="gltf_loader.GLTF.html#userData" class="tsd-kind-icon">user<wbr/>Data</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li><li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li><li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|