This commit is contained in:
Brian Peiris 2018-05-22 00:17:44 -07:00
Родитель 7d371916e9
Коммит b303e7dce3
1 изменённых файлов: 573 добавлений и 0 удалений

573
doc/index.html Normal file
Просмотреть файл

@ -0,0 +1,573 @@
<html>
<head>
<style>
body { font-family: sans-serif; }
article { margin-left: 1em; }
span { font-size: 70%; color: grey; }
</style>
</head>
<body>
<h1>Docs</h1>
<ul>
<li>Systems
<ul>
<li><a href="#systems/app-mode">app-mode</a></li><li><a href="#systems/personal-space-bubble">personal-space-bubble</a></li>
</ul>
</li>
<li>Components
<ul>
<li><a href="#components/app-mode">app-mode</a><ul>
<li>
<a href="#components/app-mode/app-mode-toggle-playing">
app-mode-toggle-playing
</a>
</li><li>
<a href="#components/app-mode/app-mode-toggle-attribute">
app-mode-toggle-attribute
</a>
</li><li>
<a href="#components/app-mode/app-mode-input-mappings">
app-mode-input-mappings
</a>
</li>
</ul></li><li><a href="#components/avatar">avatar</a><ul>
<li>
<a href="#components/avatar/networked-audio-analyser">
networked-audio-analyser
</a>
</li><li>
<a href="#components/avatar/scale-audio-feedback">
scale-audio-feedback
</a>
</li><li>
<a href="#components/avatar/avatar-replay">
avatar-replay
</a>
</li><li>
<a href="#components/avatar/bone-mute-state-indicator">
bone-mute-state-indicator
</a>
</li><li>
<a href="#components/avatar/bone-visibility">
bone-visibility
</a>
</li><li>
<a href="#components/avatar/character-controller">
character-controller
</a>
</li><li>
<a href="#components/avatar/hand-pose">
hand-pose
</a>
</li><li>
<a href="#components/avatar/hand-pose-controller">
hand-pose-controller
</a>
</li><li>
<a href="#components/avatar/ik-root">
ik-root
</a>
</li><li>
<a href="#components/avatar/ik-controller">
ik-controller
</a>
</li><li>
<a href="#components/avatar/networked-avatar">
networked-avatar
</a>
</li><li>
<a href="#components/avatar/player-info">
player-info
</a>
</li><li>
<a href="#components/avatar/spawn-controller">
spawn-controller
</a>
</li>
</ul></li><li><a href="#components/avatar/personal-space-bubble">avatar/personal-space-bubble</a><ul>
<li>
<a href="#components/avatar/personal-space-bubble/space-invader-mesh">
space-invader-mesh
</a>
</li><li>
<a href="#components/avatar/personal-space-bubble/personal-space-invader">
personal-space-invader
</a>
</li><li>
<a href="#components/avatar/personal-space-bubble/personal-space-bubble">
personal-space-bubble
</a>
</li>
</ul></li><li><a href="#components/gltf">gltf</a><ul>
<li>
<a href="#components/gltf/gltf-bundle">
gltf-bundle
</a>
</li><li>
<a href="#components/gltf/gltf-model-plus">
gltf-model-plus
</a>
</li>
</ul></li><li><a href="#components/misc">misc</a><ul>
<li>
<a href="#components/misc/animation-mixer">
animation-mixer
</a>
</li><li>
<a href="#components/misc/matcolor-audio-feedback">
matcolor-audio-feedback
</a>
</li><li>
<a href="#components/misc/css-class">
css-class
</a>
</li><li>
<a href="#components/misc/duck">
duck
</a>
</li><li>
<a href="#components/misc/event-repeater">
event-repeater
</a>
</li><li>
<a href="#components/misc/hide-when-quality">
hide-when-quality
</a>
</li><li>
<a href="#components/misc/layers">
layers
</a>
</li><li>
<a href="#components/misc/loop-animation">
loop-animation
</a>
</li><li>
<a href="#components/misc/nav-mesh-helper">
nav-mesh-helper
</a>
</li><li>
<a href="#components/misc/offset-relative-to">
offset-relative-to
</a>
</li><li>
<a href="#components/misc/scene-shadow">
scene-shadow
</a>
</li><li>
<a href="#components/misc/spawn-point">
spawn-point
</a>
</li>
</ul></li><li><a href="#components/network">network</a><ul>
<li>
<a href="#components/network/block-button">
block-button
</a>
</li><li>
<a href="#components/network/freeze-controller">
freeze-controller
</a>
</li><li>
<a href="#components/network/mute-mic">
mute-mic
</a>
</li><li>
<a href="#components/network/networked-counter">
networked-counter
</a>
</li><li>
<a href="#components/network/networked-video-player">
networked-video-player
</a>
</li><li>
<a href="#components/network/super-networked-interactable">
super-networked-interactable
</a>
</li><li>
<a href="#components/network/super-spawner">
super-spawner
</a>
</li>
</ul></li><li><a href="#components/ui">ui</a><ul>
<li>
<a href="#components/ui/hud-controller">
hud-controller
</a>
</li><li>
<a href="#components/ui/icon-button">
icon-button
</a>
</li><li>
<a href="#components/ui/in-world-hud">
in-world-hud
</a>
</li><li>
<a href="#components/ui/text-button">
text-button
</a>
</li><li>
<a href="#components/ui/visible-while-frozen">
visible-while-frozen
</a>
</li><li>
<a href="#components/ui/ui-class-while-frozen">
ui-class-while-frozen
</a>
</li>
</ul></li><li><a href="#components/user-input">user-input</a><ul>
<li>
<a href="#components/user-input/cardboard-controls">
cardboard-controls
</a>
</li><li>
<a href="#components/user-input/controls-shape-offset">
controls-shape-offset
</a>
</li><li>
<a href="#components/user-input/cursor-controller">
cursor-controller
</a>
</li><li>
<a href="#components/user-input/hand-controls2">
hand-controls2
</a>
</li><li>
<a href="#components/user-input/haptic-feedback">
haptic-feedback
</a>
</li><li>
<a href="#components/user-input/virtual-gamepad-controls">
virtual-gamepad-controls
</a>
</li><li>
<a href="#components/user-input/wasd-to-analog2d">
wasd-to-analog2d
</a>
</li>
</ul></li><li><a href="#components/vr-mode">vr-mode</a><ul>
<li>
<a href="#components/vr-mode/vr-mode-toggle-visibility">
vr-mode-toggle-visibility
</a>
</li><li>
<a href="#components/vr-mode/vr-mode-toggle-playing">
vr-mode-toggle-playing
</a>
</li>
</ul></li>
</ul>
</li>
</ul>
<h2>Systems</h2>
<article>
<a name="systems/app-mode"></a><h4>app-mode</h4>
<p>Simple system for keeping track of a modal app state</p>
<span>src/systems/app-mode.js</span>
</article><article>
<a name="systems/personal-space-bubble"></a><h4>personal-space-bubble</h4>
<p>Iterates through bubbles and invaders on every tick and sets invader state accordingly. testing multiline things</p>
<span>src/systems/personal-space-bubble.js</span>
</article>
<h2>Components</h2>
<a name="components/misc"></a><h3>misc</h3>
<article>
<a name="components/misc/animation-mixer"></a>
<h4>animation-mixer</h4>
<p>Instantiates and updates a THREE.AnimationMixer on an entity.</p>
<span>src/components/animation-mixer.js</span>
</article><article>
<a name="components/misc/matcolor-audio-feedback"></a>
<h4>matcolor-audio-feedback</h4>
<p>Sets an entity's color base on audioFrequencyChange events.</p>
<span>src/components/audio-feedback.js</span>
</article><article>
<a name="components/misc/css-class"></a>
<h4>css-class</h4>
<p>Sets the CSS class on an entity.</p>
<span>src/components/css-class.js</span>
</article><article>
<a name="components/misc/duck"></a>
<h4>duck</h4>
<p>Floats a duck based on its scale.</p>
<span>src/components/duck.js</span>
</article><article>
<a name="components/misc/event-repeater"></a>
<h4>event-repeater</h4>
<p>Listens to events from an event source and re-emits them on this entity</p>
<span>src/components/event-repeater.js</span>
</article><article>
<a name="components/misc/hide-when-quality"></a>
<h4>hide-when-quality</h4>
<p>Hides entities based on the scene's quality mode</p>
<span>src/components/hide-when-quality.js</span>
</article><article>
<a name="components/misc/layers"></a>
<h4>layers</h4>
<p>Sets layer flags on the underlying Object3D</p>
<span>src/components/layers.js</span>
</article><article>
<a name="components/misc/loop-animation"></a>
<h4>loop-animation</h4>
<p>Loops the given clip using this entity's animation mixer</p>
<span>src/components/loop-animation.js</span>
</article><article>
<a name="components/misc/nav-mesh-helper"></a>
<h4>nav-mesh-helper</h4>
<p>Initializes teleport-controls when the environment bundle has loaded.</p>
<span>src/components/nav-mesh-helper.js</span>
</article><article>
<a name="components/misc/offset-relative-to"></a>
<h4>offset-relative-to</h4>
<p>Positions an entity relative to a given target when the given event is fired.</p>
<span>src/components/offset-relative-to.js</span>
</article><article>
<a name="components/misc/scene-shadow"></a>
<h4>scene-shadow</h4>
<p>For use in environment gltf bundles to set scene shadow properties.</p>
<span>src/components/scene-shadow.js</span>
</article><article>
<a name="components/misc/spawn-point"></a>
<h4>spawn-point</h4>
<p>Marks an entity as a potential spawn point.</p>
<span>src/components/spawn-controller.js</span>
</article>
<a name="components/avatar"></a><h3>avatar</h3>
<article>
<a name="components/avatar/networked-audio-analyser"></a>
<h4>networked-audio-analyser</h4>
<p>Emits audioFrequencyChange events based on a networked audio source</p>
<span>src/components/audio-feedback.js</span>
</article><article>
<a name="components/avatar/scale-audio-feedback"></a>
<h4>scale-audio-feedback</h4>
<p>Sets an entity's scale base on audioFrequencyChange events.</p>
<span>src/components/audio-feedback.js</span>
</article><article>
<a name="components/avatar/avatar-replay"></a>
<h4>avatar-replay</h4>
<p>Replays a recorded motion capture with the given avatar body parts</p>
<span>src/components/avatar-replay.js</span>
</article><article>
<a name="components/avatar/bone-mute-state-indicator"></a>
<h4>bone-mute-state-indicator</h4>
<p>Toggles the position of 2 bones into "on" and "off" positions to indicate mute state.</p>
<span>src/components/bone-mute-state-indicator.js</span>
</article><article>
<a name="components/avatar/bone-visibility"></a>
<h4>bone-visibility</h4>
<p>Scales an object to near-zero if the object is invisible. Useful for bones representing avatar body parts.</p>
<span>src/components/bone-visibility.js</span>
</article><article>
<a name="components/avatar/character-controller"></a>
<h4>character-controller</h4>
<p>Avatar movement controller that listens to move, rotate and teleportation events and moves the avatar accordingly. The controller accounts for playspace offset and orientation and depends on the nav mesh system for translation.</p>
<span>src/components/character-controller.js</span>
</article><article>
<a name="components/avatar/hand-pose"></a>
<h4>hand-pose</h4>
<p>Animates between poses based on networked pose state using an animation mixer.</p>
<span>src/components/hand-poses.js</span>
</article><article>
<a name="components/avatar/hand-pose-controller"></a>
<h4>hand-pose-controller</h4>
<p>Sets the networked hand pose state based on hand-pose events.</p>
<span>src/components/hand-poses.js</span>
</article><article>
<a name="components/avatar/ik-root"></a>
<h4>ik-root</h4>
<p>Provides access to the end effectors for IK.</p>
<span>src/components/ik-controller.js</span>
</article><article>
<a name="components/avatar/ik-controller"></a>
<h4>ik-controller</h4>
<p>Performs IK on a hip-rooted skeleton to align the hip, head and hands with camera and controller inputs.</p>
<span>src/components/ik-controller.js</span>
</article><article>
<a name="components/avatar/networked-avatar"></a>
<h4>networked-avatar</h4>
<p>Stores networked avatar state.</p>
<span>src/components/networked-avatar.js</span>
</article><article>
<a name="components/avatar/player-info"></a>
<h4>player-info</h4>
<p>Sets player info state, including avatar choice and display name.</p>
<span>src/components/player-info.js</span>
</article><article>
<a name="components/avatar/spawn-controller"></a>
<h4>spawn-controller</h4>
<p>Used on a player-rig to move the player to a random spawn point on entry.</p>
<span>src/components/spawn-controller.js</span>
</article>
<a name="components/network"></a><h3>network</h3>
<article>
<a name="components/network/block-button"></a>
<h4>block-button</h4>
<p>Registers a click handler and invokes the block method on the NAF adapter for the owner associated with its entity.</p>
<span>src/components/block-button.js</span>
</article><article>
<a name="components/network/freeze-controller"></a>
<h4>freeze-controller</h4>
<p>Toggles freezing of network traffic on the given event.</p>
<span>src/components/freeze-controller.js</span>
</article><article>
<a name="components/network/mute-mic"></a>
<h4>mute-mic</h4>
<p>Toggles the microphone on the current network connection based on the given events.</p>
<span>src/components/mute-mic.js</span>
</article><article>
<a name="components/network/networked-counter"></a>
<h4>networked-counter</h4>
<p>Limits networked interactables to a maximum number at any given time</p>
<span>src/components/networked-counter.js</span>
</article><article>
<a name="components/network/networked-video-player"></a>
<h4>networked-video-player</h4>
<p>Instantiates and plays a network video stream, setting the video as the source material for this entity.</p>
<span>src/components/networked-video-player.js</span>
</article><article>
<a name="components/network/super-networked-interactable"></a>
<h4>super-networked-interactable</h4>
<p>Manages ownership and haptics on an interatable</p>
<span>src/components/super-networked-interactable.js</span>
</article><article>
<a name="components/network/super-spawner"></a>
<h4>super-spawner</h4>
<p>Spawns networked objects when grabbed.</p>
<span>src/components/super-spawner.js</span>
</article>
<a name="components/user-input"></a><h3>user-input</h3>
<article>
<a name="components/user-input/cardboard-controls"></a>
<h4>cardboard-controls</h4>
<p>Polls the Gamepad API for Cardboard Button input and emits cardboardbutton events.</p>
<span>src/components/cardboard-controls.js</span>
</article><article>
<a name="components/user-input/controls-shape-offset"></a>
<h4>controls-shape-offset</h4>
<p>Sets the offset of the aframe-physics shape on this entity based on the current VR controller type</p>
<span>src/components/controls-shape-offset.js</span>
</article><article>
<a name="components/user-input/cursor-controller"></a>
<h4>cursor-controller</h4>
<p>Controls virtual cursor behavior in various modalities to affect teleportation, interatables and UI.</p>
<span>src/components/cursor-controller.js</span>
</article><article>
<a name="components/user-input/hand-controls2"></a>
<h4>hand-controls2</h4>
<p>Converts events from various 6DoF and 3DoF controllers into hand-pose events.</p>
<span>src/components/hand-controls2.js</span>
</article><article>
<a name="components/user-input/haptic-feedback"></a>
<h4>haptic-feedback</h4>
<p>Listens for haptic events and actuates hardware controllers accordingly</p>
<span>src/components/haptic-feedback.js</span>
</article><article>
<a name="components/user-input/virtual-gamepad-controls"></a>
<h4>virtual-gamepad-controls</h4>
<p>Instantiates 2D virtual gamepads and emits associated events.</p>
<span>src/components/virtual-gamepad-controls.js</span>
</article><article>
<a name="components/user-input/wasd-to-analog2d"></a>
<h4>wasd-to-analog2d</h4>
<p>Converts WASD keyboard inputs to simulated analog inputs.</p>
<span>src/components/wasd-to-analog2d.js</span>
</article>
<a name="components/gltf"></a><h3>gltf</h3>
<article>
<a name="components/gltf/gltf-bundle"></a>
<h4>gltf-bundle</h4>
<p>Instantiates GLTF models as specified in a bundle JSON.</p>
<span>src/components/gltf-bundle.js</span>
</article><article>
<a name="components/gltf/gltf-model-plus"></a>
<h4>gltf-model-plus</h4>
<p>Loads a GLTF model, optionally recursively "inflates" the child nodes of a model into a-entities and sets whitelisted components on them if defined in the node's extras.</p>
<span>src/components/gltf-model-plus.js</span>
</article>
<a name="components/ui"></a><h3>ui</h3>
<article>
<a name="components/ui/hud-controller"></a>
<h4>hud-controller</h4>
<p>Positions the HUD and toggles app mode based on where the user is looking</p>
<span>src/components/hud-controller.js</span>
</article><article>
<a name="components/ui/icon-button"></a>
<h4>icon-button</h4>
<p>A button with an image, tooltip, hover states and haptics.</p>
<span>src/components/icon-button.js</span>
</article><article>
<a name="components/ui/in-world-hud"></a>
<h4>in-world-hud</h4>
<p>HUD panel for muting, freezing, and space bubble controls.</p>
<span>src/components/in-world-hud.js</span>
</article><article>
<a name="components/ui/text-button"></a>
<h4>text-button</h4>
<p>A button with text and haptics</p>
<span>src/components/text-button.js</span>
</article><article>
<a name="components/ui/visible-while-frozen"></a>
<h4>visible-while-frozen</h4>
<p>Toggles the visibility of this entity when the scene is frozen.</p>
<span>src/components/visible-while-frozen.js</span>
</article><article>
<a name="components/ui/ui-class-while-frozen"></a>
<h4>ui-class-while-frozen</h4>
<p>Toggles the interactivity of a UI entity while the scene is frozen.</p>
<span>src/components/visible-while-frozen.js</span>
</article>
<a name="components/app-mode"></a><h3>app-mode</h3>
<article>
<a name="components/app-mode/app-mode-toggle-playing"></a>
<h4>app-mode-toggle-playing</h4>
<p>Toggle the isPlaying state of a component based on app mode</p>
<span>src/systems/app-mode.js</span>
</article><article>
<a name="components/app-mode/app-mode-toggle-attribute"></a>
<h4>app-mode-toggle-attribute</h4>
<p>Toggle a boolean property of a component based on app mode</p>
<span>src/systems/app-mode.js</span>
</article><article>
<a name="components/app-mode/app-mode-input-mappings"></a>
<h4>app-mode-input-mappings</h4>
<p>Toggle aframe input mappings action set based on app mode</p>
<span>src/systems/app-mode.js</span>
</article>
<a name="components/vr-mode"></a><h3>vr-mode</h3>
<article>
<a name="components/vr-mode/vr-mode-toggle-visibility"></a>
<h4>vr-mode-toggle-visibility</h4>
<p>Toggle visibility of an entity based on if the user is in vr mode or not</p>
<span>src/systems/app-mode.js</span>
</article><article>
<a name="components/vr-mode/vr-mode-toggle-playing"></a>
<h4>vr-mode-toggle-playing</h4>
<p>Toggle the isPlaying state of a component based on app mode</p>
<span>src/systems/app-mode.js</span>
</article>
<a name="components/avatar/personal-space-bubble"></a><h3>avatar/personal-space-bubble</h3>
<article>
<a name="components/avatar/personal-space-bubble/space-invader-mesh"></a>
<h4>space-invader-mesh</h4>
<p>Specifies a mesh associated with an invader.</p>
<span>src/systems/personal-space-bubble.js</span>
</article><article>
<a name="components/avatar/personal-space-bubble/personal-space-invader"></a>
<h4>personal-space-invader</h4>
<p>Represents an entity that can invade a personal space bubble</p>
<span>src/systems/personal-space-bubble.js</span>
</article><article>
<a name="components/avatar/personal-space-bubble/personal-space-bubble"></a>
<h4>personal-space-bubble</h4>
<p>Represents a personal space bubble on an entity.</p>
<span>src/systems/personal-space-bubble.js</span>
</article>
</body>
</html>