@realsee/five 5.0.0-alpha.98 → 6.0.0-alpha.0

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.
Files changed (197) hide show
  1. package/docs/assets/highlight.css +1 -1
  2. package/docs/assets/main.js +2 -2
  3. package/docs/assets/search.js +1 -1
  4. package/docs/assets/style.css +28 -2
  5. package/docs/classes/five.AnimationFrameLoop.html +5 -5
  6. package/docs/classes/five.BVH.html +2 -2
  7. package/docs/classes/five.BVHIntersect.html +1 -1
  8. package/docs/classes/five.BVHNode.html +2 -2
  9. package/docs/classes/five.BVHVector3.html +1 -1
  10. package/docs/classes/five.BoxBoundingVolume.html +1 -0
  11. package/docs/classes/five.Camera.html +6 -6
  12. package/docs/classes/five.Clipper.html +1 -0
  13. package/docs/classes/five.CullingVolume.html +1 -0
  14. package/docs/classes/five.Five.html +116 -83
  15. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  16. package/docs/classes/five.IntersectMesh.html +1 -1
  17. package/docs/classes/five.Model.html +37 -37
  18. package/docs/classes/five.NetworkSubscribe.html +22 -15
  19. package/docs/classes/five.PBMContainer.html +9 -11
  20. package/docs/classes/five.PBMGroup.html +2 -18
  21. package/docs/classes/five.PBMMaterialReferenceCache.html +1 -0
  22. package/docs/classes/five.PBMMesh.html +3 -5
  23. package/docs/classes/five.PBMMeshMaterial.html +41 -0
  24. package/docs/classes/five.PanoCircleMesh.html +4 -4
  25. package/docs/classes/five.PanoCircleMeshCustom.html +7 -0
  26. package/docs/classes/five.PanoCircleMeshSolid.html +7 -0
  27. package/docs/classes/five.RegionBoundingVolume.html +1 -0
  28. package/docs/classes/five.RequestScheduler.html +16 -0
  29. package/docs/classes/five.Scene.html +2 -2
  30. package/docs/classes/five.SphereBoundingVolume.html +1 -0
  31. package/docs/classes/five.Subscribe.html +24 -17
  32. package/docs/classes/five.TextureLoader.html +1 -0
  33. package/docs/classes/five.Tile.html +1 -0
  34. package/docs/classes/five.Tile3DModel.html +1 -0
  35. package/docs/classes/five.TileCubeTextureTarget.html +1 -0
  36. package/docs/classes/five.TileNode.html +1 -0
  37. package/docs/classes/five.Tileset.html +5 -0
  38. package/docs/classes/five.TilesetCache.html +1 -0
  39. package/docs/classes/five.TilesetTraverser.html +1 -0
  40. package/docs/classes/five.Work.html +21 -10
  41. package/docs/classes/five.XRButton.html +1 -0
  42. package/docs/classes/gltf_loader.DDSLoader.html +1 -0
  43. package/docs/classes/gltf_loader.DRACOLoader.html +1 -0
  44. package/docs/classes/gltf_loader.GLTFLoader.html +8 -8
  45. package/docs/classes/gltf_loader.GLTFObject.html +3 -3
  46. package/docs/classes/gltf_loader.GLTFParser.html +1 -0
  47. package/docs/classes/gltf_loader.THREEGLTFLoader.html +1 -0
  48. package/docs/classes/line.Line.html +1 -1
  49. package/docs/classes/line.LineGeometry.html +1 -1
  50. package/docs/classes/line.LineMaterial.html +1 -1
  51. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  52. package/docs/classes/line.THREE_Line2.html +1 -1
  53. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  54. package/docs/classes/react.Store.html +13 -13
  55. package/docs/classes/sticker.Sticker.html +9 -9
  56. package/docs/classes/vfx.Airflow.html +1 -0
  57. package/docs/classes/vfx.Flame.html +1 -0
  58. package/docs/classes/vfx.Particle.html +89 -0
  59. package/docs/classes/vfx.SpotLight.html +1 -0
  60. package/docs/enums/five.PBMPointColorType.html +1 -0
  61. package/docs/enums/five.PBMPointShapeType.html +1 -0
  62. package/docs/enums/five.PBMPointSizeType.html +1 -0
  63. package/docs/enums/five.VolumePlaneIntersect.html +1 -0
  64. package/docs/index.html +2 -2
  65. package/docs/interfaces/five.AddableObject.html +9 -1
  66. package/docs/interfaces/five.AnimationFrame.html +1 -1
  67. package/docs/interfaces/five.BoundingVolume.html +1 -0
  68. package/docs/interfaces/five.CameraPose.html +1 -1
  69. package/docs/interfaces/five.ClipperParameter.html +1 -0
  70. package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +12 -14
  71. package/docs/interfaces/five.EventCallback.html +107 -113
  72. package/docs/interfaces/five.FiveInitArgs.html +39 -32
  73. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
  74. package/docs/interfaces/five.ImageOptions.html +8 -6
  75. package/docs/interfaces/five.ImageURLMappings.html +1 -0
  76. package/docs/interfaces/five.ImageURLOptions.html +15 -1
  77. package/docs/interfaces/five.IntersectMeshInterface.html +2 -2
  78. package/docs/interfaces/five.Intersection.html +4 -4
  79. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +11 -0
  80. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +9 -11
  81. package/docs/interfaces/five.ModelEventCallback.html +7 -13
  82. package/docs/interfaces/five.ModelLodOptions.html +1 -0
  83. package/docs/interfaces/five.MotionKeyframe.html +1 -0
  84. package/docs/interfaces/five.MovePanoOptions.html +17 -14
  85. package/docs/interfaces/five.NetworkOptions.html +9 -0
  86. package/docs/interfaces/five.PBMPanoPicture.html +4 -4
  87. package/docs/interfaces/five.PBMParameters.html +32 -8
  88. package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +1 -0
  89. package/docs/interfaces/five.PanoCircleMeshInterface.html +15 -5
  90. package/docs/interfaces/five.PanoCircleMeshOptions.html +1 -0
  91. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +1 -0
  92. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +19 -14
  93. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +9 -11
  94. package/docs/interfaces/five.Pose.html +9 -7
  95. package/docs/interfaces/five.Scissor.html +6 -6
  96. package/docs/interfaces/five.State.html +13 -9
  97. package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
  98. package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
  99. package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
  100. package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
  101. package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
  102. package/docs/interfaces/five.SubscribeMixinType.waitUnitl.html +1 -0
  103. package/docs/interfaces/five.TextureOptions.html +9 -7
  104. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +3 -0
  105. package/docs/interfaces/five.TileCubeNode.html +1 -0
  106. package/docs/interfaces/five.TileCubeTree.html +1 -0
  107. package/docs/interfaces/five.TileHeader.html +1 -0
  108. package/docs/interfaces/five.TilesetHeader.html +1 -0
  109. package/docs/interfaces/five.TilesetOptions.html +1 -0
  110. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +6 -4
  111. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +17 -15
  112. package/docs/interfaces/five.WebXRControllerParams.html +1 -0
  113. package/docs/interfaces/five.WorkCubeImage.html +7 -7
  114. package/docs/interfaces/five.WorkImage.html +11 -11
  115. package/docs/interfaces/five.WorkInitial.html +13 -9
  116. package/docs/interfaces/five.WorkModel.html +7 -7
  117. package/docs/interfaces/five.WorkObserver.html +21 -15
  118. package/docs/interfaces/five.WorkOptions.html +15 -0
  119. package/docs/interfaces/five.WorkTile.html +1 -1
  120. package/docs/interfaces/five.WorkVideo.html +5 -5
  121. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +29 -0
  122. package/docs/interfaces/gltf_loader.DDS.html +1 -0
  123. package/docs/interfaces/gltf_loader.GLTF.html +2 -2
  124. package/docs/interfaces/gltf_loader.GLTFReference.html +1 -0
  125. package/docs/interfaces/gltf_loader.THREEGLTF.html +1 -0
  126. package/docs/interfaces/react.FiveActionReactCallbacks.html +11 -21
  127. package/docs/interfaces/react.FiveInjectionTypes.html +40 -43
  128. package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -1
  129. package/docs/interfaces/sticker.IntersectionLike.html +4 -4
  130. package/docs/interfaces/vfx.ParticleArgs.html +75 -0
  131. package/docs/interfaces/vfx.ParticleTweenKeyframe.html +1 -0
  132. package/docs/interfaces/vue.FiveActionVueCallbacks.html +60 -0
  133. package/docs/modules/five.SubscribeMixinType.html +1 -1
  134. package/docs/modules/five.html +130 -113
  135. package/docs/modules/gltf_loader.html +1 -1
  136. package/docs/modules/line.html +1 -1
  137. package/docs/modules/react.html +36 -36
  138. package/docs/modules/sticker.html +1 -1
  139. package/docs/modules/vfx.html +1 -0
  140. package/docs/modules/vue.html +115 -0
  141. package/docs/modules.html +1 -1
  142. package/exporters/staticify.js +14 -7
  143. package/five/index.d.ts +1208 -252
  144. package/five/index.js +9 -98
  145. package/gltf-loader/index.d.ts +90 -5
  146. package/gltf-loader/index.js +3 -3
  147. package/line/index.d.ts +1 -0
  148. package/line/index.js +3 -3
  149. package/package.json +10 -6
  150. package/react/index.d.ts +61 -69
  151. package/react/index.js +3 -3
  152. package/resource/basis/1.16/basis_transcoder.js +22 -0
  153. package/resource/basis/{basis_transcoder.wasm → 1.16/basis_transcoder.wasm} +0 -0
  154. package/resource/basis/README.md +5 -0
  155. package/resource/draco/1.5.6/draco_decoder.js +34 -0
  156. package/resource/draco/1.5.6/draco_decoder.wasm +0 -0
  157. package/resource/draco/1.5.6/draco_decoder_gltf.js +33 -0
  158. package/resource/draco/1.5.6/draco_decoder_gltf.wasm +0 -0
  159. package/resource/draco/1.5.6/draco_encoder.js +35 -0
  160. package/resource/draco/1.5.6/draco_encoder.wasm +0 -0
  161. package/resource/draco/1.5.6/draco_encoder_wrapper.js +97 -0
  162. package/resource/draco/1.5.6/draco_wasm_wrapper.js +117 -0
  163. package/resource/draco/1.5.6/draco_wasm_wrapper_gltf.js +116 -0
  164. package/resource/draco/README.md +5 -0
  165. package/scripts/five-staticify.js +6 -1
  166. package/sticker/index.d.ts +2 -1
  167. package/sticker/index.js +3 -3
  168. package/umd/five-gltf-loader.js +1 -2
  169. package/umd/five-line.js +1 -2
  170. package/umd/five-react.js +1 -2
  171. package/umd/five-sticker.js +1 -2
  172. package/umd/five-vfx.js +1 -0
  173. package/umd/five-vue.js +1 -0
  174. package/umd/five.js +1 -1
  175. package/umd/five.js.LICENSE.txt +5 -202
  176. package/vfx/index.d.ts +264 -0
  177. package/vfx/index.js +260 -0
  178. package/vue/index.d.ts +443 -0
  179. package/vue/index.js +260 -0
  180. package/docs/classes/five.LegacyPanoCircleMesh.html +0 -5
  181. package/docs/classes/five.PBMMaterial.html +0 -15
  182. package/docs/classes/server.BVH.html +0 -10
  183. package/docs/classes/server.BVHIntersect.html +0 -1
  184. package/docs/classes/server.BVHNode.html +0 -7
  185. package/docs/classes/server.BVHVector3.html +0 -1
  186. package/docs/classes/server.Model.html +0 -63
  187. package/docs/classes/server.PBMGroup.html +0 -9
  188. package/docs/classes/server.PBMMesh.html +0 -7
  189. package/docs/interfaces/server.Intersection.html +0 -7
  190. package/docs/interfaces/server.ModelEventCallback.html +0 -18
  191. package/docs/modules/server.html +0 -18
  192. package/resource/basis/basis_transcoder.js +0 -22
  193. package/resource/gltf/draco_decoder.js +0 -31
  194. package/resource/gltf/draco_decoder.wasm +0 -0
  195. package/resource/gltf/draco_wasm_wrapper.js +0 -119
  196. package/server/index.d.ts +0 -556
  197. package/server/index.js +0 -367
