Explorar o código

TSL: display atan second argument (#30287)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud hai 1 ano
pai
achega
8f31ce2eaf
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/nodes/math/MathNode.js

+ 3 - 1
src/nodes/math/MathNode.js

@@ -543,9 +543,11 @@ export const acos = /*@__PURE__*/ nodeProxy( MathNode, MathNode.ACOS );
 
 /**
  * Returns the arc-tangent of the parameter.
+ * If two parameters are provided, the result is `atan2(y/x)`.
  *
  * @function
- * @param {Node | Number} x - The parameter.
+ * @param {Node | Number} y - The y parameter.
+ * @param {(Node | Number)?} x - The x parameter.
  * @returns {Node}
  */
 export const atan = /*@__PURE__*/ nodeProxy( MathNode, MathNode.ATAN );

粤ICP备19079148号