@realsee/five 5.0.0-alpha.19 → 5.0.0-alpha.191
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 +328 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.Model.html +91 -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 +400 -0
- package/docs/interfaces/five.FiveInitArgs.html +109 -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 +22 -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.WebXRSelectParams.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 +479 -3002
- package/docs/modules/gltf_loader.html +1 -155
- package/docs/modules/line.html +1 -202
- 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 +1425 -285
- 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 +15 -2
- package/line/index.js +260 -1
- package/package.json +12 -12
- 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 +221 -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 -982
- package/docs/classes/five.pbmgroup.html +0 -427
- 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 -381
- package/docs/classes/line.linegeometry.html +0 -524
- package/docs/classes/line.linematerial.html +0 -300
- package/docs/classes/line.linesegmentsgeometry.html +0 -471
- 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
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>Subscribe | 如视 Five SDK - v5.0.0-alpha.19</title>
|
|
7
|
-
<meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.19">
|
|
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.19</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.19</a>
|
|
54
|
-
</li>
|
|
55
|
-
<li>
|
|
56
|
-
<a href="../modules/five.html">five</a>
|
|
57
|
-
</li>
|
|
58
|
-
<li>
|
|
59
|
-
<a href="five.subscribe.html">Subscribe</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class Subscribe<T></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>监听者模式</p>
|
|
73
|
-
</div>
|
|
74
|
-
<dl class="tsd-comment-tags">
|
|
75
|
-
<dt>example</dt>
|
|
76
|
-
<dd><pre><code><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">Subscribe</span><span style="color: #000000"><{</span>
|
|
77
|
-
<span style="color: #A31515">"foo"</span><span style="color: #000000">: [arg1: </span><span style="color: #267F99">number</span><span style="color: #000000">, arg2: </span><span style="color: #267F99">string</span><span style="color: #000000">],</span>
|
|
78
|
-
<span style="color: #A31515">"bar"</span><span style="color: #000000">: [arg: </span><span style="color: #267F99">boolean</span><span style="color: #000000">],</span>
|
|
79
|
-
<span style="color: #000000">}>()</span>
|
|
80
|
-
</code></pre>
|
|
81
|
-
</dd>
|
|
82
|
-
</dl>
|
|
83
|
-
</div>
|
|
84
|
-
</section>
|
|
85
|
-
<section class="tsd-panel tsd-type-parameters">
|
|
86
|
-
<h3>Type parameters</h3>
|
|
87
|
-
<ul class="tsd-type-parameters">
|
|
88
|
-
<li>
|
|
89
|
-
<h4>T<span class="tsd-signature-symbol">: </span><a href="../modules/five.html#subscribeeventmap" class="tsd-signature-type" data-tsd-kind="Type alias">SubscribeEventMap</a></h4>
|
|
90
|
-
<div class="tsd-comment tsd-typography">
|
|
91
|
-
<div class="lead">
|
|
92
|
-
<p>预设的监听回调类型</p>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</li>
|
|
96
|
-
</ul>
|
|
97
|
-
</section>
|
|
98
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
99
|
-
<h3>Hierarchy</h3>
|
|
100
|
-
<ul class="tsd-hierarchy">
|
|
101
|
-
<li>
|
|
102
|
-
<span class="target">Subscribe</span>
|
|
103
|
-
<ul class="tsd-hierarchy">
|
|
104
|
-
<li>
|
|
105
|
-
<a href="five.five-1.html" class="tsd-signature-type" data-tsd-kind="Class">Five</a>
|
|
106
|
-
</li>
|
|
107
|
-
</ul>
|
|
108
|
-
</li>
|
|
109
|
-
</ul>
|
|
110
|
-
</section>
|
|
111
|
-
<section class="tsd-panel">
|
|
112
|
-
<h3>Implemented by</h3>
|
|
113
|
-
<ul class="tsd-hierarchy">
|
|
114
|
-
<li><a href="five.model.html" class="tsd-signature-type" data-tsd-kind="Class">Model</a></li>
|
|
115
|
-
<li><a href="server.model.html" class="tsd-signature-type" data-tsd-kind="Class">Model</a></li>
|
|
116
|
-
</ul>
|
|
117
|
-
</section>
|
|
118
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
119
|
-
<h2>Index</h2>
|
|
120
|
-
<section class="tsd-panel tsd-index-panel">
|
|
121
|
-
<div class="tsd-index-content">
|
|
122
|
-
<section class="tsd-index-section ">
|
|
123
|
-
<h3>Constructors</h3>
|
|
124
|
-
<ul class="tsd-index-list">
|
|
125
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter"><a href="five.subscribe.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
126
|
-
</ul>
|
|
127
|
-
</section>
|
|
128
|
-
<section class="tsd-index-section ">
|
|
129
|
-
<h3>Methods</h3>
|
|
130
|
-
<ul class="tsd-index-list">
|
|
131
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="five.subscribe.html#emit" class="tsd-kind-icon">emit</a></li>
|
|
132
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="five.subscribe.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a></li>
|
|
133
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="five.subscribe.html#off" class="tsd-kind-icon">off</a></li>
|
|
134
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="five.subscribe.html#on" class="tsd-kind-icon">on</a></li>
|
|
135
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="five.subscribe.html#once" class="tsd-kind-icon">once</a></li>
|
|
136
|
-
</ul>
|
|
137
|
-
</section>
|
|
138
|
-
</div>
|
|
139
|
-
</section>
|
|
140
|
-
</section>
|
|
141
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
142
|
-
<h2>Constructors</h2>
|
|
143
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter">
|
|
144
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
145
|
-
<h3>constructor</h3>
|
|
146
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter">
|
|
147
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Subscribe<T><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="five.subscribe.html" class="tsd-signature-type" data-tsd-kind="Class">Subscribe</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
148
|
-
</ul>
|
|
149
|
-
<ul class="tsd-descriptions">
|
|
150
|
-
<li class="tsd-description">
|
|
151
|
-
<aside class="tsd-sources">
|
|
152
|
-
</aside>
|
|
153
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
154
|
-
<ul class="tsd-type-parameters">
|
|
155
|
-
<li>
|
|
156
|
-
<h4>T<span class="tsd-signature-symbol">: </span><a href="../modules/five.html#subscribeeventmap" class="tsd-signature-type" data-tsd-kind="Type alias">SubscribeEventMap</a></h4>
|
|
157
|
-
</li>
|
|
158
|
-
</ul>
|
|
159
|
-
<h4 class="tsd-returns-title">Returns <a href="five.subscribe.html" class="tsd-signature-type" data-tsd-kind="Class">Subscribe</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
160
|
-
</li>
|
|
161
|
-
</ul>
|
|
162
|
-
</section>
|
|
163
|
-
</section>
|
|
164
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
165
|
-
<h2>Methods</h2>
|
|
166
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
167
|
-
<a name="emit" class="tsd-anchor"></a>
|
|
168
|
-
<h3>emit</h3>
|
|
169
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
170
|
-
<li class="tsd-signature tsd-kind-icon">emit<K><span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span>, <span class="tsd-signature-symbol">...</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
|
171
|
-
</ul>
|
|
172
|
-
<ul class="tsd-descriptions">
|
|
173
|
-
<li class="tsd-description">
|
|
174
|
-
<aside class="tsd-sources">
|
|
175
|
-
<ul>
|
|
176
|
-
<li>Defined in lib/five/core/subscribe.ts:118</li>
|
|
177
|
-
</ul>
|
|
178
|
-
</aside>
|
|
179
|
-
<div class="tsd-comment tsd-typography">
|
|
180
|
-
<div class="lead">
|
|
181
|
-
<p>触发事件</p>
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
185
|
-
<ul class="tsd-type-parameters">
|
|
186
|
-
<li>
|
|
187
|
-
<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4>
|
|
188
|
-
<div class="tsd-comment tsd-typography">
|
|
189
|
-
<p>预设的监听事件名称</p>
|
|
190
|
-
</div>
|
|
191
|
-
</li>
|
|
192
|
-
</ul>
|
|
193
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
194
|
-
<ul class="tsd-parameters">
|
|
195
|
-
<li>
|
|
196
|
-
<h5>name: <span class="tsd-signature-type">K</span></h5>
|
|
197
|
-
<div class="tsd-comment tsd-typography">
|
|
198
|
-
<p>事件类型</p>
|
|
199
|
-
</div>
|
|
200
|
-
</li>
|
|
201
|
-
<li>
|
|
202
|
-
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>data: <span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
203
|
-
<div class="tsd-comment tsd-typography">
|
|
204
|
-
<p>触发事件的数据</p>
|
|
205
|
-
</div>
|
|
206
|
-
</li>
|
|
207
|
-
</ul>
|
|
208
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|
209
|
-
<p>canceled 是否被触发取消</p>
|
|
210
|
-
</li>
|
|
211
|
-
</ul>
|
|
212
|
-
</section>
|
|
213
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
214
|
-
<a name="haslistener" class="tsd-anchor"></a>
|
|
215
|
-
<h3>has<wbr>Listener</h3>
|
|
216
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
217
|
-
<li class="tsd-signature tsd-kind-icon">has<wbr>Listener<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
|
218
|
-
</ul>
|
|
219
|
-
<ul class="tsd-descriptions">
|
|
220
|
-
<li class="tsd-description">
|
|
221
|
-
<aside class="tsd-sources">
|
|
222
|
-
<ul>
|
|
223
|
-
<li>Defined in lib/five/core/subscribe.ts:39</li>
|
|
224
|
-
</ul>
|
|
225
|
-
</aside>
|
|
226
|
-
<div class="tsd-comment tsd-typography">
|
|
227
|
-
<div class="lead">
|
|
228
|
-
<p>判断是否注册了事件</p>
|
|
229
|
-
</div>
|
|
230
|
-
</div>
|
|
231
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
232
|
-
<ul class="tsd-parameters">
|
|
233
|
-
<li>
|
|
234
|
-
<h5>name: <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">T</span></h5>
|
|
235
|
-
<div class="tsd-comment tsd-typography">
|
|
236
|
-
<p>事件类型</p>
|
|
237
|
-
</div>
|
|
238
|
-
</li>
|
|
239
|
-
</ul>
|
|
240
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|
241
|
-
</li>
|
|
242
|
-
</ul>
|
|
243
|
-
</section>
|
|
244
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
245
|
-
<a name="off" class="tsd-anchor"></a>
|
|
246
|
-
<h3>off</h3>
|
|
247
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
248
|
-
<li class="tsd-signature tsd-kind-icon">off<K><span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">K</span>, callback<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
249
|
-
</ul>
|
|
250
|
-
<ul class="tsd-descriptions">
|
|
251
|
-
<li class="tsd-description">
|
|
252
|
-
<aside class="tsd-sources">
|
|
253
|
-
<ul>
|
|
254
|
-
<li>Defined in lib/five/core/subscribe.ts:88</li>
|
|
255
|
-
</ul>
|
|
256
|
-
</aside>
|
|
257
|
-
<div class="tsd-comment tsd-typography">
|
|
258
|
-
<div class="lead">
|
|
259
|
-
<p>解除事件</p>
|
|
260
|
-
</div>
|
|
261
|
-
<p>如果 name 不传的话解除对应所有事件
|
|
262
|
-
如果 name, callback 不传的话解除所有name的所有事件</p>
|
|
263
|
-
</div>
|
|
264
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
265
|
-
<ul class="tsd-type-parameters">
|
|
266
|
-
<li>
|
|
267
|
-
<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4>
|
|
268
|
-
<div class="tsd-comment tsd-typography">
|
|
269
|
-
<p>预设的监听事件名称</p>
|
|
270
|
-
</div>
|
|
271
|
-
</li>
|
|
272
|
-
</ul>
|
|
273
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
274
|
-
<ul class="tsd-parameters">
|
|
275
|
-
<li>
|
|
276
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> name: <span class="tsd-signature-type">K</span></h5>
|
|
277
|
-
<div class="tsd-comment tsd-typography">
|
|
278
|
-
<p>事件类型</p>
|
|
279
|
-
</div>
|
|
280
|
-
</li>
|
|
281
|
-
<li>
|
|
282
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
283
|
-
<div class="tsd-comment tsd-typography">
|
|
284
|
-
<p>事件回调函数</p>
|
|
285
|
-
</div>
|
|
286
|
-
<ul class="tsd-parameters">
|
|
287
|
-
<li class="tsd-parameter-signature">
|
|
288
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
289
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></li>
|
|
290
|
-
</ul>
|
|
291
|
-
<ul class="tsd-descriptions">
|
|
292
|
-
<li class="tsd-description">
|
|
293
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
294
|
-
<ul class="tsd-parameters">
|
|
295
|
-
<li>
|
|
296
|
-
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
297
|
-
</li>
|
|
298
|
-
</ul>
|
|
299
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h4>
|
|
300
|
-
</li>
|
|
301
|
-
</ul>
|
|
302
|
-
</li>
|
|
303
|
-
</ul>
|
|
304
|
-
</li>
|
|
305
|
-
</ul>
|
|
306
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
307
|
-
</li>
|
|
308
|
-
</ul>
|
|
309
|
-
</section>
|
|
310
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
311
|
-
<a name="on" class="tsd-anchor"></a>
|
|
312
|
-
<h3>on</h3>
|
|
313
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
314
|
-
<li class="tsd-signature tsd-kind-icon">on<K><span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span>, once<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></li>
|
|
315
|
-
</ul>
|
|
316
|
-
<ul class="tsd-descriptions">
|
|
317
|
-
<li class="tsd-description">
|
|
318
|
-
<aside class="tsd-sources">
|
|
319
|
-
<ul>
|
|
320
|
-
<li>Defined in lib/five/core/subscribe.ts:53</li>
|
|
321
|
-
</ul>
|
|
322
|
-
</aside>
|
|
323
|
-
<div class="tsd-comment tsd-typography">
|
|
324
|
-
<div class="lead">
|
|
325
|
-
<p>注册事件</p>
|
|
326
|
-
</div>
|
|
327
|
-
<dl class="tsd-comment-tags">
|
|
328
|
-
<dt>template</dt>
|
|
329
|
-
<dd><p>回调函数函数上下文</p>
|
|
330
|
-
</dd>
|
|
331
|
-
</dl>
|
|
332
|
-
</div>
|
|
333
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
334
|
-
<ul class="tsd-type-parameters">
|
|
335
|
-
<li>
|
|
336
|
-
<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4>
|
|
337
|
-
<div class="tsd-comment tsd-typography">
|
|
338
|
-
<p>预设的监听事件名称</p>
|
|
339
|
-
</div>
|
|
340
|
-
</li>
|
|
341
|
-
</ul>
|
|
342
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
343
|
-
<ul class="tsd-parameters">
|
|
344
|
-
<li>
|
|
345
|
-
<h5>name: <span class="tsd-signature-type">K</span></h5>
|
|
346
|
-
<div class="tsd-comment tsd-typography">
|
|
347
|
-
<p>事件类型</p>
|
|
348
|
-
</div>
|
|
349
|
-
</li>
|
|
350
|
-
<li>
|
|
351
|
-
<h5>callback: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
352
|
-
<div class="tsd-comment tsd-typography">
|
|
353
|
-
<p>事件回调函数</p>
|
|
354
|
-
</div>
|
|
355
|
-
<ul class="tsd-parameters">
|
|
356
|
-
<li class="tsd-parameter-signature">
|
|
357
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
358
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></li>
|
|
359
|
-
</ul>
|
|
360
|
-
<ul class="tsd-descriptions">
|
|
361
|
-
<li class="tsd-description">
|
|
362
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
363
|
-
<ul class="tsd-parameters">
|
|
364
|
-
<li>
|
|
365
|
-
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
366
|
-
</li>
|
|
367
|
-
</ul>
|
|
368
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h4>
|
|
369
|
-
</li>
|
|
370
|
-
</ul>
|
|
371
|
-
</li>
|
|
372
|
-
</ul>
|
|
373
|
-
</li>
|
|
374
|
-
<li>
|
|
375
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> once: <span class="tsd-signature-type">boolean</span></h5>
|
|
376
|
-
<div class="tsd-comment tsd-typography">
|
|
377
|
-
<p>是否只执行一次</p>
|
|
378
|
-
</div>
|
|
379
|
-
</li>
|
|
380
|
-
</ul>
|
|
381
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h4>
|
|
382
|
-
<p>解除事件</p>
|
|
383
|
-
<ul class="tsd-parameters">
|
|
384
|
-
<li class="tsd-parameter-signature">
|
|
385
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
386
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
387
|
-
</ul>
|
|
388
|
-
<ul class="tsd-descriptions">
|
|
389
|
-
<li class="tsd-description">
|
|
390
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
391
|
-
</li>
|
|
392
|
-
</ul>
|
|
393
|
-
</li>
|
|
394
|
-
</ul>
|
|
395
|
-
</li>
|
|
396
|
-
</ul>
|
|
397
|
-
</section>
|
|
398
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
399
|
-
<a name="once" class="tsd-anchor"></a>
|
|
400
|
-
<h3>once</h3>
|
|
401
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
402
|
-
<li class="tsd-signature tsd-kind-icon">once<K><span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">K</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></li>
|
|
403
|
-
</ul>
|
|
404
|
-
<ul class="tsd-descriptions">
|
|
405
|
-
<li class="tsd-description">
|
|
406
|
-
<aside class="tsd-sources">
|
|
407
|
-
<ul>
|
|
408
|
-
<li>Defined in lib/five/core/subscribe.ts:72</li>
|
|
409
|
-
</ul>
|
|
410
|
-
</aside>
|
|
411
|
-
<div class="tsd-comment tsd-typography">
|
|
412
|
-
<div class="lead">
|
|
413
|
-
<p>注册事件(是否只执行一次)</p>
|
|
414
|
-
</div>
|
|
415
|
-
<dl class="tsd-comment-tags">
|
|
416
|
-
<dt>template</dt>
|
|
417
|
-
<dd><p>回调函数函数上下文</p>
|
|
418
|
-
</dd>
|
|
419
|
-
</dl>
|
|
420
|
-
</div>
|
|
421
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
422
|
-
<ul class="tsd-type-parameters">
|
|
423
|
-
<li>
|
|
424
|
-
<h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4>
|
|
425
|
-
<div class="tsd-comment tsd-typography">
|
|
426
|
-
<p>预设的监听事件名称</p>
|
|
427
|
-
</div>
|
|
428
|
-
</li>
|
|
429
|
-
</ul>
|
|
430
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
431
|
-
<ul class="tsd-parameters">
|
|
432
|
-
<li>
|
|
433
|
-
<h5>name: <span class="tsd-signature-type">K</span></h5>
|
|
434
|
-
<div class="tsd-comment tsd-typography">
|
|
435
|
-
<p>事件类型</p>
|
|
436
|
-
</div>
|
|
437
|
-
</li>
|
|
438
|
-
<li>
|
|
439
|
-
<h5>callback: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
440
|
-
<div class="tsd-comment tsd-typography">
|
|
441
|
-
<p>事件回调函数</p>
|
|
442
|
-
</div>
|
|
443
|
-
<ul class="tsd-parameters">
|
|
444
|
-
<li class="tsd-parameter-signature">
|
|
445
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
446
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></li>
|
|
447
|
-
</ul>
|
|
448
|
-
<ul class="tsd-descriptions">
|
|
449
|
-
<li class="tsd-description">
|
|
450
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
451
|
-
<ul class="tsd-parameters">
|
|
452
|
-
<li>
|
|
453
|
-
<h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h5>
|
|
454
|
-
</li>
|
|
455
|
-
</ul>
|
|
456
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></h4>
|
|
457
|
-
</li>
|
|
458
|
-
</ul>
|
|
459
|
-
</li>
|
|
460
|
-
</ul>
|
|
461
|
-
</li>
|
|
462
|
-
</ul>
|
|
463
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h4>
|
|
464
|
-
<p>解除事件</p>
|
|
465
|
-
<ul class="tsd-parameters">
|
|
466
|
-
<li class="tsd-parameter-signature">
|
|
467
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
468
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
469
|
-
</ul>
|
|
470
|
-
<ul class="tsd-descriptions">
|
|
471
|
-
<li class="tsd-description">
|
|
472
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
473
|
-
</li>
|
|
474
|
-
</ul>
|
|
475
|
-
</li>
|
|
476
|
-
</ul>
|
|
477
|
-
</li>
|
|
478
|
-
</ul>
|
|
479
|
-
</section>
|
|
480
|
-
</section>
|
|
481
|
-
</div>
|
|
482
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
483
|
-
<nav class="tsd-navigation primary">
|
|
484
|
-
<ul>
|
|
485
|
-
<li class=" ">
|
|
486
|
-
<a href="../modules.html">Modules</a>
|
|
487
|
-
</li>
|
|
488
|
-
<li class="current tsd-kind-module">
|
|
489
|
-
<a href="../modules/five.html">five</a>
|
|
490
|
-
</li>
|
|
491
|
-
<li class=" tsd-kind-module">
|
|
492
|
-
<a href="../modules/gltf_loader.html">gltf-<wbr>loader</a>
|
|
493
|
-
</li>
|
|
494
|
-
<li class=" tsd-kind-module">
|
|
495
|
-
<a href="../modules/line.html">line</a>
|
|
496
|
-
</li>
|
|
497
|
-
<li class=" tsd-kind-module">
|
|
498
|
-
<a href="../modules/react.html">react</a>
|
|
499
|
-
</li>
|
|
500
|
-
<li class=" tsd-kind-module">
|
|
501
|
-
<a href="../modules/server.html">server</a>
|
|
502
|
-
</li>
|
|
503
|
-
<li class=" tsd-kind-module">
|
|
504
|
-
<a href="../modules/sticker.html">sticker</a>
|
|
505
|
-
</li>
|
|
506
|
-
</ul>
|
|
507
|
-
</nav>
|
|
508
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
509
|
-
<ul class="before-current">
|
|
510
|
-
</ul>
|
|
511
|
-
<ul class="current">
|
|
512
|
-
<li class="current tsd-kind-class tsd-parent-kind-module tsd-has-type-parameter">
|
|
513
|
-
<a href="five.subscribe.html" class="tsd-kind-icon">Subscribe</a>
|
|
514
|
-
<ul>
|
|
515
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter">
|
|
516
|
-
<a href="five.subscribe.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
517
|
-
</li>
|
|
518
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
519
|
-
<a href="five.subscribe.html#emit" class="tsd-kind-icon">emit</a>
|
|
520
|
-
</li>
|
|
521
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
522
|
-
<a href="five.subscribe.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a>
|
|
523
|
-
</li>
|
|
524
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
525
|
-
<a href="five.subscribe.html#off" class="tsd-kind-icon">off</a>
|
|
526
|
-
</li>
|
|
527
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
528
|
-
<a href="five.subscribe.html#on" class="tsd-kind-icon">on</a>
|
|
529
|
-
</li>
|
|
530
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
531
|
-
<a href="five.subscribe.html#once" class="tsd-kind-icon">once</a>
|
|
532
|
-
</li>
|
|
533
|
-
</ul>
|
|
534
|
-
</li>
|
|
535
|
-
</ul>
|
|
536
|
-
<ul class="after-current">
|
|
537
|
-
</ul>
|
|
538
|
-
</nav>
|
|
539
|
-
</div>
|
|
540
|
-
</div>
|
|
541
|
-
</div>
|
|
542
|
-
<footer>
|
|
543
|
-
<div class="container">
|
|
544
|
-
<h2>Legend</h2>
|
|
545
|
-
<div class="tsd-legend-group">
|
|
546
|
-
<ul class="tsd-legend">
|
|
547
|
-
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
|
|
548
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
549
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
550
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
551
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
552
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
553
|
-
</ul>
|
|
554
|
-
<ul class="tsd-legend">
|
|
555
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
556
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
557
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
558
|
-
</ul>
|
|
559
|
-
<ul class="tsd-legend">
|
|
560
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
561
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
562
|
-
</ul>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
</footer>
|
|
566
|
-
<div class="overlay"></div>
|
|
567
|
-
<script src="../assets/js/main.js"></script>
|
|
568
|
-
</body>
|
|
569
|
-
</html>
|