@@ -1,108 +1,10 @@
1
- /*!
2
- Copyright (c) 2011, Yahoo! Inc. All rights reserved.
3
- Code licensed under the BSD License:
4
- http://developer.yahoo.com/yui/license.html
5
- version: 2.9.0
6
- */
7
-
8
1
  /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ */
9
2
 
10
- /*! *****************************************************************************
11
- Copyright (c) Microsoft Corporation.
12
-
13
- Permission to use, copy, modify, and/or distribute this software for any
14
- purpose with or without fee is hereby granted.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
- PERFORMANCE OF THIS SOFTWARE.
23
- ***************************************************************************** */
24
-
25
- /**
26
- * @license
27
- * cardboard-vr-display
28
- * Copyright (c) 2015-2017 Google
29
- * Licensed under the Apache License, Version 2.0 (the "License");
30
- * you may not use this file except in compliance with the License.
31
- * You may obtain a copy of the License at
32
- *
33
- * http://www.apache.org/licenses/LICENSE-2.0
34
- *
35
- * Unless required by applicable law or agreed to in writing, software
36
- * distributed under the License is distributed on an "AS IS" BASIS,
37
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38
- * See the License for the specific language governing permissions and
39
- * limitations under the License.
40
- */
41
-
42
- /**
43
- * @license
44
- * gl-preserve-state
45
- * Copyright (c) 2016, Brandon Jones.
46
- *
47
- * Permission is hereby granted, free of charge, to any person obtaining a copy
48
- * of this software and associated documentation files (the "Software"), to deal
49
- * in the Software without restriction, including without limitation the rights
50
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- * copies of the Software, and to permit persons to whom the Software is
52
- * furnished to do so, subject to the following conditions:
53
- *
54
- * The above copyright notice and this permission notice shall be included in
55
- * all copies or substantial portions of the Software.
56
- *
57
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
- * THE SOFTWARE.
64
- */
65
-
66
- /**
67
- * @license
68
- * nosleep.js
69
- * Copyright (c) 2017, Rich Tibbett
70
- *
71
- * Permission is hereby granted, free of charge, to any person obtaining a copy
72
- * of this software and associated documentation files (the "Software"), to deal
73
- * in the Software without restriction, including without limitation the rights
74
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
75
- * copies of the Software, and to permit persons to whom the Software is
76
- * furnished to do so, subject to the following conditions:
77
- *
78
- * The above copyright notice and this permission notice shall be included in
79
- * all copies or substantial portions of the Software.
80
- *
81
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
82
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
83
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
84
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
85
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
86
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
87
- * THE SOFTWARE.
88
- */
89
-
90
- /**
91
- * @license
92
- * webvr-polyfill-dpdb
93
- * Copyright (c) 2015-2017 Google
94
- * Licensed under the Apache License, Version 2.0 (the "License");
95
- * you may not use this file except in compliance with the License.
96
- * You may obtain a copy of the License at
97
- *
98
- * http://www.apache.org/licenses/LICENSE-2.0
99
- *
100
- * Unless required by applicable law or agreed to in writing, software
101
- * distributed under the License is distributed on an "AS IS" BASIS,
102
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
103
- * See the License for the specific language governing permissions and
104
- * limitations under the License.
105
- */
3
+ /*! Hammer.JS - v2.0.7 - 2016-04-22
4
+ * http://hammerjs.github.io/
5
+ *
6
+ * Copyright (c) 2016 Jorik Tangelder;
7
+ * Licensed under the MIT license */
106
8
 
