@realsee/five 5.0.0-alpha.21 → 5.0.0-alpha.210
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/README.md +18 -8
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/classes/five.AnimationFrameLoop.html +15 -0
- package/docs/classes/five.BVH.html +10 -0
- package/docs/classes/five.BVHIntersect.html +1 -0
- package/docs/classes/five.BVHNode.html +7 -0
- package/docs/classes/five.BVHVector3.html +1 -0
- package/docs/classes/five.Camera.html +11 -0
- package/docs/classes/five.Clipper.html +1 -0
- package/docs/classes/five.Five.html +335 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.Model.html +99 -0
- package/docs/classes/five.NetworkSubscribe.html +50 -0
- package/docs/classes/five.PBMContainer.html +17 -0
- package/docs/classes/five.PBMGroup.html +19 -0
- package/docs/classes/five.PBMMaterial.html +29 -0
- package/docs/classes/five.PBMMesh.html +7 -0
- package/docs/classes/five.PanoCircleMesh.html +7 -0
- package/docs/classes/five.PanoCircleMeshCustom.html +7 -0
- package/docs/classes/five.PanoCircleMeshSolid.html +7 -0
- package/docs/classes/five.Scene.html +3 -0
- package/docs/classes/five.Subscribe.html +56 -0
- package/docs/classes/five.TextureLoader.html +1 -0
- package/docs/classes/five.Tile3D.html +34 -0
- package/docs/classes/five.Tile3DModel.html +15 -0
- package/docs/classes/five.TileBoundingSphere.html +1 -0
- package/docs/classes/five.TileCacheNode.html +1 -0
- package/docs/classes/five.TileCubeTextureTarget.html +1 -0
- package/docs/classes/five.TileCullingVolume.html +1 -0
- package/docs/classes/five.TileOrientedBoundingBox.html +1 -0
- package/docs/classes/five.TileRequestScheduler.html +16 -0
- package/docs/classes/five.Tileset3D.html +11 -0
- package/docs/classes/five.Tileset3DTraverser.html +1 -0
- package/docs/classes/five.TilesetCache.html +1 -0
- package/docs/classes/five.Work.html +32 -0
- package/docs/classes/five.XRButton.html +1 -0
- package/docs/classes/gltf_loader.DDSLoader.html +1 -0
- package/docs/classes/gltf_loader.DRACOLoader.html +1 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
- package/docs/classes/gltf_loader.GLTFObject.html +7 -0
- package/docs/classes/gltf_loader.GLTFParser.html +1 -0
- package/docs/classes/gltf_loader.THREEGLTFLoader.html +1 -0
- package/docs/classes/line.Line.html +1 -0
- package/docs/classes/line.LineGeometry.html +1 -0
- package/docs/classes/line.LineMaterial.html +1 -0
- package/docs/classes/line.LineSegmentsGeometry.html +1 -0
- package/docs/classes/line.THREE_Line2.html +1 -0
- package/docs/classes/line.THREE_LineSegments2.html +1 -0
- package/docs/classes/react.Store.html +29 -0
- package/docs/classes/server.BVH.html +10 -0
- package/docs/classes/server.BVHIntersect.html +1 -0
- package/docs/classes/server.BVHNode.html +7 -0
- package/docs/classes/server.BVHVector3.html +1 -0
- package/docs/classes/server.Model.html +70 -0
- package/docs/classes/server.PBMContainer.html +7 -0
- package/docs/classes/server.PBMGroup.html +9 -0
- package/docs/classes/server.PBMMesh.html +7 -0
- package/docs/classes/sticker.Sticker.html +32 -0
- package/docs/classes/vfx.Airflow.html +1 -0
- package/docs/classes/vfx.Flame.html +1 -0
- package/docs/classes/vfx.Particle.html +89 -0
- package/docs/classes/vfx.SpotLight.html +1 -0
- package/docs/index.html +166 -434
- package/docs/interfaces/five.AddableObject.html +9 -0
- package/docs/interfaces/five.AnimationFrame.html +1 -0
- package/docs/interfaces/five.CameraPose.html +1 -0
- package/docs/interfaces/five.ClipperParameter.html +1 -0
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.EventCallback.html +405 -0
- package/docs/interfaces/five.FiveInitArgs.html +111 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -0
- package/docs/interfaces/five.ImageOptions.html +18 -0
- package/docs/interfaces/five.ImageURLMappings.html +1 -0
- package/docs/interfaces/five.ImageURLOptions.html +15 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/five.Intersection.html +7 -0
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +15 -0
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.ModelEventCallback.html +26 -0
- package/docs/interfaces/five.ModelLodOptions.html +1 -0
- package/docs/interfaces/five.MotionKeyframe.html +1 -0
- package/docs/interfaces/five.MovePanoOptions.html +42 -0
- package/docs/interfaces/five.NetworkOptions.html +9 -0
- package/docs/interfaces/five.PBMPanoPicture.html +7 -0
- package/docs/interfaces/five.PBMParameters.html +29 -0
- package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +1 -0
- package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
- package/docs/interfaces/five.PanoCircleMeshOptions.html +1 -0
- package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +1 -0
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +35 -0
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.Pose.html +37 -0
- package/docs/interfaces/five.Scissor.html +14 -0
- package/docs/interfaces/five.State.html +21 -0
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/five.TextureOptions.html +20 -0
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +3 -0
- package/docs/interfaces/five.TileBoundingVolume.html +19 -0
- package/docs/interfaces/five.TileContent.html +1 -0
- package/docs/interfaces/five.TileCubeNode.html +1 -0
- package/docs/interfaces/five.TileCubeTree.html +1 -0
- package/docs/interfaces/five.Tileset3dOptions.html +1 -0
- package/docs/interfaces/five.TilesetJSON.html +1 -0
- package/docs/interfaces/five.TilesetJSONNode.html +1 -0
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -0
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +31 -0
- package/docs/interfaces/five.WebXRAxesParams.html +1 -0
- package/docs/interfaces/five.WebXRControllerParams.html +1 -0
- package/docs/interfaces/five.WorkCubeImage.html +13 -0
- package/docs/interfaces/five.WorkImage.html +21 -0
- package/docs/interfaces/five.WorkInitial.html +13 -0
- package/docs/interfaces/five.WorkModel.html +11 -0
- package/docs/interfaces/five.WorkModelTiles.html +3 -0
- package/docs/interfaces/five.WorkObserver.html +27 -0
- package/docs/interfaces/five.WorkTile.html +1 -0
- package/docs/interfaces/five.WorkVideo.html +9 -0
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +31 -0
- package/docs/interfaces/gltf_loader.DDS.html +1 -0
- package/docs/interfaces/gltf_loader.GLTF.html +7 -0
- package/docs/interfaces/gltf_loader.GLTFReference.html +1 -0
- package/docs/interfaces/gltf_loader.THREEGLTF.html +1 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +52 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +181 -0
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
- package/docs/interfaces/server.Intersection.html +7 -0
- package/docs/interfaces/server.ModelEventCallback.html +18 -0
- package/docs/interfaces/sticker.IntersectionLike.html +8 -0
- package/docs/interfaces/vfx.ParticleArgs.html +75 -0
- package/docs/interfaces/vfx.ParticleTweenKeyframe.html +1 -0
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +60 -0
- package/docs/modules/five.SubscribeMixinType.html +1 -0
- package/docs/modules/five.html +470 -3006
- package/docs/modules/gltf_loader.html +1 -155
- package/docs/modules/line.html +1 -210
- package/docs/modules/react.html +130 -1507
- package/docs/modules/server.html +18 -526
- package/docs/modules/sticker.html +1 -151
- package/docs/modules/vfx.html +1 -0
- package/docs/modules/vue.html +115 -0
- package/docs/modules.html +1 -136
- package/exporters/staticify.js +210 -0
- package/five/index.d.ts +1505 -283
- package/five/index.js +362 -1
- package/gltf-loader/index.d.ts +90 -5
- package/gltf-loader/index.js +260 -1
- package/line/index.d.ts +1 -0
- package/line/index.js +260 -1
- package/package.json +12 -11
- package/react/index.d.ts +73 -72
- package/react/index.js +260 -1
- package/scripts/five-staticify.js +26 -0
- package/server/index.d.ts +222 -27
- package/server/index.js +357 -1
- package/sticker/index.d.ts +2 -1
- package/sticker/index.js +260 -1
- package/templates/quick-start/package.json +1 -1
- package/umd/five-gltf-loader.js +1 -2
- package/umd/five-line.js +1 -2
- package/umd/five-react.js +1 -2
- package/umd/five-sticker.js +1 -2
- package/umd/five-vfx.js +1 -0
- package/umd/five-vue.js +1 -0
- package/umd/five.js +1 -1
- package/umd/five.js.LICENSE.txt +58 -118
- package/vfx/index.d.ts +264 -0
- package/vfx/index.js +260 -0
- package/vue/index.d.ts +441 -0
- package/vue/index.js +260 -0
- 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/classes/five.camera.html +0 -323
- package/docs/classes/five.five-1.html +0 -2670
- package/docs/classes/five.hashcubetexture.html +0 -252
- package/docs/classes/five.internalwebglrenderer.html +0 -212
- package/docs/classes/five.model.html +0 -962
- package/docs/classes/five.pbmcontainer.html +0 -411
- package/docs/classes/five.pbmgroup.html +0 -430
- package/docs/classes/five.pbmmaterial.html +0 -533
- package/docs/classes/five.pbmmesh.html +0 -254
- package/docs/classes/five.scene.html +0 -263
- package/docs/classes/five.subscribe.html +0 -569
- package/docs/classes/gltf_loader.gltfloader.html +0 -412
- package/docs/classes/gltf_loader.gltfobject.html +0 -287
- package/docs/classes/line.line-1.html +0 -384
- package/docs/classes/line.linegeometry.html +0 -530
- package/docs/classes/line.linematerial.html +0 -306
- package/docs/classes/line.linesegmentsgeometry.html +0 -477
- package/docs/classes/line.three_line2.html +0 -280
- package/docs/classes/line.three_linesegments2.html +0 -282
- package/docs/classes/react.store.html +0 -605
- package/docs/classes/server.model.html +0 -823
- package/docs/classes/server.pbmgroup.html +0 -366
- package/docs/classes/server.pbmmesh.html +0 -335
- package/docs/classes/sticker.sticker-1.html +0 -465
- package/docs/interfaces/five.addableobject.html +0 -234
- package/docs/interfaces/five.depthpanoramacontrollercustominitargs.html +0 -420
- package/docs/interfaces/five.eventcallback.html +0 -2548
- package/docs/interfaces/five.fiveinitargs.html +0 -707
- package/docs/interfaces/five.floorplancontrollercustominitargs.html +0 -295
- package/docs/interfaces/five.imageoptions.html +0 -332
- package/docs/interfaces/five.intersection.html +0 -227
- package/docs/interfaces/five.intersectmeshinterface.html +0 -188
- package/docs/interfaces/five.modelcontrollercustominitargs.html +0 -366
- package/docs/interfaces/five.modeleventcallback.html +0 -367
- package/docs/interfaces/five.movepanooptions.html +0 -469
- package/docs/interfaces/five.panocirclemeshinterface.html +0 -361
- package/docs/interfaces/five.panoramacontrollercustominitargs.html +0 -464
- package/docs/interfaces/five.panoramalikecontrollercustominitargs.html +0 -364
- package/docs/interfaces/five.pbmparameters.html +0 -474
- package/docs/interfaces/five.pose.html +0 -270
- package/docs/interfaces/five.scissor.html +0 -252
- package/docs/interfaces/five.state.html +0 -300
- package/docs/interfaces/five.subscribemixintype.emit.html +0 -180
- package/docs/interfaces/five.subscribemixintype.haslistener.html +0 -171
- package/docs/interfaces/five.subscribemixintype.off.html +0 -198
- package/docs/interfaces/five.subscribemixintype.on.html +0 -213
- package/docs/interfaces/five.subscribemixintype.once.html +0 -210
- package/docs/interfaces/five.topviewcontrollercustominitargs.html +0 -226
- package/docs/interfaces/five.vrpanoramacontrollercustominitargs.html +0 -452
- package/docs/interfaces/gltf_loader.gltf.html +0 -304
- package/docs/interfaces/react.fiveactionreactcallbacks.html +0 -580
- package/docs/interfaces/react.fiveinjectiontypes.html +0 -1625
- package/docs/interfaces/react.injectfivetoprops.html +0 -280
- package/docs/interfaces/server.intersection.html +0 -308
- package/docs/interfaces/server.modeleventcallback.html +0 -409
- package/docs/interfaces/sticker.intersectionlike.html +0 -223
- package/docs/modules/five.subscribemixintype.html +0 -143
- package/scripts/export-five-resource/chfs.exe +0 -0
- package/scripts/export-five-resource/fileify.js +0 -192
- package/scripts/export-five-resource/format-work.js +0 -71
- package/scripts/export-five-resource/staticify.js +0 -327
- package/scripts/transcode-model/BufferGeometryUtils.js +0 -832
- package/scripts/transcode-model/LoaderSupport.js +0 -1545
- package/scripts/transcode-model/MTLLoader.js +0 -602
- package/scripts/transcode-model/OBJLoader2.js +0 -1470
- package/scripts/transcode-model/obj2pbm.js +0 -65
- /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/{images/widgets.png → widgets.png} +0 -0
- /package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
- /package/resource/{basis_transcoder.js → basis/basis_transcoder.js} +0 -0
- /package/resource/{basis_transcoder.wasm → basis/basis_transcoder.wasm} +0 -0
- /package/resource/{draco_decoder.js → gltf/draco_decoder.js} +0 -0
- /package/resource/{draco_decoder.wasm → gltf/draco_decoder.wasm} +0 -0
- /package/resource/{draco_wasm_wrapper.js → gltf/draco_wasm_wrapper.js} +0 -0
package/umd/five.js.LICENSE.txt
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
1
|
+
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ */
|
|
15
2
|
|
|
16
3
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
17
4
|
* http://hammerjs.github.io/
|
|
@@ -21,124 +8,75 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
21
8
|
|
|
22
9
|
/**
|
|
23
10
|
* @license
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
11
|
+
* CryptoJS
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2009-2013 Jeff Mott
|
|
14
|
+
*
|
|
15
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
16
|
+
* a copy of this software and associated documentation files (the
|
|
17
|
+
* "Software"), to deal in the Software without restriction, including
|
|
18
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
19
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
20
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
21
|
+
* the following conditions:
|
|
22
|
+
*
|
|
23
|
+
* The above copyright notice and this permission notice shall be
|
|
24
|
+
* included in all copies or substantial portions of the Software.
|
|
25
|
+
*
|
|
26
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
27
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
28
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
29
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
30
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
31
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
32
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
33
|
+
*
|
|
34
|
+
* https://code.google.com/p/crypto-js/wiki/License
|
|
35
|
+
* PART: ext/cryptojs
|
|
37
36
|
*/
|
|
38
37
|
|
|
39
38
|
/**
|
|
40
39
|
* @license
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) 2016, Brandon Jones.
|
|
40
|
+
* RSA and ECC in JavaScript
|
|
43
41
|
*
|
|
44
|
-
*
|
|
45
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
46
|
-
* in the Software without restriction, including without limitation the rights
|
|
47
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
48
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
49
|
-
* furnished to do so, subject to the following conditions:
|
|
42
|
+
* Copyright (c) 2003-2005 Tom Wu All Rights Reserved.
|
|
50
43
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
44
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
45
|
+
* a copy of this software and associated documentation files (the
|
|
46
|
+
* "Software"), to deal in the Software without restriction, including
|
|
47
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
48
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
49
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
50
|
+
* the following conditions:
|
|
53
51
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
57
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
58
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
59
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
60
|
-
* THE SOFTWARE.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @license
|
|
65
|
-
* nosleep.js
|
|
66
|
-
* Copyright (c) 2017, Rich Tibbett
|
|
52
|
+
* The above copyright notice and this permission notice shall be
|
|
53
|
+
* included in all copies or substantial portions of the Software.
|
|
67
54
|
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
73
|
-
* furnished to do so, subject to the following conditions:
|
|
55
|
+
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
56
|
+
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
57
|
+
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
74
58
|
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
59
|
+
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
|
|
60
|
+
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
|
|
61
|
+
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
|
|
62
|
+
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
|
|
63
|
+
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
77
64
|
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @license
|
|
89
|
-
* webvr-polyfill
|
|
90
|
-
* Copyright (c) 2015-2017 Google
|
|
91
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
92
|
-
* you may not use this file except in compliance with the License.
|
|
93
|
-
* You may obtain a copy of the License at
|
|
94
|
-
*
|
|
95
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
96
|
-
*
|
|
97
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
98
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
99
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
100
|
-
* See the License for the specific language governing permissions and
|
|
101
|
-
* limitations under the License.
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @license
|
|
106
|
-
* webvr-polyfill-dpdb
|
|
107
|
-
* Copyright (c) 2015-2017 Google
|
|
108
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
109
|
-
* you may not use this file except in compliance with the License.
|
|
110
|
-
* You may obtain a copy of the License at
|
|
111
|
-
*
|
|
112
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
113
|
-
*
|
|
114
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
115
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
116
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
117
|
-
* See the License for the specific language governing permissions and
|
|
118
|
-
* limitations under the License.
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @license
|
|
123
|
-
* webvr-polyfill-dpdb
|
|
124
|
-
* Copyright (c) 2017 Google
|
|
125
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
126
|
-
* you may not use this file except in compliance with the License.
|
|
127
|
-
* You may obtain a copy of the License at
|
|
128
|
-
*
|
|
129
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
130
|
-
*
|
|
131
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
132
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
133
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
134
|
-
* See the License for the specific language governing permissions and
|
|
135
|
-
* limitations under the License.
|
|
65
|
+
* In addition, the following condition applies:
|
|
66
|
+
*
|
|
67
|
+
* All redistributions must retain an intact copy of this copyright notice
|
|
68
|
+
* and disclaimer.
|
|
69
|
+
*
|
|
70
|
+
* http://www-cs-students.stanford.edu/~tjw/jsbn/
|
|
71
|
+
* LICENSE: BSD License
|
|
72
|
+
* PART: ext/{base64,jsbn,jsbn2,prgn4,rng,rsa,rsa2}
|
|
136
73
|
*/
|
|
137
74
|
|
|
138
75
|
/**
|
|
139
76
|
* @license
|
|
140
|
-
*
|
|
141
|
-
*
|
|
77
|
+
* The 'jsrsasign'(RSA-Sign JavaScript Library) License
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) 2010-2021 Kenji Urushima
|
|
142
80
|
*
|
|
143
81
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
144
82
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -157,4 +95,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
157
95
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
158
96
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
159
97
|
* THE SOFTWARE.
|
|
98
|
+
*
|
|
99
|
+
* LICENSE: MIT License
|
|
160
100
|
*/
|
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 { }
|