AnimationUtils.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. 一个提供各种动画辅助方法的对象,内部使用。
  14. </p>
  15. <h2>方法</h2>
  16. <h3>[method:Array arraySlice]( array, from, to )</h3>
  17. <p>
  18. 和Array.prototype.slice作用一样, 但也适用于类型化数组.
  19. </p>
  20. <h3>[method:Array convertArray]( array, type, forceClone )</h3>
  21. <p>
  22. 将数组转换为某种特定类型。
  23. </p>
  24. <h3>[method:Array flattenJSON]( jsonKeys, times, values, valuePropertyName )</h3>
  25. <p>
  26. 用于解析AOS关键帧格式。
  27. </p>
  28. <h3>[method:Array getKeyframeOrder]( times )</h3>
  29. <p>
  30. 返回一个数组,时间和值可以根据此数组排序。
  31. </p>
  32. <h3>[method:Number insertKeyframe]( [param:KeyframeTrack track], [param:Number time] )</h3>
  33. <p></p>
  34. <h3>[method:Boolean isTypedArray]( object )</h3>
  35. <p>
  36. 如果该对象是类型化数组,返回*true*
  37. </p>
  38. <h3>[method:AnimationClip mergeMorphTargetTracks]( [param:AnimationClip clip], [param:Object3D root] )</h3>
  39. <p></p>
  40. <h3>[method:Array sortedArray]( values, stride, order )</h3>
  41. <p>
  42. 将[page:AnimationUtils.getKeyframeOrder getKeyframeOrder]方法返回的数组排序。
  43. </p>
  44. <h2>源码</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </p>
  48. </body>
  49. </html>