ArrayElementNode.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ArrayElementNode - 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">ArrayElementNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Base class for representing element access on an array-like
  17. node data structures.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="ArrayElementNode" translate="no">new <a href="#ArrayElementNode">ArrayElementNode</a><span class="signature">( node : <span class="param-type"><a href="Node.html">Node</a></span>, indexNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs an array element node.</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 array-like node.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>indexNode</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The index node that defines the element access.</p>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. <h2 class="subsection-title">Properties</h2>
  50. <div class="member">
  51. <h3 class="name" id="indexNode" translate="no">.<a href="#indexNode">indexNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  52. <div class="description">
  53. <p>The index node that defines the element access.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <h3 class="name" id="isArrayElementNode" translate="no">.<a href="#isArrayElementNode">isArrayElementNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  58. <div class="description">
  59. <p>This flag can be used for type testing.</p>
  60. <p>Default is <code>true</code>.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="node" translate="no">.<a href="#node">node</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  65. <div class="description">
  66. <p>The array-like node.</p>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Methods</h2>
  70. <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>
  71. <div class="method">
  72. <div class="description">
  73. <p>This method is overwritten since the node type is inferred from the array-like node.</p>
  74. </div>
  75. <table class="params">
  76. <tbody>
  77. <tr>
  78. <td class="name">
  79. <strong>builder</strong>
  80. </td>
  81. <td class="description last">
  82. <p>The current node builder.</p>
  83. </td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. <dl class="details">
  88. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#getNodeType">Node#getNodeType</a></dt>
  89. </dl>
  90. <dl class="details">
  91. <dt class="tag-returns"><strong>Returns:</strong> The node type.</dt>
  92. </dl>
  93. </div>
  94. <h2 class="subsection-title">Source</h2>
  95. <p>
  96. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/ArrayElementNode.js" translate="no" target="_blank" rel="noopener">src/nodes/utils/ArrayElementNode.js</a>
  97. </p>
  98. </article>
  99. </section>
  100. <script src="../scripts/linenumber.js"></script>
  101. <script src="../scripts/page.js"></script>
  102. </body>
  103. </html>
粤ICP备19079148号