InspectorNode.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>InspectorNode - 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">InspectorNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>InspectorNode is a wrapper node that allows inspection of node values during rendering.
  17. It can be used to debug or analyze node outputs in the rendering pipeline.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="InspectorNode" translate="no">new <a href="#InspectorNode">InspectorNode</a><span class="signature">( node : <span class="param-type"><a href="Node.html">Node</a></span>, name : <span class="param-type">string</span>, callback : <span class="param-type">function | null</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Creates an InspectorNode.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>node</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The node to inspect.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>name</strong>
  40. </td>
  41. <td class="description last">
  42. <p>Optional name for the inspector node.</p>
  43. <p>Default is <code>''</code>.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>callback</strong>
  49. </td>
  50. <td class="description last">
  51. <p>Optional callback to modify the node during setup.</p>
  52. <p>Default is <code>null</code>.</p>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. <h2 class="subsection-title">Properties</h2>
  60. <div class="member">
  61. <h3 class="name" id=".type" translate="no">.<a href="#.type">type</a> </h3>
  62. <div class="description">
  63. <p>Returns the type of the node.</p>
  64. </div>
  65. </div>
  66. <h2 class="subsection-title">Methods</h2>
  67. <h3 class="name name-method" id="getName" translate="no">.<a href="#getName">getName</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
  68. <div class="method">
  69. <div class="description">
  70. <p>Returns the name of the inspector node.</p>
  71. </div>
  72. </div>
  73. <h3 class="name name-method" id="getNodeType" translate="no">.<a href="#getNodeType">getNodeType</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : string</span> </h3>
  74. <div class="method">
  75. <div class="description">
  76. <p>Returns the type of the wrapped node.</p>
  77. </div>
  78. <table class="params">
  79. <tbody>
  80. <tr>
  81. <td class="name">
  82. <strong>builder</strong>
  83. </td>
  84. <td class="description last">
  85. <p>The node builder.</p>
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <dl class="details">
  91. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#getNodeType">Node#getNodeType</a></dt>
  92. </dl>
  93. </div>
  94. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  95. <div class="method">
  96. <div class="description">
  97. <p>Sets up the inspector node.</p>
  98. </div>
  99. <table class="params">
  100. <tbody>
  101. <tr>
  102. <td class="name">
  103. <strong>builder</strong>
  104. </td>
  105. <td class="description last">
  106. <p>The node builder.</p>
  107. </td>
  108. </tr>
  109. </tbody>
  110. </table>
  111. <dl class="details">
  112. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#setup">Node#setup</a></dt>
  113. </dl>
  114. <dl class="details">
  115. <dt class="tag-returns"><strong>Returns:</strong> The setup node.</dt>
  116. </dl>
  117. </div>
  118. <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type"><a href="NodeFrame.html">NodeFrame</a></span> )</span> </h3>
  119. <div class="method">
  120. <div class="description">
  121. <p>Updates the inspector node, allowing inspection of the wrapped node.</p>
  122. </div>
  123. <table class="params">
  124. <tbody>
  125. <tr>
  126. <td class="name">
  127. <strong>frame</strong>
  128. </td>
  129. <td class="description last">
  130. <p>A reference to the current node frame.</p>
  131. </td>
  132. </tr>
  133. </tbody>
  134. </table>
  135. <dl class="details">
  136. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#update">Node#update</a></dt>
  137. </dl>
  138. </div>
  139. <h2 class="subsection-title">Source</h2>
  140. <p>
  141. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/InspectorNode.js" translate="no" target="_blank" rel="noopener">src/nodes/core/InspectorNode.js</a>
  142. </p>
  143. </article>
  144. </section>
  145. <script src="../scripts/linenumber.js"></script>
  146. <script src="../scripts/page.js"></script>
  147. </body>
  148. </html>
粤ICP备19079148号