EventNode.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>EventNode - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
  13. <h1 translate="no">EventNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>EventNode is a node that executes a callback during specific update phases.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="EventNode" translate="no">new <a href="#EventNode">EventNode</a><span class="signature">( eventType : <span class="param-type">string</span>, callback : <span class="param-type">function</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Creates an EventNode.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>eventType</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The type of event</p>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="name">
  38. <strong>callback</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The callback to execute on update.</p>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. <h2 class="subsection-title">Source</h2>
  49. <p>
  50. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/EventNode.js" translate="no" target="_blank" rel="noopener">src/nodes/utils/EventNode.js</a>
  51. </p>
  52. </article>
  53. </section>
  54. <script src="../scripts/linenumber.js"></script>
  55. <script src="../scripts/page.js"></script>
  56. </body>
  57. </html>
粤ICP备19079148号