107
9
  /**
108
10
  * @license
@@ -196,102 +98,3 @@ PERFORMANCE OF THIS SOFTWARE.
196
98
  *
197
99
  * LICENSE: MIT License
198
100
  */
199
-
200
- /**
201
- * @license
202
- * cardboard-vr-display
203
- * Copyright (c) 2015-2017 Google
204
- * Licensed under the Apache License, Version 2.0 (the "License");
205
- * you may not use this file except in compliance with the License.
206
- * You may obtain a copy of the License at
207
- *
208
- * http://www.apache.org/licenses/LICENSE-2.0
209
- *
210
- * Unless required by applicable law or agreed to in writing, software
211
- * distributed under the License is distributed on an "AS IS" BASIS,
212
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
- * See the License for the specific language governing permissions and
214
- * limitations under the License.
215
- */
216
-
217
- /**
218
- * @license
219
- * nosleep.js
220
- * Copyright (c) 2017, Rich Tibbett
221
- *
222
- * Permission is hereby granted, free of charge, to any person obtaining a copy
223
- * of this software and associated documentation files (the "Software"), to deal
224
- * in the Software without restriction, including without limitation the rights
225
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
226
- * copies of the Software, and to permit persons to whom the Software is
227
- * furnished to do so, subject to the following conditions:
228
- *
229
- * The above copyright notice and this permission notice shall be included in
230
- * all copies or substantial portions of the Software.
231
- *
232
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
233
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
234
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
235
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
236
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
237
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
238
- * THE SOFTWARE.
239
- */
240
-
241
- /**
242
- * @license
243
- * webvr-polyfill
244
- * Copyright (c) 2015-2017 Google
245
- * Licensed under the Apache License, Version 2.0 (the "License");
246
- * you may not use this file except in compliance with the License.
247
- * You may obtain a copy of the License at
248
- *
249
- * http://www.apache.org/licenses/LICENSE-2.0
250
- *
251
- * Unless required by applicable law or agreed to in writing, software
252
- * distributed under the License is distributed on an "AS IS" BASIS,
253
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
254
- * See the License for the specific language governing permissions and
255
- * limitations under the License.
256
- */
257
-
258
- /**
259
- * @license
260
- * webvr-polyfill-dpdb
261
- * Copyright (c) 2017 Google
262
- * Licensed under the Apache License, Version 2.0 (the "License");
263
- * you may not use this file except in compliance with the License.
264
- * You may obtain a copy of the License at
265
- *
266
- * http://www.apache.org/licenses/LICENSE-2.0
267
- *
268
- * Unless required by applicable law or agreed to in writing, software
269
- * distributed under the License is distributed on an "AS IS" BASIS,
270
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
271
- * See the License for the specific language governing permissions and
272
- * limitations under the License.
273
- */
274
-
275
- /**
276
- * @license
277
- * wglu-preserve-state
278
- * Copyright (c) 2016, Brandon Jones.
279
- *
280
- * Permission is hereby granted, free of charge, to any person obtaining a copy
281
- * of this software and associated documentation files (the "Software"), to deal
282
- * in the Software without restriction, including without limitation the rights
283
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
284
- * copies of the Software, and to permit persons to whom the Software is
285
- * furnished to do so, subject to the following conditions:
286
- *
287
- * The above copyright notice and this permission notice shall be included in
288
- * all copies or substantial portions of the Software.
289
- *
290
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
291
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
292
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
293
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
294
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
295
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
296
- * THE SOFTWARE.
297
- */
package/vfx/index.d.ts ADDED
@@ -0,0 +1,264 @@
1
+ import * as THREE_2 from 'three';
2
+
3
+ export declare class Airflow extends THREE_2.Group {
4
+ needsRender: boolean;
5
+ private startTime?;
6
+ private inner;
7
+ private outer;
8
+ constructor();
9
+ setTime(time: number): void;
10
+ get expand(): number;
11
+ set expand(value: number);
12
+ get speed(): number;
13
+ set speed(value: number);
14
+ get color(): THREE_2.Color;
15
+ set color(value: THREE_2.Color);
16
+ get flowColor(): THREE_2.Color;
17
+ set flowColor(value: THREE_2.Color);
18
+ }
19
+
20
+ export declare class Flame extends THREE_2.Group {
21
+ needsRender: boolean;
22
+ private startTime?;
23
+ private uniforms;
24
+ private defines;
25
+ constructor(geometry?: 'circle' | 'ring' | THREE_2.BufferGeometry);
26
+ setTime(time: number): void;
27
+ set color1(value: THREE_2.Color);
28
+ get color1(): THREE_2.Color;
29
+ set color2(value: THREE_2.Color);
30
+ get color2(): THREE_2.Color;
31
+ set speed(value: number);
32
+ get speed(): number;
33
+ set noise(value: number);
34
+ get noise(): number;
35
+ set opacity(value: number);
36
+ get opacity(): number;
37
+ set fragmentationDegree(value: number);
38
+ get fragmentationDegree(): number;
39
+ }
40
+
41
+ export declare class Particle extends THREE_2.Points<THREE_2.BufferGeometry, THREE_2.ShaderMaterial> {
42
+ needsRender: boolean;
43
+ /** 是否暂停 */
44
+ paused: boolean;
45
+ private disposed;
46
+ private birthTime;
47
+ private instances;
48
+ /** 粒子的初始位置坐标 */
49
+ positionBase: THREE_2.Vector3;
50
+ /**
51
+ * 粒子坐标的抖动计算形式
52
+ * @description
53
+ * 粒子坐标的抖动计算形式,分 `CUBE` 和 `SPHERE` 形式。
54
+ * `CUBE` 形式通过一个 三维向量 的扩散值 positionCubeSpread,乘上一个 [0, 1] 的随机三维向量 计算。
55
+ * `SPHERE` 形式通过一个 数字 的扩散值 positionSphereSpread,乘上一个随机单位向量 计算。
56
+ */
57
+ positionStyle: ParticleType;
58
+ /** 粒子坐标的抖动`CUBE`计算形式下的扩散值 */
59
+ positionCubeSpread: THREE_2.Vector3;
60
+ /** 粒子坐标的抖动`SPHERE`计算形式下的扩散值 */
61
+ positionSphereSpread: number;
62
+ /**
63
+ * 粒子速度的抖动计算形式
64
+ * @description
65
+ * 粒子速度的抖动计算形式,分 `CUBE` 和 `SPHERE` 形式。
66
+ * `CUBE` 形式通过一个 三维向量 的速度值 velocityCubeBase 加上 三维向量 的扩散值 velocityCubeSpread 乘上一个 [0, 1] 的随机三维向量 计算。
67
+ * `SPHERE` 形式通过一个 数字 的速度值 velocitySphereBase 加上 数字 的扩散值 velocitySphereSpread 乘上 粒子坐标与粒子的初始位置坐标方向的单位向量 计算。
68
+ */
69
+ velocityStyle: ParticleType;
70
+ /** 粒子速度的`CUBE`计算形式下的速度值 */
71
+ velocityCubeBase: THREE_2.Vector3;
72
+ /** 粒子速度的`CUBE`计算形式下的扩散值 */
73
+ velocityCubeSpread: THREE_2.Vector3;
74
+ /** 粒子速度的`SPHERE`计算形式下的速度值 */
75
+ velocitySphereBase: number;
76
+ /** 粒子速度的`SPHERE`计算形式下的扩散值 */
77
+ velocitySphereSpread: number;
78
+ /** 粒子加速度 */
79
+ accelerationBase: THREE_2.Vector3;
80
+ /** 粒子加速度扩散值 */
81
+ accelerationSpread: THREE_2.Vector3;
82
+ /** 旋转角度初始值 */
83
+ angleBase: number;
84
+ /** 旋转角度初始值的扩散值 */
85
+ angleSpread: number;
86
+ /** 旋转角度速度值 */
87
+ angleVelocityBase: number;
88
+ /** 旋转角度速度值的扩散值 */
89
+ angleVelocitySpread: number;
90
+ /** 旋转角度加速度值 */
91
+ angleAccelerationBase: number;
92
+ /** 旋转角度加速度值扩散值 */
93
+ angleAccelerationSpread: number;
94
+ /** 粒子大小 */
95
+ sizeBase: number;
96
+ /** 粒子大小的扩散值 */
97
+ sizeSpread: number;
98
+ /** 粒子大小随时间分布的增益 */
99
+ sizeTween: ParticleTweenKeyframe<number> | null;
100
+ /**
101
+ * 颜色(hsl)
102
+ * @description
103
+ * http://en.wikipedia.org/wiki/HSL_and_HSV
104
+ * `{ x: h, y: s, z: l }`
105
+ */
106
+ colorBase: THREE_2.Vector3;
107
+ /** 颜色(hsl)的扩散值
108
+ * @description
109
+ * http://en.wikipedia.org/wiki/HSL_and_HSV
110
+ * `{ x: h, y: s, z: l }`
111
+ */
112
+ colorSpread: THREE_2.Vector3;
113
+ /**
114
+ * 颜色(hsl)随时间分布的增益
115
+ * @description
116
+ * http://en.wikipedia.org/wiki/HSL_and_HSV
117
+ * `{ x: h, y: s, z: l }`
118
+ */
119
+ colorTween: ParticleTweenKeyframe<THREE_2.Vector3> | null;
120
+ /** 透明度 */
121
+ opacityBase: number;
122
+ /** 透明度的扩散值 */
123
+ opacitySpread: number;
124
+ /** 透明度随时间分布的增益 */
125
+ opacityTween: ParticleTweenKeyframe<number> | null;
126
+ /** 一秒产生多少粒子 */
127
+ particlesPerSecond: number;
128
+ /** 粒子存活时长 */
129
+ particleDeathAge: number;
130
+ constructor(args: Partial<ParticleArgs>);
131
+ /** 贴图素材 */
132
+ get texture(): THREE_2.Texture | null;
133
+ set texture(value: THREE_2.Texture | null);
134
+ /** 材质混合方式 */
135
+ get blending(): THREE_2.Blending;
136
+ set blending(value: THREE_2.Blending);
137
+ private createInstance;
138
+ /** 暂停 */
139
+ pause(): void;
140
+ /** 开始 */
141
+ play(): void;
142
+ /**
143
+ * 通过 Five 默认调用的 setTime 方法
144
+ * @param time - 毫秒
145
+ */
146
+ setTime(time: number): void;
147
+ /** 析构 */
148
+ dispose(): void;
149
+ }
150
+
151
+ /**
152
+ * 粒子系统初始化参数
153
+ */
154
+ export declare interface ParticleArgs {
155
+ /** 粒子的初始位置坐标 */
156
+ positionBase: THREE_2.Vector3;
157
+ /**
158
+ * 粒子坐标的抖动计算形式
159
+ * @description
160
+ * 粒子坐标的抖动计算形式,分 `CUBE` 和 `SPHERE` 形式。
161
+ * `CUBE` 形式通过一个 三维向量 的扩散值 positionCubeSpread,乘上一个 [0, 1] 的随机三维向量 计算。
162
+ * `SPHERE` 形式通过一个 数字 的扩散值 positionSphereSpread,乘上一个随机单位向量 计算。
163
+ */
164
+ positionStyle: ParticleType;
165
+ /** 粒子坐标的抖动`CUBE`计算形式下的扩散值 */
166
+ positionCubeSpread: THREE_2.Vector3;
167
+ /** 粒子坐标的抖动`SPHERE`计算形式下的扩散值 */
168
+ positionSphereSpread: number;
169
+ /**
170
+ * 粒子速度的抖动计算形式
171
+ * @description
172
+ * 粒子速度的抖动计算形式,分 `CUBE` 和 `SPHERE` 形式。
173
+ * `CUBE` 形式通过一个 三维向量 的速度值 velocityCubeBase 加上 三维向量 的扩散值 velocityCubeSpread 乘上一个 [0, 1] 的随机三维向量 计算。
174
+ * `SPHERE` 形式通过一个 数字 的速度值 velocitySphereBase 加上 数字 的扩散值 velocitySphereSpread 乘上 粒子坐标与粒子的初始位置坐标方向的单位向量 计算。
175
+ */
176
+ velocityStyle: ParticleType;
177
+ /** 粒子速度的`CUBE`计算形式下的速度值 */
178
+ velocityCubeBase: THREE_2.Vector3;
179
+ /** 粒子速度的`CUBE`计算形式下的扩散值 */
180
+ velocityCubeSpread: THREE_2.Vector3;
181
+ /** 粒子速度的`SPHERE`计算形式下的速度值 */
182
+ velocitySphereBase: number;
183
+ /** 粒子速度的`SPHERE`计算形式下的扩散值 */
184
+ velocitySphereSpread: number;
185
+ /** 粒子加速度 */
186
+ accelerationBase: THREE_2.Vector3;
187
+ /** 粒子加速度扩散值 */
188
+ accelerationSpread: THREE_2.Vector3;
189
+ /** 旋转角度初始值 */
190
+ angleBase: number;
191
+ /** 旋转角度初始值的扩散值 */
192
+ angleSpread: number;
193
+ /** 旋转角度速度值 */
194
+ angleVelocityBase: number;
195
+ /** 旋转角度速度值的扩散值 */
196
+ angleVelocitySpread: number;
197
+ /** 旋转角度加速度值 */
198
+ angleAccelerationBase: number;
199
+ /** 旋转角度加速度值扩散值 */
200
+ angleAccelerationSpread: number;
201
+ /** 粒子大小 */
202
+ sizeBase: number;
203
+ /** 粒子大小的扩散值 */
204
+ sizeSpread: number;
205
+ /** 粒子大小随时间分布的增益 */
206
+ sizeTween: ParticleTweenKeyframe<number> | null;
207
+ /**
208
+ * 颜色(hsl)
209
+ * @description
210
+ * http://en.wikipedia.org/wiki/HSL_and_HSV
211
+ * `{ x: h, y: s, z: l }`
212
+ */
213
+ colorBase: THREE_2.Vector3;
214
+ /** 颜色(hsl)的扩散值
215
+ * @description
216
+ * http://en.wikipedia.org/wiki/HSL_and_HSV
217
+ * `{ x: h, y: s, z: l }`
218
+ */
219
+ colorSpread: THREE_2.Vector3;
220
+ /**
221
+ * 颜色(hsl)随时间分布的增益
222
+ * @description
223
+ * http://en.wikipedia.org/wiki/HSL_and_HSV
224
+ * `{ x: h, y: s, z: l }`
225
+ */
226
+ colorTween: ParticleTweenKeyframe<THREE_2.Vector3> | null;
227
+ /** 透明度 */
228
+ opacityBase: number;
229
+ /** 透明度的扩散值 */
230
+ opacitySpread: number;
231
+ /** 透明度随时间分布的增益 */
232
+ opacityTween: ParticleTweenKeyframe<number> | null;
233
+ /** 贴图素材 */
234
+ texture: THREE_2.Texture;
235
+ /** 材质混合方式 */
236
+ blending: THREE_2.Blending;
237
+ /** 一秒产生多少粒子 */
238
+ particlesPerSecond: number;
239
+ /** 粒子存活时长 */
240
+ particleDeathAge: number;
241
+ }
242
+
243
+ export declare interface ParticleTweenKeyframe<T extends (number | THREE_2.Vector3)> {
244
+ times: number[];
245
+ values: T[];
246
+ }
247
+
248
+ export declare type ParticleType = 'CUBE' | 'SPHERE';
249
+
250
+ export declare class SpotLight extends THREE_2.Group {
251
+ private uniforms;
252
+ needsRender: boolean;
253
+ private startTime?;
254
+ constructor(height?: number, radiusTop?: number, radiusBottom?: number);
255
+ setTime(time: number): void;
256
+ set attenuation(value: number);
257
+ get attenuation(): number;
258
+ set anglePower(value: number);
259
+ get anglePower(): number;
260
+ set color(value: THREE_2.Color);
261
+ get color(): THREE_2.Color;
262
+ }
263
+
264
+ export { }